@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================
   SPRING EASING VARIABLES
   cubic-bezier(0.34, 1.56, 0.64, 1) = spring overshoot (like Framer)
   cubic-bezier(0.22, 1, 0.36, 1) = smooth ease-out
   cubic-bezier(0.4, 0, 0.2, 1) = material standard
=========================== */
:root {
    --primary: #F5B700;
    --primary-dark: #c4930a;
    --primary-glow: rgba(245, 183, 0, 0.35);
    --primary-glow-strong: rgba(245, 183, 0, 0.60);
    --text-color: #111111;
    --text-muted: rgba(17, 17, 17, 0.55);
    --bg-color: #fafafa;
    --bg-secondary: #f4f4f4;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.05);
    --border-color: rgba(0,0,0,0.07);
    --footer-bg: #0a0a0a;
    --footer-text: rgba(255,255,255,0.8);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --header-glass: rgba(250,250,250,0.82);
    --pill-bg: rgba(255,255,255,0.55);
    --nav-text: #555555;

    /* Spring physics easing */
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text-color: #f0f0f0;
    --text-muted: rgba(240,240,240,0.50);
    --bg-color: #0c0c0c;
    --bg-secondary: #141414;
    --card-bg: #181818;
    --card-shadow: rgba(0,0,0,0.45);
    --border-color: rgba(255,255,255,0.07);
    --footer-bg: #060606;
    --footer-text: rgba(255,255,255,0.70);
    --header-glass: rgba(12,12,12,0.85);
    --pill-bg: rgba(30,30,30,0.65);
    --nav-text: rgba(255,255,255,0.60);
    --primary-glow: rgba(245,183,0,0.22);
    --primary-glow-strong: rgba(245,183,0,0.45);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

/* ===========================
   CUSTOM CURSOR
=========================== */

/* Hide default cursor site-wide on non-touch devices */
@media (pointer: fine) {
    html, body, a, button, input, textarea, [role="button"] {
        cursor: none !important;
    }
}

/* Outer lagging ring */
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition:
        width 0.55s var(--spring),
        height 0.55s var(--spring),
        border-color 0.4s ease,
        opacity 0.4s ease,
        background-color 0.4s ease;
    will-change: transform;
    opacity: 0.75;
    mix-blend-mode: normal;
}

/* Inner sharp dot */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s var(--spring),
        height 0.3s var(--spring),
        background 0.3s ease,
        opacity 0.3s ease;
    will-change: transform;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Hover state — ring expands, dot shrinks */
body.cursor-hover .cursor-ring {
    width: 58px; height: 58px;
    border-color: var(--primary);
    opacity: 0.55;
    background-color: rgba(245,183,0,0.06);
}
body.cursor-hover .cursor-dot {
    width: 5px; height: 5px;
    opacity: 0.85;
}

/* Click state — ring squishes */
body.cursor-click .cursor-ring {
    width: 28px; height: 28px;
    opacity: 1;
    background-color: rgba(245,183,0,0.15);
}
body.cursor-click .cursor-dot {
    width: 9px; height: 9px;
    background: #ffffff;
}


/* Hide on mobile / touch devices */
@media (pointer: coarse) {
    .cursor-ring, .cursor-dot { display: none; }
}

/* Custom gold scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), rgba(245,183,0,0.25));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(245,183,0,0.22); }

body {
    font-family: var(--font);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* Smooth dark/light mode transition */
    transition: background-color 0.8s var(--ease-in-out),
                color 0.8s var(--ease-in-out);
}

/* ===========================
   SCROLL PROGRESS BAR
=========================== */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ffd700, var(--primary));
    background-size: 200% 100%;
    animation: progressShimmer 4s linear infinite;
    z-index: 9999;
    pointer-events: none;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

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

/* ===========================
   HEADER — Liquid Glass Navbar
=========================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 5%;
    transition: padding 0.8s var(--ease-out);
    will-change: padding;
}

header.scrolled {
    padding: 10px 5%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid transparent;
    /* Spring transition for glass effect */
    transition:
        background 1s var(--ease-out),
        border-color 1s var(--ease-out),
        box-shadow 1s var(--ease-out),
        padding 0.9s var(--ease-out);
    will-change: background, box-shadow;
}

