/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #d4b08c;
    --secondary-color: #f8f1e9;
    --accent-color: #8d5a45;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #2c2c2c;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    position: relative;
}

.hero-image {
    width: 50%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    width: 50%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.date {
    font-size: 3rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-family: 'Cormorant Garamond', serif;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown span:first-child {
    font-size: 3rem;
    font-weight: 600;
}

.countdown span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Welcome Section */
.welcome, .witnesses {
    padding: 100px 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.welcome h2, .witnesses h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.divider {
    height: 2px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto 40px;
}

.welcome p, .witnesses p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.couple-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
}

.couple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Witnesses Section */
.witnesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.witness-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.witness-card:hover {
    transform: translateY(-10px);
}

.witness-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 3%;
    overflow: hidden;
}

.witness-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.witness-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.witness-card h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.witness-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Event Details */
.event-details {
    padding: 100px 0;
    text-align: center;
    background-color: #fff;
}

.event-details h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.event-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.event-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.event-date, .event-time, .event-location {
    font-weight: 600;
    margin-bottom: 5px;
}

.event-card p:last-child {
    margin-top: 15px;
}

/* RSVP Teaser */
.rsvp-teaser {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/rsvp-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
}

.rsvp-teaser h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.rsvp-teaser p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

.hashtag {
    font-size: 1.2rem;
    margin: 15px 0;
    color: var(--primary-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Gallery Page */
.gallery-section {
    padding: 150px 0 100px;
    background-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item-text{
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    color: var(--text-color-text);
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.gallery-item img, .gallery-item a {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img, .gallery-item:hover a {
    transform: scale(1.1);
}

/* RSVP Form */
.rsvp-section {
    padding: 150px 0 100px;
    background-color: var(--secondary-color);
    position: relative;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.toast-notification.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    min-width: 20px;
}

.toast-close:hover {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        font-size: 14px;
        padding: 12px;
    }
}

.rsvp-form {
    max-width: 600px;
    margin: 50px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.form-group input[type="checkbox"] + label,
.form-group input[type="radio"] + label {
    font-weight: 400;
    display: inline-block;
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    width: auto;
    margin-right: 8px;
}

/* Our Story Page */
.story-section {
    padding: 150px 0 100px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--secondary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Wedding Details Page */
.details-section {
    padding: 150px 0 100px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.details-card {
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.details-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
}

.details-card p {
    margin-bottom: 15px;
}

.map-container {
    height: 300px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.accommodation-list {
    list-style: none;
}

.accommodation-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accommodation-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.accommodation-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }

    .nav-active li {
        opacity: 1;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .countdown span:first-child {
        font-size: 2rem;
    }

    .countdown span:last-child {
        font-size: 0.8rem;
    }

    /* Stack hero sections vertically on mobile */
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-image, .hero-content {
        width: 100%;
    }

    .hero-image {
        height: 50vh;
    }

    .hero-content {
        height: 50vh;
        min-height: 400px;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
}

@media screen and (max-width: 500px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .date {
        font-size: 1.1rem;
    }

    .countdown {
        gap: 15px;
    }

    .countdown span:first-child {
        font-size: 1.5rem;
    }

    .countdown span:last-child {
        font-size: 0.7rem;
    }
    
    .welcome h2,
    .event-details h2,
    .rsvp-teaser h2 {
        font-size: 2rem;
    }

    .nav-links {
        width: 70%;
    }
    
    .timeline-item {
        padding-left: 70px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 1650px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }

    .nav-active li {
        opacity: 1;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}