@media screen and (max-width: 980px) {
    .side-portrait {
        width: min(32vw, 280px);
        right: 10px;
    }

    .hero-title {
        font-size: 4.2rem;
    }

    .hero-subtitle,
    .hero-date {
        font-size: 1.6rem;
    }

    .invitation-text,
    .invitation-main {
        font-size: 1.75rem;
    }

    .countdown-section h2,
    .gallery-section h2,
    .location-section h2 {
        font-size: 2.5rem;
    }

    .rsvp-section h2 {
        font-size: 3rem;
    }

    .rsvp-intro {
        font-size: 1.7rem;
    }

    .radio-label {
        font-size: 1.9rem;
    }

    .submit-btn {
        font-size: 2.45rem;
    }
}

@media screen and (max-width: 768px) {
    .side-portrait {
        display: none;
    }

    .navbar-container {
        padding: 0.9rem 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        width: 100%;
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        transform: translateY(clamp(45px, 9vh, 100px));
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .hero-subtitle,
    .hero-date {
        font-size: 1.4rem;
    }

    .hero-button {
        font-size: 1.2rem;
    }

    .invitation-section,
    .countdown-section,
    .gallery-section,
    .location-section,
    .rsvp-section {
        padding: 3rem 1rem;
    }

    .invitation-container {
        padding: 2rem 1.2rem;
    }

    .invitation-greeting {
        font-size: 2.6rem;
    }

    .invitation-text,
    .invitation-main {
        font-size: 1.45rem;
    }

    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        max-width: 260px;
    }

    .wedding-calendar {
        max-width: 320px;
    }

    .gallery-wrapper {
        height: 320px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
    }

    .location-card p {
        font-size: 1.2rem;
    }

    .rsvp-section h2 {
        font-size: 2.7rem;
    }

    .rsvp-intro {
        font-size: 1.35rem;
        max-width: 520px;
    }

    .form-group label {
        font-size: 1.7rem;
    }

    .form-group input {
        font-size: 1.7rem;
    }

    .radio-label {
        font-size: 1.65rem;
    }

    .radio-label input {
        width: 22px;
        height: 22px;
    }

    .submit-btn {
        font-size: 2.1rem;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar-logo {
        font-size: 1.6rem;
    }

    .hero {
        min-height: 72vh;
    }

    .hero-content {
        transform: translateY(clamp(28px, 6vh, 70px));
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-subtitle,
    .hero-date {
        font-size: 1.15rem;
    }

    .hero-button {
        font-size: 1.1rem;
        padding: 0.7rem 1.8rem;
    }

    .invitation-greeting {
        font-size: 2.2rem;
    }

    .invitation-text,
    .invitation-main {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .flower-decoration {
        font-size: 1.35rem;
    }

    .countdown-section h2,
    .gallery-section h2,
    .location-section h2 {
        font-size: 2rem;
    }

    .countdown-value {
        font-size: 0.95rem;
    }

    .countdown-label {
        font-size: 0.58rem;
    }

    .calendar-header {
        font-size: 0.92rem;
    }

    .calendar-weekdays span {
        font-size: 0.62rem;
    }

    .calendar-days span {
        height: 22px;
        font-size: 0.72rem;
    }

    .gallery-wrapper {
        height: 250px;
    }

    .gallery-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .location-card {
        padding: 1.2rem;
    }

    .rsvp-section h2 {
        font-size: 2.45rem;
    }

    .rsvp-intro {
        font-size: 1.15rem;
    }

    .rsvp-form {
        padding: 0.8rem 0.2rem;
    }

    .form-group label {
        font-size: 1.45rem;
    }

    .form-group input {
        font-size: 1.5rem;
    }

    .radio-label {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .radio-label input {
        width: 20px;
        height: 20px;
    }

    .submit-btn {
        font-size: 1.95rem;
    }

    .music-control {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
