/* ============================================
   AlyamanGrid Solutions Corporate Website - Nexus Core CSS
   3D, Animation, Glassmorphism - NO REDUCED MOTION
   ============================================ */

/* Force all animations regardless of preference */
/*@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: inherit !important;
    animation-iteration-count: inherit !important;
    transition-duration: inherit !important;
    scroll-behavior: auto !important;
  }
}*/

:root {
    --primary: #091426;
    --primary-container: #1e293b;
    --secondary: #0058be;
    --secondary-container: #2170e4;
    --tertiary: #00171c;
    --tertiary-container: #002d36;
    --surface: #f7f9fb;
    --surface-dim: #d8dadc;
    --surface-bright: #f7f9fb;
    --surface-container: #eceef0;
    --surface-container-low: #f2f4f6;
    --surface-container-high: #e6e8ea;
    --surface-container-highest: #e0e3e5;
    --background: #f7f9fb;
    --on-surface: #191c1e;
    --on-surface-variant: #45474c;
    --on-primary: #ffffff;
    --on-secondary: #ffffff;
    --outline: #75777d;
    --outline-variant: #c5c6cd;
    --cyan: #06b6d4;
    --electric-blue: #3b82f6;

    --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
    --perspective: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--background);
    color: var(--on-surface);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}
h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
}

.label-caps {
    font-family: "Space Grotesk", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   3D SYSTEM
   ============================================ */

.perspective-container {
    perspective: var(--perspective);
    transform-style: preserve-3d;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-hover);
}

.card-3d:hover {
    transform: translateZ(20px);
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease-hover);
}

.float-plane {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(2px);
    transform-style: preserve-3d;
    animation: floatPlane 8s ease-in-out infinite;
}

@keyframes floatPlane {
    0%,
    100% {
        transform: translateY(0) rotateX(5deg) rotateY(5deg) translateZ(-100px);
    }
    50% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(-5deg)
            translateZ(-80px);
    }
}

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.glass-dark {
    background: rgba(9, 20, 38, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    transition: all 0.3s var(--ease-hover);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
    transform: translateY(-4px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 249, 251, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    animation: slideDown 0.8s var(--ease-expo-out) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-logo {
    justify-self: start;
}

.nav-links {
    justify-self: center;
}

.mobile-menu-btn {
    justify-self: end;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-hover);
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    background: var(--secondary-container);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-hover);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--secondary),
        var(--secondary-container)
    );
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.05);
}

.hero .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-secondary:hover {
    color: white;
    border-color: var(--secondary);
    background: rgba(59, 130, 246, 0.2);
}

.magnetic-btn {
    transition: transform 0.2s var(--ease-hover);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}

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

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(9, 20, 38, 0.88) 0%,
        rgba(9, 20, 38, 0.72) 50%,
        rgba(9, 20, 38, 0.85) 100%
    );
    z-index: 1;
}

.hero-3d-scene {
    position: absolute;
    inset: 0;
    perspective: var(--perspective);
    transform-style: preserve-3d;
    z-index: 2;
    pointer-events: none;
}

.hero-plane {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.05),
        rgba(6, 182, 212, 0.05)
    );
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    transform-style: preserve-3d;
}

.hero-plane:nth-child(1) {
    top: 10%;
    right: 15%;
    animation: heroPlane1 10s ease-in-out infinite;
}

.hero-plane:nth-child(2) {
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation: heroPlane2 12s ease-in-out infinite;
}

.hero-plane:nth-child(3) {
    top: 50%;
    right: 25%;
    width: 150px;
    height: 150px;
    animation: heroPlane3 8s ease-in-out infinite;
}

@keyframes heroPlane1 {
    0%,
    100% {
        transform: translateZ(-200px) rotateX(10deg) rotateY(15deg)
            translateY(0);
    }
    50% {
        transform: translateZ(-150px) rotateX(-5deg) rotateY(-10deg)
            translateY(-30px);
    }
}

@keyframes heroPlane2 {
    0%,
    100% {
        transform: translateZ(-300px) rotateX(-10deg) rotateY(-10deg)
            translateY(0);
    }
    50% {
        transform: translateZ(-250px) rotateX(5deg) rotateY(5deg)
            translateY(20px);
    }
}

@keyframes heroPlane3 {
    0%,
    100% {
        transform: translateZ(-100px) rotateX(5deg) rotateY(-5deg) translateY(0);
    }
    50% {
        transform: translateZ(-50px) rotateX(-10deg) rotateY(10deg)
            translateY(-15px);
    }
}

#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    width: 100%;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--secondary-fixed-dim);
    border-radius: 4px;
    font-family: "Space Grotesk", monospace;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.2s both;
    backdrop-filter: blur(4px);
}

.hero-title {
    max-width: 800px;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.4s both;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    max-width: 600px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.8s both;
}

/* ============================================
   STITCH HERO V2
   ============================================ */

.hero-v2 {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    background: var(--surface);
}

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

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

.hero-v2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--surface) 0%,
        rgba(247, 249, 251, 0.92) 45%,
        rgba(247, 249, 251, 0.5) 100%
    );
}

