/* =========================================
   Rose Gold Wedding Theme Styles
   ========================================= */

   :root {
    /* Color Palette */
    --primary-color: #b76e79; /* Rose Gold Main */
    --secondary-color: #e0bfb8; /* Rose Gold Soft */
    --bg-color: #fdfbf7; /* Off-white Cream */
    --bg-light: #f9f2f0; /* Soft Pinkish Background for sections */
    --text-color: #4a3b3c; /* Dark warm grey */
    --text-light: #7a6668;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    /* Spacing & Layout */
    --nav-height: 80px;
    --section-padding: 100px 20px;
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.script-font {
    font-family: var(--font-script);
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    height: 1px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 20px auto;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--text-color);
    transform: translateY(-2px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
}

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

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 35%, rgba(253, 251, 247, 0.9) 70%, rgba(253, 251, 247, 1) 85%);
}

.hero-content {
    background-color: transparent;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 20px;
    border: none;
    box-shadow: none;
}

.save-the-date {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-content .names {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 2px 5px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-date {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-secondary {
    background-color: rgba(0,0,0,0.3);
    border: 2px solid #ffffff;
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.hero-btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.date-location {
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.date-location .date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date-location .location {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =========================================
   Story Section
   ========================================= */
.story-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-text {
    flex: 1;
}

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

.story-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.story-image {
    flex: 1;
    position: relative;
}

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

.image-frame img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.frame-border {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 40px;
    left: 40px;
    border: 2px solid var(--secondary-color);
    z-index: 1;
    border-radius: var(--border-radius);
}

/* =========================================
   Proposal Section
   ========================================= */
.proposal-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row-reverse;
}

.proposal-image {
    flex: 1;
}

.proposal-image img {
    border-radius: 200px 200px 0 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    height: 500px;
    width: 100%;
    object-fit: cover;
}

.proposal-text {
    flex: 1;
    text-align: right;
}

.proposal-text h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.proposal-text .script-font {
    margin: 10px 0 30px;
}

.proposal-text p:not(.script-font) {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* =========================================
   Timeline / Schedule Section
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    width: 45%;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.timeline-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 10;
}

.timeline-content .time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* =========================================
   Gallery Section
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    aspect-ratio: 4/5;
}

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

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

/* =========================================
   RSVP Section
   ========================================= */
.rsvp-card {
    background-color: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.rsvp-card h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.rsvp-card p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: border-color 0.3s ease;
    resize: vertical;
}

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

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer .script-font {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer p {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.footer .copyright {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: #b0b0b0;
    margin-top: 40px;
}

/* =========================================
   Animations (Scroll Reveal)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .story-content, .proposal-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .proposal-text {
        text-align: center;
    }
    
    .frame-border {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-content .names {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-date {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 85%;
        max-width: 280px;
        text-align: center;
    }

    .proposal-image img {
        height: 300px;
    }
    
    .save-the-date {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 20px;
    }
    
    .rsvp-card {
        padding: 40px 20px;
    }

    /* Mobile Timeline */
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        justify-content: flex-end !important;
    }
    .timeline-content {
        width: calc(100% - 80px);
        text-align: left;
    }
    .timeline-icon {
        left: 30px;
    }
}
