:root {
    --primary-color: #b8956a;
    --rose-color: #c49f8a;
    --soft-rose: #d9b5b0;
    --secondary-color: #ffffff;
    --accent-color: #2c2c2c;
    --light-bg: #f5f1ed;
    --paper-bg: #f0eeec;
    --dark-text: #2d2d2d;
    --light-text: #666666;
    --success-color: #357a38;
    --error-color: #b23a48;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.5;
    color: var(--dark-text);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.side-portrait {
    position: fixed;
    right: clamp(12px, 2vw, 28px);
    bottom: 0;
    width: min(30vw, 360px);
    z-index: 1200;
    opacity: 0;
    transform: translateX(120%) translateY(0);
    transition: opacity 0.45s ease, transform 0.55s ease;
    pointer-events: none;
}

.side-portrait-image {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(115, 93, 79, 0.18));
}

body.show-side-portrait .side-portrait {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--rose-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--rose-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--rose-color);
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 241, 237, 0.72), rgba(245, 241, 237, 0.78)),
        url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    transform: translateY(clamp(70px, 12vh, 150px));
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: var(--rose-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.hero-date {
    font-size: 1.9rem;
    color: var(--rose-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #c7908e 0%, #b77c7a 100%);
    color: #fff;
    padding: 0.85rem 2.3rem;
    border-radius: 999px;
    font-size: 1.4rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 22px rgba(183, 124, 122, 0.28);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(183, 124, 122, 0.34);
}

.invitation-section {
    background: linear-gradient(180deg, #ece8e5 0%, #f2efec 100%);
    padding: 4.5rem 2rem;
    display: flex;
    justify-content: center;
}

.invitation-container {
    max-width: 760px;
    width: 100%;
    text-align: center;
    padding: 2.8rem 2.2rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(196, 159, 138, 0.22);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(60, 60, 60, 0.06);
    position: relative;
}

.invitation-greeting {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: var(--rose-color);
    font-weight: 400;
    margin-bottom: 1rem;
}

.invitation-text,
.invitation-main {
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: 0.6px;
}

.invitation-main {
    margin-top: 0.9rem;
}

.invitation-main .names {
    color: var(--rose-color);
    font-weight: 600;
}

.invitation-hosts {
    margin-top: 1rem;
    font-size: 1.7rem;
    color: var(--dark-text);
    font-weight: 600;
}

.flower-decoration {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.72;
}

.flower-decoration.top-left { top: 12px; left: 14px; }
.flower-decoration.top-right { top: 12px; right: 14px; }
.flower-decoration.bottom-left { bottom: 10px; left: 14px; }
.flower-decoration.bottom-right { bottom: 10px; right: 14px; }

.music-control {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.music-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c7908e 0%, #b77c7a 100%);
    box-shadow: 0 8px 20px rgba(183, 124, 122, 0.33);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(183, 124, 122, 0.4);
}

.music-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.music-toggle.is-muted {
    opacity: 0.78;
    background: linear-gradient(135deg, #9a908e 0%, #7d7270 100%);
}

.music-toggle.is-playing {
    animation: musicPulse 1.8s ease-in-out infinite;
}

.music-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.music-icon-off {
    opacity: 0;
    transform: scale(0.8);
}

.music-toggle.is-muted .music-icon-on {
    opacity: 0;
    transform: scale(0.8);
}

.music-toggle.is-muted .music-icon-off {
    opacity: 1;
    transform: scale(1);
}

@keyframes musicPulse {
    0%,
    100% {
        box-shadow: 0 8px 20px rgba(183, 124, 122, 0.33);
    }
    50% {
        box-shadow: 0 8px 24px rgba(183, 124, 122, 0.5);
    }
}

.countdown-section {
    background: linear-gradient(180deg, #f5f1ed 0%, #ece4dd 100%);
    color: var(--dark-text);
    padding: 4.5rem 2rem;
    text-align: center;
}

.countdown-section h2,
.gallery-section h2,
.location-section h2,
.rsvp-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.highlight {
    color: var(--rose-color);
}

.wedding-calendar {
    max-width: 420px;
    margin: 0 auto 1.2rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(196, 159, 138, 0.26);
    border-radius: 12px;
}

.calendar-header {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    letter-spacing: 0.04em;
    color: var(--accent-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.calendar-weekdays span {
    font-size: 0.68rem;
    font-weight: 600;
    color: #8a7f78;
}

.calendar-days span {
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    border-radius: 999px;
}

.calendar-days .wedding-day {
    background: var(--rose-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(183, 124, 122, 0.35);
}

.calendar-days .day-empty {
    visibility: hidden;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(45px, 1fr));
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(196, 159, 138, 0.26);
    border-radius: 10px;
    padding: 0.6rem;
}

.countdown-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
}

.countdown-followup {
    margin: 0.9rem 0 0;
}

.countdown-followup + .countdown-followup {
    margin-top: 0.4rem;
}

.gallery-section {
    padding: 4.5rem 2rem;
    background: linear-gradient(180deg, #f1ece8 0%, #f6f2ee 100%);
    text-align: center;
}

.gallery-container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-wrapper {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 0;
    background: rgba(183, 124, 122, 0.9);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d8d2ce;
    cursor: pointer;
}

.gallery-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--rose-color);
}

.location-section {
    padding: 4.5rem 2rem;
    background: linear-gradient(180deg, #f6f1ed 0%, #f2ece8 100%);
    text-align: center;
}

.location-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(196, 159, 138, 0.24);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.location-card h3 {
    color: var(--rose-color);
    margin-bottom: 0.8rem;
    font-size: 1.7rem;
}

.location-card p {
    font-size: 1.35rem;
    line-height: 1.45;
}

.rsvp-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #ebe7e4 0%, #f2efec 100%);
    text-align: center;
}

.rsvp-section h2 {
    font-family: 'Great Vibes', cursive;
    color: var(--rose-color);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.rsvp-intro {
    max-width: 690px;
    margin: 0 auto 1.8rem;
    font-size: 2.05rem;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.8px;
}

.rsvp-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.2rem 1.4rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.65rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 2rem;
    color: #66615e;
    letter-spacing: 0.4px;
}

.required {
    color: var(--rose-color);
}

.form-group input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #8f8a86;
    background: transparent;
    padding: 0.3rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--dark-text);
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--rose-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 2.2rem;
    color: #595552;
    cursor: pointer;
}

.radio-label input {
    width: 24px;
    height: 24px;
    accent-color: var(--rose-color);
    cursor: pointer;
}

.submit-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #c7908e 0%, #b77c7a 100%);
    color: #fff;
    font-family: 'Great Vibes', cursive;
    font-size: 2.9rem;
    line-height: 1;
    padding: 0.85rem 2.6rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(183, 124, 122, 0.32);
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.form-message {
    max-width: 720px;
    margin: 0.8rem auto 0;
    text-align: center;
    font-size: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f2e8;
    color: var(--success-color);
}

.form-message.error {
    display: block;
    background: #fbe9ec;
    color: var(--error-color);
}

.responses-wrap {
    max-width: 720px;
    margin: 1.2rem auto 0;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(196, 159, 138, 0.24);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.responses-title {
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
    color: var(--dark-text);
}

.responses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(196, 159, 138, 0.2);
    font-size: 1.15rem;
}

.response-name {
    font-weight: 700;
}

.response-attendance {
    color: #6a6460;
    text-align: right;
}

.responses-empty {
    color: #746e69;
    font-size: 1.1rem;
}

.footer {
    background: #1f1f1f;
    color: #f5f5f5;
    text-align: center;
    padding: 1.6rem;
    font-size: 1.2rem;
}

.footer p {
    margin: 0.35rem 0;
}
