/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS & RESET
   ═══════════════════════════════════════════════════════ */
:root {
    /* Colors */
    --bg-primary: #0a0612;
    --bg-secondary: #0f0a1e;
    --bg-card: rgba(15, 10, 30, 0.7);
    --bg-card-hover: rgba(25, 18, 50, 0.85);

    --purple: #8b5cf6;
    --purple-light: #a855f7;
    --purple-dark: #6d28d9;
    --magenta: #ec4899;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --green: #22c55e;

    --text-primary: #ffffff;
    --text-secondary: #b4b4c4;
    --text-muted: #6b6b80;

    --border-subtle: rgba(139, 92, 246, 0.15);
    --border-card: rgba(139, 92, 246, 0.12);

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-purple-gold: linear-gradient(135deg, #8b5cf6, #f59e0b);
    --gradient-dark: linear-gradient(180deg, #0a0612 0%, #0f0a1e 100%);
    --gradient-stats: linear-gradient(135deg, #1a0533 0%, #2d1b69 50%, #3b0764 100%);

    /* Glow */
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
    --glow-gold: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 60px rgba(245, 158, 11, 0.1);
    --glow-magenta: 0 0 20px rgba(236, 72, 153, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-pad: 6rem 0;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ═══════════════════════════════════════════════════════
   GRADIENT TEXT HELPERS
   ═══════════════════════════════════════════════════════ */
.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--purple);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.55);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-subtle);
    box-shadow: inset 0 0 0 0 rgba(139, 92, 246, 0.1);
}

.btn-ghost:hover {
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 2.25rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
    backdrop-filter: blur(0);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-purple);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
    letter-spacing: 0.05em;
}

.lang-switcher:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Nav */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: #080510;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        visibility: hidden;
        clip-path: circle(0% at calc(100% - 40px) 30px);
        transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
        z-index: 9999;
        border-top: 3px solid var(--purple);
        box-shadow: inset 0 3px 30px rgba(139, 92, 246, 0.15);
    }

    .nav-links::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 50% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
        pointer-events: none;
    }

    .nav-links.open {
        visibility: visible;
        clip-path: circle(150% at calc(100% - 40px) 30px);
        transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }

    .nav-link {
        font-size: 1.8rem;
        font-weight: 700;
        padding: 0.75rem 2rem;
        border-radius: var(--radius-pill);
        transition: var(--transition-base);
        color: var(--text-primary);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.15);
        color: var(--purple-light);
    }

    .hamburger {
        z-index: 10000;
    }

    .nav-logo {
        z-index: 10000;
    }
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-video-mobile {
    display: none;
}

@media (max-width: 767px) {
    .hero-video-desktop {
        display: none;
    }

    .hero-video-mobile {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Adjust this background color and opacity to control the overlay! */
    /* Example: rgba(5, 3, 10, 0.7) for a dark, slightly transparent overlay */
    background: rgba(10, 6, 18, 0.8);
    z-index: 2;
}

/* Ensure the glows sit above the overlay but behind content if needed, or remove them */

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow--purple {
    width: 500px;
    height: 500px;
    background: var(--purple);
    top: 10%;
    right: -10%;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow--gold {
    width: 350px;
    height: 350px;
    background: var(--gold);
    bottom: 10%;
    left: -5%;
    animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
    text-align: center;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.hero-stat-number {
    font-size: 1.6rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
    margin-top: 0.2rem;
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-subtle);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--purple-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* ═══════════════════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--section-pad);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-tag i {
    font-size: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* Grid background */
.grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══════════════════════════════════════════════════════
   DESIGN SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.services-section {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-purple);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--glow-purple);
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: var(--glow-gold);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

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

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.service-card:hover .service-link,
.video-card:hover .service-link {
    opacity: 1;
    transform: translateY(0);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

.service-card--featured {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.04));
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════
   VIDEO SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.video-section {
    background: var(--bg-primary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition-base);
}

.video-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--glow-gold);
}

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

.video-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.video-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.video-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.video-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-features i {
    color: var(--green);
    font-size: 1rem;
}

.video-card--highlight {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(249, 115, 22, 0.03));
}

