/* CSS Variables */
:root {
    --primary-color: #8b5a5a;
    --primary-light: #c9a87c;
    --primary-dark: #5a3a3a;
    --accent-color: #d4af37;
    --text-color: #2c2c2c;
    --text-light: #666666;
    --background: #fefefe;
    --background-cream: #faf8f5;
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo {
    color: var(--primary-color);
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-color);
}

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

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

.navbar.scrolled .hamburger span {
    background: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, #8b5a5a 0%, #5a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' 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");
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title span {
    font-style: italic;
    color: var(--accent-color);
    margin: 0 15px;
}

.hero-date {
    margin-bottom: 50px;
}

.hero-date p {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero-date h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 2px;
}

.date-ornament {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 15px auto;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

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

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

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ornament {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto;
}

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

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--accent-color);
}

.placeholder-image {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 3rem;
    position: relative;
    left: 20px;
    top: 20px;
}

.image-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    position: relative;
    left: 20px;
    top: 20px;
}

.story-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 30px;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

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

/* Events Section */
.events {
    padding: 120px 0;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: var(--background-cream);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.event-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.event-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
}

.event-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

.event-card.featured .event-icon svg {
    stroke: var(--accent-color);
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.event-card.featured h3 {
    color: var(--white);
}

.event-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.event-time {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.event-card.featured .event-time {
    color: rgba(255,255,255,0.8);
}

.event-venue {
    font-weight: 500;
    margin-bottom: 5px;
}

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

.event-card.featured .event-address {
    color: rgba(255,255,255,0.7);
}

.event-dress {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--primary-light);
}

.event-card.featured .event-dress {
    color: var(--accent-color);
}

/* New Schedule Styles */
.events-venue-info {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.day-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.day-tab {
    background: var(--background-cream);
    border: 2px solid var(--primary-light);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.day-tab span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
}

.day-tab:hover {
    background: var(--primary-light);
    color: var(--white);
}

.day-tab:hover span {
    color: var(--white);
}

.day-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.day-tab.active span {
    color: rgba(255,255,255,0.8);
}

.day-schedule {
    display: none;
}

.day-schedule.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.schedule-header {
    text-align: center;
    margin-bottom: 40px;
}

.schedule-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.schedule-header p {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-style: italic;
}

.schedule-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.schedule-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.schedule-image img {
    width: 100%;
    height: auto;
    display: block;
}

.schedule-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 20px;
    background: var(--background-cream);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.schedule-item.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.schedule-item .event-time {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    min-width: 100px;
    white-space: nowrap;
}

.schedule-item.highlight .event-time {
    color: var(--accent-color);
}

.schedule-item .event-details h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.schedule-item.highlight .event-details h4 {
    color: var(--white);
}

.schedule-item .event-details p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.schedule-item.highlight .event-details p {
    color: rgba(255,255,255,0.8);
}

@media (max-width: 992px) {
    .schedule-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .schedule-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .day-tabs {
        gap: 10px;
    }

    .day-tab {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .schedule-item {
        flex-direction: column;
        gap: 8px;
    }

    .schedule-item .event-time {
        min-width: auto;
    }
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

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

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

.gallery-note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
}

/* RSVP Section */
.rsvp {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

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

.rsvp .ornament {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.rsvp-subtitle {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.15);
}

.form-group select option {
    color: var(--text-color);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #e6c555;
    transform: translateY(-2px);
}

.rsvp-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.rsvp-success.show {
    display: block;
}

.rsvp-form.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 0 auto 30px;
}

.rsvp-success h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

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

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.footer-date {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-hashtag {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .timeline {
        flex-direction: column;
        gap: 30px;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .timeline-item {
        text-align: left;
        padding-left: 50px;
    }

    .timeline-dot {
        position: absolute;
        left: 12px;
        top: 0;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--white);
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .countdown {
        gap: 20px;
    }

    .countdown-item {
        min-width: 70px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}
