/* Soraya Template Exact Styles */
:root {
    --primary-bg: #EAE2D7;
    --secondary-bg: #F5EFE7;
    --text-dark: #2E2E2E;
    --text-medium: #6B6B6B;
    --text-light: #9A826B;
    --white: #FFFFFF;
    --serif: 'Imbue', serif;
    --sans: 'Jost', sans-serif;
    --easing: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Prevent animations until after loading screen transition */
body:not(.loading-transition-complete) .hero-content * {
    animation-play-state: paused !important;
}

body.loading-transition-complete {
    /* Remove body fade to prevent flash; allow section/text to animate themselves */
}

body.loading-transition-complete .hero-content * {
    animation-play-state: running !important;
}

/* Editorial section dividers (soft gradient hairlines) */
section { position: relative; }
section:not(.hero-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
    opacity: 0.6;
    pointer-events: none;
}

@keyframes pageReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Embedded Map Section */
.location-map-embedded {
    padding: 6rem 2rem;
}
.location-map-embedded .places-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.leaflet-map {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.places-list-card {
    background: var(--white);
    border: 1px solid #00000012;
    border-radius: 16px;
    padding: 1rem;
}
.places-list-card .list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.places-list {
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
}
.place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #0000000f;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    background: #fff;
}
.place-item:hover { background: #faf9f7; }
.place-item .meta { color: var(--text-medium); font-size: 12px; }

@media (max-width: 900px) {
    .location-map-embedded .places-map-grid { grid-template-columns: 1fr; }
    .leaflet-map { height: 360px; }
}

/* Navigation - Exact Soraya Style with mix-blend-mode */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: normal; /* ensure white logo stays white */
}

.nav-logo {
    font-family: var(--serif);
    font-size: 2rem;
    color: #ffffff !important; /* force white */
    text-decoration: none;
    font-weight: 400;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: 50% 50%;
    transition: transform 0.5s var(--easing);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-cta {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--text-dark);
}

/* Hero Section - Exact Soraya Style */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

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

/* Subtle vignette */
.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 0; /* under hero content, above image */
}

.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Apply to all background images */
.hero-bg-image {
    will-change: transform;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Adjust casual photo positioning - move UP to show faces better - IMPORTANT: Must come after general rule */
.background-slideshow .hero-bg-image[src="public/casual-photo.jpg"] {
    object-position: center 20% !important; /* Move the focal point way UP to show your faces */
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(234, 226, 215, 0.1);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 1;
}

.hero-date {
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 300;
    opacity: 0;
    animation: slideFromLeft 1s var(--easing) 0.3s forwards;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-location {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0;
    animation: slideFromRight 1s var(--easing) 0.5s forwards;
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Circular Text Animation */
.circular-text-container {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 55%;
    left: 20%;
    transform: translate(0, -50%);
    opacity: 0;
    z-index: 0;
    animation: fadeInCircular 1.2s var(--easing) 1.2s forwards, rotate 25s linear 3s infinite;
}

@keyframes fadeInCircular {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes rotate {
    from { 
        transform: translate(0, -50%) rotate(0deg);
    }
    to { 
        transform: translate(0, -50%) rotate(360deg);
    }
}


.circular-text {
    width: 100%;
    height: 100%;
}

.circular-text-path {
    fill: var(--white);
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--sans);
}

/* Floating Hearts Background */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: rgba(154, 130, 107, 0.3);
    font-size: 20px;
    animation: floatUp 15s linear infinite;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkles Effect */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Hero Gradient */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(234, 226, 215, 0.2) 0%,
        rgba(154, 130, 107, 0.1) 50%,
        rgba(46, 46, 46, 0.3) 100%
    );
    z-index: 1;
}

/* Hero Names - Enhanced Version */
.hero-names-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 2;
}

/* Ampersand is now inline with names, no need for connector styles */

/* Enhanced Circular Text */
.circular-text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.distance-miles {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 300;
    display: block;
    line-height: 1;
}

.distance-label {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--white);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Hero Subtitle */
.hero-subtitle {
    font-family: var(--script);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 0.5px;
    margin: 2rem 0;
    opacity: 0;
    text-shadow: 0 1px 12px rgba(0,0,0,0.25);
    animation: fadeInUp 1s var(--easing) 1.5s forwards;
}

