/* ==========================================================================
   Cosmic & Urban Design System & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-deep: #0a0a0c;
    --bg-dark: #0f0f12;
    --bg-card: #15151a;
    --bg-glass: rgba(21, 21, 26, 0.7);
    
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-active: rgba(212, 178, 140, 0.25);
    
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Cosmic Accents - refined & muted to avoid cheap AI slop feel */
    --accent-purple: #8675a9;      /* Orion Violet -> Slate Lavender */
    --accent-purple-glow: rgba(134, 117, 169, 0.25);
    --accent-cyan: #8fa9c4;        /* Stardust Cyan -> Slate Blue */
    --accent-cyan-glow: rgba(143, 169, 196, 0.2);
    --accent-pink: #d1a3a4;        /* Nebula Pink -> Muted Dusk Pink */
    
    /* Social Accents */
    --color-instagram: #c13584;
    --color-tiktok: #8fa9c4;
    --color-youtube: #c4302b;
    --color-discord: #5865f2;
    
    /* Typography */
    --font-display: 'Exo 2', 'Inter', -apple-system, sans-serif;
    --font-serif: 'Exo 2', Georgia, serif;
    --font-sans: 'Exo 2', 'Inter', -apple-system, sans-serif;
    
    /* Spacing & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic Accent Styles (Transitions controlled by JavaScript / active filters) */
    --accent-color: var(--accent-cyan);
    --accent-glow: var(--accent-cyan-glow);
    --stars-opacity: 0.5;
    --grain-opacity: 0.03;
}

/* Themes Configurations */
body.theme-all {
    --accent-color: #8fa9c4;
    --accent-glow: rgba(143, 169, 196, 0.2);
    --stars-opacity: 0.5;
    --grain-opacity: 0.03;
}

body.theme-astro {
    --accent-color: #a3b8cc;
    --accent-glow: rgba(163, 184, 204, 0.25);
    --stars-opacity: 0.8;
    --grain-opacity: 0.01;
}

body.theme-daily {
    --accent-color: #8fa9c4;
    --accent-glow: rgba(143, 169, 196, 0.2);
    --stars-opacity: 0.5;
    --grain-opacity: 0.03;
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #1c1c36;
    border-radius: 4px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-secondary);
}

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

/* ==========================================================================
   Space Star Field & Film Grain Background Effects
   ========================================================================== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #0c0c0e 0%, #050506 100%);
}

/* Film Grain overlay using SVG dynamic turbulence noise */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E') repeat;
    opacity: var(--grain-opacity, 0.03);
    z-index: -9;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Nebula Glow - hidden */
.nebula-glow {
    display: none;
}

/* Stars - hidden */
#stars, #stars2, #stars3 {
    display: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 3, 7, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(6, 6, 14, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-accent {
    color: var(--accent-color);
    transition: color 0.5s ease;
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0;
    transition: color 0.5s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth), background-color 0.5s ease;
    border-radius: 2px;
}

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

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

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.gradient-text {
    color: var(--accent-cyan);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: var(--color-text-secondary);
}

/* Button UI */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--bg-deep);
    border: 1px solid var(--color-text-primary);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text-primary);
    box-shadow: 0 5px 25px var(--accent-cyan-glow);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
    border: 1px solid var(--border-glass);
    margin-left: 1rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--color-text-primary);
}

.scroll-indicator .arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: #fff;
    animation: scroll-arrow 2s infinite ease-in-out;
}

@keyframes scroll-arrow {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* ==========================================================================
   Section Layout General
   ========================================================================== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
    transition: background-color 0.5s ease;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Gallery Section & Filters
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--color-text-secondary);
    padding: 0.7rem 1.6rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    color: var(--bg-deep);
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
    cursor: pointer;
}

/* Smooth entry animation */
.gallery-item.show {
    animation: fade-in-scale 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item.hide {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.03);
}

