/* ========================================
   CSS Reset & Base Styles
   ======================================== */

/* Import Mellisa Handwritten Font */
@font-face {
    font-family: 'Mellisa Handwritten';
    src: url('../fonts/Mellisa.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Color Palette - Soft, Calming Colors */
    --primary-color: #4A90E2;
    --primary-dark: #2E5C8A;
    --secondary-color: #F7D794;
    --accent-color: #81C784;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-primary: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Mellisa Handwritten', cursive;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-long: all 0.6s ease;
}

html {
    scroll-behavior: auto;
    overflow-x: visible !important;
    overflow-y: hidden;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: visible !important;
    overflow-y: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Force hide scrollbars on all browsers */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible !important;
    position: relative;
}

/* ========================================
   Top Header
   ======================================== */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: visible;
}

.logo {
    font-family: 'Mellisa Handwritten', cursive;
    font-size: 2.75rem;
    margin-top: 40px;
    font-weight: bold;
    background: linear-gradient(135deg, #FFFFFF, #E8F4F8, #D4E8F5, #C8E0F0, #FFFFFF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    letter-spacing: 0.03em;
    position: relative;
    line-height: 1.1;
    padding: 20px 20px 20px 0;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    animation: subtle-color-shift 8s ease-in-out infinite;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.logo.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes subtle-color-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #B8D4E6 30%, #E8F4F8 60%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    transform: scale(1.02);
}

.top-nav {
    display: flex;
    gap: 35px;
    align-items: center;
    padding-top: 0;
}

.top-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-nav a:not(.btn-donate) {
    padding: 8px 4px;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(184, 212, 230, 0.8));
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.4);
}

.top-nav a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.top-nav .btn-donate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-block;
}

.top-nav .btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-nav .btn-donate::after {
    display: none;
}

.top-nav .btn-donate:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.top-nav .btn-donate:hover::before {
    opacity: 1;
}

.top-nav .btn-donate:active {
    transform: translateY(0) scale(0.98);
}

/* ========================================
   Vertical Hour Navigation (Left Sidebar)
   ======================================== */

.hour-nav {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(100vh - 120px);
    width: 280px;
    padding: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);


    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

/* Progress indicator */
.hour-nav::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: var(--nav-progress, 8.33%);
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);

    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6),
        0 0 30px rgba(16, 185, 129, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Custom scrollbar for nav */
.hour-nav::-webkit-scrollbar {
    width: 4px;
}

.hour-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.hour-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.hour-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hour-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: transparent;

    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.hour-item:focus {
    outline: none;
}

/* Digital alarm clock display */
.hour-item::before {
    content: attr(data-icon) ' ' attr(data-time);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    height: 26px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    padding: 0 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.hour-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.hour-item:hover::before {
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(16, 185, 129, 0.2);
}

.hour-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: #10b981;
    border-left-width: 3px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Smooth scroll behavior for active item */
.hour-item.active {
    scroll-margin: 20px;
}

.hour-item.active::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

/* Hide the separate icon span since it's now in ::before */
.hour-icon {
    display: none;
}

/* Hour-based icon opacity (simulating day/night cycle) */
/* Using opacity property directly instead of filter */
.hour-item[data-hour="5"] {
    opacity: 0.5;
}

/* Dawn */
.hour-item[data-hour="7"] {
    opacity: 0.65;
}

/* Early morning */
.hour-item[data-hour="9"] {
    opacity: 0.75;
}

/* Morning */
.hour-item[data-hour="11"] {
    opacity: 0.85;
}

/* Late morning */
.hour-item[data-hour="13"] {
    opacity: 0.9;
}

/* Noon */
.hour-item[data-hour="15"] {
    opacity: 0.85;
}

/* Afternoon */
.hour-item[data-hour="17"] {
    opacity: 0.75;
}

/* Late afternoon */
.hour-item[data-hour="19"] {
    opacity: 0.6;
}

/* Dusk */
.hour-item[data-hour="21"] {
    opacity: 0.7;
}

/* Evening */
.hour-item[data-hour="23"] {
    opacity: 0.8;
}

/* Night */
.hour-item[data-hour="1"] {
    opacity: 0.85;
}

/* Midnight */
.hour-item[data-hour="3"] {
    opacity: 0.65;
}

/* Pre-dawn */

/* Active and hover states override opacity */
.hour-item.active,
.hour-item:hover {
    opacity: 1 !important;
}

.hour-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.hour-time {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0;
    max-width: 100%;
}

.hour-label {
    display: none;
}

.hour-item:hover .hour-time {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hour-item.active .hour-time {
    color: rgba(255, 255, 255, 1);
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
}

/* Tooltip for nav items */
.hour-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    font-weight: var(--font-weight-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ========================================
   Fixed Sky Background
   ======================================== */

.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: #1a1a2e;
}

.sky-timelapse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sky-timelapse img.sky-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 1.2s ease-in-out;
}

.sky-timelapse img.sky-image.active {
    z-index: 1;
}

/* ========================================
   Hour Sections (24 sections, 100vh each)
   ======================================== */

.hour-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 80px 20px;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: visible !important;
}

/* Ensure fullpage sections don't clip */
.section {
    overflow: visible !important;
}

html {
    overflow-x: visible !important;
}

#fullpage {
    overflow: visible !important;
}

