/* Global Styles */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #a0a0a0;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
    --card-bg: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    margin-top: -50px;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* Sections General */
section {
    padding: 4rem 10%;
    text-align: center;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-header p {
    font-size: 0.9rem;
    color: var(--accent-color);
    line-height: 1.8;
}

/* Explore Section */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.card-content {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
}

.card-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.card-content .location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

.see-more,
.all-posts {
    margin-top: 2rem;
}

.see-more a,
.all-posts a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a90e2;
    /* Blue accent from reference */
    font-weight: 600;
}

.see-more i,
.all-posts i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Journal Section */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.journal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.journal-content .date {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.journal-content h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.journal-content p {
    font-size: 0.9rem;
    color: var(--accent-color);
    max-width: 80%;
    margin: 0 auto;
}

/* Footer Section */
.footer-hero {
    position: relative;
    height: 400px;
    /* Adjust height as needed */
    margin-top: 4rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-hero .footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    /* Fade out top */
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Add a gradient overlay to ensure text readability at the bottom */
.footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #050505 0%, transparent 80%);
    z-index: -1;
}

.footer-bottom {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Hide for mobile for now (simple) */
    }

    .logo {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .explore-grid,
    .journal-grid {
        grid-template-columns: 1fr;
    }

    .journal-grid {
        gap: 4rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Page Specific Styles */
.page-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    padding: 6rem 10%;
    text-align: center;
}

.container.small {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #fff;
    color: #000;
}

.journal-entry {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    text-align: left;
}

.journal-entry.reverse {
    flex-direction: row-reverse;
}

.entry-image {
    flex: 1;
}

.entry-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.entry-content {
    flex: 1;
}

.entry-content h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.read-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
}

.small-footer {
    height: auto;
    background: #000;
    margin-top: 0;
}

/* Mobile Menu Styles - Disabled per user request (Show Desktop Nav) */
.mobile-menu-toggle {
    display: none !important;
}

@media (max-width: 768px) {

    /* Adjust Navbar for Mobile to fit desktop items */
    .navbar {
        padding: 1.5rem 5%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        position: absolute;
        /* Ensure it stays at the top of the content, not fixed to screen */
    }

    .logo {
        width: 100%;
        text-align: center;
        order: 1;
        margin-bottom: 0.5rem;
    }

    /* Reset nav-links from desktop/mobile-menu styles */
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        transform: none;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .nav-links.left {
        order: 2;
        justify-content: flex-end;
    }

    .nav-links.right {
        order: 3;
        justify-content: flex-start;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .journal-entry,
    .journal-entry.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* Fix collision: Push hero content down to account for taller, stacked navbar */
    .hero,
    .page-hero {
        padding-top: 140px;
        /* Logo + Links height approx */
        align-items: flex-start;
        /* Align to top (plus padding) instead of center, or keep center? 
                                    Better to keep center but shift visual center? 
                                    Let's try just padding-top and keeping vertically centered but constrained height might be issue. 
                                    Actually, if we add padding-top, the flex center will shift down. */
    }

    .hero-content {
        margin-top: 2rem;
        /* Additional breathing room */
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Hero Text Animation - Initial Load */
.hero-title {
    animation: fadeSlideDown 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px);
}

.hero-subtitle {
    animation: fadeSlideUp 1.2s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

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