/*
Theme Name: Kortech Allied Systems
Theme URI: https://kortechalliedsystems.co.ke
Author: Kortech Allied Systems Ltd
Author URI: https://kortechalliedsystems.co.ke
Description: A modern, professional WordPress theme for Kortech Allied Systems Ltd - Technology consulting and digital transformation firm.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kortech
Tags: business, technology, consulting, corporate, one-page, responsive, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: hsl(220, 65%, 25%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(200, 85%, 60%);
    --secondary-foreground: hsl(220, 65%, 15%);
    --accent: hsl(80, 35%, 45%);
    --accent-foreground: hsl(0, 0%, 98%);
    --muted: hsl(220, 15%, 96%);
    --muted-foreground: hsl(220, 10%, 50%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 65%, 15%);
    --border: hsl(220, 15%, 90%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background: hsl(200, 85%, 55%);
    transform: scale(1.05);
    box-shadow: 0 10px 30px hsla(200, 85%, 60%, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: hsla(200, 85%, 60%, 0.1);
    color: var(--secondary);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin: 0.25rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 1rem;
}

.logo {
    height: 48px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: none;
    border: none;
    font-size: 1rem;
}

nav.scrolled .nav-link {
    color: var(--foreground);
}

.nav-link:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.mobile-nav-link:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: hsla(220, 65%, 25%, 0.8);
}

.hero-particles {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: radial-gradient(circle at 2px 2px, var(--secondary) 1px, transparent 0);
    background-size: 48px 48px;
    animation: float-particles 20s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: 
        linear-gradient(hsla(200, 85%, 60%, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, hsla(200, 85%, 60%, 0.3) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: grid-flow 15s linear infinite;
}

.hero-orb-1, .hero-orb-2, .hero-orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero-orb-1 {
    top: 25%;
    left: 25%;
    width: 384px;
    height: 384px;
    background: hsla(200, 85%, 60%, 0.3);
    animation: float-slow 20s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: 25%;
    right: 25%;
    width: 384px;
    height: 384px;
    background: hsla(80, 35%, 45%, 0.3);
    animation: float-delayed 18s ease-in-out infinite 2s;
}

.hero-orb-3 {
    top: 50%;
    right: 33%;
    width: 256px;
    height: 256px;
    background: hsla(200, 85%, 60%, 0.2);
    animation: float-medium 15s ease-in-out infinite 1s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    height: 128px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: fade-in 0.6s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: hsla(200, 85%, 60%, 0.2);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    animation: fade-in 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fade-in 0.6s ease-out;
}

.hero-title-white {
    color: white;
}

.hero-title-divider {
    color: var(--secondary);
    margin: 0 0.5rem;
}

.hero-acronym {
    color: hsla(200, 85%, 60%, 0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    animation: fade-in-delayed 1s ease-out;
}

.hero-acronym .letter {
    color: var(--secondary);
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 3rem;
    animation: slide-up 0.6s ease-out;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slide-up 0.6s ease-out;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: slide-up 0.6s ease-out;
}

.hero-buttons .btn {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.quote-box {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--muted-foreground);
    font-style: italic;
}

.about-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 5rem;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.card:hover .icon-circle {
    transform: scale(1.1);
}

.icon-primary {
    background: hsla(220, 65%, 25%, 0.1);
}

.card:hover .icon-primary {
    background: hsla(220, 65%, 25%, 0.2);
}

.icon-secondary {
    background: hsla(200, 85%, 60%, 0.1);
}

.card:hover .icon-secondary {
    background: hsla(200, 85%, 60%, 0.2);
}

.icon-accent {
    background: hsla(80, 35%, 45%, 0.1);
}

.card:hover .icon-accent {
    background: hsla(80, 35%, 45%, 0.2);
}

.icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.card:hover .icon {
    transform: rotate(12deg);
}

/* Solutions Section */
.solution-card {
    overflow: hidden;
}

.solution-image-wrapper {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.solution-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.solution-card:hover .solution-image {
    transform: scale(1.25) rotate(2deg);
}

.solution-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(220, 65%, 25%, 0.9), transparent);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-image-overlay {
    background: linear-gradient(to top, hsla(220, 65%, 25%, 0.8), transparent);
}

.solution-icon-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: hsla(200, 85%, 60%, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon-wrapper {
    background: hsla(200, 85%, 60%, 0.4);
    transform: scale(1.1);
}

.solution-icon-wrapper .icon {
    filter: brightness(0) saturate(100%) invert(74%) sepia(62%) saturate(1547%) hue-rotate(163deg) brightness(97%) contrast(92%);
}

.solution-card:hover .solution-icon-wrapper .icon {
    transform: rotate(12deg);
}

/* Contact Section */
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(8px);
}

.contact-icon-wrapper {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: hsla(200, 85%, 60%, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon-wrapper {
    background: hsla(200, 85%, 60%, 0.2);
    transform: scale(1.1);
}

.contact-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.why-choose-box {
    background: linear-gradient(135deg, var(--primary), hsl(220, 65%, 30%));
    color: var(--primary-foreground);
    border-radius: 0.5rem;
    padding: 2rem;
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-choose-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    padding: 0.25rem 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes float-particles {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes grid-flow {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(100px) translateX(100px); }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float-delayed {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.05); }
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-delayed {
    0%, 50% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