/* Force all wrappers to allow overflow */
.fp-section,
.fp-tableCell {
    overflow: visible !important;
}

.hour-section.leaving {
    opacity: 0.3;
    transform: scale(0.95);
}

.hour-section.entering .hour-content {
    animation: slideUpFade 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hour-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    animation: fadeInUp 1s ease;
    transform-origin: center;
    overflow: visible !important;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 60px 50px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 10px;
    opacity: 1;
    color: white;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-subquote {
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 25px;
    opacity: 1;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.5);
}

.hour-label-wrapper {
    display: none !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 500px;
}

.hour-label-wrapper.active {
    display: flex !important;
}

.hour-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 420px;
    text-align: center;
    white-space: nowrap;
}

.section-nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 101;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.section-nav-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Tooltip on hover */
.section-nav-arrow::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-nav-arrow:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.section-nav-arrow svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Section Content Styling
   ======================================== */

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.4);
}

.section-text {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.mission-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* ========================================
   Polaroid Photo Styling
   ======================================== */

.polaroid {
    background: #f8f6f1;
    padding: 16px 16px 50px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 15px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin: 10px 8px 30px 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 280px;
}

/* Make hour-content wrap polaroids in a flex row */
.hour-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

/* Text elements take full width */
.hour-content>h1,
.hour-content>h2,
.hour-content>p,
.hour-content>.hero-title,
.hour-content>.hero-subtitle,
.hour-content>.hero-quote,
.hour-content>.hero-subquote,
.hour-content>.section-title,
.hour-content>.section-text,
.hour-content>.btn-primary,
.hour-content>.btn-donate-large,
.hour-content>.mission-icon {
    flex: 0 0 100%;
    text-align: center;
}

/* Polaroids stay in one row */
.hour-content>.polaroid {
    flex: 1 1 auto;
}

/* Random varied sizes for each section's polaroids - smaller overall */
/* Hour 05 - 2 polaroids */
#hour-05 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(52% - 20px);
    max-width: 260px;
}

#hour-05 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(48% - 20px);
    max-width: 240px;
}

/* Hour 07 - 2 polaroids */
#hour-07 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(42% - 20px);
    max-width: 220px;
}

#hour-07 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(58% - 20px);
    max-width: 280px;
}

/* Hour 09 - 2 polaroids */
#hour-09 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(46% - 20px);
    max-width: 230px;
}

#hour-09 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(54% - 20px);
    max-width: 260px;
}

/* Hour 11 - 3 polaroids */
#hour-11 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(32% - 20px);
    max-width: 190px;
}

#hour-11 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(24% - 20px);
    max-width: 160px;
}

#hour-11 .polaroid:nth-of-type(3) {
    flex: 0 1 calc(44% - 20px);
    max-width: 230px;
}

/* Hour 13 - 3 polaroids */
#hour-13 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(38% - 20px);
    max-width: 200px;
}

#hour-13 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(28% - 20px);
    max-width: 170px;
}

#hour-13 .polaroid:nth-of-type(3) {
    flex: 0 1 calc(34% - 20px);
    max-width: 190px;
}

