:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #f0f0f0;
    --glass-bg: rgba(20, 10, 30, 0.4);
    /* Dark Purple Hint */
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Much softer border */
    --glass-blur: 15px;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.4s;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #1a0b2e 0%, #050505 60%);
    /* Subtle Ambient Purple Light at top */
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownHeader {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header (Glass) */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    /* Explicit start state matching 'to' keyframe */
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: var(--radius-lg);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.3s ease;
    animation: slideDownHeader 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header Glass Effect - Purple Tint */
header {
    background: rgba(15, 5, 20, 0.6);
    /* Dark Purple Tint */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background-color: var(--text-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    animation: slideUp 1s ease-out 0.2s backwards;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Gradient text */
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Art of Noticing (Quote) */
.art-of-noticing {
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-box {
    max-width: 700px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 10, 40, 0.4), rgba(5, 5, 5, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer */
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.8s ease-out;
}

.quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-style: italic;
}

.quote-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

/* Portfolio Grid */
.portfolio-header {
    text-align: center;
    padding: 10rem 0 3rem;
    /* Increased top padding to clear fixed header */
    animation: fadeIn 1s ease-out;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    /* Space between images */
    padding-bottom: 6rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Curving the image corners */
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
    /* Gentle zoom inside the frame */
}

/* Caption Overlay (Glass) */
.gallery-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    background: rgba(10, 5, 20, 0.8);
    /* Darker purple/black */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1rem;
    color: white;
    margin: 0;
}

/* Stagger animation for gallery items */
.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 8, 0.95);
    /* Deep purple/black */
    backdrop-filter: blur(15px);
    /* Heavy blur for focus */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.4s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Footer (Glass) */
footer {
    margin-top: auto;
    /* Push to bottom */
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer */
    position: relative;
    background: linear-gradient(to top, rgba(15, 5, 25, 1), rgba(5, 5, 5, 0));
}

.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    font-size: 1rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-icon:hover {
    opacity: 1;
}

.contact-link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.contact-link:hover {
    background: white;
    color: black;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Admin Link Styling */
a[href="admin/"] {
    position: relative;
    top: 5px;
    opacity: 0.5;
    transition: 0.3s;
}

a[href="admin/"]:hover {
    opacity: 1;
    color: #90ee90;
    /* Soft green hint */
}


/* Responsive */
@media (max-width: 768px) {
    header {
        top: 0;
        width: 100%;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 1rem 1.5rem;
        transform: translate(0, 0);
        /* Reset for mobile */
        left: 0;
        animation: none;
        /* Simplify mobile */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 2000;
        cursor: pointer;
    }

    .bar {
        width: 100%;
        height: 3px;
        background-color: white;
        margin: 0;
        /* Reset margin since we use flex space-between */
        border-radius: 3px;
        transition: 0.4s;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full width for mobile immersion */
        background: rgba(10, 5, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        z-index: 999;
        /* Ensure it sits on top */
        padding-top: 80px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .quote {
        font-size: 1.5rem;
    }
}