/* ===================================
   Intro Page Styles
   =================================== */

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

body {
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* Main Container */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../assets/images/intro-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
}

.intro-container.fade-out {
    opacity: 0;
    transform: scale(1.1);
}

/* Content Wrapper */
.intro-content {
    text-align: center;
    position: relative;
    animation: fadeInUp 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

/* Text Content */
.text-content {
    color: #6b5d4f;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.wedding-date {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

/* Mail Wrapper */
.mail-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 3s ease-in-out infinite;
}

.mail-wrapper:hover {
    transform: translateY(-10px) scale(1.05);
    animation-play-state: paused;
}

.mail-image {
    max-width: min(800px, 90vw);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: filter 0.4s ease;
}

.mail-wrapper:hover .mail-image {
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
}

/* Click Text */
.click-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInBlink 2s ease-out 1.5s infinite;
    margin-top: 1rem;
    color: #6b5d4f;
}

/* ===================================
   Animations
   =================================== */

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

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

@keyframes fadeInBlink {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet Devices */
@media (max-width: 768px) {
    .intro-content {
        gap: 1.5rem;
    }

    .text-content {
        gap: 1rem;
    }

    .mail-image {
        max-width: min(600px, 90vw);
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .intro-content {
        gap: 1rem;
        padding: 0.5rem;
    }

    .text-content {
        gap: 0.75rem;
    }

    .mail-image {
        max-width: min(450px, 95vw);
    }

    .click-text {
        margin-top: 0.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .intro-content {
        gap: 0.75rem;
    }

    .mail-image {
        max-width: 95vw;
    }
}

/* Large Screens */
@media (min-width: 1920px) {
    .mail-image {
        max-width: 900px;
    }
}
