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

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Dark Premium
   ═══════════════════════════════════════════════ */
:root {
    --bg: #050505;
    --bg-card: #0e0e0e;
    --bg-card-2: #141414;
    --bg-elevated: #1a1a1a;
    --accent: #0066FF;
    --accent-glow: rgba(0, 102, 255, 0.5);
    --accent-dim: rgba(0, 102, 255, 0.15);
    --white: #ffffff;
    --gray-100: #f0f0f0;
    --gray-300: #a0a0a0;
    --gray-500: #666666;
    --gray-700: #333333;
    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

.brand span { color: var(--accent); }

.nav__links {
    display: flex;
    gap: 36px;
}

.nav__links a {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav__links a:hover { color: var(--white); }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease);
}

.nav__cta:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 30px var(--accent-glow);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ═══════════════════════════════════════════════
   HERO — Full Dark Dramatic
   ═══════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
}

/* Subtle gradient ambient light */
.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero__tag::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero__title {
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.hero__title em {
    font-style: italic;
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--gray-300);
    max-width: 460px;
    margin-bottom: 40px;
    line-height: 1.75;
    font-weight: 300;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: 1px solid var(--white);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.hero__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.hero__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.hero__btn:hover svg { transform: translateX(4px); }

/* Hero visual */
.hero__visual {
    position: relative;
}

.hero__image {
    border-radius: var(--radius-lg);
    width: 100%;
    filter: brightness(0.9);
    transition: filter 0.4s;
}

.hero__image:hover { filter: brightness(1); }

/* Hero image — clean, no accent corners */

/* ═══════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════ */
.section {
    padding: 120px 0;
}

.section--border-top {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   SERVICES — Dark Cards with Images
   ═══════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-dim);
}

/* Accent corners like in reference */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 0 var(--radius-lg) 0 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

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

.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 0 0 0 var(--radius-lg);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.service-card:hover::after { opacity: 0.8; }

.service-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-card__image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: auto;
}

.service-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s;
}

.service-card__link:hover { gap: 12px; }

/* ═══════════════════════════════════════════════
   SKILLS / STATS — Circular Indicators
   ═══════════════════════════════════════════════ */
.stats {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.stat-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.stat-ring svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.stat-ring__bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 6;
}

.stat-ring__fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 2s var(--ease);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.stat-ring.visible .stat-ring__fill {
    /* JS sets the correct dashoffset */
}

.stat-ring__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-item__label {
    font-size: 0.9rem;
    color: var(--gray-300);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   APPROACH — Feature Cards
   ═══════════════════════════════════════════════ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.approach-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s var(--ease);
    border: 1px solid rgba(255,255,255,0.04);
}

.approach-card:hover {
    border-color: rgba(0, 102, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.approach-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.approach-card__icon svg {
    width: 22px;
    height: 22px;
}

.approach-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.approach-card__desc {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.65;
}

/* Feature highlight card */
.approach-card--feature {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
    border: 1px solid rgba(0, 102, 255, 0.1);
    padding: 48px;
}

.approach-card--feature .approach-card__icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--white);
}

/* ═══════════════════════════════════════════════
   CTA — Dark with Glow
   ═══════════════════════════════════════════════ */
.cta {
    text-align: center;
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta::after {
    content: "";
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 50%);
    pointer-events: none;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta__desc {
    font-size: 1rem;
    color: var(--gray-300);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta .hero__btn {
    position: relative;
    z-index: 1;
    background: var(--accent);
    border-color: var(--accent);
}

.cta .hero__btn:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--gray-500);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal-children > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.18s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.38s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__title { font-size: 3.5rem; }

    .hero__visual { margin-top: 48px; }
    .hero__visual::before, .hero__visual::after { display: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .approach-card--feature { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .burger { display: flex; }

    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 16px);
        left: 24px;
        right: 24px;
        background: var(--bg-card);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: var(--radius);
        padding: 24px;
        gap: 16px;
        backdrop-filter: blur(20px);
    }

    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero__title { font-size: 2.5rem; }

    .services-grid,
    .approach-grid { grid-template-columns: 1fr; }

    .approach-card--feature { grid-column: span 1; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    .section { padding: 80px 0; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-ring { width: 100px; height: 100px; }
    .stat-ring svg { width: 100px; height: 100px; }
    .stat-ring__value { font-size: 1.2rem; }
}