/* Mini countdown under subtitle */
.mini-countdown {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    letter-spacing: 1.2px;
    margin-top: 0.25rem;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
    opacity: 0;
    animation: fadeInUp 1s var(--easing) 1.9s forwards;
}

/* Hero CTA Buttons */
.hero-cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s var(--easing) 1.8s forwards;
}

.hero-cta {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s var(--easing);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.3s var(--easing);
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    color: var(--text-dark);
}

.hero-cta.secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Marquee (behind names) */
.hero-marquee {
    position: absolute;
    left: 0;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    opacity: 0.45;
    mix-blend-mode: soft-light;
}
.hero-marquee-track {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
    font-family: var(--sans);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.8rem;
    animation: heroTicker 40s linear infinite;
}
@keyframes heroTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.7;
    animation: fadeInUp 1s var(--easing) 2s forwards;
    text-align: center;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
}

.scroll-indicator span {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--serif);
    font-size: 5rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
    opacity: 0;
}

.hero-name-left {
    animation: slideFromLeft 1s var(--easing) 0.8s forwards;
}

.hero-name-right {
    animation: slideFromRight 1s var(--easing) 1s forwards;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.hero-ampersand {
    font-family: var(--script);
    font-size: 4.2rem;
    color: var(--white);
    font-weight: 400;
    margin: 0 1.2rem;
    opacity: 0;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
    animation: fadeInScale 0.8s var(--easing) 1.2s forwards;
    align-self: center;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Distance Section */
.distance-section {
    background: var(--white);
    padding: 3rem 0;
}

.distance-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

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

.stat-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-dark);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: transform 0.3s var(--easing);
}

.stat-item {
    opacity: 0;
    animation: slideUp 0.8s var(--easing) forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.stat-divider {
    color: var(--text-light);
    opacity: 0.5;
}

/* Enhanced Distance Stats */
.stat-progress {
    width: 100%;
    height: 2px;
    background: rgba(154, 130, 107, 0.2);
    margin-top: 0.5rem;
    border-radius: 1px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--text-light), var(--text-dark));
    border-radius: 1px;
    animation: progressFill 2s var(--easing) forwards;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
}

.infinite-progress {
    background: transparent;
}

.infinite-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-light), transparent);
    animation: infiniteMove 3s linear infinite;
}

@keyframes infiniteMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Love Quote Banner */
.love-quote-banner {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-bg), var(--primary-bg));
}

.love-quote-banner p {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0;
    animation: fadeIn 1s var(--easing) 0.5s forwards;
}

/* Event Sections - Exact Soraya Layout */
.event-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    background: var(--primary-bg);
    overflow: hidden;
}

.event-left {
    direction: ltr;
}

.event-right {
    direction: rtl;
}

.event-right .event-content {
    direction: ltr;
}

.event-image {
    position: relative;
    overflow: hidden;
}

.event-image {
    position: relative;
    overflow: hidden;
}

.event-image {
    opacity: 0;
    animation: fadeInImage 1s var(--easing) 0.5s forwards;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s var(--easing);
}

.event-section:hover .event-image img {
    transform: scale(1);
}

.event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--primary-bg);
    opacity: 0;
    animation: slideInContent 1s var(--easing) 0.3s forwards;
}

.event-left .event-content {
    animation-name: slideFromLeftContent;
}

.event-right .event-content {
    animation-name: slideFromRightContent;
}

@keyframes slideFromLeftContent {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRightContent {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-title {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
}

.event-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--text-light);
    animation: typewriter 2s steps(40) forwards;
    animation-delay: 0.5s;
}

@keyframes typewriter {
    to {
        width: 100%;
    }
}

