@font-face {
    font-family: 'Andasia';
    src: url('references/title_fond_andasia.ttf') format('truetype');
}

@font-face {
    font-family: 'Scriptina';
    src: url('scriptina/SCRIPTIN.ttf') format('truetype');
    font-display: swap;
}

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

:root {
    --cream: #FAF5F0;
    --sage: #7A8B5C;
    --pink: #E8B4B8;
    --blue: #5B7FA6;
    --gold: #D4A574;
    --coral: #E56B47;
    --lavender: #9B7EBD;
    --yellow: #F7E09F;
    --light-blue: #A8C9E8;
    --dark-gray: #3A3A3A;
    --gold-text: #B8860B;
    --dark-brown: #4A2C2A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--cream);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: var(--gold-text);
}

.navbar a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

    .hero-content {
        position: absolute;
        top: 50%; /* Lowered text back to center */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 1;
    }

.hero-content > * {
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.6s forwards;
}

.hero-content .wedding-date {
    animation-delay: 0.8s;
}

.hero-content .rsvp-btn {
    animation-delay: 1s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.couple-names {
    font-family: 'Scriptina', 'Great Vibes', 'Andasia', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.wedding-date {
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    color: var(--gold-text);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.rsvp-btn {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    background-color: var(--gold-text);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    padding-top: 6rem; /* Add extra top padding to account for navbar */
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

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

.section-title {
    font-family: 'Andasia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-text);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--gold);
}

/* Welcome Section */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 3rem;
    min-height: 400px;
}

.welcome-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

.couple-photo img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.couple-photo img:hover {
    transform: scale(1.02);
}

.text-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.text-content h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.event-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.event-details p:first-child {
    font-size: 1.5rem;
    color: var(--gold-text);
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
}

.couple-photo {
    display: flex;
    align-items: start;
    height: auto;
    max-height: 400px;
    overflow: hidden;
}

.image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.text-content .image-gallery {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.text-content .image-gallery img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.content-grid > .image-gallery {
    height: 100%;
}

.content-grid > .image-gallery img {
    height: 100%;
    object-fit: cover;
}

.image-gallery img:hover {
    transform: scale(1.02);
    z-index: 10;
}

.message-section {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    max-width: 900px;
    margin: 0 auto;
}

.message-section p {
    margin: 1.5rem 0;
}

/* RSVP Section */
.rsvp-section {
    background-color: var(--light-blue);
    border-radius: 20px;
    padding: 3rem;
    padding-top: 6rem; /* Add extra top padding for navbar */
    margin: 4rem auto;
}

.rsvp-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-form {
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.guest-section {
    margin-bottom: 2rem;
    text-align: left;
}

.guest-section h4 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.guest-section input,
.guest-section textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.guest-section input:focus,
.guest-section textarea:focus {
    outline: none;
    border-color: var(--dark-brown);
}

.consent-section {
    margin: 1.5rem 0;
    text-align: left;
}

.consent-section label {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.consent-section input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.consent-section a {
    color: var(--dark-brown);
    text-decoration: none;
}

.consent-section a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: var(--dark-brown);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 44, 42, 0.3);
}

/* Info Section */
.info-content {
    margin-bottom: 2rem;
}

.info-content h3 {
    color: var(--dark-brown);
    margin: 1.5rem 0 0.5rem;
}

.location-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
}

.map-container-full {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-images img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.location-images img:hover {
    transform: scale(1.05);
}

/* IBAN Section */
.iban-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar ul {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .navbar a {
        font-size: 0.9rem;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0 20px 0; /* Further reduced top padding */
    }
    
    .video-container {
        height: auto;
        min-height: calc(100vh - 80px); /* Reduced to match image better */
    }
    
    .hero-background {
        position: relative;
        height: auto;
        min-height: 650px; /* Increased more to fill space better */
        object-fit: cover;
        object-position: 0% center; /* Moved to the very left edge */
    }
    
    .couple-names {
        font-size: clamp(2.5rem, 7vw, 4rem) !important; /* Bigger text */
        line-height: 1 !important;
        margin-bottom: 1.5rem !important; /* Increased spacing between names and date */
    }
    
    .wedding-date {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important; /* Increased spacing between date and RSVP button */
    }
    
    .rsvp-btn {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
    }
    
    .bottom-decoration {
        width: 50%;
    }
    
    .message-section {
        font-size: 1rem;
    }
    
    .message-section br {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .welcome-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-images {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 1rem;
        padding-top: 6rem; /* Extra padding for mobile navbar */
    }
    
    .rsvp-section {
        padding: 2rem 1rem;
        padding-top: 6rem; /* Add extra top padding for mobile navbar */
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
}

/* Animation for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Privacy Footer */
.privacy-footer {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

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

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.footer-content a {
    color: var(--dark-brown);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Privacy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--cream);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1500;
    display: none;
}

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

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content button {
    background-color: var(--dark-brown);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-content button:hover {
    background-color: var(--sage);
}

.cookie-content a {
    color: var(--dark-brown);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* Mobile responsive for footer and modals */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        padding: 40px 0 40px 0; /* Further reduced top padding */
    }
    
    .video-container {
        height: auto;
        min-height: calc(100vh - 100px); /* Reduced to match image better */
        min-height: calc(100dvh - 100px);
    }
    
    .hero-background {
        position: relative;
        height: auto;
        min-height: 700px; /* Increased more for smallest screens */
        object-fit: cover;
        object-position: 0% center; /* Moved to the very left edge for smallest screens */
    }
    
    .hero-content {
        position: absolute;
        top: 50%; /* Lowered text back to center for smallest screens */
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
    }
    
    .couple-names {
        font-size: 2.8rem !important; /* Bigger text for smallest screens */
        margin-bottom: 1.2rem !important; /* Increased spacing between names and date */
    }
    
    .wedding-date {
        font-size: 0.9rem !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 2rem !important; /* Increased spacing between date and RSVP button */
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }
}

/* Bottom decoration at the very bottom of page */
.bottom-decoration-container {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: var(--cream);
    overflow: hidden;
    background-image: url('references/btm.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 100%;
}

.bottom-decoration {
    display: none;
}