/* Base Styles and Variables */
:root {
    --blue-dark: #004173;
    --blue-medium: #0979b0;
    --blue-light: #0cb7f2;
    --blue-accent: #38bdf8;
    --gray-dark: #7a7a7a;
    --gray-medium: #9c9c9c;
    --gray-light: #969696;
    --white: #ffffff;
    --black: #121212;
    --bg-dark: #161616; 
    --bg-section: #1c1c1c;
    --font-primary: 'Montserrat', sans-serif;
    --font-special: 'Great Vibes', cursive, 'Parisienne', cursive;
    --container-width: 1200px;
    --transition-slow: all 0.5s ease;
    --transition-medium: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --video-overlay-bg: rgba(0, 0, 0, 0.6);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background-color: var(--blue-accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.btn:hover {
    background-color: var(--blue-medium);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Section Layout */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Music Button */
.music-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--blue-accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
}

.music-button:hover {
    transform: scale(1.1);
    background-color: var(--blue-medium);
}

.music-tooltip {
    position: absolute;
    background: var(--blue-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
}

.music-button:hover .music-tooltip {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 0 80px 0;
}

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

.carousel-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    animation: kenBurns 15s infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(1.1) translate(-10px, -10px);
    }
    66% {
        transform: scale(1.15) translate(-20px, 0px);
    }
    100% {
        transform: scale(1.2) translate(-30px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-special);
    font-size: 5.5rem;
    margin-bottom: 0.5rem;
    color: var(--blue-accent);
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: titleFadeIn 1.5s ease-out;
}

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

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: subtitleFadeIn 1.5s ease-out 0.3s backwards;
}

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

.scroll-indicator {
    margin-top: 40px;
    animation: floatArrow 2s infinite ease-in-out;
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    color: var(--white);
    filter: invert(100%);
}

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

/* Countdown Section */
.countdown-section {
    background-color:  rgba(0, 0, 0, 0.0);
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--blue-accent);
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.location-info {
    margin-top: 40px;
}

.location-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Map Section */
.map-section {
    padding: 0;
    background-color: var(--bg-dark);
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container .folium-map {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Gallery Section */
.gallery-section {
    background-color:  rgba(0, 0, 0, 0.0);
    padding: 0; /* Ensure no padding around the section */
}

/* Mobile version: 2 columns */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px; /* No gap between images */
    background-color: transparent; /* Remove any background between grid items */
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
}

/* For larger screens (min-width 768px), 3 columns */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-medium);
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0; /* Remove margin between items */
    padding: 0; /* Remove padding */
    background-color: transparent; /* Ensure no background */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
}

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


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--blue-accent);
}

/* Dress Code Section */
.dress-code-section {
    text-align: center;
    background-color: #4BBAEB;
    color: var(--white);
}

.dress-code-section .section-title {
    color: var(--white);
}

.dress-code-section .section-title::after {
    background-color: var(--white);
}

.dress-code-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 40px;
}

.dress-code-icon {
    margin-bottom: 30px;
}

.dress-icon {
    width: 120px;
    height: 120px;
    animation: gentlePulse 3s infinite ease-in-out;
}

.dress-code-text {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--white);
}

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

/* Instagram Section */
.instagram-section {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    color: var(--white);
    text-align: center;
}

.instagram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.instagram-icon {
    font-size: 4rem;
    color: var(--white);
}

.instagram-handle {
    font-size: 1.8rem;
    font-weight: 600;
}

.instagram-btn {
    background-color: var(--white);
    color: #E1306C;
    margin-top: 15px;
}

.instagram-btn:hover {
    background-color: #efefef;
    color: #833AB4;
}

/* Video Section */
.video-section {
    background-color:  rgba(0, 0, 0, 0.0);
    text-align: center;
    padding: 60px 0;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
}

.video-container video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--video-overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: var(--transition-medium);
}

.video-overlay .fa-play-circle {
    font-size: 5rem;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition-medium);
}

.video-container:hover .video-overlay .fa-play-circle {
    opacity: 1;
    transform: scale(1.1);
}

.video-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Playlist Section */
.playlist-section {
    background-color:  rgba(0, 0, 0, 0.0);
    text-align: center;
}

.playlist-description {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.playlist-additional {
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--gray-medium);
}

.playlist-content {
    margin-top: 20px;
}

.playlist-btn {
    background-color: #1DB954;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.playlist-btn:hover {
    background-color: #1ED760;
}

/* Gift Section */
.gift-section {
    text-align: center;
background-color:  rgba(0, 0, 0, 0.0);
}

.gift-btn {
    margin-top: 30px;
    animation: bounce 2s infinite;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1020;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0);
}

.modal-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.0);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-medium);
    animation: modalFadeIn 0.3s;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--blue-accent);
}

.modal-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--blue-accent);
}

.bank-details {
    margin-bottom: 25px;
}

.bank-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
    width: 100%;
    margin-top: 20px;
}

/* RSVP Section */
.rsvp-section {
background-color: rgba(0, 0, 0, 0.0);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-control {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

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

.rsvp-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.rsvp-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.rsvp-error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations for sections */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Aesthetic Elements */
.sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%2338bdf8' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.3;
}

canvas#aestheticCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 20% auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-bottom: 50px;
    }
}
