:root {
    --color-sand: #f4ece1;
    --color-sandquote: #ebdfce5c;
    --color-earth: #8c7851;
    --color-ocean: #2c5d63;
    --color-ocean-light: #adc5cf;
    --color-sunset: #e29578;
    --color-text: #333333;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-noto: 'Noto Sans', sans-serif;
}

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

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

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-earth);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

section {
    padding: 5rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-noto);
}

section h1, section h2, section h3, section h4 {
    font-family: var(--font-noto);
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0));
}

header.scrolled {
    background: rgba(244, 236, 225, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

header.scrolled .logo {
    color: var(--color-ocean);
    text-shadow: none;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

header.scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--color-sunset);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--color-white);
    position: relative;
    padding: 10% 10%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.hero p {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-serif);
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--color-sunset);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: var(--color-ocean);
    transform: translateY(-3px);
}

.heading-logo {
    max-width: 100px;
    height: auto;
    transition: filter 0.4s ease;
    filter: brightness(0) invert(1); /* Start as white/inverted if original is black */
}

.heading-logo-black {
    filter: brightness(0) !important;
}

/* Instant Photo / Polaroid Style */
.instant-photo {
    position: absolute;
    transform: rotate(3deg);
    background: white;
    padding: 15px 15px 50px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    transition: transform 0.5s ease;
}

.static-photo {
    position: absolute;
    background: white;
    z-index: 10;

    max-width: 22%;
}

.photo-left {
    top: 20%;
    left: 5%;
}

.photo-right {
    top: 20%;
    right: 5%;
}

.photo-left-1 {
    top: 20%;
    left: 5%;
    max-width: 22%;
    transform: rotate(-4deg);
}

.photo-left-2 {
    top: 25%;
    left: 2%;
    transform: rotate(2deg);
}

.photo-right-0 {
    top: 10%;
    right: 2%;
    width: 25%;
}

.photo-right-1 {
    top: 25%;
    right: 5%;
    transform: rotate(3deg);
}

.photo-right-2 {
    top: 10%;
    right: 5%;
    width: 25%;
    transform: rotate(3deg);
}

.photo-left-2 {
    top: 10%;
    left: 2%;
    width: 25%;
    transform: rotate(-2deg);
}

.instant-photo:hover {
    transform: rotate(0deg) scale(1.05);
}

.instant-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.grid-50-50 {
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.grid-50-50 > div {
    width: 100%;
}

.grid-50-50 img {
    width: 100%;
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

/* Footer */
footer {
    background: var(--color-ocean);
    color: var(--color-sand);
    padding: 4rem 10% 2rem;
    text-align: center;
}

.footer-nav {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.hero-content {
    top: 75px;
}

.footer-motto {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
}

.dedication {
    margin-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: 2px;
    background: var(--color-ocean-light);
    opacity: 0.5;
}

.timeline-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    font-weight: 700;
    color: var(--color-sunset);
    font-size: 1.2rem;
    min-width: 100px;
    text-align: right;
    padding-top: 0.2rem;
}

.timeline-content {
    flex: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 115px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: var(--color-sunset);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--color-white);
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

.header-fixed {
    position: fixed;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 2000;

        margin-left: auto;
        margin-right: auto;
    }

    .mobile-menu-toggle img {
        max-width: 60px;
        transition: filter 0.4s ease;
        filter: brightness(0) invert(1);
    }

    header.scrolled .mobile-menu-toggle img {
        filter: brightness(0);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-sand);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
        font-family: var(--font-serif);
        color: var(--color-earth);
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    section { padding: 3rem 5%; }
    .instant-photo { display: none; }

    .grid-50-50 {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        padding-left: 2rem;
    }

    .timeline-year {
        text-align: left;
        min-width: auto;
    }

    .timeline-item::after {
        left: -5px;
    }
}