.hero-v2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-v2-glow.glow-1 {
    width: 280px;
    height: 280px;
    background: rgba(59, 130, 246, 0.12);
    top: 15%;
    right: 12%;
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-v2-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: 8%;
    right: 18%;
    animation: pulseGlow 4s ease-in-out infinite 1s;
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hero-v2-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-v2-left {
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.2s both;
}

.hero-v2-left h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-v2-left h1 span {
    color: var(--secondary);
}

.hero-v2-left p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-v2-right {
    position: relative;
    animation: fadeInUp 0.8s var(--ease-expo-out) 0.4s both;
}

.hero-v2-right img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-v2-float-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    width: 240px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-v2-float-card .float-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--secondary),
        var(--secondary-container)
    );
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.75rem;
}

.hero-v2-float-card h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-v2-float-card p {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    margin: 0;
}

.btn-animated-border {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--secondary),
        var(--secondary-container)
    );
    color: white;
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: "Space Grotesk", monospace;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    transition: all 0.3s var(--ease-hover);
    overflow: hidden;
}

.btn-animated-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        90deg,
        var(--secondary),
        var(--cyan),
        var(--secondary)
    );
    background-size: 200% 100%;
    border-radius: 8px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

.btn-animated-border:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@media (max-width: 1024px) {
    .hero-v2-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-v2-right {
        display: none;
    }

    .hero-v2-glow {
        opacity: 0.5;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s var(--ease-expo-out),
        transform 0.6s var(--ease-expo-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}
.reveal-delay-4 {
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
    padding: 5rem 2rem;
    background: var(--surface-container-low);
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    transition: all 0.4s var(--ease-hover);
    transform-style: preserve-3d;
}

.stat-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: "Space Grotesk", monospace;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.section {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-header p {
    color: var(--on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    text-align: center;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.4s var(--ease-hover);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-expo-out);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        rgba(6, 182, 212, 0.1)
    );
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--on-surface-variant);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s var(--ease-hover);
}

.service-card:hover .service-img {
    transform: scale(1.03);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

.why-section {
    padding: 6rem 2rem;
    background: linear-gradient(
        135deg,
        var(--surface) 0%,
        var(--surface-container) 100%
    );
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/images/3d-abstract-1.jpg") center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.why-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.why-card {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    transition: all 0.4s var(--ease-hover);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.08);
}

.why-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.why-card p {
    color: var(--on-surface-variant);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   WHY CHOOSE US V2 (Stitch Style)
   ============================================ */

.why-section-v2 {
    padding: 6rem 2rem;
    background: var(--surface-container-low);
    position: relative;
}

.advantage-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.advantage-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--ease-hover);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        rgba(6, 182, 212, 0.1)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.advantage-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.advantage-content p {
    color: var(--on-surface-variant);
    font-size: 0.9375rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
    padding: 6rem 2rem;
    background: var(--surface-container-low);
}

.testimonials-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    position: relative;
    transition: all 0.4s var(--ease-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.06);
}

.testimonial-text {
    font-size: 1.0625rem;
    color: var(--on-surface);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-container) 100%
    );
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/images/3d-abstract-2.jpg") center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.cta-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--surface-container);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 36px;
    width: auto;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: "Space Grotesk", monospace;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-contact p {
    direction: ltr;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SERVICES PAGE - DETAIL SECTIONS
   ============================================ */

.service-detail {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.service-detail:nth-child(even) {
    background: var(--surface-container-low);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s var(--ease-hover);
}

.service-detail-img:hover {
    transform: perspective(var(--perspective)) rotateY(-3deg) rotateX(2deg);
}

.service-detail-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.service-detail-content > p {
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-container-high);
    color: var(--on-surface);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li::before {
    content: "→";
    color: var(--secondary);
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: "Space Grotesk", monospace;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.mission-section {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.values-section {
    padding: 5rem 2rem;
    background: var(--surface-container-low);
}

.values-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s var(--ease-hover);
}

.value-card:hover {
    transform: translateY(-6px) translateZ(15px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.08);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        rgba(6, 182, 212, 0.1)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--secondary);
}

.value-card p {
    text-align: justify;
}

.team-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

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

.team-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s var(--ease-hover);
    transform-style: preserve-3d;
}

.team-card:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1);
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s var(--ease-hover);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: "Space Grotesk", monospace;
}

.partners-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.faq-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s var(--ease-hover);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08);
}

.faq-item h3 {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--on-surface-variant);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    transition: all 0.4s var(--ease-hover);
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s var(--ease-hover);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.team-info p {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-family: "Space Grotesk", monospace;
}

.contact-item p {
    color: var(--on-surface);
    line-height: 1.6;
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-visual {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    height: 280px;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.form-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-hover);
}

.form-card:hover {
    transform: translateZ(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--outline-variant);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9375rem;
    background: white;
    color: var(--on-surface);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.map-section {
    padding: 0 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(30%) contrast(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid,
    .why-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-detail-grid,
    .mission-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }
}

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

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

    .stats-grid,
    .why-grid,
    .values-grid,
    .team-grid,
    .testimonials-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-grid {
        gap: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */

.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 249, 251, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    animation: slideDown 0.4s var(--ease-expo-out);
}

.nav-links.mobile-open a {
    font-size: 1.125rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    padding: 10rem 2rem 5rem;
    background: var(--primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

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

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(9, 20, 38, 0.88) 0%,
        rgba(9, 20, 38, 0.75) 50%,
        rgba(9, 20, 38, 0.85) 100%
    );
    z-index: 1;
}

.page-header-3d {
    position: absolute;
    inset: 0;
    perspective: var(--perspective);
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 2;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
