/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #2196F3;
    --accent-color: #FF6B35;
    
    --background-dark: #0A0A0A;
    --background-light: #ffffff;
    --surface-dark: #1A1A1A;
    --surface-light: #f8f9fa;
    --text-primary-dark: #ffffff;
    --text-primary-light: #1a1a1a;
    --text-secondary-dark: #b0b0b0;
    --text-secondary-light: #666666;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 8rem 0;
    --container-padding: 0 2rem;
    --border-radius: 1rem;
    --border-radius-lg: 2rem;
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.25);
    
    /* Theme-specific overlays and effects */
    --overlay-light: rgba(0, 0, 0, 0.3);
    --overlay-heavy: rgba(0, 0, 0, 0.8);
    --placeholder-text-color: #ffffff;
    --team-card-background: rgba(255, 255, 255, 0.02);
    --team-card-border: rgba(255, 255, 255, 0.1);
}

/* Light theme overrides */
[data-theme="light"] {
    --background-dark: #ffffff;
    --background-light: #0A0A0A;
    --surface-dark: #f8f9fa;
    --surface-light: #1A1A1A;
    --text-primary-dark: #1a1a1a;
    --text-primary-light: #ffffff;
    --text-secondary-dark: #666666;
    --text-secondary-light: #b0b0b0;
    
    /* Light mode specific overlays and effects */
    --overlay-light: rgba(0, 0, 0, 0.2);
    --overlay-heavy: rgba(0, 0, 0, 0.7);
    --placeholder-text-color: #ffffff;
    --team-card-background: #ffffff;
    --team-card-border: rgba(0, 0, 0, 0.1);
    
    /* Light mode shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Light Mode Specific Enhancements */
[data-theme="light"] .founder-image {
    border: 3px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .founder-image:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Dark Mode Specific Enhancements */
[data-theme="dark"] .founder-image,
body:not([data-theme]) .founder-image {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .founder-image:hover,
body:not([data-theme]) .founder-image:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .team-card:hover,
body:not([data-theme]) .team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactions */
button, .nav-link, .cta-primary, .cta-secondary, .card-link, .case-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Improve button touch targets on mobile */
@media (max-width: 768px) {
    button, .nav-link, .cta-primary, .cta-secondary {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    perspective: 1000px;
}

/* Loading Logo Section */
.loading-logo-section {
    margin-bottom: 3rem;
}

.loading-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.loading-logo-placeholder {
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.loading-logo-placeholder::before {
    display: none;
}

.loading-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.loading-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.loading-logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.loading-logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary-dark);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loading-text-sequence {
    font-family: var(--font-primary);
}

.text-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    min-height: 80px;
}

.text-line.original .word {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-secondary-dark);
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
}

.text-line.original .separator {
    color: var(--primary-color);
    font-weight: 700;
}

.text-line.transformed {
    opacity: 0;
}

.text-line.transformed .word.new {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(30px);
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes transformReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-placeholder {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* removed visible box behind logo */
    box-shadow: none;
    border: none;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-logo-placeholder::before {
    display: none;
}

.nav-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    /* ensure no border or background bleed on the image */
    border: none;
    box-shadow: none;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

/* Responsive logo size: smaller on narrow screens */
@media (max-width: 600px) {
    .nav-logo-placeholder {
        width: 40px;
        height: 40px;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary-dark);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary-dark);
    transition: var(--transition);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-dark);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-mobile .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-mobile .nav-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-mobile .theme-toggle {
    margin-top: 2rem;
}

/* Hero Section */

/* --------------------
   Accessibility & Theme fixes
   - Ensure nav/header is readable in light mode
   - Make <select> and <option> readable in dark and light themes
   - Improve small-screen layout for case study pages (override inline grid)
   -------------------- */

/* Header visibility in light mode */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary-dark);
}

[data-theme="light"] .nav-link,
[data-theme="light"] .nav-hamburger span {
    color: var(--text-primary-dark);
}

/* Make logo placeholder subtle on light theme */
[data-theme="light"] .nav-logo-placeholder {
    background: transparent;
}

/* Light theme form adjustments: keep borders and contrast for inputs and contact form */
[data-theme="light"] .contact-form {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary-dark);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: var(--surface-light);
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-primary-dark);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33,150,243,0.08);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--text-secondary-dark);
}

/* Select and option contrast in dark/light modes */
select,
.footer select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    background: var(--surface-dark);
    color: var(--text-primary-dark);
}

select option {
    background: var(--surface-dark);
    color: var(--text-primary-dark);
}