/* Hour 15 - 3 polaroids */
#hour-15 .polaroid:nth-of-type(1) {
    flex: 0 1 calc(30% - 20px);
    max-width: 180px;
}

#hour-15 .polaroid:nth-of-type(2) {
    flex: 0 1 calc(42% - 20px);
    max-width: 220px;
}

#hour-15 .polaroid:nth-of-type(3) {
    flex: 0 1 calc(28% - 20px);
    max-width: 170px;
}

/* Default for any other sections with 2 polaroids */
.hour-content:has(.polaroid:nth-of-type(2):not(:nth-of-type(3))) .polaroid:nth-of-type(1) {
    flex: 0 1 calc(48% - 20px);
    max-width: 240px;
}

.hour-content:has(.polaroid:nth-of-type(2):not(:nth-of-type(3))) .polaroid:nth-of-type(2) {
    flex: 0 1 calc(52% - 20px);
    max-width: 260px;
}

/* Default for any other sections with 3 polaroids */
.hour-content:has(.polaroid:nth-of-type(3):not(:nth-of-type(4))) .polaroid:nth-of-type(1) {
    flex: 0 1 calc(35% - 20px);
    max-width: 200px;
}

.hour-content:has(.polaroid:nth-of-type(3):not(:nth-of-type(4))) .polaroid:nth-of-type(2) {
    flex: 0 1 calc(30% - 20px);
    max-width: 180px;
}

.hour-content:has(.polaroid:nth-of-type(3):not(:nth-of-type(4))) .polaroid:nth-of-type(3) {
    flex: 0 1 calc(35% - 20px);
    max-width: 200px;
}

/* 4+ polaroids */
.hour-content:has(.polaroid:nth-of-type(4)) .polaroid {
    flex: 0 1 calc(25% - 20px);
    max-width: 170px;
}

/* 5+ polaroids */
.hour-content:has(.polaroid:nth-of-type(5)) .polaroid {
    flex: 0 1 calc(20% - 20px);
    max-width: 150px;
}

/* 6+ polaroids */
.hour-content:has(.polaroid:nth-of-type(6)) .polaroid {
    flex: 0 1 calc(16.666% - 20px);
    max-width: 130px;
}

/* Unique random rotations for each section's polaroids */
/* Hour 05 */
#hour-05 .polaroid:nth-of-type(1) {
    transform: rotate(-4.2deg);
}

#hour-05 .polaroid:nth-of-type(2) {
    transform: rotate(3.5deg);
}

/* Hour 07 */
#hour-07 .polaroid:nth-of-type(1) {
    transform: rotate(2.8deg);
}

#hour-07 .polaroid:nth-of-type(2) {
    transform: rotate(-3.1deg);
}

/* Hour 09 */
#hour-09 .polaroid:nth-of-type(1) {
    transform: rotate(-2.5deg);
}

#hour-09 .polaroid:nth-of-type(2) {
    transform: rotate(4.7deg);
}

/* Hour 11 */
#hour-11 .polaroid:nth-of-type(1) {
    transform: rotate(3.9deg);
}

#hour-11 .polaroid:nth-of-type(2) {
    transform: rotate(-5.1deg);
}

#hour-11 .polaroid:nth-of-type(3) {
    transform: rotate(1.8deg);
}

/* Hour 13 */
#hour-13 .polaroid:nth-of-type(1) {
    transform: rotate(-3.7deg);
}

#hour-13 .polaroid:nth-of-type(2) {
    transform: rotate(4.4deg);
}

#hour-13 .polaroid:nth-of-type(3) {
    transform: rotate(-1.9deg);
}

/* Hour 15 */
#hour-15 .polaroid:nth-of-type(1) {
    transform: rotate(2.3deg);
}

#hour-15 .polaroid:nth-of-type(2) {
    transform: rotate(-4.6deg);
}

#hour-15 .polaroid:nth-of-type(3) {
    transform: rotate(3.2deg);
}

/* Hour 17 */
#hour-17 .polaroid:nth-of-type(1) {
    transform: rotate(-2.9deg);
}

#hour-17 .polaroid:nth-of-type(2) {
    transform: rotate(5.3deg);
}

#hour-17 .polaroid:nth-of-type(3) {
    transform: rotate(-3.4deg);
}

