/* ==========================================================================
   AETHER DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors — Dark Mode: Deep Midnight Indigo */
    --color-bg-darkest: #080b14;
    --color-bg-dark: #0d1120;
    --color-bg-card: rgba(20, 26, 48, 0.75);
    --color-bg-card-hover: rgba(28, 36, 64, 0.90);
    --color-border: rgba(120, 140, 220, 0.12);
    --color-border-hover: rgba(140, 165, 255, 0.30);
    
    --color-text-primary: #e8eaf6;
    --color-text-secondary: #8892b0;
    --color-text-muted: #4f5b7a;
    
    --color-accent: #a5b4fc;
    --color-accent-gray: #c7d2fe;
    
    --glass-bg: rgba(30, 42, 80, 0.55);
    --glass-border: rgba(130, 150, 240, 0.18);
    --glass-blur: blur(20px);

    /* Floating Shape Gradients — Indigo / Violet / Cyan */
    --gradient-shape-1: radial-gradient(circle, rgba(99, 102, 241, 0.7) 0%, rgba(99,102,241,0) 70%);
    --gradient-shape-2: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(139,92,246,0) 70%);
    --gradient-shape-3: radial-gradient(circle, rgba(34, 211, 238, 0.45) 0%, rgba(34,211,238,0) 70%);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    /* Timings */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Variables Override */
