/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-light: #111111;
    --bg-card: #161616;
    --text: #f5f0eb;
    --text-muted: #8a8580;
    --accent: #c9a87c;
    --accent-light: #e0cdb5;
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ========== CUSTOM CURSOR ========== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px; height: 6px;
    background: var(--text);
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(245,240,235,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 60px; height: 60px;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text);
    transition: color 0.3s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--transition);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: color 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s var(--transition), opacity 0.5s, color 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }

.mobile-link:hover { color: var(--accent); }

.mobile-social {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mobile-social a:hover { color: var(--accent); }

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.5) 50%,
        rgba(10,10,10,0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-tagline {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--transition) 0.3s;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--transition);
}

.hero-line:nth-child(1).visible { transition-delay: 0.4s; }
.hero-line:nth-child(2).visible { transition-delay: 0.6s; }
.hero-line:nth-child(3).visible { transition-delay: 0.8s; }

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--transition) 1s;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    padding: 1rem 2.2rem;
    border: 1px solid rgba(245,240,235,0.25);
    border-radius: 0;
    transition: all 0.4s var(--transition);
}

.btn-explore:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn-explore svg {
    transition: transform 0.3s;
}

.btn-explore:hover svg {
    transform: translate(3px, -3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.hero-counter {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 2;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .hero-scroll, .hero-counter { display: none; }
}

/* ========== SCROLLING STRIP ========== */
.strip {
    padding: 1.5rem 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(245,240,235,0.06);
    border-bottom: 1px solid rgba(245,240,235,0.06);
    overflow: hidden;
}

.strip-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: stripScroll 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.strip-track span {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.strip-dot {
    display: inline-block;
    width: 4px !important;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

@keyframes stripScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== SECTION COMMON ========== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ========== ANIMATE ON SCROLL ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PORTFOLIO ========== */
.portfolio {
    padding: 7rem 3rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.filter-btn:hover {
    color: var(--text);
}

.filter-btn.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* ========== GALLERY GRID ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item.large {
    grid-row: span 1;
    aspect-ratio: 3/4;
}

.gallery-item.hidden {
    display: none;
}

.gallery-img {
    position: absolute;
    inset: 0;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s;
}

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

.gallery-cat {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.gallery-overlay h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .portfolio { padding: 5rem 1.5rem; }
}

@media (max-width: 600px) {
    .gallery { grid-template-columns: 1fr; gap: 0.75rem; }
    .gallery-item { aspect-ratio: 4/5; }
}

/* ========== PARALLAX QUOTE ========== */
.quote-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.7);
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.quote-content blockquote p {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: var(--text);
}

/* ========== ABOUT ========== */
.about {
    padding: 8rem 3rem;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
}

.about-image-accent {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.3;
}

.about-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245,240,235,0.08);
}

.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about { padding: 5rem 1.5rem; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ========== CONTACT ========== */
.contact {
    padding: 8rem 3rem;
    background: var(--bg-light);
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.contact-title em {
    font-style: italic;
    color: var(--accent);
}

.contact-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.contact-email {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--accent);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    margin-bottom: 3rem;
    transition: border-color 0.3s;
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(245,240,235,0.1);
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .contact { padding: 5rem 1.5rem; }
}

/* ========== FOOTER ========== */
.footer {
    padding: 3rem;
    border-top: 1px solid rgba(245,240,235,0.06);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-quote {
    font-family: var(--serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 201;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 201;
    color: var(--text-muted);
    padding: 1rem;
    transition: color 0.3s;
}

.lightbox-nav:hover { color: var(--text); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    transform: scale(0.95);
    transition: transform 0.4s var(--transition);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

/* ========== LOADING ANIMATION ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== SMOOTH SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}