/* Hour 19 */
#hour-19 .polaroid:nth-of-type(1) {
    transform: rotate(4.1deg);
}

#hour-19 .polaroid:nth-of-type(2) {
    transform: rotate(-2.2deg);
}

#hour-19 .polaroid:nth-of-type(3) {
    transform: rotate(3.6deg);
}

/* Hour 21 */
#hour-21 .polaroid:nth-of-type(1) {
    transform: rotate(-4.8deg);
}

#hour-21 .polaroid:nth-of-type(2) {
    transform: rotate(2.7deg);
}

#hour-21 .polaroid:nth-of-type(3) {
    transform: rotate(-1.5deg);
}

/* Hour 23 */
#hour-23 .polaroid:nth-of-type(1) {
    transform: rotate(3.3deg);
}

#hour-23 .polaroid:nth-of-type(2) {
    transform: rotate(-3.8deg);
}

#hour-23 .polaroid:nth-of-type(3) {
    transform: rotate(5.2deg);
}

/* Hour 01 */
#hour-01 .polaroid:nth-of-type(1) {
    transform: rotate(-3.3deg);
}

#hour-01 .polaroid:nth-of-type(2) {
    transform: rotate(4.5deg);
}

#hour-01 .polaroid:nth-of-type(3) {
    transform: rotate(-2.1deg);
}

/* Hour 03 */
#hour-03 .polaroid:nth-of-type(1) {
    transform: rotate(2.6deg);
}

#hour-03 .polaroid:nth-of-type(2) {
    transform: rotate(-4.9deg);
}

#hour-03 .polaroid:nth-of-type(3) {
    transform: rotate(3.7deg);
}

/* Fallback rotations for any other polaroids */
.polaroid:nth-of-type(1) {
    transform: rotate(-3.5deg);
}

.polaroid:nth-of-type(2) {
    transform: rotate(2.8deg);
}

.polaroid:nth-of-type(3) {
    transform: rotate(-1.6deg);
}

.polaroid:nth-of-type(4) {
    transform: rotate(4.2deg);
}

.polaroid:nth-of-type(5) {
    transform: rotate(-2.9deg);
}

.polaroid:nth-of-type(6) {
    transform: rotate(1.7deg);
}