[data-theme="light"] {
    /* Colors — Light Mode: Warm Blush & Soft Lavender */
    --color-bg-darkest: #f5f0f8;
    --color-bg-dark: #faf7fc;
    --color-bg-card: rgba(255, 252, 255, 0.72);
    --color-bg-card-hover: rgba(255, 253, 255, 0.92);
    --color-border: rgba(150, 100, 200, 0.12);
    --color-border-hover: rgba(150, 100, 200, 0.28);
    
    --color-text-primary: #1a1025;
    --color-text-secondary: #5a4570;
    --color-text-muted: #9d8aaf;
    
    --color-accent: #6d28d9;
    --color-accent-gray: #7c3aed;
    
    --glass-bg: rgba(255, 248, 255, 0.68);
    --glass-border: rgba(160, 110, 220, 0.20);
    
    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(109, 40, 217, 0.06);
    --shadow-md: 0 12px 36px rgba(109, 40, 217, 0.10);
    --shadow-lg: 0 24px 56px rgba(109, 40, 217, 0.14);
    --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.18);

    /* Floating Shape Gradients for Light Mode: Rose / Violet / Amber */
    --gradient-shape-1: radial-gradient(circle, rgba(216, 180, 254, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
    --gradient-shape-2: radial-gradient(circle, rgba(251, 191, 201, 0.50) 0%, rgba(255, 255, 255, 0) 70%);
    --gradient-shape-3: radial-gradient(circle, rgba(253, 230, 138, 0.40) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #3b0764 20%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle Button styling */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    outline: none;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.theme-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light Theme Component Specific Overrides */
[data-theme="light"] .main-header.sticky {
    background-color: rgba(250, 247, 252, 0.80);
}

[data-theme="light"] .dropdown-menu {
    background: rgba(255, 252, 255, 0.92);
}

[data-theme="light"] .quote-icon {
    color: rgba(109, 40, 217, 0.04);
}

[data-theme="light"] .project-img-wrapper {
    background-color: #f5f0f8;
}

[data-theme="light"] .geometric-pattern {
    background-color: #f5f0f8;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(109, 40, 217, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(109, 40, 217, 0.04) 2px, transparent 2px),
        linear-gradient(45deg, rgba(109, 40, 217, 0.008) 25%, transparent 25),
        linear-gradient(-45deg, rgba(109, 40, 217, 0.008) 25%, transparent 25);
}

[data-theme="light"] .geometric-pattern::before {
    border-color: rgba(109, 40, 217, 0.06);
}

[data-theme="light"] .geometric-pattern.pat-1::after {
    border-color: rgba(109, 40, 217, 0.10);
}

[data-theme="light"] .geometric-pattern.pat-2::after {
    border-color: rgba(109, 40, 217, 0.10);
}

[data-theme="light"] .geometric-pattern.pat-3::after {
    border-bottom-color: rgba(109, 40, 217, 0.07);
}

[data-theme="light"] .project-overlay {
    background: linear-gradient(to top, rgba(245, 240, 248, 0.92) 0%, rgba(245, 240, 248, 0) 60%);
}

[data-theme="light"] .btn-primary .btn-ripple {
    background: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .btn-primary {
    background-color: #6d28d9;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 36px rgba(109, 40, 217, 0.30);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(109, 40, 217, 0.20);
}

[data-theme="light"] .btn-outline:hover {
    background-color: #6d28d9;
    color: #ffffff;
    border-color: #6d28d9;
}

[data-theme="light"] .floating-shape {
    mix-blend-mode: multiply;
}

[data-theme="light"] .hero-badge {
    border-color: rgba(109, 40, 217, 0.12);
    background-color: rgba(109, 40, 217, 0.04);
}

[data-theme="light"] .slider-btn {
    border-color: rgba(109, 40, 217, 0.15);
}

[data-theme="light"] .timeline-dot {
    border-color: rgba(109, 40, 217, 0.20);
}

[data-theme="light"] .social-link {
    background-color: rgba(109, 40, 217, 0.04);
    border-color: rgba(109, 40, 217, 0.10);
}

[data-theme="light"] .mouse-icon {
    border-color: rgba(109, 40, 217, 0.35);
}

[data-theme="light"] .custom-cursor-follower {
    border-color: rgba(109, 40, 217, 0.25);
}

[data-theme="light"] .custom-cursor-follower.cursor-hover {
    border-color: rgba(109, 40, 217, 0.65);
    background-color: rgba(109, 40, 217, 0.06);
}

[data-theme="light"] .custom-cursor-follower.cursor-click {
    border-color: #6d28d9;
}

[data-theme="light"] .custom-cursor.cursor-hover {
    background-color: rgba(109, 40, 217, 0.18);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 1025px) {
    body {
        cursor: none;
    }
    a, button, input, textarea, select, .magnetic, .slider-dot {
        cursor: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
}

.custom-cursor-follower {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(165, 180, 252, 0.25);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    /* Soft transform transition for lagging delay */
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.3s, 
                background-color 0.3s;
    opacity: 0;
}

/* Cursor Hover states */
.custom-cursor.cursor-hover {
    width: 12px;
    height: 12px;
    background-color: rgba(165, 180, 252, 0.15);
}

.custom-cursor-follower.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(165, 180, 252, 0.65);
    background-color: rgba(165, 180, 252, 0.06);
}

.custom-cursor.cursor-click {
    transform: translate(-50%, -50%) scale(0.6);
}

.custom-cursor-follower.cursor-click {
    transform: translate(-50%, -50%) scale(1.4);
    border-color: #a5b4fc;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #e8eaf6 20%, #a5b4fc 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers */
.section-header {
    margin-bottom: 4.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4.5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 1rem;
    position: relative;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.4rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 100px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.3rem 3rem;
    font-size: 1.05rem;
}

/* Primary Button (White fill, Black text) */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-darkest);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-primary .btn-arrow {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Secondary & Outline (Translucent/Border only) */
.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-darkest);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Interactive Ripple effect overlay */
.btn-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.btn-primary .btn-ripple {
    background: rgba(0, 0, 0, 0.15);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   SCROLL REVEAL STYLES (Intersection Observer)
   ========================================================================== */

/* Default: text/generic elements slide up */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Card-specific: emerge from depth behind the screen */
.why-card.scroll-reveal,
.service-card.scroll-reveal,
.testimonial-card.scroll-reveal,
.project-card.scroll-reveal {
    opacity: 0;
    transform: perspective(900px) translateY(60px) translateZ(-40px) scale(0.92);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card.scroll-reveal.revealed,
.service-card.scroll-reveal.revealed,
.testimonial-card.scroll-reveal.revealed,
.project-card.scroll-reveal.revealed {
    opacity: 1;
    transform: perspective(900px) translateY(0) translateZ(0) scale(1);
}

/* Stagger delays — fine-grained cascade for grids */
.scroll-reveal.delay-1 { transition-delay: 0.08s; }
.scroll-reveal.delay-2 { transition-delay: 0.16s; }
.scroll-reveal.delay-3 { transition-delay: 0.24s; }
.scroll-reveal.delay-4 { transition-delay: 0.32s; }
.scroll-reveal.delay-5 { transition-delay: 0.40s; }
.scroll-reveal.delay-6 { transition-delay: 0.48s; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1.5rem 0;
    transition: padding var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
    border-bottom: 1px solid transparent;
}

/* Sticky layout active via scroll listener */
.main-header.sticky {
    padding: 1rem 0;
    background-color: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    min-width: 40px;   /* keeps header layout stable even when empty */
    display: block;
}

.logo-dot {
    color: #888888;
    margin-left: 2px;
}

/* Desktop Navigation Menu */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    display: inline-block;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
    transform: scale(1.03);
}

/* Navigation Link Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Container */
.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 230px;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.4s;
    z-index: 100;
}

/* Hover to open Dropdown */
.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

/* Dropdown Items styling */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.drop-num {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-right: 0.8rem;
    transition: color var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 2.2rem; /* Slide right animation */
}

.dropdown-item:hover .drop-num {
    color: var(--color-text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger button responsive layout */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-normal);
}

/* Hamburger state shifts to cross when active */
.hamburger-menu.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar-2 {
    opacity: 0;
}

.hamburger-menu.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
    background-color: var(--color-bg-darkest);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.02);
    margin-bottom: 2.2rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.hero-title {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Scroll indicator link bottom */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.7;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s ease-out infinite;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Floating animated background elements */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    mix-blend-mode: screen;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: var(--gradient-shape-1);
    top: -10%;
    left: 10%;
    animation: drift 20s linear infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-shape-2);
    bottom: -10%;
    right: 5%;
    animation: drift 25s linear infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-shape-3);
    top: 40%;
    right: 30%;
    animation: drift 15s linear infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -30px) scale(1.1);
    }
    100% {
        transform: translate(-20px, 40px) scale(0.9);
    }
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    perspective: 1200px;          /* gives children a 3D space to emerge from */
}