/* ═══════════════════════════════════════════════════════
   MARKETING SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.marketing-section {
    background: var(--bg-secondary);
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .marketing-grid {
        grid-template-columns: 1fr;
    }
}

.marketing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    transition: var(--transition-base);
}

.marketing-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--glow-purple);
    transform: translateY(-4px);
}

.marketing-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.marketing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-light);
    font-size: 1.3rem;
}

.marketing-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.marketing-card>p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.marketing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .marketing-features {
        grid-template-columns: 1fr;
    }
}

.marketing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.marketing-feature i {
    color: var(--gold);
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.marketing-feature strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.marketing-feature span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO SECTION
   ═══════════════════════════════════════════════════════ */
.portfolio-section {
    background: var(--bg-primary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.55rem 1.5rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--purple);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-purple);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: var(--transition-base);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

/* Portfolio overlay — always visible title */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 6, 18, 0.92) 0%, rgba(10, 6, 18, 0.4) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 1;
    transition: var(--transition-base);
    pointer-events: none;
}

.portfolio-overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    transition: var(--transition-base);
}

.portfolio-overlay p {
    font-size: 0.78rem;
    color: var(--purple-light);
    font-weight: 500;
    transition: var(--transition-base);
}

.portfolio-overlay .gallery-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay .gallery-hint {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(10, 6, 18, 0.97) 0%, rgba(10, 6, 18, 0.6) 80%, transparent 100%);
    padding-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   MASONRY GALLERY MODAL
   ═══════════════════════════════════════════════════════ */
.masonry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.masonry-modal.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* Custom scrollbar for masonry modal */
.masonry-modal::-webkit-scrollbar {
    width: 8px;
}

.masonry-modal::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.masonry-modal::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 4px;
}

.masonry-modal::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

.mm-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 6, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    z-index: 100;
}

.mm-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mm-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mm-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.mm-body {
    padding: 2rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    /* important for masonry children to position absolutely against */
    min-height: 100vh;
    /* ensure enough height */
}

/* Masonry List & Items */
.masonry-list {
    position: relative;
    width: 100%;
    height: 10px;
    /* Initially 10px, will be dynamically sized by JS */
}

.masonry-item-wrapper {
    position: absolute;
    will-change: transform, width, height, opacity;
    padding: 15px;
    /* spacing between items */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* space between brief text and image */
    cursor: pointer;
}

.masonry-item-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    z-index: 2;
    background: rgba(10, 6, 18, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.masonry-item-img {
    position: relative;
    background-size: cover;
    background-position: center center;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 10px 40px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    /* placeholder color */
}

.masonry-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 150, 0.5), rgba(0, 150, 255, 0.5));
    opacity: 0;
    pointer-events: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .mm-header {
        padding: 1rem 1.25rem;
    }

    .mm-title {
        font-size: 1.25rem;
    }

    .mm-body {
        padding: 1rem;
    }

    .masonry-item-wrapper {
        padding: 8px;
    }

    .masonry-item-text {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   PHOTO VIEWER MODAL
   ═══════════════════════════════════════════════════════ */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 3, 10, 0.95);
    z-index: 100000;
    /* above masonry-modal */
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    backdrop-filter: blur(10px);
}

.photo-viewer.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.photo-viewer img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pv-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.pv-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════
   VIDEO EMBED MODAL
   ═══════════════════════════════════════════════════════ */
/* The Video Modal shares the `.masonry-modal` backbone, but customizes its content grid. */
.vm-content {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

/* For Facebook/Insta reels specifically */
.vm-content iframe {
    border: none;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

/* Portfolio hide/show animation */
.portfolio-item.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   STATS BANNER
   ═══════════════════════════════════════════════════════ */
.stats-banner {
    background: var(--gradient-stats);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-number i {
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-decoration {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--purple);
    border-radius: var(--radius-lg);
    opacity: 0.25;
    z-index: 0;
}

.about-content .section-tag {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .about-content .section-tag {
        justify-content: center;
    }
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-skills {
        justify-content: center;
    }
}

.skill-tag {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 6, 18, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b80'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.contact-info-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-light);
    font-size: 1.2rem;
}

.contact-info-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-purple);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-purple);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-card);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-links a {
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--purple-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-card);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats-mini {
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}