/* Enhanced hover effect - straightens and lifts */
.polaroid:hover {
    transform: rotate(0deg) scale(1.08) translateY(-12px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.polaroid:hover img {
    filter: sepia(0) brightness(1.05) contrast(1.05) saturate(1.1);
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    border-radius: 1px;
    background: #e0e0e0;
    object-fit: cover;
    filter: sepia(0.15) brightness(1.05) contrast(0.95) saturate(0.9);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.08);
    transition: filter 0.4s ease;
}

.polaroid-caption {
    display: none;
}





.event-price {
    font-weight: var(--font-weight-semibold);
    color: white;
    font-size: 1.3rem;
    margin: 20px 0;
}

.btn-donate-large {
    display: block;
    width: fit-content;
    text-align: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 40px auto 50px auto;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    font-family: var(--font-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-donate-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-donate-large::after {
    content: '';
}

.btn-donate-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4),
        0 8px 18px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-donate-large:hover::before {
    left: 100%;
}

.btn-donate-large:hover::after {
    /* No arrow animation needed */
}

.btn-donate-large:active {
    transform: translateY(-3px) scale(1.01);
    transition: all 0.1s ease;
}


/* ========================================
   Footer
   ======================================== */

.footer-section-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
}

.footer {
    background: transparent;
    color: white;
    padding: 60px 0 30px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .polaroid {
        padding: 12px 12px 36px 12px;
        margin: 8px 4px 24px 4px;
    }

    /* 2 polaroids on mobile - wider */
    .hour-content:has(.polaroid:nth-of-type(2):not(:nth-of-type(3))) .polaroid {
        flex: 0 1 calc(50% - 12px);
        max-width: none;
    }

    /* 3+ polaroids on mobile - fit 3 per row */
    .hour-content:has(.polaroid:nth-of-type(3)) .polaroid {
        flex: 0 1 calc(33.333% - 12px);
        max-width: none;
    }

    .hour-section {
        padding: 100px 20px 80px 20px;
    }

    .hour-content {
        max-width: 100%;
        padding: 40px 30px;
        border-radius: 20px;
    }

    .top-header {
        padding: 0 16px;
        height: 70px;
    }

    .logo {
        font-size: 2rem;
        margin-top: 30px;
        padding: 18px 12px 18px 0;
        letter-spacing: 0.05em;
    }

    .top-nav {
        gap: 12px;
    }

    .top-nav a {
        font-size: 0.8rem;
    }

    .top-nav a:not(.btn-donate) {
        display: none;
    }

    .btn-donate {
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    /* Hide left navigation on mobile */
    .hour-nav {
        display: none;
    }

    .hour-item {
        padding: 8px 6px;
        margin: 0;
        flex-direction: column;
        gap: 0;
        justify-content: center;
        align-items: center;
        border-left: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    .hour-item:last-child {
        border-bottom: none;
    }

    .hour-item::before {
        min-width: 100%;
        height: 24px;
        font-size: 0.7rem;
        padding: 0 6px;
        border-radius: 6px;
    }

    .hour-time {
        display: none;
    }

    .hour-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .hour-item.active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
        border-bottom-color: #10b981;
        border-bottom-width: 3px;
    }

    /* Hide tooltip on mobile */
    .hour-item::after {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-quote {
        font-size: 1rem;
        margin: 20px 0;
        line-height: 1.7;
    }

    .hero-subquote {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .section-text {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .btn-donate-large {
        font-size: 1.1rem;
        padding: 18px 45px;
        margin: 30px auto 40px auto;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary {
        min-height: 54px;
        padding: 18px 45px;
        font-size: 1.05rem;
    }

    .hour-label-wrapper {
        width: 90%;
        max-width: 400px;
        bottom: 80px;
        gap: 12px;
    }

    .hour-label {
        font-size: 0.7rem;
        padding: 10px 18px;
        width: auto;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .section-nav-arrow {
        width: 44px;
        height: 44px;
        opacity: 0.85;
    }

    .section-nav-arrow:active {
        opacity: 1;
        transform: scale(0.95);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hour-section {
        padding: 90px 16px 70px 16px;
    }

    .hour-content {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .logo {
        font-size: 1.75rem;
        margin-top: 28px;
        padding: 16px 10px 16px 0;
    }

    .hour-nav {
        width: 54px;
        left: 8px;
    }

    .polaroid {
        padding: 10px 10px 30px 10px;
        margin: 6px 3px 20px 3px;
    }

    /* 2 polaroids on small phones */
    .hour-content:has(.polaroid:nth-of-type(2):not(:nth-of-type(3))) .polaroid {
        flex: 0 1 calc(50% - 10px);
        max-width: none;
    }

    /* 3+ polaroids on small phones */
    .hour-content:has(.polaroid:nth-of-type(3)) .polaroid {
        flex: 0 1 calc(33.333% - 10px);
        max-width: none;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .hero-quote {
        font-size: 0.95rem;
        margin: 16px 0;
    }

    .hero-subquote {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.65rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .section-text {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .btn-donate-large {
        font-size: 1rem;
        padding: 16px 36px;
        min-height: 52px;
    }

    .btn-primary {
        min-height: 52px;
        padding: 16px 36px;
    }

    .hour-label-wrapper {
        bottom: 70px;
        gap: 10px;
    }

    .hour-label {
        font-size: 0.65rem;
        padding: 10px 16px;
        line-height: 1.4;
    }

    .section-nav-arrow {
        width: 44px;
        height: 44px;
    }

    .section-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   Floating Audio Player
   ======================================== */

.audio-player {
    position: fixed;
    bottom: 30px;
    right: -200px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(74, 144, 226, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-player:hover {
    right: 30px;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 0;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.audio-btn:active {
    transform: scale(0.95);
}

.audio-info {
    color: white;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Mobile adjustments */
@media (max-width: 768px) {

    /* Hide audio player on mobile */
    .audio-player {
        display: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */

*:focus {
    outline: none;
}

*:focus-visible {
    outline: none;
}

/* Hide fullpage.js watermark */
#fp-nav,
.fp-watermark {
    display: none !important;
}

/* Fix fp-overflow rendering issues */
.fp-overflow {
    overflow: visible !important;
    pointer-events: none !important;
}

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