/* Hover overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3, 3, 7, 0.95) 0%, rgba(3, 3, 7, 0.7) 40%, rgba(3, 3, 7, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

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

.item-category {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.item-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.view-btn {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn::after {
    content: '→';
    transition: var(--transition-fast);
}

.gallery-item:hover .view-btn::after {
    transform: translateX(5px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    position: relative;
    border-bottom: 1px solid var(--border-glass);
    padding-top: 5rem;
}

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

.about-image-side {
    position: relative;
}

.about-image-card {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: rgba(14, 14, 29, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Star overlay in About card background */
.about-image-card .stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80px 120px, #00ffff, transparent),
        radial-gradient(1px 1px at 140px 60px, #fff, transparent),
        radial-gradient(2px 2px at 280px 240px, #8a2be2, transparent),
        radial-gradient(1px 1px at 310px 80px, #fff, transparent);
    opacity: 0.4;
    z-index: 1;
}

/* Profile Picture Placeholder */
.profile-placeholder {
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-secondary);
    z-index: 2;
    transition: border-color 0.5s ease, background-color 0.5s ease;
}

.about-image-card:hover .profile-placeholder {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.02);
}

.profile-avatar-icon {
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    transition: color 0.5s ease;
}

.about-image-card:hover .profile-avatar-icon {
    color: var(--accent-color);
}

.profile-avatar-icon svg {
    width: 45px;
    height: 45px;
}

.profile-placeholder-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.profile-placeholder-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.profile-placeholder-text code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* Profile Photo */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

.about-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-color);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    transition: border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

.about-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.about-desc {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}



/* ==========================================================================
   Social Cards Section
   ========================================================================== */
.socials-section {
    position: relative;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.social-card {
    background: rgba(14, 14, 29, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.social-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    top: -50px;
    right: -50px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.social-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.social-handle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.social-action {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* Hover Configurations for different networks */
.social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.social-card:hover .social-glow {
    opacity: 0.25;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
    color: var(--color-text-primary);
}

/* Instagram Theme Hover */
.instagram:hover .social-icon {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.4);
    color: var(--color-instagram);
}
.instagram .social-glow {
    background: var(--color-instagram);
}
.instagram:hover {
    box-shadow: 0 15px 35px rgba(225, 48, 108, 0.12);
}

/* TikTok Theme Hover */
.tiktok:hover .social-icon {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
    color: var(--color-tiktok);
}
.tiktok .social-glow {
    background: var(--color-tiktok);
}
.tiktok:hover {
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.12);
}

/* YouTube Theme Hover */
.youtube:hover .social-icon {
    background: rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.4);
    color: var(--color-youtube);
}
.youtube .social-glow {
    background: var(--color-youtube);
}
.youtube:hover {
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.1);
}

/* Discord Theme Hover */
.discord:hover .social-icon {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    color: var(--color-discord);
}
.discord .social-glow {
    background: var(--color-discord);
}
.discord:hover {
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.12);
}

