/* Responsive Design - Mobile First Approach */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
    /* Hero Section */
    .couple-names {
        font-size: 3.5rem;
    }
    
    .couple-names .ampersand {
        font-size: 2rem;
    }
    
    .wedding-date {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    /* Countdown Section */
    .countdown-title {
        font-size: 3rem;
    }
    
    .countdown-timer {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-circle {
        width: 90px;
        height: 90px;
    }
    
    .time-circle .number {
        font-size: 2rem;
    }
    
    .time-unit .label {
        font-size: 0.8rem;
    }
    
    /* Intro Message */
    .intro-text {
        font-size: 1.1rem;
    }
    
    .intro-decoration {
        display: none;
    }
    
    /* Events Section */
    .events-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Formal Invitation */
    .envelope {
        width: 100%;
        max-width: 450px;
        height: 270px;
    }

    .page-envelope {
        height: 320px;
        margin-top: 8vh;
    }

    .page-envelope-seal {
        width: 70px;
        height: 70px;
    }
    
    .seal-circle {
        width: 70px;
        height: 70px;
    }
    
    .invitation-card {
        padding: 50px 30px;
    }
    
    .card-border {
        padding: 30px 20px;
    }
    
    .parents-section {
        gap: 20px;
    }
    
    .parent-name {
        font-size: 0.95rem;
    }
    
    .groom-name-formal,
    .bride-name-formal {
        font-size: 2.5rem;
    }
    
    .ampersand-formal {
        font-size: 1.8rem;
    }
    
    .wedding-date-formal {
        font-size: 1.1rem;
    }
    
    /* Itinerary */
    .itinerary-card {
        padding: 50px 30px;
    }
    
    .itinerary-title {
        font-size: 3rem;
    }
    
    .itinerary-event-name {
        font-size: 1.1rem;
    }
    
    /* Dress Code */
    .dress-code-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .dress-code-flowers {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: none;
    }
    
    .dress-code-medallion {
        margin-right: 0;
    }
    
    .medallion-oval {
        width: 240px;
        height: 320px;
    }
    
    .dress-code-title {
        font-size: 3rem;
    }
    
    .dress-code-card {
        padding: 50px 40px;
        max-width: 100%;
    }
    
    .dress-code-main {
        font-size: 1.3rem;
    }
    
    .dress-code-details {
        font-size: 0.95rem;
    }
    
    .color-palette {
        gap: 15px;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    /* Gift Registry */
    .gift-registry-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gift-title {
        font-size: 3.5rem;
    }
    
    .gift-message {
        font-size: 1rem;
    }

    .gift-main-links {
        grid-template-columns: 1fr;
    }
    
    /* RSVP */
    .rsvp-card {
        padding: 70px 40px 40px;
    }
    
    .rsvp-title {
        font-size: 1.5rem;
    }
    
    .rsvp-deadline {
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Hero Section */
    .couple-names {
        font-size: 2.5rem;
    }
    
    .couple-names .ampersand {
        font-size: 1.5rem;
    }
    
    .wedding-date {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .page-envelope {
        height: 260px;
        margin-top: 6vh;
    }

    .page-envelope-seal {
        width: 60px;
        height: 60px;
    }
    
    /* Countdown Section */
    .countdown-title {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .time-circle {
        width: 70px;
        height: 70px;
    }
    
    .time-circle .number {
        font-size: 1.5rem;
    }
    
    .time-unit .label {
        font-size: 0.7rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
    }
    
    /* Intro Message */
    .intro-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    /* Events Section */
    .event-card {
        padding: 30px 15px;
    }
    
    .event-icon img {
        width: 60px;
        height: 60px;
    }
    
    .event-name {
        font-size: 1.2rem;
    }
    
    .event-time,
    .event-venue {
        font-size: 0.95rem;
    }
    
    .map-button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    /* Music Section */
    .music-message {
        font-size: 1rem;
    }
    
    /* Itinerary Mobile */
    .itinerary-card {
        padding: 40px 20px;
    }
    
    .itinerary-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .itinerary-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .itinerary-event-name {
        font-size: 1rem;
    }
    
    .itinerary-time {
        font-size: 0.9rem;
    }

    .itinerary-address {
        font-size: 0.85rem;
    }
    
    /* Dress Code Mobile */
    .medallion-oval {
        width: 200px;
        height: 270px;
    }
    
    .dress-code-title {
        font-size: 2.5rem;
        padding: 15px;
    }
    
    .medallion-tassel {
        bottom: -60px;
        height: 80px;
    }
    
    .dress-code-card {
        padding: 40px 25px;
    }
    
    .dress-code-main {
        font-size: 1.2rem;
    }
    
    .dress-code-details {
        font-size: 0.9rem;
    }
    
    .color-palette {
        gap: 10px;
    }
    
    .color-circle {
        width: 40px;
        height: 40px;
    }
    
    /* Gift Registry Mobile */
    .gift-main-card {
        padding: 50px 30px;
    }
    
    .gift-title {
        font-size: 3rem;
    }
    
    .gift-message {
        font-size: 0.95rem;
    }
    
    .gift-details-card {
        padding: 70px 30px 30px;
    }
    
    .gift-details-title {
        font-size: 1.1rem;
    }
    
    .store-name {
        font-size: 1.1rem;
    }
    
    .store-details {
        font-size: 1rem;
    }
    
    /* RSVP Mobile */
    .rsvp-card {
        padding: 60px 25px 30px;
    }
    
    .rsvp-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .radio-option {
        padding: 15px;
    }
    
    .radio-text {
        font-size: 0.9rem;
    }
    
    .rsvp-submit-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .rsvp-deadline {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Formal Invitation Mobile */
    .envelope {
        width: 100%;
        max-width: 350px;
        height: 210px;
    }
    
    .seal-circle {
        width: 60px;
        height: 60px;
    }
    
    .seal-icon {
        font-size: 1.5rem;
    }
    
    .invitation-card {
        padding: 40px 20px;
    }
    
    .card-border {
        padding: 25px 15px;
    }
    
    .invitation-header {
        font-size: 0.75rem;
    }
    
    .parents-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .parent-name {
        font-size: 0.85rem;
    }
    
    .invitation-text {
        font-size: 0.8rem;
    }
    
    .groom-name-formal,
    .bride-name-formal {
        font-size: 2rem;
    }
    
    .ampersand-formal {
        font-size: 1.5rem;
    }
    
    .wedding-date-formal {
        font-size: 1rem;
    }
    
    /* General Spacing */
    section {
        padding: 60px 15px !important;
    }
    
    .formal-invitation-section,
    .itinerary-section,
    .dress-code-section,
    .rsvp-section,
    .gift-registry-section {
        padding: 60px 15px !important;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .couple-names {
        font-size: 6rem;
    }
    
    .countdown-title {
        font-size: 5rem;
    }
    
    .time-circle {
        width: 140px;
        height: 140px;
    }
    
    .time-circle .number {
        font-size: 3.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 20px;
    }
    
    .couple-names {
        font-size: 3rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .scroll-indicator,
    .lightbox,
    .youtube-player {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}
