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

:root {
    --burgundy: #8B1538;
    --burgundy-dark: #6B0F2A;
    --burgundy-light: #A52D4F;
    --gold: #D4AF37;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    background-image: url('images/photo4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.7) 0%, rgba(107, 15, 42, 0.8) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.couple-names {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hashtag {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.wedding-date {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--gold);
}

.countdown {
    margin-top: 2rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--burgundy);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--burgundy), transparent);
}

/* Story Section */
.story {
    background: var(--cream);
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Two Images */
.story-images-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: start;
}

.story-images-top .story-image-left {
    transform: rotate(-2deg);
    margin-top: 2rem;
}

.story-images-top .story-image-right {
    transform: rotate(2deg);
    margin-top: 0;
}

/* Middle Two Images */
.story-images-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
    align-items: start;
}

.story-images-middle .story-image-left {
    transform: rotate(2deg);
    margin-top: 0;
}

.story-images-middle .story-image-right {
    transform: rotate(-2deg);
    margin-top: 2rem;
}

.story-image {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--white);
    padding: 8px;
}

.story-image:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 20px 50px rgba(139, 21, 56, 0.3);
}

.story-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Story Text with Fancy Font */
.story-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.9;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-text-first {
    margin-bottom: 3rem;
}

.story-text-rest {
    margin-top: 3rem;
}

.story-text p {
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Details Section */
.details {
    background: var(--white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-card {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.2);
    border-color: var(--burgundy);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dress-code-icon {
    filter: hue-rotate(320deg) saturate(2) brightness(0.7);
    text-shadow: 0 0 15px rgba(139, 21, 56, 0.6), 0 0 25px rgba(139, 21, 56, 0.4);
    display: inline-block;
    transform: scale(1.1);
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.detail-card .note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Schedule Section */
.schedule {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.schedule-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--burgundy), var(--burgundy-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    animation: fadeInLeft 0.6s ease-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--burgundy);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--burgundy);
}

.timeline-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* RSVP Section */
.rsvp {
    background: var(--burgundy);
    color: var(--white);
}

.rsvp .section-title {
    color: var(--white);
}

.rsvp .section-title::after {
    background: linear-gradient(to right, transparent, var(--white), transparent);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.15);
}

.radio-label input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label span {
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--burgundy);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.rsvp-message {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.rsvp-message.success {
    background: rgba(255, 255, 255, 0.2);
    display: block;
}

.rsvp-export-container {
    text-align: center;
    margin-top: 2rem;
}

.export-btn {
    padding: 0.8rem 2rem;
    background: var(--gold);
    color: var(--burgundy);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.export-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--burgundy-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.gift-info {
    margin-bottom: 2rem;
}

.gift-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.gift-note {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--gold);
}

.gift-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gift-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.gift-method h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.gift-method p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.gift-method strong {
    color: var(--gold);
}

.footer-message {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-hashtag {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gold);
    margin-top: 1rem;
    letter-spacing: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (min-width: 768px) {
    .story-images-top,
    .story-images-middle {
        gap: 3rem;
    }
    
    .story-text {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    }
    
    .schedule-timeline {
        padding-left: 3rem;
    }
    
    .timeline-item {
        padding-left: 4rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 0.8rem 1rem;
    }
    
    .story-images-top,
    .story-images-middle {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-images-top .story-image-left,
    .story-images-top .story-image-right,
    .story-images-middle .story-image-left,
    .story-images-middle .story-image-right {
        transform: rotate(0deg);
        margin-top: 0;
    }
    
    .story-image {
        padding: 5px;
    }
    
    .story-text {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    .story-text-first {
        margin-bottom: 2rem;
    }
    
    .story-text-rest {
        margin-top: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .gift-details {
        grid-template-columns: 1fr;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
}
