/* =========================================
   VARIABLES
========================================= */
:root {
    --bg-dark: #080810;
    --bg-dark-90: rgba(8, 8, 16, 0.92);
    --accent-gold: #FFD166;
    --accent-gold-glow: rgba(255, 209, 102, 0.3);
    --text-main: #F0F4FF;
    --text-muted: #A0A4B8;
    --glow-blue: rgba(108, 99, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   CUSTOM CURSOR
========================================= */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}

#cursor.hovered {
    width: 52px;
    height: 52px;
    background-color: var(--accent-gold);
    opacity: 0.45;
    border: none;
}

@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none;
    }

    *,
    *::before,
    *::after {
        cursor: auto;
    }
}

/* =========================================
   PARTICLES
========================================= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   UTILITIES
========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
}

.text-gold {
    color: var(--accent-gold);
}

.text-muted {
    color: var(--text-muted);
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 100px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 24px var(--accent-gold-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--accent-gold-glow);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-ghost:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =========================================
   LANGUAGE SWITCHER
========================================= */
.lang-switcher {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.lang-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* =========================================
   HEADER
========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.4rem 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-dark-90), transparent);
    backdrop-filter: blur(8px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-gold);
}

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

/* =========================================
   HERO
========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 950px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(35px);
    animation: heroReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    line-height: 1.5;
}

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

.hero-actions {
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    color: var(--text-muted);
    animation: fadeIn 1s ease 2s forwards, bounce 2s infinite 3s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(10px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Glow Orb */
.glow-orb {
    position: absolute;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.35;
    }

    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.65;
    }
}

/* =========================================
   SERVICES — HORIZONTAL SCROLL
========================================= */
.services-outer {
    height: 500vh;
    /* tall enough for scroll */
    position: relative;
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.services-header {
    padding: 4rem 0 2rem;
    text-align: center;
    flex-shrink: 0;
    z-index: 10;
}

.services-track-container {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    padding: 0 10vw;
    will-change: transform;
}

.service-card {
    min-width: 360px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
    backdrop-filter: blur(12px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 209, 102, 0.4);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.service-card img.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   PORTFOLIO SECTION
========================================= */
.portfolio {
    padding: 10rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 209, 102, 0.35);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
}

.portfolio-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-out-expo);
}

.portfolio-card:hover img {
    transform: scale(1.04);
}

.portfolio-card-body {
    padding: 1.5rem;
}

.portfolio-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.portfolio-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portfolio-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--bg-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s, transform 0.3s;
}

.portfolio-card:hover .portfolio-link {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   WHY ME
========================================= */
.why-me {
    padding: 10rem 0;
}

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

.why-left h2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--accent-gold);
    line-height: 1;
}

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

.stat-item h4 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

/* =========================================
   HOW IT WORKS
========================================= */
.how-it-works {
    padding: 10rem 0;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step-line {
    position: absolute;
    left: 29px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--glass-border);
}

.step-line-progress {
    position: absolute;
    left: 29px;
    top: 40px;
    width: 2px;
    height: 0%;
    background: var(--accent-gold);
    transition: height 0.4s linear;
}

.step-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
    opacity: 0.2;
    transition: opacity 0.5s;
}

.step-item.active {
    opacity: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1.5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.9rem;
    margin-bottom: 0.8rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================
   TESTIMONIALS / SOCIAL PROOF
========================================= */
.testimonials {
    padding: 10rem 0;
}

/* =========================================
   CTA
========================================= */
.cta-section {
    padding: 10rem 0;
    background: linear-gradient(to top, var(--bg-dark), rgba(108, 99, 255, 0.06));
    text-align: center;
}

.cta-section .section-title {
    margin-bottom: 1rem;
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Services: disable horizontal scroll on mobile */
    .services-outer {
        height: auto;
    }

    .services-sticky {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .services-track-container {
        overflow: visible;
        height: auto;
    }

    .services-track {
        flex-direction: column;
        padding: 0 1rem;
        transform: none !important;
        gap: 1rem;
    }

    .service-card {
        min-width: auto;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */
@media (prefers-reduced-motion: reduce) {
    .hero-title span {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-subtitle,
    .hero-actions,
    .scroll-indicator {
        animation: none;
        opacity: 1;
    }

    .glow-orb {
        animation: none;
    }

    .fade-in-up {
        transition: none;
    }
}