.event-time {
    font-family: var(--sans);
    color: var(--text-medium);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.event-location {
    font-family: var(--sans);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-address {
    font-family: var(--serif);
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}

.event-link {
    display: inline-block;
    font-family: var(--sans);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 0.25rem;
    transition: all 0.3s var(--easing);
    text-transform: uppercase;
    position: relative;
}

.event-link::before {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s var(--easing);
}

.event-link:hover::before {
    right: -25px;
    opacity: 1;
}

.event-link:hover {
    opacity: 0.6;
}

/* Announcement Banner */
.announcement-banner {
    background: var(--text-dark);
    padding: 4rem 2rem;
    text-align: center;
}

.announcement-content p {
    font-family: var(--sans);
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s var(--easing) 0.2s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.announcement-content h3 {
    font-family: var(--serif);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--white), var(--text-light), var(--white));
    background-clip: text;
    -webkit-background-clip: text;
    animation: gradientShift 3s linear infinite;
    background-size: 200% auto;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Distance Love Section */
.distance-love-section {
    padding: 6rem 3rem;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--easing) 0.2s forwards;
    position: relative;
    transition: letter-spacing 0.8s var(--easing);
}
.section-header.visible h2 {
    letter-spacing: -2px;
}
.section-header h2::before,
.section-header h2::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 0.6rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path d='M4 14c4-1 6-3 8-8 2 5 4 7 8 8-3 1-5 2-8 6-3-4-5-5-8-6z' fill='%239A826B' fill-opacity='0.7'/></svg>");
    transform: translateY(-2px) rotate(-6deg);
}