/* ==========================================================================
   Lightbox Overlay
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 3, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
    transition: var(--transition-fast);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-text-primary);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--color-text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    transition: var(--transition-smooth);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 80%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-meta {
    width: 100%;
    max-width: 700px;
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-category {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

.lightbox-title {
    font-size: 1.4rem;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-glass);
    background: #040409;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.back-to-top {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    color: var(--color-text-primary);
}

.arrow-up {
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    display: inline-block;
    transition: transform 0.2s;
}

.back-to-top:hover .arrow-up {
    transform: rotate(45deg) translate(-2px, -2px);
}

/* ==========================================================================
   Responsiveness (Media Queries)
   ========================================================================== */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image-side {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-text-side {
        text-align: center;
    }
    
    .about-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 8, 17, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        border-left: 1px solid var(--border-glass);
        z-index: 105;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }

    /* Menu toggle animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    /* Section spacing */
    .section-container {
        padding: 3.5rem 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* About section */
    .about-section {
        padding-top: 3.5rem;
    }

    .about-image-side {
        max-width: 240px;
    }

    .about-image-card {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .profile-placeholder {
        width: 85%;
        height: 85%;
        padding: 1rem;
    }

    .profile-avatar-icon svg {
        width: 36px;
        height: 36px;
    }

    .profile-placeholder-title {
        font-size: 0.85rem;
    }

    .profile-placeholder-text {
        font-size: 0.7rem;
    }

    .about-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about-desc {
        font-size: 0.95rem;
    }

    .about-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 1rem;
    }

    /* Gallery filters - horizontal scroll on mobile */
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        min-height: 44px;
    }

    /* Gallery grid - single column */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .gallery-item {
        border-radius: 8px;
    }

    /* Social grid */
    .social-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .social-card {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .social-name {
        font-size: 1rem;
    }

    .social-handle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .social-action {
        font-size: 0.75rem;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .lightbox-img {
        max-height: 55vh;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 2rem;
        min-width: 44px;
        min-height: 44px;
    }

    .lightbox-title {
        font-size: 1.1rem;
    }

    .lightbox-desc {
        font-size: 0.8rem;
    }

    .lightbox-meta {
        margin-top: 1rem;
    }

    /* Footer */
    .main-footer {
        padding: 2rem 1.2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    /* Creator modal */
    .creator-content {
        padding: 1.5rem 1.2rem;
        max-height: 95vh;
        max-height: 95dvh;
        width: 95%;
    }

    .creator-main-title {
        font-size: 1.3rem;
    }

    .creator-subtitle {
        font-size: 0.8rem;
    }

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

    .drag-drop-container {
        min-height: 120px;
        padding: 1.5rem;
    }

    .drag-drop-text {
        font-size: 0.85rem;
    }
}

/* --- Small phones (max 480px) --- */
@media (max-width: 480px) {
    .section-container {
        padding: 2.5rem 1rem;
    }

    .about-grid {
        gap: 1.5rem;
    }

    .about-image-side {
        max-width: 200px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-desc {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .social-card {
        flex-direction: row;
        padding: 1.2rem;
        text-align: left;
        gap: 1rem;
    }

    .social-icon {
        margin-bottom: 0;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .social-name {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    .social-handle {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .social-action {
        font-size: 0.7rem;
    }

    .social-glow {
        display: none;
    }

    .gallery-item {
        aspect-ratio: 16 / 10;
    }

    /* Lightbox fills screen on small phones */
    .lightbox-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .lightbox-img {
        max-height: 50vh;
        border-radius: 4px;
    }

    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lightbox-prev {
        left: 0.3rem;
    }

    .lightbox-next {
        right: 0.3rem;
    }

    .creator-content {
        padding: 1.2rem 1rem;
    }

    .creator-main-title {
        font-size: 1.1rem;
    }

    .btn-submit-photo {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Entrance Animations classes (revealed by JS)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Hero animations on load */
.animate-fade-in {
    opacity: 0;
    animation: key-fade-in 1s forwards 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: key-slide-up 1.2s forwards 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-fade-in-delay {
    opacity: 0;
    animation: key-fade-in 1s forwards 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-fade-in-delay-more {
    opacity: 0;
    animation: key-fade-in 1s forwards 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes key-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes key-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Placeholder Cards for Custom Photos
   ========================================================================== */
.gallery-item.placeholder-card {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item.placeholder-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-6px);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
}

.placeholder-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.gallery-item.placeholder-card:hover .placeholder-icon {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.placeholder-icon svg {
    width: 24px;
    height: 24px;
}

.placeholder-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    max-width: 220px;
}

/* ==========================================================================
   Creator Modal Styling (Glassmorphism & Neon details)
   ========================================================================== */
.creator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1005;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.creator-modal.active {
    display: flex;
    opacity: 1;
}

.creator-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 7, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.creator-content {
    position: relative;
    width: 90%;
    max-width: 650px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.creator-modal.active .creator-content {
    transform: scale(1);
}

.creator-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.creator-close:hover {
    color: var(--color-text-primary);
    transform: scale(1.1);
}

.creator-header {
    margin-bottom: 2rem;
}

.creator-main-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.creator-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Form layouts */
.creator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

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

.form-group label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s, background-color 0.3s;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.06);
}

/* Drag & Drop File Container */
.drag-drop-container {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color 0.3s, background-color 0.3s;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-drop-container.drag-over {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.drag-drop-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drag-drop-icon {
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.drag-drop-icon svg {
    width: 36px;
    height: 36px;
}

.drag-drop-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.browse-link {
    color: var(--accent-color);
    font-weight: 600;
}

.file-info-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Preview area */
.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    background: #000;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.remove-preview-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 28px;
    cursor: pointer;
    z-index: 15;
    transition: background-color 0.2s;
}

.remove-preview-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

.btn-submit-photo {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-submit-photo:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Generated code section */
.creator-code-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: none; /* Only visible after submission */
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.creator-code-section textarea {
    width: 100%;
    height: 120px;
    background: #020204;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem;
    color: #a9ffb4; /* Light green code color */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
}

.code-instructions {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.code-instructions .info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .creator-content {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