[data-theme="light"] select,
[data-theme="light"] .footer select {
    background: var(--surface-light);
    color: var(--text-primary-dark);
    border: 1px solid rgba(0,0,0,0.08);
}

/* On some platforms the option background can't be styled strongly; add a subtle focus ring */
select:focus {
    outline: 3px solid rgba(33,150,243,0.12);
}

/* Mobile-friendly case study layout
   Many case pages use inline grid styles (1fr 320px). On small viewports force a single-column flow. */
@media (max-width: 900px) {
    .hero .hero-content {
        padding: 1rem !important;
    }

    /* Target elements that have inline grid-template-columns declarations and override them */
    .hero .hero-content [style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        align-items: start !important;
    }

    .hero .hero-content h1 {
        font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
    }

    .hero .hero-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .hero .hero-content aside {
        width: 100% !important;
        margin-top: 0.5rem !important;
    }

    /* Make CTA buttons larger on small screens */
    .cta-primary, .cta-secondary {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

/* Ensure quick-facts panels have readable borders in both themes */
.hero .hero-content aside {
    border: 1px solid rgba(255,255,255,0.06);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem 6rem; /* Added bottom padding */
}

.hero-tagline {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.tagline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tagline-word {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-secondary-dark);
}

.tagline-dots {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--primary-color);
}

.tagline-transform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tagline-word-new {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary-dark);
}

.hero-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary-dark);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 8rem; /* Increased margin to push scroll indicator down */
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary-dark);
}


.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary-dark);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-secondary-dark);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0%, 20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Common Section Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden; /* Prevent animation overflow */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary-dark);
    transform: translateY(30px);
    opacity: 0;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary-dark);
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
}

/* Animation-ready states */
.service-card,
.case-card,
.principle,
.advantage,
.showcase-item,
.contact-method,
.form-group {
    opacity: 0;
    transform: translateY(30px);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Section */
.services {
    background: var(--surface-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary-dark);
}

.card-description {
    color: var(--text-secondary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-tech span {
    padding: 0.25rem 0.75rem;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card-link:hover {
    gap: 1rem;
}

/* Approach Section */
.approach {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 25% 50%, #0f3a3f, #0a0a0a 75%);
}

.approach-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Ensure section has height */
}

.approach-text {
    max-width: 700px;
    text-align: center;
    background: rgba(10, 10, 10, 0.7);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.approach-principles {
    margin-top: 2rem;
    text-align: left;
}

.principle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.principle:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(5px);
}

.principle-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.principle-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary-dark);
}

.principle-content p {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

/* Light mode overrides for Approach section */
[data-theme="light"] .approach {
    background: radial-gradient(ellipse at 25% 50%, #e0f2f1, #ffffff 75%);
}

[data-theme="light"] .approach-text {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .principle {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .principle:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* Cases Section */
.cases {
    background: var(--surface-dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* On very wide screens prefer 4 columns */
@media (min-width: 1400px) {
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.case-card {
    background: var(--background-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-overlay {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.case-content {
    padding: 2rem;
}

.case-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary-dark);
}

.case-description {
    color: var(--text-secondary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.case-link:hover {
    gap: 1rem;
}

/* Case card actions */
.case-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.cta-primary:hover {
    transform: translateY(-3px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary-dark);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    font-weight: 600;
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-advantages {
    margin: 2rem 0;
}

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advantage i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.advantage h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary-dark);
}

.advantage p {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

.team-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.showcase-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.showcase-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary-dark);
}

.showcase-text p {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--surface-dark);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-card.active {
    display: block;
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background: var(--primary-color);
}

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.05);
}

.method-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.method-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary-dark);
}

.method-info p {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

.contact-form-container {
    position: relative;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary-dark);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

/* --- Enforce light-theme form contrast (placed at end to override earlier rules) --- */
[data-theme="light"] .contact .contact-form,
[data-theme="light"] .contact-form {
    background: var(--surface-light);
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-primary-dark);
}
    [data-theme="light"] .contact .form-group input,
    [data-theme="light"] .contact .form-group select,
    [data-theme="light"] .contact .form-group textarea,
    [data-theme="light"] .form-group input,
    [data-theme="light"] .form-group select,
    [data-theme="light"] .form-group textarea {
        background: var(--surface-light) !important;
        border: 1px solid rgba(0,0,0,0.14) !important;
        color: var(--text-primary-dark) !important;
    }
    [data-theme="light"] .contact .form-group input::placeholder,
    [data-theme="light"] .contact .form-group textarea::placeholder,
    [data-theme="light"] .form-group input::placeholder,
    [data-theme="light"] .form-group textarea::placeholder {
        color: var(--text-secondary-dark) !important;
    }
    [data-theme="light"] .contact .form-group input:focus,
    [data-theme="light"] .contact .form-group select:focus,
    [data-theme="light"] .contact .form-group textarea:focus,
    [data-theme="light"] .form-group input:focus,
    [data-theme="light"] .form-group select:focus,
    [data-theme="light"] .form-group textarea:focus {
        outline: none !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 4px rgba(33,150,243,0.10) !important;
    }
    [data-theme="light"] .contact .form-group select,
    [data-theme="light"] .form-group select {
        border: 1px solid rgba(0,0,0,0.12) !important;
        background: var(--surface-light) !important;
    }

[data-theme="light"] .contact .form-group input,
[data-theme="light"] .contact .form-group select,
[data-theme="light"] .contact .form-group textarea,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: var(--surface-light) !important;
    border: 1px solid rgba(0,0,0,0.14) !important;
    color: var(--text-primary-dark) !important;
}

[data-theme="light"] .contact .form-group input::placeholder,
[data-theme="light"] .contact .form-group textarea::placeholder,
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--text-secondary-dark) !important;
}

[data-theme="light"] .contact .form-group input:focus,
[data-theme="light"] .contact .form-group select:focus,
[data-theme="light"] .contact .form-group textarea:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(33,150,243,0.10) !important;
}

/* ensure select dropdown in contact form also shows border in light mode */
[data-theme="light"] .contact .form-group select,
[data-theme="light"] .form-group select {
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: var(--surface-light) !important;
}


.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
}

