* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c9a269;
    --accent-color: #8b7355;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #efefef;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-100%);
}

#navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: absolute;
    left: 2rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    display: block;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 0);
    position: absolute;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, 0);
    position: absolute;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Media Control */
.media-control {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    right: 2rem;
}

.play-pause {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-icon,
.pause-icon,
.next-icon {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.play-icon:hover,
.pause-icon:hover,
.next-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

/* Mobile Navigation & Media Control */
@media (max-width: 768px) {
    .nav-content {
        padding: 1.25rem 1.5rem;
    }
    
    .hamburger {
        display: flex;
        left: 1.5rem;
    }
    
    .media-control {
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        gap: 0.75rem;
        background: transparent;
        padding: 0;
        z-index: 999;
    }

    .play-icon,
    .pause-icon,
    .next-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2.5rem 2rem;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        align-items: flex-start;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 3vh;
}


.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.hero-title img {
    display: block;
    width: min(70vw, 520px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.hero-title svg {
    display: block;
    width: min(60vw, 420px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* SVG Logo Animation */
.hero-title svg g path {
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
    animation: drawStroke 1.5s ease-in-out forwards;
    fill-opacity: 0;
    /* Hardware acceleration for smoother animations */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}


/* Individual path animations with staggered delays */
.hero-title svg g path:nth-child(1) { /* Letter J */
    animation: drawStroke 2.0s ease-in-out 0.5s forwards, fillPath 0.8s ease-out 2.5s forwards;
}

.hero-title svg g path:nth-child(2) { /* Letter u */
    animation: drawStroke 1.0s ease-in-out 0.6s forwards, fillPath 0.5s ease-out 2.5s forwards;
}

.hero-title svg g path:nth-child(3) { /* Letter l and F */
    animation: drawStroke 3.0s ease-in-out 0.7s forwards, fillPath 2.0s ease-out 2.5s forwards;
}

.hero-title svg g path:nth-child(4) { /* Part of F inside ampersand */
    animation: drawStroke 0.1s ease-in-out 0.7s forwards, fillPath 0.1s ease-out 2.6s forwards;
}

.hero-title svg g path:nth-child(5) { /* Letter i */
    animation: drawStroke 1.0s ease-in-out 0.8s forwards, fillPath 0.5s ease-out 2.6s forwards;
}

.hero-title svg g path:nth-child(6) { /* Dot in letter i */
    animation: drawStroke 0.3s ease-in-out 0.8s forwards, fillPath 0.3s ease-out 2.6s forwards;
}

.hero-title svg g path:nth-child(7) { /* Letter a */
    animation: drawStroke 1.0s ease-in-out 0.9s forwards, fillPath 0.5s ease-out 2.7s forwards;
}

.hero-title svg g path:nth-child(8) { /* Letter n */
    animation: drawStroke 1.5s ease-in-out 1.0s forwards, fillPath 0.5s ease-out 2.8s forwards;
}

.hero-title svg g path:nth-child(9) { /* Ampersand */
    animation: drawStroke 1.0s ease-in-out 0.7s forwards, fillPath 0.5s ease-out 2.7s forwards;
}

.hero-title svg g path:nth-child(10) { /* Second letter a in Faith */
    animation: drawStroke 1.0s ease-in-out 0.8s forwards, fillPath 0.5s ease-out 2.8s forwards;
}

.hero-title svg g path:nth-child(11) { /* Second Letter i in Faith */
    animation: drawStroke 1.0s ease-in-out 0.9s forwards, fillPath 0.5s ease-out 2.9s forwards;
}

.hero-title svg g path:nth-child(12) { /* Dot in second letter i */
    animation: drawStroke 0.3s ease-in-out 0.9s forwards, fillPath 0.3s ease-out 2.9s forwards;
}

.hero-title svg g path:nth-child(13) { /* Letter t in Faith */
    animation: drawStroke 1.4s ease-in-out 1.0s forwards, fillPath 0.6s ease-out 3.0s forwards;
}

.hero-title svg g path:nth-child(14) { /* Letter h in Faith */
    animation: drawStroke 2.0s ease-in-out 1.1s forwards, fillPath 0.8s ease-out 3.1s forwards;
}

.hero-title svg g path:nth-child(15) { /* Left part of circle middle */
    animation: drawStroke 0.5s ease-in-out 1.5s forwards, fillPath 0.3s ease-out 3.2s forwards;
}

.hero-title svg g path:nth-child(16) { /* Left part of circle top */
    animation: drawStroke 0.5s ease-in-out 1.5s forwards, fillPath 0.3s ease-out 3.3s forwards;
}

.hero-title svg g path:nth-child(17) { /* Right part of circle */
    animation: drawStroke 1.5s ease-in-out 1.6s forwards, fillPath 1.3s ease-out 3.4s forwards;
}

.hero-title svg g path:nth-child(18) { /* Bottom part of circle */
    animation: drawStroke 2.0s ease-in-out 1.8s backwards, fillPath 1.0s ease-out 3.6s forwards;
}



@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillPath {
    from {
        fill-opacity: 0;
    }
    to {
        fill-opacity: 1;
    }
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title svg g path {
        animation: none;
        stroke-dashoffset: 0;
        fill-opacity: 1;
    }
}

.hero-date {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 3px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    width: 120px;
}

.countdown-number {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Story Section */
#story {
    background: var(--bg-light);
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding-left: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.story-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Alternating layout - odd items (image left, text right) */
.story-item:nth-child(odd) {
    grid-template-areas: "image content";
}

.story-item:nth-child(odd) .story-image {
    grid-area: image;
}

.story-item:nth-child(odd) .story-content {
    grid-area: content;
}

/* Alternating layout - even items (text left, image right) */
.story-item:nth-child(even) {
    grid-template-areas: "content image";
}

.story-item:nth-child(even) .story-image {
    grid-area: image;
}

.story-item:nth-child(even) .story-content {
    grid-area: content;
}

/* Timeline bullet positioned at h3 level */
.story-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 4rem;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    z-index: 2;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Story Image Styling */
.story-image {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.story-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Story Content Styling */
.story-content {
    padding: 1rem 0;
}

.story-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    line-height: 1.15;
}

.story-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.story-content p {
    margin-top: 0;
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

/* Responsive Design for Countdown */
@media (max-width: 768px) {
    .countdown {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-bottom: 3rem;
    }
    
    .countdown-item {
        width: 100px;
        flex-shrink: 0;
        padding: 1.2rem 1.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        width: 90px;
        flex-shrink: 0;
        padding: 1rem 1.2rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
        margin-top: 0.3rem;
    }
}

/* Responsive Design for Timeline */
@media (max-width: 968px) {
    .story-timeline {
        padding-left: 2rem;
    }
    
    .story-timeline::before {
        left: 0;
        transform: none;
    }
    
    .story-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-item:nth-child(odd),
    .story-item:nth-child(even) {
        grid-template-areas: 
            "image"
            "content";
    }
    
    .story-item::before {
        left: -2rem;
        transform: none;
        top: 20.5rem;
        width: 12px;
        height: 12px;
        border: 3px solid var(--bg-light);
        box-shadow: none;
    }
    
    .story-image {
        height: 280px;
    }
}

/* Parallax Dividers */


.parallax {
  height: 400px;
  position: relative;
}

.parallax-inner {
  clip: rect(auto, auto, auto, auto);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.parallax-img {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center center;
}

.parallax-img-1 {
    background-image: url('img/parallax_1.jpg');
}

.parallax-img-2 {
    background-image: url('img/parallax_2.jpg');
}


.parallax-img-3 {
    background-image: url('img/parallax_3.jpg');
}

/* Details Section */
.details-section {
    background: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.detail-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-time {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.detail-location {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.detail-address {
    color: #666;
    line-height: 1.8;
}

.additional-info {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
}

.additional-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.additional-info p {
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Photo Stack ---------- */
.photo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.photo-stack.locked {
    pointer-events: none;
    cursor: not-allowed;
}

.stack-images {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* square */
}

/* Individual stacked photo */
.stack-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

/* Bottom (back-most) */
.stack-img.img-3 {
    transform: rotate(-3deg) translate(-4px, 4px);
    z-index: 1;
}

/* Middle */
.stack-img.img-2 {
    transform: rotate(2deg) translate(3px, 2px);
    z-index: 2;
}

/* Top (front) */
.stack-img.img-1 {
    transform: rotate(0deg);
    z-index: 3;
}

/* Hover: very slight fan-out — bottom images stay mostly hidden */
.photo-stack:not(.locked):hover .stack-img.img-3 {
    transform: rotate(-5deg) translate(-8px, 6px);
}

.photo-stack:not(.locked):hover .stack-img.img-2 {
    transform: rotate(3.5deg) translate(6px, 3px);
}

.photo-stack:not(.locked):hover .stack-img.img-1 {
    transform: rotate(-1deg) translate(-1px, -2px);
}

/* Month label */
.stack-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* ---------- Locked overlay ---------- */
.stack-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(44, 62, 80, 0.55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lock-icon {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* De-saturate locked stack images */
.photo-stack.locked .stack-img {
    filter: grayscale(0.6) brightness(0.85);
}

.photo-stack.locked .stack-label {
    opacity: 0.5;
}

/* ---------- Gallery Lightbox Modal ---------- */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-image-wrapper {
    position: relative;
    display: inline-block;
}

.modal-image {
    max-width: 90vw;
    max-height: calc(90vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

.modal-counter {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.modal-nav svg {
    width: 28px;
    height: 28px;
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem;
    }

    .modal-image {
        max-height: calc(90vh - 100px);
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }

    .modal-nav {
        width: 44px;
        height: 44px;
    }

    .modal-nav svg {
        width: 22px;
        height: 22px;
    }

    .modal-prev {
        left: 0.5rem;
    }

    .modal-next {
        right: 0.5rem;
    }

    .modal-caption {
        font-size: 0.9rem;
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .modal-counter {
        font-size: 0.85rem;
    }
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(180deg, #c9a269 0%, #a67c45 100%);
    color: var(--text-light);
}

.rsvp-section .section-title {
    color: var(--text-light);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.rsvp-container {
    max-width: 800px;
    margin: 0 auto;
}

/* RSVP Locked Message Styling */
.rsvp-locked-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 2rem;
    border-radius: 15px;
    color: var(--text-dark);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rsvp-locked-message .locked-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rsvp-locked-message .locked-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.rsvp-locked-message .locked-description {
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
    margin: 0 auto;
}

.rsvp-locked-message .locked-note {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* RSVP Form Container */
#rsvp-form {
    display: none;
}

#rsvp-form iframe {
    border-radius: 10px;
    background: white;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 0;
    margin-top: 0;
    border-top: 2px solid var(--secondary-color);
}

.footer .container {
    padding: 2rem 2rem;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin: 1rem 0;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 2rem;
    }
    
    .story-timeline {
        padding-left: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title svg {
        width: min(85vw, 340px);
    }
    
    .hero-date {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
    }

    .lock-icon {
        width: 28px;
        height: 28px;
    }
}

/* Safari / iOS fixes -------------------------------------------------- */
@supports (-webkit-overflow-scrolling: touch) {
    .parallax-divider {
        background-attachment: fixed;
    }
}

/* Ensure animated/parallax elements create their own layer for smoother transforms */
.parallax-bg,
.parallax-divider,
.stack-img,
.story-image {
    will-change: transform, opacity;
    transform: translate3d(0,0,0);
}

/* End Safari / iOS fixes --------------------------------------------- */


/* FAQ Section - Compact Layout */
#faq {
    background: var(--bg-light);
}

#faq .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#faq .detail-card {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#faq .detail-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

#faq .faq-content {
    flex: 1;
}

#faq .detail-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

#faq .detail-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    #faq .details-grid {
        grid-template-columns: 1fr;
    }
}


/* Schedule Section */
.schedule-section {
    background: #fff;
    padding: 8rem 2rem;
    overflow: hidden;
}

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.schedule-items {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.schedule-track {
    position: absolute;
    height: 4px;
    background: #e0e0e0;
    left: 0;
    right: 0;
    top: 154px;
    border-radius: 2px;
    z-index: 1;
}

.schedule-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--secondary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.schedule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(70%);
    order: -2;
}

.schedule-item.active .schedule-icon {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.schedule-dot {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(201, 162, 105, 0);
    z-index: 2;
    order: -1;
}

.schedule-item.active .schedule-dot {
    background: var(--secondary-color);
    box-shadow: 0 0 0 8px rgba(201, 162, 105, 0.2);
    transform: translateX(-50%) scale(1.3);
}

.schedule-content {
    text-align: center;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
    margin-top: 3rem;
}

.schedule-item.active .schedule-content {
    opacity: 1;
    transform: translateY(-5px);
}

.schedule-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

.schedule-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive Design for Schedule */
@media (max-width: 768px) {
    .schedule-container {
        padding: 2rem 0;
    }
    
    .schedule-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
        flex-direction: row;
    }
    
    .schedule-item {
        flex: none;
        max-width: none;
        opacity: 0.4;
        transition: opacity 0.6s ease-out;
    }
    
    .schedule-item.active {
        opacity: 1;
    }
    
    /* Items start inactive on mobile */
    .schedule-item .schedule-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        transform: scale(1);
        opacity: 0.4;
        filter: grayscale(70%);
        transition: all 0.6s ease-out;
    }
    
    .schedule-item.active .schedule-icon {
        opacity: 1;
        filter: grayscale(0%);
        transform: scale(1.15);
    }
    
    .schedule-item .schedule-dot {
        display: none;
    }
    
    .schedule-item .schedule-content {
        margin-top: 0;
        opacity: 0.5;
        transform: translateY(0);
        transition: all 0.6s ease-out;
    }
    
    .schedule-item.active .schedule-content {
        opacity: 1;
        transform: translateY(-5px);
    }
    
    .schedule-track {
        display: none;
    }
}

@media (max-width: 480px) {
    .schedule-items {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .schedule-content h3 {
        font-size: 1.8rem;
    }
    
    .schedule-content p {
        font-size: 1.1rem;
    }
    
    .schedule-item .schedule-icon {
        font-size: 2.5rem;
    }
}

/* Now Playing Toast Notification */
.now-playing-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
    max-width: 320px;
}

.now-playing-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.now-playing-toast .cd-icon {
    font-size: 2rem;
    animation: spin 2s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.now-playing-toast .toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.now-playing-toast .toast-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-weight: 500;
}

.now-playing-toast .toast-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .now-playing-toast {
        bottom: 1rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
        padding: 0.875rem 1.25rem;
    }
    
    .now-playing-toast .cd-icon {
        font-size: 1.75rem;
    }
    
    .now-playing-toast .toast-title {
        font-size: 1rem;
    }
}