/* Decorative SVG ornament below headers (large screens) */
.section-header::after {
    content: '';
    display: block;
    width: 96px;
    height: 10px;
    margin: 0.75rem auto 0;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.04));
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='10' viewBox='0 0 100 10'><path d='M2,5 C20,0 80,10 98,5' stroke='%239A826B' stroke-width='1.2' fill='none' stroke-linecap='round'/></svg>");
}
@media (max-width: 1023px) {
    .section-header h2::before,
    .section-header h2::after { display: none; }
    .section-header::after { display: none; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.section-header p {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

.universities-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.university-block {
    background: var(--secondary-bg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s var(--easing);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.university-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--text-light) 0%, transparent 70%);
    transition: all 0.5s var(--easing);
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.university-block:hover::before {
    width: 300px;
    height: 300px;
}

.university-block:hover {
    background: var(--primary-bg);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.university-block {
    opacity: 0;
    transition: all 1s var(--easing);
}

.university-block.ucsd {
    transform: translateX(-200px);
}

.university-block.uh {
    transform: translateX(200px);
}

.university-block.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.uni-content h3 {
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.uni-person {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 300;
}

.local-time {
    font-family: var(--sans);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.local-time::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-light), transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.coordinates {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.connection-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heartbeat-line {
    width: 200px;
}

.heartbeat-path {
    stroke-dasharray: 5, 5;
    animation: dash 2s linear infinite;
    transition: stroke 0.3s var(--easing);
}

.connection-visual:hover .heartbeat-path {
    stroke: #9A826B;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Story Preview Section */
.story-preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--primary-bg);
}

.story-preview-image {
    position: relative;
    overflow: hidden;
}

.story-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-preview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.story-preview-content h2 {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
    opacity: 0;
    animation: slideFromLeft 0.8s var(--easing) 0.2s forwards;
}

.story-preview-content blockquote {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
    opacity: 0;
    animation: quoteReveal 1.5s var(--easing) 0.5s forwards;
}

.story-preview-content blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.2;
}

@keyframes quoteReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-link-btn {
    display: inline-block;
    font-family: var(--sans);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border: 1px solid var(--text-dark);
    padding: 0.75rem 2rem;
    transition: all 0.3s var(--easing);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.story-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    transition: left 0.3s var(--easing);
    z-index: -1;
}

.story-link-btn:hover {
    color: var(--white);
}

.story-link-btn:hover::before {
    left: 0;
}

/* Features Section */
.features-section {
    padding: 6rem 3rem;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    cursor: pointer;
}

.features-grid .feature-card {
    opacity: 0;
    animation: slideInFromSide 0.8s var(--easing) forwards;
}

.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(3) {
    animation-name: slideFromLeft;
    animation-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(4) {
    animation-name: slideFromRight;
    animation-delay: 0.2s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-number {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.3s var(--easing);
}

.feature-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.feature-card h3 {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-card p {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Ticker Banner - Fixed Infinite Scroll */
.ticker-banner {
    background: var(--text-dark);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    animation: ticker 20s linear infinite;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-right: 50px;
}

.ticker-content span {
    display: inline-block;
    padding: 0 0.5rem;
}

.ticker-banner:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(-100%);
    }
}

.ticker-dot {
    margin: 0 1rem;
    opacity: 0.5;
}

/* Simple Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F5EFE7 0%, #EAE2D7 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(0);
}

/* Simple loader styles */
.loader-content {
    text-align: center;
    font-family: var(--sans);
}

.loader-messages {
    margin-bottom: 2rem;
}

.message {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.message-1 {
    animation: fadeInUp 1s ease 0.5s forwards;
}

.message-2 {
    animation: fadeInUp 1s ease 1.5s forwards;
}

.tap-hint {
    font-size: 0.9rem;
    color: var(--text-medium);
    opacity: 0;
    animation: fadeInUp 1s ease 3s forwards;
    cursor: pointer;
}

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

/* Quick loader for subsequent visits */
.quick-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 12000;
}
.quick-loader.active { display: flex; animation: qlIn 0.2s var(--easing); }
.quick-loader.hidden { animation: qlOut 0.25s var(--easing) forwards; }
.dots { display: inline-flex; gap: 8px; }
.dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-dark);
    opacity: 0.8;
    animation: dotPulse 0.9s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.1s; }
.dots span:nth-child(3) { animation-delay: 0.2s; }
@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}
@keyframes qlOut { to { opacity: 0; transform: scale(0.98); } }
@keyframes qlIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.loading-screen.clickable {
    cursor: pointer;
}

.loading-screen.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.loading-text-corner {
    position: absolute;
    top: 30px;
    left: 40px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.casual-text {
    margin: 0;
    opacity: 0;
    animation: casualFadeIn 0.5s ease forwards;
}

.casual-text.delay-1 {
    animation-delay: 1s;
}

.casual-text.delay-2 {
    animation-delay: 2.5s;
}

.casual-text.delay-3 {
    animation-delay: 3.5s;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
}

.casual-text.delay-3::after {
    content: '_';
    animation: cursorBlink 1s step-end infinite;
    animation-delay: 4s;
}

/* Subtle pulse after text appears */
.loading-screen.clickable .casual-text.delay-3 {
    animation: casualFadeIn 0.5s ease forwards, subtlePulse 2s ease-in-out infinite;
    animation-delay: 3.5s, 4.5s;
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes casualFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

/* Add subtle hover hint after a delay */
.loading-screen::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    opacity: 0;
    animation: hintAppear 0.5s ease forwards;
    animation-delay: 5s;
}

@keyframes hintAppear {
    to {
        opacity: 0.3;
    }
}

/* Footer */
.footer {
    background: var(--primary-bg);
    padding: 3rem;
    text-align: center;
}

.footer-content p {
    font-family: var(--sans);
    color: var(--text-medium);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Enhanced Location Map Section - Inspired by Reference Sites */
.location-map-section {
    padding: 6rem 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.location-map-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(154, 130, 107, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(180deg); }
}

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

/* Interactive Map Canvas */
.interactive-map-wrapper {
    margin-bottom: 3rem;
}

.map-canvas {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.map-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(234, 226, 215, 0.4) 100%);
    pointer-events: none;
}

/* Map Pins */
.map-pin {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s var(--easing);
}

.san-diego-pin {
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.houston-pin {
    right: 20%;
    left: auto;
    top: 50%;
    transform: translate(50%, -50%);
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.houston-pin:hover {
    transform: translate(50%, -50%) scale(1.1);
}

.pin-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.pin-marker {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pin-icon {
    display: block;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
}

.pin-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 46, 46, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s var(--easing);
}

.map-pin:hover .pin-label {
    opacity: 1;
}

.pin-label strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.pin-label span {
    opacity: 0.8;
    font-size: 0.65rem;
}

/* Connection SVG */
.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flight-path {
    opacity: 0.5;
}

/* Location Cards Grid */
.location-cards-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.location-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--easing);
    position: relative;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.card-eesha::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.card-subtitle {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-body {
    padding: 1.5rem;
}

.time-display,
.weather-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.time-label,
.weather-icon {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.time-value {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 300;
}

.weather-display {
    border: none;
}

.weather-icon {
    font-size: 2rem;
}

.weather-info {
    text-align: right;
}

.weather-info span {
    display: block;
}

.weather-info span:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.weather-info span:last-child {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
}

.coordinates {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Distance Display */
.distance-display {
    text-align: center;
    padding: 2rem;
}

.distance-number-large {
    margin-bottom: 2rem;
}

.distance-number-large .number {
    display: block;
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.distance-number-large .unit {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-medium);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.distance-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.detail-icon {
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 3rem;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--easing);
}
/* Shine effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: left 0.6s var(--easing);
    pointer-events: none;
}
.gallery-item:hover::before {
    left: 125%;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--easing);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s var(--easing);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: lightboxIn 0.24s var(--easing);
}
@keyframes lightboxIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Countdown Section */
.countdown-section {
    padding: 6rem 3rem;
    background: var(--text-dark);
    text-align: center;
    color: var(--white);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

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

.countdown-number {
    font-family: var(--serif);
    font-size: 4rem;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.countdown-cta {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--easing);
}

.countdown-cta:hover {
    background: var(--white);
    color: var(--text-dark);
}

/* Enhanced Features */
.feature-card.interactive {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card.interactive::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.5s var(--easing);
}

.feature-card.interactive:hover::before {
    left: 100%;
}

.feature-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--text-dark));
    border-radius: 50%;
    opacity: 0.2;
}

.feature-action {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--easing);
}

.feature-card.interactive:hover .feature-action {
    opacity: 1;
    transform: translateY(0);
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: -500px;
    right: 2rem;
    width: 350px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.3s var(--easing);
    max-height: 500px;
    overflow-y: auto;
}

.music-player.active {
    bottom: 2rem;
}

.music-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.now-playing {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s var(--easing);
}

.player-controls button:hover {
    background: var(--primary-bg);
}

.progress-bar {
    height: 4px;
    background: var(--primary-bg);
    margin: 0 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--text-dark);
    width: 30%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
}

.playlist-item {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s var(--easing);
}

.playlist-item:hover,
.playlist-item.active {
    background: var(--primary-bg);
}

/* Messages Section */
.messages-section {
    padding: 6rem 3rem;
    background: var(--primary-bg);
}

.messages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.message-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--easing) forwards;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-bg);
    font-family: var(--serif);
    z-index: 1;
}

.message-text {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.message-text p {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.add-message-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.message-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--primary-bg);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 1rem;
    transition: border-color 0.3s var(--easing);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-message {
    background: var(--text-dark);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s var(--easing);
}

.submit-message:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

/* Message Success Overlay */
.message-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.message-success.active {
    display: flex;
}

.success-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide hero marquee and circle on mobile to reduce visual clutter */
    .circular-text-container { display: none; }
    .hero-marquee { display: none; }
    .nav-menu {
        display: none;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-cta-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-section,
    .story-preview-section {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .universities-container,
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: auto;
        grid-row: auto;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .music-player {
        width: calc(100% - 2rem);
        right: 1rem;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
}

/* --- Enhancements: Design tokens, grain, responsive nav, mobile menu, motion safety --- */
:root {
    --accent: #E6C7B5;
    --rose-100: #F5EFE7;
    --rose-200: #EDE4DA;
    --charcoal: #1A1A1A;
    --script: 'Petit Formal Script', cursive;
}

/* Subtle page grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Navigation: scrolled and mobile */
.navigation {
    transition: background 0.3s var(--easing), border-color 0.3s var(--easing), padding 0.3s var(--easing);
}
.navigation.scrolled {
    mix-blend-mode: normal;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 3rem;
}
.navigation.scrolled .nav-menu a,
.navigation.scrolled .nav-cta {
    color: var(--text-dark);
}
/* Keep logo white even when scrolled */
.navigation.scrolled .nav-logo { color: #ffffff !important; }
.navigation.scrolled .nav-cta {
    border-color: var(--text-dark);
}
.navigation.scrolled .nav-menu a::after {
    background: var(--text-dark);
}
.nav-dark .nav-menu a::after {
    background: var(--text-dark);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    background: transparent;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing), background 0.3s var(--easing);
}
.navigation.scrolled .nav-toggle { border-color: rgba(0,0,0,0.4); }
.navigation.scrolled .nav-toggle span { background: var(--text-dark); }

/* Ensure toggle is visible on light navs */
.nav-dark .nav-toggle { border-color: rgba(0,0,0,0.4); }
.nav-dark .nav-toggle span { background: var(--text-dark); }

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
}

/* Toggle to X when open */
.navigation.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.navigation.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.navigation.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: height 0.35s var(--easing), padding 0.35s var(--easing);
    padding: 0 1rem;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--sans);
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.mobile-cta {
    background: var(--text-dark);
    color: var(--white);
    border: 0;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
@media (min-width: 769px) {
    .mobile-menu { display: none; }
}

.navigation.open .mobile-menu {
    height: 100vh;
    padding: 6rem 1rem 2rem;
}

body.menu-open {
    overflow: hidden;
}

/* Hide connect UI entirely */
.connect-toggle, .connect-widget, .openwhen-overlay, .toast { display: none !important; }

/* Visit Planning Section */
.visit-planning-section {
    padding: 6rem 2rem;
    background: var(--secondary-bg);
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Calendar Component */
.calendar-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.calendar-header h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.add-event-btn {
    background: var(--text-dark);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.add-event-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.calendar-day {
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1rem;
    min-height: 120px;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    border-color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.day-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.day-date {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-item {
    background: #efe9e1;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: default;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    border-left: 4px solid #d5c5b6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.event-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.event-time {
    font-weight: 800;
    letter-spacing: 2.5px;
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 0.45rem;
}

.event-title {
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: normal;
}

.delete-event {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #7a6a59;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.event-item:hover .delete-event {
    opacity: 1;
}

@media (max-width: 640px) {
  .event-item { padding: 0.95rem 1rem; border-radius: 12px; }
  .event-time { font-size: 1.15rem; letter-spacing: 2px; }
  .event-title { font-size: 1.05rem; }
}

/* Suggestions System */
.suggestions-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.suggestions-header {
    margin-bottom: 2rem;
}

.suggestions-header h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.suggestion-form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-col.full-width {
    flex: 1 1 100%;
}

.form-col label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.suggestion-input, .suggestion-select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--sans);
    transition: border-color 0.3s ease;
    background: white;
}

.suggestion-textarea {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--sans);
    transition: border-color 0.3s ease;
    background: white;
    min-height: 80px;
    resize: vertical;
}

.suggestion-input:focus, .suggestion-select:focus, .suggestion-textarea:focus {
    outline: none;
    border-color: var(--text-light);
}

.add-suggestion-btn {
    background: var(--text-light);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-suggestion-btn:hover {
    background: var(--text-dark);
    transform: translateY(-1px);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.suggestion-content {
    margin-bottom: 0.8rem;
}

.suggestion-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.suggestion-meta {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.approve-btn, .disapprove-btn {
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.approve-btn {
    background: #e8f5e8;
    color: #2d5a2d;
}

.approve-btn:hover {
    background: #2d5a2d;
    color: white;
}

.approve-btn.approved {
    background: #2d5a2d;
    color: white;
}

.disapprove-btn {
    background: #fee;
    color: #a33;
}

.disapprove-btn:hover {
    background: #a33;
    color: white;
}

.disapprove-btn.disapproved {
    background: #a33;
    color: white;
}

.approval-count {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-left: auto;
}

.suggestion-header {
    margin-bottom: 0.5rem;
}

.suggestion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.suggestion-datetime {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.suggestion-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0.5rem 0;
    font-style: italic;
}

.approved-badge {
    display: inline-block;
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.suggestion-item.approved {
    background: #f8fdf8;
    border-color: #e8f5e8;
}

.suggestion-item.approved .suggestion-title {
    color: #2d5a2d;
}

.suggestion-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #6b6b6b;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.suggestion-remove:hover { opacity: 1; }

.calendar-export {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.export-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.calendar-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0.5rem 0.2rem 0;
    background: #f0f0f0;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.calendar-link:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.calendar-link.apple {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
}

.calendar-link.apple:hover {
    background: #0056CC;
    border-color: #0056CC;
}

.calendar-link.google {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.calendar-link.google:hover {
    background: #3367d6;
    border-color: #3367d6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-header h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--sans);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--sans);
}

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

.btn-primary:hover {
    background: var(--text-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-medium);
    border: 1px solid rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 0.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-body, .modal-header, .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