.form-success.show {
    display: block;
    animation: successShow 0.5s ease-out;
}

@keyframes successShow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary-dark);
}

.form-success p {
    color: var(--text-secondary-dark);
}

/* Footer */
.footer {
    background: var(--surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2.8fr;
    gap: 6rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

/* Make footer logo image smaller so it fits nicely in the footer */
.footer .footer-logo img,
.footer-logo img {
    max-width: 80px;
    width: 80px;
    height: auto;
    display: block;
}

.footer-description {
    color: var(--text-secondary-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary-dark);
}

.footer-column a {
    display: block;
    color: var(--text-secondary-dark);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .approach-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
        --container-padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    /* Mobile Logo Adjustments */
    .nav-logo-container {
        gap: 0.5rem;
    }
    
    .nav-logo-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .loading-logo-container {
        margin-bottom: 1.5rem;
    }
    
    .loading-logo-placeholder {
        width: 72px;
        height: 72px;
    }
    
    .loading-logo-text {
        font-size: 1.8rem;
    }
    
    .loading-logo-subtitle {
        font-size: 0.7rem;
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Services Grid Mobile */
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card,
    .case-card {
        padding: 2rem 1.5rem;
    }
    
    .card-title,
    .case-title {
        font-size: 1.3rem;
    }
    
    .card-description,
    .case-description {
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Testimonials Mobile */
    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        max-width: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .tagline-container,
    .tagline-transform {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat {
        text-align: center;
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-card,
    .case-card {
        padding: 1.5rem 1rem;
    }
    
    .card-tech {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-tech span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .nav-mobile .nav-link {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        gap: 0.75rem;
    }
    
    .cta-primary, .cta-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Touch-friendly sizing */
    .theme-toggle {
        width: 44px;
        height: 44px;
    }
    
    .nav-hamburger {
        padding: 8px;
    }
    
    .card-link,
    .case-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* About Page Styles */
.about-hero {
    background: var(--background-dark);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(21, 101, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 184, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    margin-bottom: 2rem;
}

.about-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: var(--section-padding);
    background: var(--surface-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--team-card-background);
    border: 1px solid var(--team-card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.05), rgba(47, 184, 255, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: var(--shadow-lg);
}

.team-card:hover::before {
    opacity: 1;
}

.team-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--placeholder-text-color);
}

.image-placeholder .placeholder-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--placeholder-text-color);
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.founder-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.team-image:hover .image-overlay {
    opacity: 1;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-heavy);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-image:hover .team-overlay {
    opacity: 1;
}

.team-info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.team-expertise span {
    padding: 0.3rem 0.8rem;
    background: rgba(21, 101, 192, 0.2);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-secondary-dark);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary-dark);
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.contact-item span {
    color: var(--text-secondary-dark);
    transition: var(--transition);
}

.contact-item:hover span {
    color: var(--primary-color);
}

.team-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 90px;
    justify-content: center;
}

.contact-button.linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.3);
}

.contact-button.linkedin:hover {
    background: rgba(10, 102, 194, 0.25);
    border-color: #0a66c2;
    transform: translateY(-2px);
}

.contact-button.github {
    background: rgba(51, 51, 51, 0.15);
    color: #f0f6fc;
    border-color: rgba(51, 51, 51, 0.3);
}

.contact-button.github:hover {
    background: rgba(51, 51, 51, 0.25);
    border-color: #333;
    transform: translateY(-2px);
}

.contact-button.email {
    background: rgba(21, 101, 192, 0.15);
    color: var(--primary-color);
    border-color: rgba(21, 101, 192, 0.3);
}

.contact-button.email:hover {
    background: rgba(21, 101, 192, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Updated team social for 4 icons */
.team-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.team-social .social-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.team-social .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Values Section */
.values-section {
    padding: var(--section-padding);
    background: var(--background-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-secondary-dark);
    line-height: 1.6;
}

/* About CTA Section */
.about-cta-section {
    padding: var(--section-padding);
    background: var(--surface-dark);
    text-align: center;
}

.about-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-dark);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Ensure the header logo link doesn't show an underline or change color */
.nav-logo-link,
.nav-logo-link .nav-brand-text,
.nav-logo-link .logo-text,
.nav-logo-link .logo-subtitle {
  text-decoration: none !important;
  color: inherit !important;
}

/* Mobile Responsive for About Page */
@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 0 3rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-image {
        width: 100px;
        height: 100px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .team-social .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .team-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 200px;
        padding: 0.75rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Force contact form white background + green borders in light mode */
body[data-theme="light"] #contact .contact-form,
body[data-theme="light"] #contact .contact-form .form-group input,
body[data-theme="light"] #contact .contact-form .form-group textarea,
body[data-theme="light"] #contact .contact-form .form-group select {
    background: #ffffff !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--text-primary-dark) !important;
}

body[data-theme="light"] #contact .contact-form .form-group input::placeholder,
body[data-theme="light"] #contact .contact-form .form-group textarea::placeholder {
    color: #6b7280 !important; /* slightly muted placeholder */
}

/* Light mode: green borders for card-like components to improve affordance */
body[data-theme="light"] .service-card,
body[data-theme="light"] .case-card,
body[data-theme="light"] .team-card,
body[data-theme="light"] .value-card,
body[data-theme="light"] .showcase-item,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .service-card::before,
body[data-theme="light"] .team-card::before {
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

/* Slightly stronger highlight on hover for light theme */
body[data-theme="light"] .service-card:hover,
body[data-theme="light"] .case-card:hover,
body[data-theme="light"] .team-card:hover,
body[data-theme="light"] .value-card:hover,
body[data-theme="light"] .showcase-item:hover,
body[data-theme="light"] .testimonial-card.active,
body[data-theme="light"] .testimonial-card:hover {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 8px 24px rgba(76,175,80,0.12) !important;
}


/* Cookie banner styles */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(.2,.9,.2,1);
  opacity: 0;
  transform: translateY(18px);
}
.cookie-banner[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-inner {
  background: var(--surface, #ffffff);
  color: var(--text-primary, #0b1220);
  padding: 1rem 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(12,18,28,0.12);
  width: calc(100% - 40px);
  max-width: 980px;
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(11,18,32,0.06);
}

.cookie-text { max-width: 64%; }
.cookie-text strong { display:block; font-size:1rem; }
.cookie-text p { margin:0.25rem 0 0; color:var(--text-secondary-dark, #6b7280); font-size:0.95rem; }

.cookie-actions { margin-left: auto; display:flex; gap:0.5rem; align-items:center; }
.cookie-actions .btn { padding:0.5rem 0.9rem; font-size:0.95rem; border-radius:8px; }
.cookie-actions .btn-ghost { background: transparent; border: 1px solid rgba(11,18,32,0.06); }
.cookie-actions .btn-primary { background: var(--accent, #2563eb); color: #fff; border: none; }
.cookie-link { color: var(--accent, #2563eb); text-decoration: underline; margin-right:0.5rem; font-size:0.95rem; }

@media (max-width: 720px) {
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 0.9rem; gap:0.75rem; }
  .cookie-text { max-width: 100%; }
  .cookie-text p { font-size:0.95rem; }
  .cookie-actions { margin-left: 0; justify-content: flex-end; }
  .cookie-actions .btn { width: 100%; }
  .cookie-actions .cookie-link { width: 100%; text-align: left; }
}
