:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #999999;
    --border-gray: #e5e5e5;
}

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

html, body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Ensure proper vertical scrolling */
    min-height: 100vh; /* Prevent blank space issues */
    width: 100%;
    max-width: 100vw; /* Strict width constraint */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
    font-weight: 300;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-black);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--medium-gray);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-black);
}

/* Main Content */
main {
    padding-top: 80px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: var(--primary-white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
}

.btn-primary:hover {
    background: var(--medium-gray);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border: 1px solid var(--primary-black);
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border: 1px solid var(--border-gray);
}

.btn-outline:hover {
    background: var(--light-gray);
}

.hero-image {
    position: relative;
}

.portrait {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portrait:hover {
    filter: grayscale(0%);
}

/* Signature */
.signature-section {
    padding: 3rem 0;
    background: var(--light-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.signature {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    filter: contrast(1.2);
}

/* Section Styles */
.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* Timeline Styles */
.timeline-hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f0f0 100%);
    padding: 4rem 0 2rem;
}

.timeline-expanded {
    padding: 4rem 0;
    background: var(--primary-white);
}

.timeline-container-expanded {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container-expanded::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-gray);
    z-index: 1;
}

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

.timeline-year {
    min-width: 100px;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary-black);
}

.timeline-content-expanded {
        flex: 1;
    background: var(--light-gray);
        padding: 1.5rem;
    border: 1px solid var(--border-gray);
    transition: all 0.2s ease;
}

.timeline-content-expanded:hover {
    background: var(--primary-white);
}

.timeline-content-expanded h3 {
    margin: 0 0 0.75rem 0;
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: var(--primary-black);
    font-weight: 600;
}

.timeline-content-expanded p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: var(--medium-gray);
    font-weight: 300;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-white);
    color: var(--primary-black);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-gray);
        font-size: 0.8rem;
    font-weight: 400;
}

/* Special styling for major milestones */
.timeline-item-expanded.featured .timeline-year {
    background: var(--medium-gray);
}

.timeline-item-expanded.featured .timeline-year::after {
    border-left-color: var(--medium-gray);
}

.timeline-item-expanded.award .timeline-year {
    background: var(--primary-black);
}

.timeline-item-expanded.origin .timeline-year {
    background: var(--primary-black);
}

.timeline-navigation {
    display: flex;
        justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

/* Balloon Face Decorations */
.balloon-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Dynamic random balloon backgrounds */
.balloon-dynamic-background {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Prevent overflow */
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* Small static balloon decorations */
.balloon-small-1 {
    top: 15%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/1.png') center/contain no-repeat;
    opacity: 0.6;
}

.balloon-small-2 {
    bottom: 25%;
    left: 5%;
    width: 70px;
    height: 70px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/2.png') center/contain no-repeat;
    opacity: 0.5;
}

.balloon-small-3 {
    top: 35%;
    left: 10%;
    width: 75px;
    height: 75px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/3.png') center/contain no-repeat;
    opacity: 0.7;
}

.balloon-small-4 {
    top: 65%;
    right: 12%;
    width: 65px;
    height: 65px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/4.png') center/contain no-repeat;
    opacity: 0.6;
}

/* Full-width section backgrounds */
.balloon-hero-bg {
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/1.png') center/contain no-repeat;
}

.balloon-about-bg {
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/3.png') center/contain no-repeat;
}

.balloon-quote-bg {
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/10.png') center/contain no-repeat;
}

/* Small static white balloons for dark sections */
.balloon-white-small-1 {
    top: 20%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/8.png') center/contain no-repeat;
    opacity: 0.6;
}

.balloon-white-small-2 {
    bottom: 30%;
    left: 8%;
    width: 85px;
    height: 85px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/9.png') center/contain no-repeat;
    opacity: 0.5;
}

.balloon-white-small-3 {
    top: 45%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: url('https://twejikjgxkzmphocbvpt.supabase.co/storage/v1/object/public/havensvgs/balloon%20faces/11.png') center/contain no-repeat;
    opacity: 0.7;
}

/* Side decorations */
.balloon-side-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-60%);
    width: 150px;
    height: 150px;
    opacity: 0.04;
    z-index: -1;
}

.balloon-side-right {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateY(-50%) translateX(60%);
    width: 130px;
    height: 130px;
    opacity: 0.05;
    z-index: -1;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-12px) rotate(0.5deg);
    }
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-divider {
    width: 100px;
    height: 1px;
    background: var(--primary-white);
    margin: 0 auto 1rem;
}

.footer p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        max-width: 100%;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    /* Ensure balloon decorations don't overflow on mobile */
    .balloon-side-left,
    .balloon-side-right {
        display: none;
    }

    .balloon-dynamic-background {
        width: 100%;
        height: 80%;
        background-size: cover;
    }

    .timeline-container-expanded::before {
        left: 25px;
    }

    .timeline-item-expanded {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 3rem;
    }

    .timeline-year {
        margin-bottom: 1rem;
        margin-right: 0;
        min-width: auto;
        position: relative;
        margin-left: -3rem;
    }

    .timeline-year::after {
        display: none;
    }

    .timeline-navigation {
        flex-direction: column;
        align-items: center;
    }
} 