/* ===================================
   Ascentras - Apple-Style Immersive Scroll Website
   Color Palette:
   - Primary: #1A3263
   - Secondary: #547792
   - Accent: #FAB95B
   - Light: #E8E2DB
   =================================== */

:root {
    --color-primary: #1A3263;
    --color-secondary: #547792;
    --color-accent: #FAB95B;
    --color-light: #E8E2DB;
    --color-white: #FFFFFF;
    --color-dark: #0F1C32;
    --color-gray-100: #F8F9FA;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-400: #CED4DA;
    --color-gray-500: #ADB5BD;
    --color-gray-600: #6C757D;
    --color-gray-700: #495057;
    --color-gray-800: #343A40;
    --color-gray-900: #212529;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;

    --container-max: 1200px;
    --section-padding: 120px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-large { padding: 18px 36px; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* -- Section Styles -- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 50, 99, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

/* Dark navbar during hero Phases 1 & 2 */
.navbar.navbar-dark {
    background: rgba(15, 28, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.navbar.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.navbar.navbar-dark .nav-link:hover {
    color: var(--color-accent);
}
.navbar.navbar-dark .nav-toggle span {
    background: var(--color-white);
}
.navbar.navbar-dark .btn-nav {
    background: var(--color-accent);
    color: var(--color-dark) !important;
}
.navbar.navbar-dark .btn-nav:hover {
    background: var(--color-white);
    color: var(--color-primary) !important;
}
/* When scrolled AND dark, dark takes visual priority */
.navbar.scrolled.navbar-dark {
    background: rgba(15, 28, 50, 0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.navbar.scrolled.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.navbar.scrolled.navbar-dark .nav-link:hover {
    color: var(--color-accent);
}
.navbar.scrolled.navbar-dark .btn-nav {
    background: var(--color-accent);
    color: var(--color-dark) !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px;
    width: auto;
    transition: height var(--transition);
}
.navbar.scrolled .logo img {
    height: 48px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition);
}
.navbar.scrolled .nav-link { color: var(--color-gray-700); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
    border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--color-accent); }
.navbar.scrolled .nav-link:hover { color: var(--color-primary); }

.btn-nav {
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-dark) !important;
    border-radius: 100px;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-nav::after { display: none; }
.btn-nav:hover {
    background: var(--color-white);
    color: var(--color-primary) !important;
    box-shadow: 0 4px 20px rgba(250, 185, 91, 0.4);
    transform: translateY(-1px);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    border: 1px solid var(--color-gray-200);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: all .15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}
.nav-dropdown-menu a.active {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(26,50,99,.04);
}
.nav-badge { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; margin-left: 6px; vertical-align: middle; }
.nav-badge.upcoming { background: rgba(250,185,91,.15); color: #e8a83a; }

.navbar.scrolled .btn-nav {
    background: var(--color-primary);
    color: var(--color-white) !important;
}
.navbar.scrolled .btn-nav:hover { background: var(--color-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--color-primary); }

/* ===================================
   Scroll Animation System
   =================================== */
.scroll-scene {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-scene.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scene-child {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-scene.is-visible .scroll-scene-child {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.scroll-scene.is-visible .scroll-scene-child:nth-child(1) { transition-delay: 0.05s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(2) { transition-delay: 0.1s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(3) { transition-delay: 0.15s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(4) { transition-delay: 0.2s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(5) { transition-delay: 0.25s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(6) { transition-delay: 0.3s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(7) { transition-delay: 0.35s; }
.scroll-scene.is-visible .scroll-scene-child:nth-child(8) { transition-delay: 0.4s; }

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Hero
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark) url('../images/hero-2.png') no-repeat center center / cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 13, 26, 0.72) 0%, rgba(7, 13, 26, 0.48) 45%, rgba(7, 13, 26, 0.62) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform, opacity;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 13, 26, 0.78) 0%, rgba(7, 13, 26, 0.62) 35%, rgba(7, 13, 26, 0.45) 58%, rgba(7, 13, 26, 0.25) 100%);
}

/* Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    pointer-events: none;
}
.hero-orb-1 {
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    top: -15%; right: -5%;
    background: radial-gradient(circle, rgba(250, 185, 91, 0.18) 0%, rgba(250, 185, 91, 0) 70%);
    animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb-2 {
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    bottom: -20%; left: -10%;
    background: radial-gradient(circle, rgba(26, 50, 99, 0.7) 0%, rgba(84, 119, 146, 0) 70%);
    animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb-3 {
    width: min(350px, 50vw);
    height: min(350px, 50vw);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(84, 119, 146, 0.3) 0%, transparent 70%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 25px) scale(1.05); }
    66% { transform: translate(15px, -15px) scale(0.97); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -25px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.96); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.12); }
}

/* Hero layout */
.hero > .container {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 620px;
    margin-left: max(24px, calc((100% - 1200px) / 2));
    margin-right: auto;
}

/* ===================================
   Capabilities Strip
   =================================== */
.capabilities {
    padding: 64px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.cap-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--border-radius-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-item:hover {
    background: var(--color-gray-100);
    transform: translateY(-4px);
}

.cap-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(250, 185, 91, 0.15), rgba(26, 50, 99, 0.08));
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.cap-item:hover .cap-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.cap-item h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.cap-item p {
    font-size: 0.88rem;
    color: var(--color-gray-600);
    line-height: 1.65;
}

/* Hero content (intro) */
.hero-content {
    text-align: left;
    max-width: 600px;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: heroFadeIn 0.8s ease 0.2s both;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(250, 185, 91, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(250, 185, 91, 0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    margin-bottom: 0;
    color: var(--color-white);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* Progressive enhancement:
   keep content visible by default, animate only when JS is active. */
.scroll-scene {
    opacity: 1;
    transform: none;
}
.hero-line-main {
    font-size: clamp(3.2rem, 8vw, 5.5rem);
}
.hero-line-sub {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    opacity: 1;
    transform: none;
    letter-spacing: 0;
}

.hero-title .highlight {
    color: var(--color-accent);
    font-weight: 700;
}

body.js-enabled .scroll-scene {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-enabled .scroll-scene-child {
    opacity: 0;
    transform: translateY(40px);
}

body.js-enabled .scroll-scene.is-visible,
body.js-enabled .scroll-scene.is-visible .scroll-scene-child {
    opacity: 1;
    transform: translateY(0);
}
.hero-accent-dot { color: var(--color-accent); }

[data-animate="1"] { animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
[data-animate="2"] { animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
[data-animate="3"] { animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
[data-animate="4"] { animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
[data-animate="5"] { animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }

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

.hero-divider {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}
.hero-divider-line {
    display: block;
    width: 60px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 36px;
    max-width: 460px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 100px;
    box-shadow: 0 0 40px rgba(250, 185, 91, 0.25);
    transition: all var(--transition);
}
.hero .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 0 60px rgba(250, 185, 91, 0.15);
    transform: translateY(-3px) scale(1.02);
}
.hero .btn-primary svg { transition: transform var(--transition); }
.hero .btn-primary:hover svg { transform: translateX(4px); }

.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.5s;
}
.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.scroll-arrow {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(250, 185, 91, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.4); opacity: 1; }
}

/* ===================================
   Services
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--color-white);
    position: relative;
}

.service-category {
    margin-bottom: 100px;
    position: relative;
}
.service-category:last-child { margin-bottom: 0; }

.category-header {
    text-align: center;
    margin-bottom: 56px;
}
.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
}
.category-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}
.category-description {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Force an even 2x2 layout for sections with four cards */
.services-grid-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
    position: relative;
    padding: 36px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.service-card:hover {
    border-color: rgba(26, 50, 99, 0.15);
    box-shadow: 0 20px 60px -15px rgba(26, 50, 99, 0.15);
    transform: translateY(-8px);
}
.service-card.featured {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(250, 185, 91, 0.04) 100%);
}

.service-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 4px 14px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: rgba(26, 50, 99, 0.06);
    color: var(--color-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service-card > p {
    color: var(--color-gray-600);
    margin-bottom: 20px;
    font-size: 0.93rem;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-gray-700);
}
.service-features li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===================================
   About - Dark Section
   =================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(250, 185, 91, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 185, 91, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about .section-tag {
    background: rgba(250, 185, 91, 0.12);
    color: var(--color-accent);
}
.about .section-title {
    color: var(--color-white);
    margin-bottom: 24px;
}
.about-text > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition);
}
.about-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(250, 185, 91, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(250, 185, 91, 0.15), rgba(26, 50, 99, 0.4));
    color: var(--color-accent);
    border: 1px solid rgba(250, 185, 91, 0.15);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--color-white);
}
.about-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ===================================
   Why Us
   =================================== */
.why-us {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 40px 36px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.advantage-card:hover::before { transform: scaleX(1); }
.advantage-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px -15px rgba(26, 50, 99, 0.12);
    transform: translateY(-6px);
}

.advantage-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.advantage-card p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   Industries
   =================================== */
.industries {
    padding: var(--section-padding) 0;
    background: var(--color-gray-100);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    padding: 36px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.industry-card:hover {
    border-color: rgba(26, 50, 99, 0.15);
    box-shadow: 0 20px 60px -15px rgba(26, 50, 99, 0.12);
    transform: translateY(-6px);
}

.industry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(250, 185, 91, 0.12), rgba(26, 50, 99, 0.08));
    color: var(--color-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    transition: all var(--transition);
}
.industry-card:hover .industry-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.industry-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.industry-card p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===================================
   Technologies
   =================================== */
.technologies {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tech-category-card {
    padding: 36px 32px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
}
.tech-category-card:hover {
    border-color: rgba(26, 50, 99, 0.15);
    box-shadow: 0 20px 60px -15px rgba(26, 50, 99, 0.12);
    transform: translateY(-6px);
}

.tech-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(250, 185, 91, 0.15), rgba(26, 50, 99, 0.10));
    color: var(--color-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    transition: all var(--transition);
}
.tech-category-card:hover .tech-category-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.tech-category-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--color-gray-900);
}
.tech-category-card p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tech-logos-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-200);
}
.tech-logos-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.tech-logos-row img:hover {
    transform: scale(1.2);
}

/* ===================================
   CTA
   =================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(250, 185, 91, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(84, 119, 146, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 2.75rem);
}
.cta-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}
.cta .btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
    border-radius: 100px;
    padding: 18px 40px;
    font-weight: 700;
    box-shadow: 0 8px 40px rgba(250, 185, 91, 0.3);
}
.cta .btn-primary:hover {
    background: var(--color-white);
    box-shadow: 0 12px 50px rgba(250, 185, 91, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* ===================================
   Contact
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--color-gray-100);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p {
    color: var(--color-gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p,
.contact-item a { font-size: 0.95rem; color: var(--color-gray-600); }
.contact-item a:hover { color: var(--color-primary); }

.social-links { display: flex; gap: 12px; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 44px;
    border-radius: var(--border-radius-2xl);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 50, 99, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-gray-500); }
.form-group textarea { resize: vertical; min-height: 120px; }

.select-wrapper { position: relative; width: 100%; }
.select-wrapper select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-gray-700);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.select-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 50, 99, 0.08);
}
.select-arrow {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
    pointer-events: none;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-gray-400);
    padding: 60px 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-column h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-column a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}
.footer-column a:hover { color: var(--color-accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}
.footer-legal a:hover { color: var(--color-accent); }

/* ===================================
   Keyframes
   =================================== */
@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.6s ease forwards; }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    :root { --section-padding: 100px; }
    .contact-wrapper { gap: 60px; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: transparent;
    }
    .nav-dropdown-menu a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-gray-200);
    }
    .nav-link {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--color-gray-200);
        color: var(--color-gray-700);
    }
    .btn-nav { margin-top: 16px; width: 100%; text-align: center; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { background-size: cover; background-position: center center; }
    .hero > .container { max-width: 100%; margin-left: auto; padding: 120px 24px 60px; text-align: center; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-line-main { font-size: clamp(2.5rem, 9vw, 3.5rem); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }

    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }
    .tech-categories { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }

    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    :root { --section-padding: 60px; }
    .container { padding: 0 16px; }
    .hero-line-main { font-size: clamp(2rem, 10vw, 2.8rem); }
    .hero-badge { font-size: 0.7rem; padding: 6px 14px; }

    .hero { background-size: cover; background-position: center center; }
    .hero > .container { padding: 100px 16px 40px; }
    .cap-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .service-card { padding: 24px; }
    .contact-form-wrapper { padding: 24px; }
    .footer-links { grid-template-columns: 1fr; gap: 32px; }
}

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.bg-light { background: var(--color-gray-100); }

.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}
.nav-overlay.active { opacity: 1; visibility: visible; }
