:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fdfcff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #6d28d9;
    --accent-light: #a78bfa;
    --accent-dark: #4c1d95;
    --accent-glow: rgba(109, 40, 217, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
    --border-radius-sm: 8px;
    --border-radius: 20px;
    --border-radius-lg: 32px;
    --transition-base: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-premium: 0 20px 60px rgba(109, 40, 217, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom Cursor ── */
.cursor-dot, .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 2px solid rgba(109, 40, 217, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ── Scroll Progress ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ── Noise Overlay ── */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3, .logo { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); margin: var(--spacing-sm) 0 var(--spacing-md); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--spacing-md); }
h3 { font-size: 1.6rem; margin-bottom: var(--spacing-sm); color: var(--text-primary); }
p { color: var(--text-secondary); font-size: 1.1rem; }

.text-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* ── Layout ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xl) 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled { padding: 1rem 5%; box-shadow: 0 4px 30px rgba(0,0,0,0.06); }

.logo { font-size: 1.75rem; color: var(--accent); text-decoration: none; cursor: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(109,40,217,0.5)); transition: transform 0.6s ease, filter 0.4s ease; }
.logo:hover .logo-img { transform: rotate(90deg) scale(1.1); filter: drop-shadow(0 0 14px rgba(109,40,217,0.8)); }
.logo-img--sm { width: 26px; height: 26px; }

.nav-links { list-style: none; display: flex; gap: var(--spacing-md); align-items: center; }
.nav-links a:not(.btn) {
    text-decoration: none; color: var(--text-primary);
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition-base); cursor: none;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: none;
    padding: 4px; z-index: 1100;
}
.hamburger span {
    display: block; width: 26px; height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav-link {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 800;
    color: var(--text-primary); text-decoration: none; cursor: none;
    transition: color 0.3s ease;
    display: block;
    opacity: 0; transform: translateY(30px);
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-nav.open li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-nav.open li:nth-child(2) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-nav.open li:nth-child(3) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-nav.open li:nth-child(4) .mobile-nav-link { transition-delay: 0.25s; }
.mobile-nav-link:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 1rem 2rem;
    border-radius: 100px; text-decoration: none;
    font-weight: 700; font-size: 1rem;
    transition: var(--transition-base); cursor: none;
}
.btn-solid { background: var(--accent); color: white; box-shadow: 0 10px 30px var(--accent-glow); }
.btn-solid:hover { background: var(--accent-dark); transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 50px rgba(109,40,217,0.25); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }
.btn-text { color: var(--text-primary); padding: 1rem 0; font-weight: 700; }
.btn-text:hover { color: var(--accent); transform: translateX(8px); }
.btn-large { padding: 1.25rem 2.75rem; font-size: 1.1rem; }

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; align-items: center; padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(167,139,250,0.12), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(109,40,217,0.06), transparent 40%);
    position: relative;
}
.hero-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    align-items: center; gap: var(--spacing-lg);
}
.badge {
    display: inline-block; padding: 0.5rem 1rem;
    background: var(--accent-glow); color: var(--accent);
    border-radius: 100px; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.hero .subtitle { max-width: 550px; font-size: 1.3rem; margin-bottom: var(--spacing-md); }
.hero-cta { display: flex; gap: var(--spacing-md); align-items: center; }
.hero-image-container { position: relative; display: flex; justify-content: center; }
.hero-floating-img {
    width: 100%; max-width: 480px; z-index: 2;
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(109,40,217,0.45)) drop-shadow(0 0 80px rgba(167,139,250,0.25));
    mix-blend-mode: multiply;
}
.glass-orb {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 420px; height: 420px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    filter: blur(90px); opacity: 0.18; z-index: 1;
    animation: pulse-orb 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }
@keyframes pulse-orb { 0%,100% { opacity: 0.18; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.25; transform: translate(-50%,-50%) scale(1.1); } }

