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

:root {
    --primary-color: #5c4033;
    --secondary-color: #8b6f47;
    --accent-color: #d4af6a;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --background-light: #faf8f5;
    --background-dark: #3a2c24;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(58, 44, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-left, .nav-right {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-color);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 3px;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(58, 44, 36, 0.4), rgba(58, 44, 36, 0.6)),
                url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1.5s ease;
}

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

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-title {
    font-size: 80px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 0 auto 30px;
}

.hero-date {
    font-size: 24px;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-location {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

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

.section-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 0 auto 20px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

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

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

.story-content.reverse {
    direction: rtl;
}

.story-content.reverse > * {
    direction: ltr;
}

.story-text h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.story-image {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

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

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

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

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

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

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.event-card {
    background: var(--text-light);
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-number {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.event-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.event-location {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.event-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.event-attire {
    font-size: 14px;
    font-style: italic;
    color: var(--secondary-color);
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Location Link Styles */
.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    margin: -8px -16px;
    border-radius: 4px;
}

.location-link:hover {
    color: var(--accent-color);
    background: rgba(212, 175, 106, 0.1);
}

.location-link:active {
    transform: scale(0.98);
}

.location-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Mobile optimization for location links */
@media (max-width: 768px) {
    .location-link {
        padding: 12px 20px;
        margin: -12px -20px;
        font-size: 15px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .location-icon {
        width: 20px;
        height: 20px;
    }
}

.venue-info {
    text-align: center;
    background: var(--text-light);
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.venue-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.venue-info p {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.8;
}

/* RSVP Section */
.rsvp {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(58, 44, 36, 0.85), rgba(58, 44, 36, 0.85)),
                url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.rsvp .section-header {
    color: var(--text-light);
}

.rsvp .section-title,
.rsvp .section-subtitle {
    color: var(--text-light);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

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

/* Registry Section */
.registry {
    padding: 120px 0;
    background: var(--text-light);
}

.registry-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.registry-card {
    background: var(--background-light);
    padding: 60px 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.registry-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.registry-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.btn-link {
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--background-light);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    text-align: center;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-item p {
    margin-bottom: 10px;
    color: #555;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-date {
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 0 auto 30px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-left, .nav-right {
        gap: 20px;
    }

    .hero-title {
        font-size: 60px;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-left, .nav-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Fix background images on mobile */
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
    }

    .rsvp {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-date {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .story-image img {
        height: 400px;
    }

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

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

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

    .rsvp-form {
        padding: 40px 30px;
    }

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

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .venue-info {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    /* Ensure background images work on small mobile */
    .hero {
        background-attachment: scroll;
    }

    .rsvp {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .rsvp-form {
        padding: 30px 20px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    gap: 15px;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.notification-success .notification-icon {
    background: #4CAF50;
    color: white;
}

.notification-error .notification-icon {
    background: #f44336;
    color: white;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

/* Mobile notification styles */
@media (max-width: 768px) {
    .notification {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .notification-content {
        padding: 15px 20px;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .notification-message {
        font-size: 13px;
    }
}
