@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');

/* Serenity Script Font */
@font-face {
    font-family: 'Serenity Script';
    src: url('/Serenity-ScriptBold.woff2') format('woff2'),
         url('/Serenity-ScriptBold.woff') format('woff'),
         url('/Serenity-ScriptBold.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #313429;
    background-color: #e8ddd1;
    overflow-x: hidden;
}

.ww-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.ww-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.ww-hero::before,
.ww-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #262626 20%, #262626 80%, transparent);
}

.ww-hero::before {
    top: 15%;
}

.ww-hero::after {
    bottom: 15%;
}

.ww-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInDown 2s ease-in-out;
}

.ww-name {
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 0.372em;
    text-transform: uppercase;
    color: #313429;
    font-family: 'Cormorant Garamond', serif;
}

.ww-and {
    font-size: 48px;
    font-weight: bold;
    font-style: italic;
    color: #313429;
    margin: 10px 0;
    font-family: 'Serenity Script', cursive;
    letter-spacing: 0em;
}

.ww-date {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #313429;
    animation: fadeInUp 2s ease-in-out 0.5s both;
}

/* Invite Section */
.ww-invite {
    padding: 80px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ww-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.ww-desc {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #313429;
}

/* DateTime Section */
.ww-datetime {
    padding: 80px 40px;
    text-align: center;
}

.ww-calendar {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: transparent;
}

.ww-month {
    font-size: 48px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 30px;
    text-transform: none;
    letter-spacing: 0em;
    font-family: 'Serenity Script', cursive;
    color: #313429;
}

.ww-weeks {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.ww-week-day {
    font-size: 14px;
    font-weight: 400;
    color: #313429;
    text-align: center;
    padding: 10px 0;
    text-transform: uppercase;
}

.ww-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.ww-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.ww-day span {
    color: #313429;
}

.ww-day.ww-weekend span {
    color: #313429;
}

.ww-day.ww-selected {
    position: relative;
}

.ww-day.ww-selected::before {
    content: '♥';
    position: absolute;
    font-size: 70px;
    color: #e08c8c;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ww-day.ww-selected span {
    color: #ffffff;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Separator */
.ww-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #cccccc, transparent);
    margin: 60px 0;
}

.ww-separator.ww-vertical {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #cccccc, transparent);
    margin: 0 auto;
}

/* Location Section */
.ww-location {
    padding: 80px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ww-outline {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 400;
    color: #313429;
    background-color: transparent;
    border: 2px solid #000000;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.ww-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Timing Section */
.ww-timing {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ww-timeline {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
    padding-left: 110px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ww-timeline:not(.ww-last)::after {
    content: '';
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% + 30px);
    background: #cccccc;
}

.ww-timeline .ww-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e8ddd1;
    border: 2px solid #262626;
    margin-right: 30px;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
}

.ww-timeline .ww-image.ww-tray {
    background-image: url('/images/ww-tray.png');
}

.ww-timeline .ww-image.ww-ring {
    background-image: url('/images/ww-diamond-ring.png');
}

.ww-timeline .ww-image.ww-champagne {
    background-image: url('/images/ww-champagne.png');
}

.ww-timeline .ww-image.ww-heart {
    background-image: url('/images/ww-heart.png');
}

.ww-timeline .ww-action {
    display: flex;
    flex-direction: column;
}

.ww-timeline .ww-action .ww-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: initial !important;
}

.ww-timeline .ww-action .ww-desc {
    font-size: 16px;
    font-weight: 300;
    color: #313429;
    margin-bottom: initial !important;
}

/* Dress Code Section */
.ww-dress-code {
    padding: 80px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ww-dress-code .ww-desc {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Addition Section */
.ww-addition {
    padding: 80px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ww-addition .ww-image {
    width: 180px;
    height: 180px;
    margin: 12px auto 14px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ww-addition .ww-desc {
    margin-bottom: 18px;
}

.ww-addition .ww-image.ww-famaly {
    background-image: url('/images/ww-famaly.png');
}

.ww-addition .ww-image.ww-win {
    background-image: url('/images/ww-love-line.png');
}

/* Form Section */
.ww-form {
    padding: 80px 40px 120px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ww-form .ww-desc {
    margin-top: 10px;
    line-height: 1.7;
}

.ww-form-body {
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    max-width: 520px;
}

.ww-label {
    font-size: 20px;
    font-weight: 400;
    color: #313429;
}

.ww-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #262626;
    background: transparent;
    padding: 10px 0;
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    outline: none;
}

.ww-input:focus {
    background: transparent;
    box-shadow: none;
    border-bottom-color: #262626;
}

.ww-input::placeholder {
    color: #313429;
}

.ww-question {
    font-size: 20px;
    font-weight: 400;
    color: #313429;
    text-align: left;
}

.ww-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.ww-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #313429;
}

.ww-radio input {
    accent-color: #262626;
    width: 18px;
    height: 18px;
}

.ww-button {
    margin: 30px auto 0;
    padding: 16px 60px;
    border-radius: 40px;
    border: 1px solid #262626;
    background: transparent;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ww-button:hover {
    background: #262626;
    color: #ffffff;
}

/* Modal Overlay */
.ww-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ww-modal-overlay.ww-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.ww-modal {
    background-color: #e8ddd1;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    position: relative;
}

.ww-modal-overlay.ww-active .ww-modal {
    transform: scale(1);
}

.ww-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.ww-modal-icon.ww-success {
    background-color: rgba(160, 212, 144, 0.3);
    color: #4caf50;
}

.ww-modal-icon.ww-error {
    background-color: rgba(244, 143, 143, 0.3);
    color: #f44336;
}

.ww-modal-title {
    font-size: 26px;
    font-weight: 500;
    color: #313429;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ww-modal-message {
    font-size: 18px;
    font-weight: 300;
    color: #313429;
    line-height: 1.6;
    margin-bottom: 35px;
}

.ww-modal-close {
    padding: 14px 50px;
    border-radius: 40px;
    border: 1px solid #262626;
    background: transparent;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #313429;
}

.ww-modal-close:hover {
    background: #262626;
    color: #ffffff;
}

/* Scroll Animations */
.ww-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ww-animate.ww-visible {
    opacity: 1;
    transform: translateY(0);
}

.ww-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ww-animate-left.ww-visible {
    opacity: 1;
    transform: translateX(0);
}

.ww-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ww-animate-right.ww-visible {
    opacity: 1;
    transform: translateX(0);
}

.ww-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ww-animate-scale.ww-visible {
    opacity: 1;
    transform: scale(1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media screen and (max-width: 959px) {
    .ww-name {
        font-size: 60px;
        letter-spacing: 0.372em;
    }

    .ww-separator {
        font-size: 40px;
    }

    .ww-date {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .ww-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .ww-desc {
        font-size: 18px;
    }

    .ww-timeline .ww-action .ww-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 639px) {
    .ww-name {
        font-size: 48px;
        letter-spacing: 0.372em;
    }

    .ww-separator {
        font-size: 36px;
    }

    .ww-date {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .ww-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .ww-desc {
        font-size: 16px;
    }

    .ww-invite,
    .ww-datetime,
    .ww-location,
    .ww-timing,
    .ww-dress-code,
    .ww-addition {
        padding: 60px 20px;
    }

    .ww-timeline {
        padding-left: 60px;
    }

    .ww-timeline .ww-image {
        width: 40px;
        height: 40px;
    }

    .ww-timeline:not(.ww-last)::after {
        left: 19px;
    }

    .ww-timeline .ww-action .ww-title {
        font-size: 18px;
    }

    .ww-timeline .ww-action .ww-desc {
        font-size: 14px;
    }

    .ww-calendar {
        padding: 20px;
    }

    .ww-month {
        font-size: 40px;
    }

    .ww-day {
        font-size: 14px;
    }
}

@media screen and (max-width: 479px) {
    .ww-hero {
        min-height: 100vh;
        height: 100vh;
        padding: 40px 15px;
        overflow: hidden;
    }

    .ww-name {
        font-size: 36px;
        letter-spacing: 0.372em;
    }

    .ww-separator {
        font-size: 32px;
    }

    .ww-date {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .ww-title {
        font-size: 20px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .ww-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .ww-invite,
    .ww-datetime,
    .ww-location,
    .ww-timing,
    .ww-dress-code,
    .ww-addition {
        padding: 40px 15px;
    }

    .ww-calendar {
        max-width: 320px;
        padding: 15px;
    }

    .ww-month {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .ww-weeks {
        gap: 5px;
    }

    .ww-week-day {
        font-size: 12px;
        padding: 5px 0;
    }

    .ww-days {
        gap: 5px;
    }

    .ww-day {
        font-size: 12px;
    }

    .ww-timeline {
        padding-left: 70px;
        margin-bottom: 40px;
    }

    .ww-timeline .ww-image {
        width: 60px;
        height: 60px;
    }

    .ww-timeline:not(.ww-last)::after {
        left: 29px;
        top: 60px;
    }

    .ww-timeline .ww-action .ww-title {
        font-size: 16px;
    }

    .ww-timeline .ww-action .ww-desc {
        font-size: 13px;
    }

    .ww-outline {
        padding: 12px 30px;
        font-size: 14px;
    }

    .ww-addition .ww-image {
        width: 150px;
        height: 150px;
    }

    .ww-separator {
        margin: 40px 0;
    }

    .ww-separator.ww-vertical {
        height: 40px;
    }
}