.why-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Hidden Glow Spot behind card */
.why-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(99, 102, 241, 0.10), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.why-card:hover .why-card-glow {
    opacity: 1;
}

.why-card-icon {
    width: 50px;
    height: 50px;
    color: var(--color-accent);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.why-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.why-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Card hover animation */
.why-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
    perspective: 1200px;
}

.project-card {
    background-color: transparent;
    transition: all var(--transition-normal);
}

.project-img-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #141a30;
    border: 1px solid var(--color-border);
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition-slow);
}

/* Abstract Patterns to simulate premium project mocks */
.geometric-pattern {
    width: 100%;
    height: 100%;
    background-color: #141a30;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(165, 180, 252, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(165, 180, 252, 0.08) 2px, transparent 2px),
        linear-gradient(45deg, rgba(165,180,252,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(165,180,252,0.02) 25%, transparent 25%);
    background-size: 40px 40px, 60px 60px, 80px 80px, 80px 80px;
    position: relative;
}

.geometric-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1px solid rgba(165, 180, 252, 0.10);
    border-radius: 50%;
}

.geometric-pattern.pat-1::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 120px;
    height: 120px;
    border: 1px solid rgba(165, 180, 252, 0.18);
}

.geometric-pattern.pat-2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 80px;
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 40px;
}

.geometric-pattern.pat-3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(165, 180, 252, 0.10);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 11, 20, 0.88) 0%, rgba(8, 11, 20, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
}

.project-info {
    padding-top: 1.8rem;
}

.project-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.project-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    gap: 0.5rem;
}

