/* DESIGN SYSTEM */
:root {
    /* Colors */
    --clr-bg: #F9F8F3; /* Warm Cream */
    --clr-text: #2C2C2C; /* Dark Charcoal */
    --clr-accent: #768F74; /* Sage Green */
    --clr-accent-light: #A4B8A2;
    --clr-white: #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --nav-height: 80px;
    --section-pad: 100px 0;
    --container-max: 1200px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(249, 248, 243, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-brand {
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: var(--clr-text);
}

.nav-links li a:hover {
    color: var(--clr-accent-light);
}

.navbar.scrolled .nav-links li a:hover {
    color: var(--clr-accent);
}

.btn-nav {
    border: 1px solid var(--clr-white);
    padding: 8px 20px;
    border-radius: 30px;
}

.navbar.scrolled .btn-nav {
    border-color: var(--clr-accent);
    background-color: var(--clr-accent);
    color: var(--clr-white) !important;
}

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

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

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

/* HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoomInOut 30s infinite alternate linear;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    color: var(--clr-white);
    z-index: 1;
    padding: 0 20px;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-location {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
}

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

/* STORY SECTION */
.story-section {
    background-color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.story-plane-decoration {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 450px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.story-section .container {
    position: relative;
    z-index: 1;
}

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

.story-text {
    font-size: 1.1rem;
    color: #444;
    margin-top: -40px;
}

.story-text p {
    margin-bottom: 20px;
}

.story-images {
    position: relative;
    height: 600px;
}

.img-wrapper {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-color: var(--clr-accent-light);
}

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

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

.img-1 {
    width: 65%;
    height: 75%;
    top: 0;
    left: 0;
    z-index: 3;
}

.img-2 {
    width: 50%;
    height: 50%;
    bottom: 10%;
    right: 0;
    z-index: 1;
}

.img-3 {
    width: 45%;
    height: 45%;
    top: 2%;
    right: 5%;
    z-index: 2;
}

/* DETAILS SECTION */
.details-section {
    background-color: var(--clr-white);
}

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

.detail-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--clr-bg);
    border-radius: 12px;
    border: 1px solid rgba(118, 143, 116, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(118, 143, 116, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--clr-text);
}

.detail-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

/* HISTORY GALLERY SECTION */
.gallery-section {
    background-color: var(--clr-bg);
}

@media (min-width: 993px) {
    .gallery-section {
        height: 100vh;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    .gallery-section .container {
        height: 100%;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .gallery-grid {
        width: 100%;
        max-width: 850px;
        margin: 0 auto;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    aspect-ratio: 4 / 5;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

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

/* TRAVEL SECTION */
.travel-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.travel-intro {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
}

.travel-info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.travel-block {
    background: var(--clr-white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--clr-accent);
}

.travel-block h4 {
    font-size: 1.3rem;
    color: var(--clr-accent);
    margin-bottom: 10px;
    font-family: var(--font-body);
}

/* RSVP SECTION */
.rsvp-section {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.rsvp-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

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

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

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--clr-bg);
}

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

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.btn-submit {
    background-color: var(--clr-white);
    color: var(--clr-accent);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-body);
}

.btn-submit:hover {
    background-color: var(--clr-bg);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    background-color: var(--clr-text);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

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

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .story-grid,
    .rsvp-container {
        grid-template-columns: 1fr;
    }
    
    .story-text {
        margin-top: 0;
        position: relative;
        z-index: 2;
    }
    
    .story-plane-decoration {
        top: auto;
        bottom: 24%;
        left: 60%;
        right: auto;
        transform: translateX(-50%) scale(1.2);
        opacity: 0.20;
        width: 80%;
    }
    
    .story-images {
        height: 450px;
        order: -1;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .story-images {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .details-grid,
    .travel-info-blocks {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-links li a {
        color: var(--clr-text);
        font-size: 1.2rem;
    }
    
    .navbar.scrolled .btn-nav,
    .btn-nav {
        border-color: var(--clr-accent);
        background-color: var(--clr-accent);
        color: var(--clr-white) !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--clr-text);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: var(--clr-text);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .rsvp-container {
        padding: 40px 20px;
    }
    
    .full-width-gallery {
        flex-direction: column;
        height: 80vh;
    }
    
    .gallery-img {
        width: 100%;
        height: 50%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
