:root {
    --primary-color: #9b7b6b;
    --primary-light: #c4a99a;
    --primary-dark: #6d564a;
    --gold: #d4a853;
    --gold-light: #e8c97c;
    --cream: #faf8f5;
    --cream-dark: #f0ebe4;
    --text-dark: #3d3d3d;
    --text-light: #6b6b6b;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a853' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
    padding-top: 80px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-invitation {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--gold);
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-to {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 5px;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.ampersand {
    font-style: italic;
    color: var(--gold);
    display: inline-block;
    margin: 0 15px;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-date p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.date-ornament {
    color: var(--gold);
    font-size: 1.2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--primary-dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 5px;
}

.cta-button {
    display: inline-block;
    padding: 15px 50px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--gold-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    position: relative;
}

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

@keyframes scroll {
    0% { opacity: 1; top: 5px; }
    100% { opacity: 0; top: 15px; }
}

/* Section Styles */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 10px;
}

.ornament {
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 40px;
}

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

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    text-align: center;
    padding: 50px 40px;
    background: var(--cream);
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.event-card:hover::after {
    transform: scaleX(1);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.event-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.event-time {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 15px;
}

.event-venue {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.event-address {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.map-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--primary-color);
}

/* Schedule Section */
.schedule {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--primary-light) 100%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--cream);
    z-index: 1;
}

.timeline-time {
    flex: 1;
    text-align: right;
    padding-right: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 500;
}

.timeline-content {
    flex: 1;
    padding-left: 40px;
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 50px;
}

.love-story-text {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 40px;
    font-style: italic;
    padding: 0 20px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    background: var(--gold);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.gallery-item::after {
    content: 'View';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    color: white;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* RSVP Section */
.rsvp {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    text-align: center;
}

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

.rsvp .ornament {
    color: var(--gold-light);
}

.rsvp-text {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.rsvp-deadline {
    margin-bottom: 25px;
}

.rsvp-deadline p {
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.9;
}

.rsvp-deadline strong {
    color: var(--gold-light);
}

.rsvp-button {
    display: inline-block;
    padding: 18px 60px;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.rsvp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.rsvp-button:hover::before {
    width: 300px;
    height: 300px;
}

.rsvp-button:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.rsvp-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus {
    box-shadow: 0 0 0 3px var(--gold-light);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-light);
}

.radio-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

.radio-option .radio-label {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.rsvp-form .rsvp-button {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.rsvp-success {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.rsvp-success .success-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.rsvp-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.rsvp-success p {
    color: var(--white);
    opacity: 0.9;
}

.gift-note {
    margin-top: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.gift-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.gift-note p {
    color: var(--white);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rsvp-note {
    margin-top: 30px;
}

.rsvp-note p {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.rsvp-note a {
    color: var(--gold-light);
    text-decoration: none;
}

.rsvp-note a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--primary-dark);
    text-align: center;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-date {
    color: var(--primary-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-hearts {
    color: var(--gold);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .carousel-slide img {
        height: 400px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-container {
        gap: 10px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding-top: 50px;
    }

    .countdown {
        gap: 15px;
        margin-bottom: 20px;
    }

    .scroll-indicator {
        bottom: 10px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .hero-invitation {
        font-size: 3.5rem;
    }

    .hero-to {
        font-size: 1.1rem;
    }

    .hero-names {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-date p {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .event-card h3 {
        font-size: 1.6rem;
    }

    .event-time {
        font-size: 1.3rem;
    }

    .event-venue, .event-address {
        font-size: 1rem;
    }

    .timeline-time {
        font-size: 1.1rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .rsvp-text {
        font-size: 1.15rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input[type="text"] {
        font-size: 1.1rem;
    }

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

    .rsvp-button {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 16px 45px;
    }

    .details {
        padding: 60px 0;
    }

    .schedule {
        padding: 60px 0;
    }

    .gallery {
        padding: 60px 0;
    }

    .rsvp {
        padding: 60px 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-time {
        text-align: left;
        padding: 0;
        margin-bottom: 5px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group {
        margin-bottom: 15px;
    }

    .rsvp-text {
        margin-bottom: 15px;
    }

    .rsvp-deadline {
        margin-bottom: 20px;
    }

    .love-story-text {
        font-size: 1.05rem;
        padding: 0 15px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .hero-invitation {
        font-size: 2.8rem;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .love-story-text {
        font-size: 1rem;
    }
}
