/* Base Reset & Variables */
:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --accent-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease;
}

.cursor.active {
    width: 10px;
    height: 10px;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.cursor-follower.text-mode {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    mix-blend-mode: normal;
    /* Better visibility for text */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.cursor-follower.text-mode::after {
    content: attr(data-text);
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
}

.section-title {
    font-size: 4rem;
    /* Massive section titles */
    margin-bottom: 4rem;
    text-align: left;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
    opacity: 0.8;
}

.gallery-hint {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 70%);
}

.main-title {
    font-size: 8vw;
    /* Responsive massive text */
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 0.9;
    mix-blend-mode: exclusion;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button:hover {
    color: var(--text-color);
}

.cta-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 8rem 0;
}

/* Gallery Grid - Masonry Layout */
.gallery-grid {
    column-count: 3;
    column-gap: 3rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    /* Spacing between items */
    break-inside: avoid;
    /* Prevent items from splitting across columns */
    border-radius: 0;
    transition: filter 0.5s ease;
    filter: grayscale(100%);
    /* Removing aspect-ratio to allow natural height */
}

.gallery-item:hover {
    filter: grayscale(0%);
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Natural height */
    display: block;
    /* Remove bottom space */
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.gallery-item .overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

/* About Section & Glassmorphism */
.about-section {
    background-color: #0a0a0a;
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 0;
    /* Brutalist edge */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

/* Footer / Socials */
.footer {
    padding: 6rem 0;
    background-color: var(--bg-color);
    text-align: center;
    border-top: 1px solid #111;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--text-color);
    transform: scale(1.2);
}

.copyright {
    color: #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    /* Keeping this block in case other tablet-specific overrides are needed later */
}

@media (max-width: 768px) {

    /* Revert custom cursor for touch */
    * {
        cursor: auto !important;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    /* .gallery-grid removed to default to 3 columns */
    .gallery-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .main-title {
        font-size: 15vw;
    }

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

    .about-content {
        padding: 2rem;
    }
}

/* Lightbox */
#lightbox {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-heading);
    font-weight: 300;
}

#lightbox-close:hover {
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 10001;
    transition: color 0.3s, transform 0.3s;
}

.lightbox-nav:hover {
    color: var(--text-muted);
    transform: translateY(-50%) scale(1.1);
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}