header.scrolled .header-inner {
    background: var(--header-glass);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-color: rgba(245,183,0,0.15);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.07),
        0 0 0 1px rgba(255,255,255,0.25) inset,
        0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="dark"] header.scrolled .header-inner {
    box-shadow:
        0 4px 32px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 11px;
    flex-shrink: 0;
    transition: transform 0.8s var(--spring);
    will-change: transform;
}
.logo-container:hover { transform: scale(1.025) translateZ(0); }

.logo-img-wrap {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(245,183,0,0.35);
    background: white;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.75s var(--spring);
    will-change: transform, box-shadow;
}
header.scrolled .logo-img-wrap { width: 34px; height: 34px; }
.logo-container:hover .logo-img-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,183,0,0.15), 0 0 20px var(--primary-glow);
}

.logo-img-wrap img {
    width: 30px; height: 30px;
    object-fit: contain;
    transition: width 0.75s var(--ease-out), height 0.75s var(--ease-out);
}
header.scrolled .logo-img-wrap img { width: 22px; height: 22px; }

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-color);
    line-height: 1.2;
    transition: font-size 0.75s var(--ease-out), color 0.7s ease;
}
header.scrolled .logo-text { font-size: 0.9rem; }
.logo-text span { color: var(--primary); }

/* NAV PILL CONTAINER */
nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pill-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 5px 6px;
    position: relative;
    transition:
        background 0.9s var(--ease-out),
        border-color 0.9s var(--ease-out),
        padding 0.9s var(--ease-out);
}

header.scrolled nav {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    padding: 0 2px;
}

/* NAV LINKS (text sits above the pill via z-index) */
nav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.87rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--nav-text);
    /* Spring color transition */
    transition:
        color 0.55s var(--ease-out),
        transform 0.65s var(--spring);
    white-space: nowrap;
    user-select: none;
    will-change: transform;
}

nav a:hover { color: #111; transform: translateZ(0); }
[data-theme="dark"] nav a:hover { color: #fff; }

nav a.active {
    color: #111 !important;
    font-weight: 700;
}
[data-theme="dark"] nav a.active { color: #111 !important; }

/* The magic sliding pill (injected by JS) */
.nav-pill-indicator {
    will-change: left, width, top, height;
    transform: translateZ(0);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#theme-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pill-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    /* Spring rotation on hover */
    transition:
        transform 0.75s var(--spring),
        background 0.55s ease,
        border-color 0.55s ease,
        box-shadow 0.6s ease;
    will-change: transform;
    color: var(--text-color);
}
#theme-toggle svg {
    width: 17px; height: 17px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.55s ease;
    pointer-events: none;
}
#theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(245,183,0,0.15);
}
#theme-toggle:hover svg { stroke: #111; }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    background: var(--pill-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.55s ease, box-shadow 0.55s ease;
}
.hamburger:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}
.hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.65s var(--spring),
        opacity 0.4s ease,
        background 0.45s ease;
}
.hamburger:hover span { background: #111; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   MOBILE MENU
   Uses visibility+opacity+transform for smooth animation
   (display:none can't be transitioned!)
=========================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 5% 40px;

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    transform: scale(0.96) translateY(-12px);
    pointer-events: none;
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.75s var(--spring),
        visibility 0.65s;
}

.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.mobile-menu a {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 16px 28px;
    border-radius: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    /* Spring entrance for each link */
    transform: translateY(20px);
    opacity: 0;
    transition:
        background 0.55s var(--ease-out),
        color 0.5s ease,
        border-color 0.55s ease,
        box-shadow 0.6s var(--ease-out),
        transform 0.7s var(--spring),
        opacity 0.65s ease;
}

.mobile-menu.open a {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered entrance delays */
.mobile-menu.open a:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 170ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 260ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 350ms; }

.mobile-menu a:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    box-shadow: 0 4px 24px var(--primary-glow), 0 0 50px rgba(245,183,0,0.12);
    transform: scale(1.02) translateY(-2px);
}

