:root {
    --primary-color: #f8e1e7;
    --secondary-color: #d4af37;
    --accent-color: #c89696;
    --dark-color: #5d4037;
    --light-color: #fffaf0;
    --font-heading: 'Playfair Display', serif;
    --font-special: 'Dancing Script', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Animated Background Elements */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart, .flower {
    position: absolute;
    color: rgba(212, 175, 55, 0.15);
    font-size: 20px;
    animation: float 8s infinite;
}

.flower {
    color: rgba(200, 150, 150, 0.15);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 250, 240, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-special);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23d4af37" stroke-width="2" fill="none" /></svg>');
    animation: rotate 120s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    animation: fadeIn 2s ease;
}

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    font-family: var(--font-special);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-date {
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 2rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* Creative Story Section */
.our-story {
    background-color: white;
    overflow: hidden;
}

.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 45%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 55%;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 20px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-content {
    background: var(--primary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    top: 20px;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

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

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

/* Improved Photo Gallery - Spacious Carousel */
.gallery {
    background-color: var(--primary-color);
    overflow: hidden;
    position: relative;
    padding: 80px 0;
}

/* Updated Carousel Styles */
.gallery-container {
    position: relative;
    height: 600px;
    perspective: 1000px;
    margin: 0 auto;
    max-width: 1000px;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.carousel-item {
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin-left: -190px;
    margin-top: -240px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
}

.carousel-img {
    height: 70%;
    overflow: hidden;
}

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

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

.carousel-caption {
    padding: 25px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, white, #fefaf7);
}

.carousel-caption h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-family: var(--font-heading);
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 20px;
}

.gallery-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.gallery-btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.25);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* Enhanced Romantic Wedding Details */
.details {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M30,30 Q50,10 70,30 T100,50 T70,70 T50,90 T30,70 T0,50 T30,30" stroke="%235d4037" stroke-width="2" fill="none" /></svg>');
    position: relative;
}

.details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    z-index: -1;
}

.romantic-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
}

.detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.detail-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.detail-card p {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.detail-time {
    font-weight: 600;
    color: var(--secondary-color) !important;
    margin-top: 20px !important;
    font-size: 1.1rem;
}

.detail-map, .detail-weather {
    margin-top: 25px;
}

.map-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--secondary-color);
}

.map-link i {
    margin-left: 8px;
}

.detail-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Day Timeline */
.day-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--dark-color);
}

.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
}

.timeline-event {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.event-time {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.event-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.event-info p {
    color: var(--accent-color);
    margin-bottom: 0;
}

/* Enhanced RSVP Section */
.rsvp {
    background: linear-gradient(rgba(248, 225, 231, 0.9), rgba(248, 225, 231, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M20,50 C20,50 40,30 50,30 C60,30 80,50 80,50 C80,50 60,70 50,70 C40,70 20,50 20,50 Z" stroke="%23d4af37" stroke-width="2" fill="none" /></svg>');
    position: relative;
    overflow: hidden;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    z-index: 0;
}

.rsvp::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(200, 150, 150, 0.1);
    z-index: 0;
}

.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.rsvp-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decoration-flower, .decoration-ring, .decoration-heart {
    position: absolute;
    font-size: 24px;
    color: rgba(212, 175, 55, 0.15);
    z-index: -1;
}

.decoration-flower {
    top: 20px;
    right: 30px;
    transform: rotate(25deg);
}

.decoration-ring {
    bottom: 40px;
    left: 30px;
}

.decoration-heart {
    top: 50%;
    right: 40px;
    color: rgba(200, 150, 150, 0.15);
}

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

.form-header h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--accent-color);
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    flex: 1;
}

.form-group-50 {
    flex: 0 0 calc(50% - 10px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: white;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 45px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.form-control:focus + .form-icon {
    color: var(--secondary-color);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    gap: 10px;
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.25);
}

.btn-rsvp {
    padding: 18px 45px;
    font-size: 1.2rem;
}

.rsvp-confirmation {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.confirmation-content i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.confirmation-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.confirmation-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.btn-confirmation {
    background: var(--accent-color);
}

.btn-confirmation:hover {
    background: var(--dark-color);
}

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

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

.footer-logo {
    font-family: var(--font-special);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 15px;
    min-width: 90px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .story-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 85%;
        left: 15% !important;
        text-align: left !important;
        padding-left: 60px !important;
        padding-right: 20px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 18px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        left: -10px;
        right: auto;
        transform: rotate(-45deg);
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        transform: rotate(-45deg);
    }
    
    .carousel-item {
        width: 320px;
        height: 420px;
        margin-left: -160px;
        margin-top: -210px;
    }
    
    .romantic-details {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .hero-date {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-50 {
        flex: 1 1 100%;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        flex: 0 0 calc(50% - 25px);
        margin-bottom: 15px;
    }
    
    .rsvp-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        width: 280px;
        height: 380px;
        margin-left: -140px;
        margin-top: -190px;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-btn {
        width: 100%;
        justify-content: center;
    }
}