@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');

@font-face {
    font-family: 'Eyesome_Script';
    src: url('fonts/Eyesome_Script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --btn-bg: rgba(168, 144, 128, 0.9);
    --btn-content: #fff;
    --btn-border: #a89080;
}

body {
    background-color: #e6e4dd;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes tumble {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.5);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotate(360deg) scale(1);
    }
}

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

/* Zoom In */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom Out */
@keyframes zoomOut {
    0% {
        opacity: 0;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide In from Left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Flip In */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate In */
@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-200deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Slide Down */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale Pulse */
@keyframes scalePulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-tumble,
.animate-ascend,
.animate-zoomIn,
.animate-zoomOut,
.animate-fadeIn,
.animate-slideInLeft,
.animate-slideInRight,
.animate-flipIn,
.animate-bounceIn,
.animate-rotateIn,
.animate-slideDown,
.animate-scalePulse {
    opacity: 0;
}

.animate-tumble.active {
    animation: tumble 1s ease-out forwards;
}

.animate-ascend.active {
    animation: ascend 0.8s ease-out forwards;
}

.animate-zoomIn.active {
    animation: zoomIn 0.8s ease-out forwards;
}

.animate-zoomOut.active {
    animation: zoomOut 0.8s ease-out forwards;
}

.animate-fadeIn.active {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideInLeft.active {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight.active {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-flipIn.active {
    animation: flipIn 0.8s ease-out forwards;
}

.animate-bounceIn.active {
    animation: bounceIn 0.8s ease-out forwards;
}

.animate-rotateIn.active {
    animation: rotateIn 0.8s ease-out forwards;
}

.animate-slideDown.active {
    animation: slideDown 0.8s ease-out forwards;
}

.animate-scalePulse.active {
    animation: scalePulse 0.8s ease-out forwards;
}

.page {
    margin: 0 auto;
    overflow-x: hidden;
}

/* Intro Video Section */
.intro-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 10000;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.intro-video.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-video.removed {
    display: none;
}

.intro-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-overlay.playing {
    opacity: 0;
    pointer-events: none;
}

/* Hide scroll during intro */
body.intro-playing {
    overflow: hidden;
}

.section-1 {
    background-image: url("assets/1.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.section-1 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.section-2 {
    position: relative;
    width: 100%;
    min-height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.section-2 .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: translate(-50%, -50%);
    z-index: 1;
}

.section-2-image {
    position: relative;
    z-index: 2;

    width: 90%;
    height: auto;
    display: block;
}

.section-3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 0;

    background-image: url("assets/1.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-3 .img1 {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.section-3 .img2 {
    width: 70%;
    max-width: 80%;
    height: auto;
    display: block;
}

.section-4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 0;

    background-image: url("assets/4.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-4 .column img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.section-5 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;

    background-image: url("assets/5.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-5-container {
    position: relative;
    width: 90%;
    display: flex;
    justify-content: center;
}

.section-5 .section-5-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable Map Area - Mobile View */
.map-clickable-area {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;

    bottom: 26%;
    right: 10%;
    width: 67%;
    height: 35%;
    transform: rotate(-2deg);

    /*background: rgba(255, 0, 0, 0.3);*/
}

.map-clickable-area:hover {
    background-color: rgba(168, 144, 128, 0.2);
    transform: rotate(-2deg) scale(1.05);
}

.map-clickable-area::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-clickable-area:hover::after {
    opacity: 1;
}

.section-6 {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;

    background-image: url("assets/1.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Row layout */
.section-6 .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.section-6 .row img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section 6 Map Container */
.section-6-map-container {
    position: relative;
    width: 100%;
}

.section-6-map-container img{
    width: 100% !important;
}

/* Clickable Map Area for Section 6 - Mobile View */
.map-clickable-area-section6 {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;

    bottom: 21%;
    right: 18%;
    width: 72.7%;
    height: 39%;
    /*background: rgba(255, 0, 0, 0.3);*/


    /* Positive rotation for right tilt */
    transform: rotate(5deg);
    transform-origin: center;
}

.map-clickable-area-section6:hover {
    background-color: rgba(168, 144, 128, 0.2);
    transform: rotate(5deg) scale(1.05);
}

.map-clickable-area-section6::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-clickable-area-section6:hover::after {
    opacity: 1;
}

.section-7 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;

    background-image: url("assets/8.0.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-7-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Form and Wishes Wrapper */
.form-wishes-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Image */
.section-7 .section-7-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* RSVP Form Styles */
.rsvp-form {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Wishes Container */
.content-wish-container {
    width: 100%;
    max-width: 500px;
}

.wish-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.title-wish {
    font-size: 40px;
    color: #5a4a42;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.5px;
    font-family: 'Eyesome_Script', cursive;
}

.wishes-content {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for wishes */
.wishes-content::-webkit-scrollbar {
    width: 6px;
}

.wishes-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wishes-content::-webkit-scrollbar-thumb {
    background: #a89080;
    border-radius: 10px;
}

.wishes-content::-webkit-scrollbar-thumb:hover {
    background: #957d6d;
}

.wish-row {
    background: #f9f7f4;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #a89080;
}

.wish-row:last-child {
    margin-bottom: 0;
}

.wish-row .names {
    font-size: 16px;
    font-weight: 600;
    color: #5a4a42;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
}

.wish-row .wishes {
    font-size: 14px;
    color: #7a6a62;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Cinzel', serif;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #5a4a42;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d4c5b9;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a89080;
    box-shadow: 0 0 0 3px rgba(168, 144, 128, 0.1);
}

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

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.form-group input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #d4c5b9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    flex: 1;
    justify-content: center;
}

.radio-label i {
    font-size: 18px;
    color: #a89080;
}

.radio-label .icon {
    font-size: 20px;
    line-height: 1;
}

.radio-label span {
    font-size: 15px;
    color: #5a4a42;
    font-weight: 500;
}

.form-group input[type="radio"]:checked + .radio-label {
    background: #a89080;
    border-color: #a89080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 144, 128, 0.3);
}

.form-group input[type="radio"]:checked + .radio-label i,
.form-group input[type="radio"]:checked + .radio-label .icon,
.form-group input[type="radio"]:checked + .radio-label span {
    color: #fff;
}

/* Simple radio labels for guest count */
.radio-label-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid #d4c5b9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 15px;
    color: #5a4a42;
    font-weight: 500;
    min-width: 60px;
}

.form-group input[type="radio"]:checked + .radio-label-simple {
    background: #a89080;
    border-color: #a89080;
    color: #fff;
    transform: translateY(-2px);
}

/* Guest Inputs */
.guest-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guest-input-wrapper label {
    font-size: 13px;
    color: #7a6a62;
}

.guest-input-wrapper {
    margin-top: 12px;
}

.guest-input-wrapper:first-child {
    margin-top: 0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #a89080;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 144, 128, 0.3);
}

.submit-btn:hover {
    background: #957d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 144, 128, 0.4);
}

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

.section-8 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Image */
.section-8 img {
    width: 90%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    width: 100%;
    background: #5a4a42;
    padding: 20px 10px 10px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-text {
    font-size: 8px;
    letter-spacing: 1px;
    color: #e6e4dd;
    margin: 0;
    font-weight: 400;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Desktop */
@media (min-width: 768px) {
    .section-1 img {
        width: 50%;
    }

    .section-2 {
        min-height: 100vh;
    }

    .section-2-image {
        width: 60%;
    }

    .section-3 .img1 {
        width: 50%;
    }

    .section-3 .img2 {
        width: 35%;
    }

    .section-4 {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
    }

    .section-4 .column {
        width: 50%;
    }

    .section-4 .column img {
        width: 100%;
        margin-bottom: 20px;
    }

    .section-5 {
        justify-content: flex-start;
        padding-left: 40px;
    }

    .section-5-container {
        width: 40%;
    }

    .section-5 .section-5-image {
        width: 100%;
    }

    .map-clickable-area {
        bottom: 26%;
        left: 56.5%;
        width: 67%;
        height: 35%;

        transform: translateX(-50%) rotate(-2deg);
    }

    .map-clickable-area:hover {
        transform: translateX(-50%) rotate(-2deg) scale(1.05);
    }

    .section-6 .row {
        flex-direction: row;
        justify-content: center;
    }

    .section-6 .row img:first-child {
        width: 60%;
    }

    .section-6 .row img:last-child {
        width: 40%;
    }

    .section-6-map-container {
        width: 400%;
    }

    /* Desktop positioning for section-6 map */
    .map-clickable-area-section6 {
        bottom: 21%;
        right: 18%;
        width: 73%;
        height: 39%;

        transform: rotate(5deg);
    }

    .map-clickable-area-section6:hover {
        transform: rotate(5deg) scale(1.05);
    }

    .section-7 {
        padding: 60px 40px;
    }

    .section-7-content {
        max-width: 1200px;
    }

    .section-7 .section-7-image {
        width: 50%;
    }

    /* Side-by-side layout for form and wishes on desktop */
    .form-wishes-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        width: 100%;
    }

    .rsvp-form {
        padding: 40px;
        flex: 1;
    }

    .content-wish-container {
        flex: 1;
        max-width: none;
    }

    .wish-overlay {
        padding: 40px;
    }

    .section-8 img {
        width: 60%;
    }

    .footer-text {
        font-size: 10px;
    }

    .footer-logo {
        height: 36px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .section-7-content {
        max-width: 80%;
    }
}

/* Scroll to Top Button */
.scrollToTop-btn {
    z-index: 999;
    position: fixed;
    right: 0;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: var(--btn-bg);
    color: var(--btn-content);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: 0.5s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scrollToTop-btn.active {
    right: 20px;
    pointer-events: all;
    opacity: 1;
}

.scrollToTop-btn:hover {
    background: #957d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.scrollToTop-btn i {
    color: var(--btn-content);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Sound Control Button */
.sound {
    width: 50px;
    height: 50px;
    position: fixed;
    z-index: 999;
    left: 15px;
    bottom: 20px;
    border-radius: 50%;
    background: var(--btn-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.sound:hover {
    background: #957d6d;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sound i {
    font-size: 1.5em;
    transition: 0.3s ease;
    color: var(--btn-content);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: #e6e4dd;
}

::-webkit-scrollbar-thumb {
    background: var(--btn-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #957d6d;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    font-size: 64px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.modal-icon i {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.modal-title {
    font-size: 24px;
    color: #5a4a42;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-message {
    font-size: 16px;
    color: #7a6a62;
    margin-bottom: 24px;
}

.modal-btn {
    padding: 12px 40px;
    background: #a89080;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 144, 128, 0.3);
}

.modal-btn:hover {
    background: #957d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 144, 128, 0.4);
}

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