.mobile-menu a.active {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ===========================
   MAIN / PAGE LAYOUT
=========================== */
main {
    flex-grow: 1;
    padding: 7rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Animated radial glow blob in background */
.glow-bg {
    position: absolute;
    top: 60px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(245,183,0,0.08) 0%,
        rgba(245,183,0,0.03) 40%,
        transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: glowFloat 12s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes glowFloat {
    0%   { opacity: 0.5; transform: translateX(-50%) translateY(0px) scale(1); }
    33%  { opacity: 0.8; transform: translateX(-50%) translateY(-15px) scale(1.05); }
    66%  { opacity: 0.65; transform: translateX(-50%) translateY(-8px) scale(1.03); }
    100% { opacity: 1;   transform: translateX(-50%) translateY(-28px) scale(1.1); }
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-color);
}

h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }

h2.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--spring);
}
h2.section-title.is-visible::after,
.reveal-on-scroll.is-visible h2.section-title::after,
section.is-visible h2.section-title::after {
    transform: scaleX(1);
}

section { margin-bottom: 5rem; }

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
    transition: color 0.7s ease;
}

/* ===========================
   HERO SECTION
=========================== */
.hero { padding: 2rem 0 3rem; }
.hero h2 {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}
.hero p { max-width: 680px; font-size: clamp(1rem, 2vw, 1.15rem); }

/* Gold shimmer on primary word */
.shimmer {
    background: linear-gradient(90deg, var(--primary) 25%, #fff 50%, var(--primary) 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

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

/* ===========================
   ENTRANCE ANIMATIONS
=========================== */
@keyframes fadeUpBlur {
    from {
        opacity: 0;
        transform: translateY(28px) translateZ(0);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
        filter: blur(0px);
    }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92) translateZ(0); }
    to   { opacity: 1; transform: scale(1) translateZ(0); }
}

.animate-entrance {
    opacity: 0;
    animation: fadeUpBlur 1.4s var(--ease-out) forwards;
    will-change: transform, opacity, filter;
}
.delay-1 { animation-delay: 200ms; }
.delay-2 { animation-delay: 420ms; }
.delay-3 { animation-delay: 640ms; }
.delay-4 { animation-delay: 860ms; }

/* ===========================
   SCROLL REVEAL (spring physics)
=========================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(36px) translateZ(0);
    transition:
        opacity 1.1s var(--ease-out),
        transform 1.1s var(--spring);
    will-change: transform, opacity;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 210ms; }
.stagger-3 { transition-delay: 320ms; }
.stagger-4 { transition-delay: 430ms; }
.stagger-5 { transition-delay: 540ms; }
.stagger-6 { transition-delay: 650ms; }

/* ===========================
   BUTTONS (spring bounce + ripple)
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F5B700 0%, #ffd83d 50%, #e0a700 100%);
    color: #111;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Spring scale on hover */
    transition:
        transform 0.7s var(--spring),
        box-shadow 0.65s var(--ease-out),
        background 0.55s ease;
    box-shadow:
        0 4px 20px var(--primary-glow),
        0 0 40px rgba(245,183,0,0.10);
    will-change: transform, box-shadow;
    letter-spacing: -0.01em;
    transform: translateZ(0);
}

/* Sheen sweep */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    transform: translateX(-110%) skewX(-20deg);
    transition: transform 0.9s var(--ease-out);
    pointer-events: none;
    border-radius: inherit;
}
.btn:hover::before { transform: translateX(160%) skewX(-20deg); }

/* Glow ring pulse on hover */
.btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    border: 2px solid rgba(245,183,0,0.6);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}
.btn:hover::after { animation: ringPulse 1.1s var(--ease-out) forwards; }

@keyframes ringPulse {
    to { opacity: 0; transform: scale(1.18); border-width: 1px; }
}

.btn:hover {
    transform: translateY(-3px) scale(1.04) translateZ(0);
    box-shadow:
        0 8px 32px var(--primary-glow-strong),
        0 0 60px rgba(245,183,0,0.15);
}
.btn:active { transform: scale(0.96) translateZ(0); }

/* Outline variant */
.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: none;
}
.btn-outline::before {
    background: rgba(245,183,0,0.1);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 24px var(--primary-glow);
}

/* ===========================
   SERVICES GRID
=========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: default;
    /* Spring lift on hover */
    transition:
        transform 0.8s var(--spring),
        box-shadow 0.8s var(--ease-out),
        border-color 0.65s ease;
    box-shadow: 0 2px 14px var(--card-shadow);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes geminiSpin {
  to { --angle: 360deg; }
}

