/* 
 * Portfolio Stylesheet
 * High-end editorial Awwwards-style layout
 */

:root {
    --bg-dark: #0c0c0c;
    --text-light: #ffffff;
    --text-muted: #888888;
    --accent: #2b5cfd;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.custom-cursor.hovering {
    width: 80px;
    height: 80px;
    background-color: var(--text-light);
    border-color: var(--text-light);
}

.cursor-text {
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor.hovering .cursor-text {
    opacity: 1;
}

/* Remove scroll lock once preloader finishes */
body:not(.loading-locked) {
    overflow-y: auto;
}

/* Typography */
.serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

h1, h2, h3 {
    margin: 0;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}

a:hover {
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(12,12,12,0.9), transparent);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: transparent;
    color: var(--text-light) !important;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--text-light);
    border-radius: 50px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

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

.btn-outline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--text-light);
}

/* Editorial Gallery (Asymmetrical) */
.editorial-gallery {
    padding: 10rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10rem; /* Huge gaps for editorial pacing */
}

/* Gallery Hover State (Dim siblings) */
.editorial-gallery:hover .gallery-item {
    opacity: 0.3;
}

.editorial-gallery .gallery-item:hover {
    opacity: 1;
}

.gallery-row {
    display: flex;
    width: 100%;
}

.gallery-row.offset-right {
    justify-content: flex-end;
}

.gallery-row.offset-left {
    justify-content: flex-start;
}

.gallery-row.staggered {
    gap: 4rem;
    align-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image Sizing Classes */
.item-large {
    width: 80%;
    height: 70vh;
}

.item-medium {
    width: 50%;
    height: 60vh;
}

.item-small {
    width: 35%;
    height: 50vh;
}

.mt-large {
    margin-top: 15rem;
}

/* Footer */
.footer {
    padding: 15rem 4rem 10rem 4rem;
    text-align: center;
    background-color: #07070a;
}

.footer h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
}

.email-link {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    border-bottom: 2px solid var(--text-light);
    padding-bottom: 5px;
}

/* GSAP Initial States */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 1024px) {
    .item-large, .item-medium, .item-small {
        width: 100%;
        height: 50vh;
    }
    .gallery-row.staggered {
        flex-direction: column;
    }
    .mt-large {
        margin-top: 0;
    }
    .editorial-gallery {
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
    .footer h2 {
        font-size: 3rem;
    }
    .email-link {
        font-size: 1.5rem;
    }
}