/* ── Cycling text underline cursor ── */
#cyclingText { position: relative; }
#cyclingText::after {
    content: '|'; margin-left: 4px; color: var(--accent);
    animation: blink 0.7s step-end infinite;
    -webkit-text-fill-color: var(--accent);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Scroll Indicator ── */
.hero-scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-secondary);
}
.scroll-line-anim {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } 100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; } }

/* ── Trust Bar ── */
.trust-bar { padding: 3.5rem 0; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-bar p { font-weight: 600; margin-right: 2rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.trust-logos { display: flex; gap: 3rem; align-items: center; }
.trust-logo { font-family: var(--font-heading); font-weight: 700; color: var(--text-secondary); opacity: 0.35; font-size: 1.2rem; transition: opacity 0.3s; cursor: default; }
.trust-logo:hover { opacity: 0.7; }

/* ── Section Labels ── */
.section-label {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 1rem;
}

/* ── Services Grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--spacing-md); margin-top: 3rem; }
.card {
    background: var(--bg-primary); padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition-base);
    position: relative; overflow: hidden; group: true;
}
.card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0; transition: opacity 0.5s ease;
}
.card:hover { transform: translateY(-12px); box-shadow: var(--shadow-premium); border-color: rgba(109,40,217,0.2); }
.card:hover::before { opacity: 1; }
.card-number { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; color: var(--accent); opacity: 0.35; letter-spacing: 0.05em; }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: var(--spacing-sm); display: block; transition: transform 0.4s ease; }
.card:hover .card-icon { transform: scale(1.15) rotate(10deg); }
.card-arrow { margin-top: 1.5rem; font-size: 1.2rem; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: all 0.4s ease; }
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ── Banner ── */
.banner { background: var(--bg-secondary); text-align: center; }

/* ── Stats ── */
.stats-section { background: var(--text-primary); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); text-align: center; }
.stat-item { padding: var(--spacing-md); border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; color: white; line-height: 1; margin-bottom: 0.75rem; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ── Portfolio ── */
.section-header { margin-bottom: var(--spacing-lg); max-width: 700px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-top: 0.5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: var(--spacing-md); }
.portfolio-card {
    background: var(--bg-primary); border-radius: var(--border-radius-lg);
    overflow: hidden; text-decoration: none;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition-base); cursor: none; display: block;
}
.portfolio-card:hover { transform: translateY(-16px); box-shadow: var(--shadow-premium); }
.portfolio-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9; }
.portfolio-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: rgba(109,40,217,0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition-base);
    backdrop-filter: blur(6px);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.overlay-btn { color: white; font-weight: 800; font-size: 1.2rem; font-family: var(--font-heading); }
.portfolio-meta { padding: var(--spacing-md); }
.portfolio-tag { font-size: 0.75rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; }

/* ── Contact ── */
.contact { background: var(--text-primary); color: white; position: relative; overflow: hidden; }
.contact h2 { color: white; }
.contact p { color: rgba(255,255,255,0.65); margin-bottom: var(--spacing-md); }
.contact-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.contact-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.contact-orb-1 { width: 400px; height: 400px; background: var(--accent); opacity: 0.15; top: -100px; right: -100px; animation: drift 10s ease-in-out infinite; }
.contact-orb-2 { width: 300px; height: 300px; background: var(--accent-light); opacity: 0.1; bottom: -80px; left: -80px; animation: drift 14s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }
.contact .container { position: relative; z-index: 1; }
.contact .btn-solid { background: white; color: var(--accent); }
.contact .btn-solid:hover { background: rgba(255,255,255,0.9); transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }

/* ── Footer ── */
.footer { padding: 2rem 0; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { font-size: 1.3rem; color: var(--accent); }
.footer p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; cursor: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.9s cubic-bezier(0.2,0.8,0.2,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 1000px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero .subtitle { margin: 0 auto var(--spacing-md); }
    .hero-cta { justify-content: center; }
    .trust-logos { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .section { padding: var(--spacing-lg) 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-nav-link { font-size: 2.25rem; }
    .hero-scroll-indicator { display: none; }
}