/* Gemini animated gradient border */
.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px; /* Border thickness */
    background: conic-gradient(from var(--angle), #4285f4, #9b72cb, #d96570, #fbbc05, #34a853, #4285f4);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: geminiSpin 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Mouse-follow inner glow */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(245,183,0,0.07) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    border-radius: inherit;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.015) translateZ(0);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.10);
    border-color: transparent; /* Hide default border so animated border shows clean */
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}
.service-card p {
    font-size: 0.93rem;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.service-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(245,183,0,0.08);
    border: 1px solid rgba(245,183,0,0.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
    z-index: 1;
    position: relative;
    transition: transform 0.75s var(--spring), background 0.55s ease;
    will-change: transform;
}
.service-card:hover .service-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(-8deg) scale(1.12) translateZ(0);
}

/* ===========================
   INFO CARDS
=========================== */
.info-card {
    background: var(--card-bg);
    padding: 2rem 2rem 2rem 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 20px var(--card-shadow);
    transition:
        transform 0.8s var(--spring),
        box-shadow 0.8s var(--ease-out);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}
.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 50%, rgba(245,183,0,0.04), transparent 55%);
    pointer-events: none;
}
.info-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow:
        0 10px 32px rgba(0,0,0,0.09),
        0 0 0 1px rgba(245,183,0,0.12);
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(245,183,0,0.06) 0%, rgba(245,183,0,0.01) 100%);
    border: 1px solid rgba(245,183,0,0.14);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(245,183,0,0.08), transparent 70%);
    pointer-events: none;
    animation: glowFloat 6s ease-in-out infinite alternate;
}
.cta-section:hover {
    box-shadow: 0 0 0 1px rgba(245,183,0,0.2), 0 8px 40px rgba(245,183,0,0.06);
}

/* ===========================
   FORMS
=========================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form label {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
    display: block;
    margin-bottom: 6px;
}
.form-group { display: flex; flex-direction: column; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.93rem;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.35s var(--ease-out),
        transform 0.3s var(--spring);
    will-change: transform;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(245,183,0,0.12),
        0 4px 16px rgba(245,183,0,0.08);
    transform: translateY(-2px) translateZ(0);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 5% 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(245,183,0,0.5) 50%, transparent 95%);
}
/* Subtle footer glow */
footer::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse at center bottom,
        rgba(245,183,0,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}
.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
}
.footer-section p {
    font-size: 0.88rem;
    line-height: 2;
    color: var(--footer-text);
    opacity: 0.8;
    margin-bottom: 0.3rem;
}
.footer-section ul { list-style: none; }
.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.88rem;
    opacity: 0.7;
    transition:
        color 0.65s ease,
        opacity 0.65s ease,
        transform 0.75s var(--spring);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    line-height: 2.2;
    will-change: transform;
    transform: translateZ(0);
}
.footer-section a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(7px) translateZ(0);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
    opacity: 0.45;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    nav { display: none !important; }
    .hamburger { display: flex; }

    header { padding: 12px 5%; }
    header.scrolled { padding: 8px 5%; }
    .header-inner { padding: 8px 14px; }

    main { padding: 5rem 5% 3rem; }
}

@media (max-width: 600px) {
    .logo-text { font-size: 0.82rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .logo-img-wrap { width: 36px !important; height: 36px !important; }
    .logo-img-wrap img { width: 24px !important; height: 24px !important; }
    .hero h2 { font-size: 1.9rem; }
    .services-grid { grid-template-columns: 1fr; }
    .info-card { padding: 1.5rem 1.5rem 1.5rem 1.8rem; }
    .cta-section { padding: 2rem 1.2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .glow-bg { width: 100%; height: 300px; }
    .btn { padding: 13px 22px; font-size: 0.9rem; }

    section { flex-direction: column !important; }
}

@media (max-width: 380px) {
    .logo-text { display: none; }
}

/* ===========================
   DARK MODE ADJUSTMENTS
=========================== */
[data-theme="dark"] .service-card {
    box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
[data-theme="dark"] .service-card:hover {
    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 0 1px rgba(245,183,0,0.22);
}
[data-theme="dark"] .btn {
    box-shadow: 0 4px 20px rgba(245,183,0,0.25), 0 0 40px rgba(245,183,0,0.06);
}

/* ===========================
   ACCESSIBILITY — Reduced Motion
=========================== */
/* Temporarily disabled to diagnose instant animations
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
    .animate-entrance { animation: none; opacity: 1; filter: none; }
    .glow-bg, #scroll-progress { animation: none; }
    .shimmer { animation: none; -webkit-text-fill-color: var(--primary); background: none; }
}
*/

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