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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #b88917;
}

h3 {
    font-size: 1.8rem;
    color: #b88917;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #b88917;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    background-color: #b88917;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #876c59;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    z-index: 100;
    padding: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #b88917;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #6b574a;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: none;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 100px;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.date, .location {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 15px 40px;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-card .time {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-card .event {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-card .location {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Support Form Styles */
.hero-support-form {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border-radius: 15px;
}

.hero-support-form h3 {
    color: rgb(104, 87, 87);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.form-row {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group {
    width: 100%;
}

/* Amount button styles */
.amount-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.amount-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
    max-width: 200px;
}

.amount-btn:hover,
.amount-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Input styles */
.hero-support-form input {
    width: 100%;
    padding: 12px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-support-form input::placeholder {
    color: rgba(20, 19, 19, 0.7);
}

.hero-support-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* Submit button styles */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #b88917;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #876c59;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-support-form {
        padding: 1.5rem;
        margin: 1rem auto 0;
    }

    .amount-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ===== Wedding refresh sections ===== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.program-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(184, 137, 23, 0.2);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.program-time {
    font-family: 'Playfair Display', serif;
    color: #b88917;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-item img {
    cursor: zoom-in;
}

.hidden-photo {
    display: none;
}

.gallery-actions {
    margin-top: 18px;
    text-align: center;
}

.gallery-actions .btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.invitation-card img {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.faq-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.faq-card {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #b88917;
    border-radius: 12px;
    padding: 18px 18px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.faq-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #333;
}

.faq-card p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.blessing-box {
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(184, 137, 23, 0.12), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(184, 137, 23, 0.28);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.blessing-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3f3f3f;
}

.blessing-ref {
    color: #b88917;
    font-weight: 600;
    margin-top: 12px;
}

.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    z-index: 9999;
}

.photo-modal.open {
    display: flex;
}

.photo-modal img {
    max-width: min(92vw, 1080px);
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.photo-modal p {
    margin-top: 12px;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
}

.photo-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .program-card {
        padding: 18px;
    }

    .gallery-item img {
        min-height: 220px;
    }

    .blessing-box {
        padding: 22px 16px;
    }
}

@media (max-width: 480px) {
    .hero-support-form {
        padding: 1rem;
    }

    .amount-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Form feedback styles */
.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.form-feedback.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #fff;
}

.form-feedback.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #fff;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}


.hero-support-form input:valid {
    border-color: rgba(40, 167, 69, 0.5);
}

/* Focus styles for better accessibility */
.hero-support-form input:focus,
.amount-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.3);
}

/* Hover effects */
.amount-btn:hover {
    transform: translateY(-2px);
}

.amount-btn:active {
    transform: translateY(0);
}

/* Our Story Section */
.story-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-text {
    flex: 1;
    min-width: 300px;
}

/* Details Section */
.events {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-time, .event-location {
    font-weight: 500;
}

.map {
    margin-top: 3rem;
}

/* RSVP Section */
#rsvp {
    background-color: #f9f9f9;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

/* Registry Section */
.registry-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.registry-item {
    text-align: center;
    transition: transform 0.3s;
}

.registry-item:hover {
    transform: translateY(-5px);
}

.registry-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.registry-item span {
    display: block;
    font-weight: 500;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

/* Contact Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    min-width: 250px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Directions Section */
.directions-content {
    max-width: 800px;
    margin: 0 auto;
}

.direction-step {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.direction-step h3 {
    color: #b88917;
    margin-bottom: 1rem;
}

.direction-step ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.direction-step ul li {
    margin-bottom: 0.5rem;
}

.final-step {
    background-color: #f0e9e4;
    border: 2px solid #b88917;
}

.map-link {
    text-align: center;
    margin-top: 2rem;
}

/* Support Section Styles */
.donation-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--cream-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(197, 165, 114, 0.1);
}

.support-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--gold-dark);
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    background: white;
    border: 2px solid var(--gold-light);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.amount-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-primary);
}

.amount-btn.active {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: white;
}

.submit-btn {
    width: 100%;
    position: relative;
}

.btn-loading {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Form feedback styles */
.form-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Image Background Slider */
.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.image-slider {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.zoom-effect {
    animation: zoomAndPan 30s ease-in-out infinite;
}

@keyframes zoomAndPan {
    0% {
        transform: scale(1) translateX(0);
    }
    33% {
        transform: scale(1.1) translateX(0);
    }
    66% {
        transform: scale(1.1) translateX(-5%);
    }
    100% {
        transform: scale(1) translateX(0);
    }
}

/* Ensure text remains readable */
.hero h1, .hero h2, .hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.biva-logo {
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.donation-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.support-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.support-image {
    flex: 1;
}

.support-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-support-form {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.hero-support-form .biva-logo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(184, 137, 23, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #b88917;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #96700f;
}

/* Responsive Design for Donation Section */
@media (max-width: 768px) {
    .support-wrapper {
        flex-direction: column;
    }

    .support-image, .hero-support-form {
        width: 100%;
    }
    
    .hero-support-form {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .donation-layout {
        padding: 10px;
    }
    
    .hero-support-form {
        padding: 15px;
    }
}

/* Countdown Styles */
.countdown {
    margin: 8px 0;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    padding: 4px;
}

.countdown-unit span:first-child {
    font-size: 1.2em;
    font-weight: 600;
    color: #b88917;
    line-height: 1;
}

.unit-label {
    font-size: 0.65em;
    color: #fff;
    margin-top: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .countdown-units {
        gap: 6px;
        padding: 6px;
    }
    
    .countdown-unit {
        min-width: 40px;
    }
    
    .countdown-unit span:first-child {
        font-size: 1em;
    }
    
    .unit-label {
        font-size: 0.6em;
    }
}

/* Navigation Styles */
.logo {
    z-index: 101;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Adjust main content to account for fixed header */
main {
    padding-top: 80px;
}

@media screen and (max-width: 768px) {
    .logo {
        position: fixed;
        left: 2rem;
        top: 40px;
        transform: translateY(-50%);
        z-index: 101;
    }

    .logo img {
        height: 50px;
        width: 50px;
        object-fit: contain;
        border-radius: 50%;
    }

    .hamburger {
        display: block;
        position: fixed;
        right: 2rem;
        top: 40px;
        transform: translateY(-50%);
        z-index: 100;
        padding: 0.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        height: 80px;
        z-index: 98;
    }

    .nav-links.active {
        padding-top: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(50px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.5s ease 0.2s;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
    }
}