:root {
    --bg-primary: #f8f7f4;
    --bg-secondary: #ffffff;
    --text-primary: #121212;
    --text-secondary: #4a4a4a;
    --accent: #c5a059;
    --border: rgba(18, 18, 18, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #f8f7f4;
    --text-secondary: #b0b0b0;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* We'll use a custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide custom cursor on touch devices and small screens */
@media (hover: none) and (pointer: coarse), (max-width: 992px) {
    * { cursor: auto !important; }
    .custom-cursor, .custom-cursor-outline { display: none !important; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;
}

/* Typography Helpers */
.text-serif { font-family: 'Playfair Display', serif; }
.text-sans { font-family: 'Inter', sans-serif; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.text-muted { color: var(--text-secondary); }

/* Layout Helpers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
    scroll-margin-top: 80px;
}

.stats-section {
    scroll-margin-top: 80px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    color: #ffffff; /* Default light color for hero */
}

.navbar.scrolled {
    padding: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary); /* Dark color when scrolled */
}

.navbar.scrolled .nav-link,
.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}

/* Ensure link colors follow navbar state */
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: inherit; /* Inherit from .navbar */
    z-index: 1001;
}

.nav-link {
    text-decoration: none;
    color: inherit; /* Inherit from .navbar */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px; /* Slightly thicker for better visibility */
    background: currentColor; /* Use inherited color */
    transition: var(--transition-fast);
}

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

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-img {
    transform: scale(1.15);
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(60px, 10vw, 120px);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.1s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-book {
    padding: 10px 25px;
}

.btn-white {
    border-color: #fff;
    color: #fff;
}

.btn-white:hover {
    background: #fff;
    color: #000;
}

/* Portfolio Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

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

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.portfolio-item.large {
    grid-column: span 6;
    aspect-ratio: 4/5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-fast);
}

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

.portfolio-info {
    color: #fff;
}

.portfolio-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

/* About Section */
.about-flex {
    display: flex;
    gap: 100px;
    align-items: center;
}

.about-img-box {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 50px;
    margin-bottom: 30px;
}

.about-p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Stats Section */
.stats-grid {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
}

/* Testimonials */
.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 30px;
}

.testimonial-author {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 18px;
    font-weight: 500;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    border-color: var(--text-primary);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* New Refactored Classes */
.press-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.press-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    filter: grayscale(1);
}

.press-item {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 12px;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.insta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.insta-item {
    aspect-ratio: 1/1;
    background: #eee;
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.footer-group h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list .nav-link {
    font-size: 11px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .about-flex { gap: 60px; }
}

@media (max-width: 992px) {
    .navbar { padding: 20px 30px; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 1000;
        opacity: 0; /* Hidden by default */
        visibility: hidden;
    }
    .nav-links.active { 
        right: 0; 
        opacity: 1; 
        visibility: visible;
        color: var(--text-primary); /* Always dark on mobile menu background */
    }
    .nav-links.active .nav-link {
        color: var(--text-primary);
    }
    .navbar.active .nav-logo {
        color: var(--text-primary) !important;
    }
    .navbar.active .nav-toggle span {
        background-color: var(--text-primary) !important;
    }
    .nav-link { font-size: 24px; font-family: 'Playfair Display', serif; text-transform: none; }
    .nav-toggle { display: flex; }
    .navbar .btn { display: none; } /* Hide book now btn on mobile nav to save space */
    
    .hero-title { font-size: clamp(50px, 15vw, 100px); }
    .about-flex { flex-direction: column; gap: 50px; }
    .about-img-box { width: 100%; max-width: 600px; margin: 0 auto; }
    .portfolio-item { grid-column: span 6; }
    .contact-container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    .stats-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }
    .stat-item { text-align: left; }
    .portfolio-item { grid-column: span 12; }
    .portfolio-item.large { grid-column: span 12; }
    .portfolio-filters { flex-wrap: wrap; gap: 15px; }
    
    .testimonial-text { font-size: 24px; }
    
    .footer-content { flex-direction: column; gap: 40px; }
}

@media (max-width: 576px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 45px; }
    .about-title { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    
    .instagram-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
