:root {
    --bg-color: #030303;
    --bg-alt: #070707; /* Slightly darker for deeper contrast */
    --text-main: #f4f4f5;
    --text-muted: #888888;
    --line-color: rgba(255, 255, 255, 0.06); /* More subtle borders */
    
    /* Central variable for the Sidebar Width */
    --sidebar-width: 240px; 
}

/* Custom Text Selection Highlight */
::selection {
    background: var(--text-main);
    color: var(--bg-color);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 200;
    letter-spacing: 0.15em;
}

/* Vertical Left Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width); /* Uses the thin variable */
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 2.5rem; /* Reduced padding to fit the thinner bar */
    background: rgba(3, 3, 3, 0.5); /* Even more transparent glass */
    backdrop-filter: blur(25px); /* Stronger blur for a frosted glass look */
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    z-index: 1000;
    border-right: 1px solid var(--line-color);
}

.logo {
    display: block;
    margin-bottom: 4rem;
}

#nav-logo {
    width: 140px; /* Scaled down slightly to fit the thinner bar beautifully */
    height: auto;
}

.nav-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.4s ease, padding-left 0.4s ease;
    opacity: 0.4; /* Slightly dimmer idle state */
}

.nav-links a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-color);
}

.nav-socials a {
    color: var(--text-main);
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-socials a:hover {
    opacity: 1;
    transform: scale(1.1); /* Subtle grow on socials */
}

/* Layout Elements */
.section {
    /* Dynamically calculates padding to respect the new thin sidebar + adds breathing room */
    padding: 8rem 8% 6rem calc(var(--sidebar-width) + 8%);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-dark {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-align: left;
    color: var(--text-main);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-left: var(--sidebar-width);
}

.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('banner.png') center/cover no-repeat;
    transform-origin: 2% 50%; /* THIS IS NEW: 70% pushes it right, 50% keeps it vertically centered */
    z-index: 1;
    animation: cinematicZoom 30s infinite alternate ease-in-out;
    filter: grayscale(100%) contrast(1.1);
}

/* Upgraded to a Cinematic Radial Vignette */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(3, 3, 3, 0.3) 0%, rgba(3, 3, 3, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero h1 {
    font-size: 5.5vw;
    font-weight: 100;
    letter-spacing: 0.4em;
    margin-bottom: 3rem;
    margin-left: 0.4em; /* Optical centering for the wide letter spacing */
    opacity: 0.95;
}

/* Premium Button Interactions */
.hero-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 3rem;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    letter-spacing: 0.25em; /* Elegantly stretches text on hover */
    border-color: var(--text-main);
}

.btn-small {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 0;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.btn-small:hover {
    border-bottom-color: var(--text-main);
    padding-left: 0.5rem;
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem;
    max-width: 1100px;
}

.card {
    background: transparent;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-8px);
}

img.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #050505;
    margin-bottom: 2.5rem;
    border: 1px solid var(--line-color);
    display: block;
    filter: grayscale(100%);
    transition: filter 0.8s ease, border-color 0.8s ease;
}

img.plugin-art-small {
    width: 130px; 
    height: 130px;
    aspect-ratio: auto;
}

.card:hover img.card-image {
    filter: grayscale(0%);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-text h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

/* About Section */
.about-profile-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 1s ease, transform 1s ease;
    border: 1px solid var(--line-color);
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-content {
    max-width: 650px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 2.1; /* Extra line height for readability */
    font-weight: 300;
}

/* Contact & Socials */
.social-links {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: color 0.4s ease, transform 0.4s ease;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: right;
    padding: 3rem 8%;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-top: 1px solid var(--line-color);
}

/* Elegant Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes cinematicZoom {
    0% { transform: scale(1.2); }   /* Starts already zoomed in by 20% */
    100% { transform: scale(1.3); } /* Slowly zooms in to 30% */
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 1001; /* Keeps it above the slide-out menu */
    position: relative;
    transition: transform 0.3s ease;
}
/* Mobile Adjustments (Handles everything dynamically) */
/* Mobile Adjustments */
@media (max-width: 900px) {
    nav {
        width: 100%;
        height: 80px; /* Thin top bar for mobile */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
        border-right: none;
        border-bottom: 1px solid var(--line-color);
        background: rgba(3, 3, 3, 0.85);
        backdrop-filter: blur(15px);
    }
    
    .logo { margin-bottom: 0; z-index: 1001; position: relative; }
    #nav-logo { width: 110px; }
    
    /* Show Hamburger */
    .hamburger { display: block; }
    
    /* Full Screen Slide-in Menu */
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%; /* Hides it off-screen by default */
        width: 100%;
        height: 100vh;
        background: rgba(3, 3, 3, 0.98); /* Solid dark glass */
        backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    /* When the menu is open */
    .nav-right.active { right: 0; }

    .nav-links { align-items: center; gap: 3rem; }
    .nav-links a { font-size: 1.2rem; opacity: 1; } /* Larger links for tapping */
    
    .nav-socials { padding-top: 3rem; border-top: none; }
    
    /* Fix layout squishing on mobile */
    .hero { padding-left: 0; }
    .hero h1 { font-size: 14vw; letter-spacing: 0.15em; margin-left: 0; }
    .hero p { font-size: 1rem; padding: 0 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; width: 90%; margin: 0 auto; }
    .hero-buttons .btn { width: 100%; }
    
    .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    
    /* Reset padding so it doesn't leave an empty space where the sidebar was */
    .section { padding: 8rem 5% 6rem 5%; }
    .section-title { text-align: center; }
    .about-profile-wrapper, .social-links { justify-content: center; }
    .about-content { text-align: center; margin: 0 auto; }
    
    footer { text-align: center; padding-bottom: 4rem; }
}