.project-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.project-link:hover {
    color: var(--color-text-primary);
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* Project Card Hover zoom / lift effects */
.project-card:hover .project-img-placeholder {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img-wrapper {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    grid-template-columns: repeat(3, 2fr);
    gap: 2rem;
    perspective: 1200px;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem 2.2rem;
    border-radius: 20px;
    transition: all var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--color-text-primary);
    margin-bottom: 1.8rem;
    transition: transform var(--transition-fast);
}

.service-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Services card hover effect */
.service-card:hover {
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

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

/* ==========================================================================
   PROCESS TIMELINE SECTION
   ========================================================================== */
.timeline-container {
    max-width: 900px;
    margin: 5rem auto 0 auto;
    position: relative;
    padding-left: 3rem; /* Left alignment for clean layout */
}

/* Timeline Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background-color: rgba(120, 140, 220, 0.12);
}

/* Active Progress Line running down */
.timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, #a5b4fc, rgba(165,180,252,0));
    transition: height var(--transition-normal);
}

.timeline-step {
    position: relative;
    margin-bottom: 5.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -43px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    transition: all var(--transition-normal);
}

.timeline-step.active .timeline-dot {
    border-color: var(--color-accent);
    box-shadow: 0 0 18px rgba(165, 180, 252, 0.45);
    background-color: var(--color-accent);
    color: var(--color-bg-darkest);
}

.timeline-content {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2.2rem 2.5rem;
    border-radius: 16px;
    transition: all var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.step-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Step Hover styling */
.timeline-step:hover .timeline-content {
    border-color: var(--color-border-hover);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-slider-container {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-wrapper {
    display: flex;
    transition: transform var(--transition-normal);
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 1rem;
}

.testimonial-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 4rem 3.5rem;
    position: relative;
    transition: all var(--transition-normal);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.quote-icon {
    font-family: var(--font-secondary);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 0rem;
    left: 2rem;
    line-height: 1;
    pointer-events: none;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e2a50, #141a30);
    border: 1px solid rgba(165,180,252,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
}

.client-role {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Testimonial slider navigation */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.slider-btn svg {
    width: 18px;
    height: 18px;
}

.slider-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-darkest);
    border-color: var(--color-accent);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

/* ==========================================================================
   CALL TO ACTION SECTION
   ========================================================================== */
.cta-section {
    padding: 10rem 0;
    background-color: var(--color-bg-darkest);
    position: relative;
}

.cta-glow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-glow-ball {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.cta-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 2.2rem;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-darkest);
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 3rem 0;
    color: var(--color-text-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand .footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 1.8rem;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-darkest);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    color: var(--color-text-primary);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-links a:hover {
    color: var(--color-text-primary);
    padding-left: 4px;
}

.footer-contact-list li {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.footer-contact-list a {
    color: var(--color-text-secondary);
}

.footer-contact-list a:hover {
    color: var(--color-text-primary);
}

.contact-value {
    color: var(--color-text-secondary);
}

/* Footer Bottom elements */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
    color: var(--color-text-primary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Laptops & Tablets */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero-title {
        font-size: 3.4rem;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Handhelds & Mobiles */
@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Mobile Drawer navigation */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-normal);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    [data-theme="light"] .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.4rem;
        font-weight: 600;
    }
    
    /* Touch friendly Dropdown triggers */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        max-width: 280px;
        margin: 1rem auto 0 auto;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: none; /* Controlled by JS toggles on click */
    }
    
    .dropdown-trigger.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        justify-content: center;
    }
    
    /* Remove hover lines for custom cursor follower on mobile */
    .custom-cursor, .custom-cursor-follower {
        display: none;
    }
    
    /* Card layouts stack */
    .why-us-grid, .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project-img-wrapper {
        height: 280px;
    }
    
    /* Timeline adjustments */
    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-container::before, .timeline-progress-bar {
        left: 8px;
    }
    
    .timeline-dot {
        left: -33px;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .timeline-content {
        padding: 1.5rem 1.8rem;
    }
    
    /* Testimonial adjustments */
    .testimonial-card {
        padding: 3rem 1.8rem;
    }
    
    .testimonial-quote {
        font-size: 1.05rem;
    }
    
    /* CTA layout */
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Footer layout stack */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   DYNAMIC CARD GLOW HOVER SYSTEM
   ========================================================================== */
.why-card, .service-card, .testimonial-card {
    position: relative;
    overflow: hidden;
}

/* Hide legacy inline markup glow to prioritize high-fidelity JS-dynamic glow */
.why-card-glow {
    display: none;
}

.why-card::before, .service-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.why-card > *, .service-card > *, .testimonial-card > * {
    position: relative;
    z-index: 1;
}

[data-theme="light"] .why-card::before, 
[data-theme="light"] .service-card::before, 
[data-theme="light"] .testimonial-card::before {
    background: radial-gradient(400px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(218, 195, 172, 0.22), transparent 60%);
}

.why-card:hover::before, .service-card:hover::before, .testimonial-card:hover::before {
    opacity: 1;
}
