:root {
    --bg-color: #0b0c10;
    --text-main: #f0f0f0;
    --text-muted: #b0b0b0;
    --accent-pink: #ff66c4;
    --accent-purple: #a450ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Image Layer */
.bg-layer {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    opacity: 0.3; /* subtle */
}

/* Dark overlay to ensure text is readable */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(11, 12, 16, 0.7) 0%, rgba(11, 12, 16, 0.95) 100%);
    z-index: -2;
}

/* Particle Container */
#particles {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 300;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 102, 196, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content & Layout */
main {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Breathing Glow Effect */
.glow-ring {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    z-index: 1;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; filter: blur(10px); }
    100% { transform: scale(1.05); opacity: 0.8; filter: blur(15px); }
}

/* Active State when Music Plays */
body.music-playing .glow-ring {
    animation: pulse-fast 1s infinite alternate;
    background: linear-gradient(45deg, #ff007f, #d500ff);
}

@keyframes pulse-fast {
    0% { transform: scale(1.05); opacity: 0.8; filter: blur(15px); }
    100% { transform: scale(1.15); opacity: 1; filter: blur(25px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 196, 0.4);
}

/* General Sections */
section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Socials */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--accent-pink);
    box-shadow: 0 5px 15px rgba(255, 102, 196, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Portfolio Gallery & Filters --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255, 102, 196, 0.2);
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 102, 196, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    transition: opacity 0.3s ease;
    max-height: 550px;
    overflow-y: auto;
    padding: 10px;
    /* Soft shadow inset at top/bottom could be cool, but padding is enough */
}

/* Custom Scrollbar for the Gallery Grid */
.gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 196, 0.4);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 102, 196, 0.3);
    border-color: var(--accent-pink);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Locked Image / Patreon Emblem Styles */
.gallery-item.locked img {
    filter: blur(8px) brightness(0.6);
    pointer-events: none;
}

.gallery-item.locked .patreon-emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gallery-item.locked .patreon-emblem i {
    font-size: 2.5rem;
    color: #FF424D; /* Patreon Red */
    filter: drop-shadow(0 0 10px rgba(255, 66, 77, 0.6));
}

.gallery-item.locked:hover {
    border-color: #FF424D;
    box-shadow: 0 10px 20px rgba(255, 66, 77, 0.3);
}

.gallery-item.locked:hover img {
    transform: scale(1.05); /* slightly less zoom for locked */
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 102, 196, 0.2);
    border: 1px solid var(--glass-border);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2010;
}

.close-lightbox:hover {
    color: var(--accent-pink);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 60px;
    font-weight: bold;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 2010;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px var(--accent-pink);
    transform: translateY(-50%) scale(1.1);
}

/* --- Scroll Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

body.scroll-up .fade-in-section:not(.is-visible) {
    transform: translateY(-40px);
}

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

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 102, 196, 0.3);
}

.contact-form .cta-button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    .navbar {
        padding: 20px;
    }
    .nav-links {
        display: none; /* hidden by default on mobile, handled by JS */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin: 15px 0;
        text-align: center;
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .glass-panel {
        padding: 30px 20px;
    }
    .social-links {
        flex-direction: column;
    }
    .social-btn {
        justify-content: center;
    }
}
