:root {
    /* Theme Palette */
    --gym-pink: #FF6B81;       /* Energetic Pink */
    --elephant-grey: #95A5A6;  /* Soft Grey */
    --mat-purple: #6C5CE7;     /* Deep Purple */
    --foam-blue: #74B9FF;      /* Light Blue */
    --light-bg: #FDF4F5;       /* Very pale pink background */
    --text-color: #2D3436;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
}

h1, h2, h3 { font-weight: 700; color: var(--mat-purple); margin-bottom: 0.5em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Required since fixed elements lose their width */

    /* Make it slightly transparent so the content slides under nicely */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px); /* Adds that modern 'frosted glass' effect */

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1000; /* Ensures it stays on top of everything */
    padding: 0.8rem 1rem;
    box-sizing: border-box; /* Ensures padding doesn't widen the bar beyond 100% */
}
.nav-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand { font-size: 1.5rem; }
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}
nav a:hover { color: var(--gym-pink); }
.rsvp-btn { color: var(--gym-pink); font-weight: bold; }

/* Sections */
section { padding: 4rem 1rem; }
.container { max-width: 800px; margin: 0 auto; text-align: center; }
.alt-bg { background-color: var(--light-bg); border-radius: 40px; margin: 2rem auto; max-width: 900px; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--mat-purple), var(--gym-pink));
    color: white;
    text-align: center;
    padding: 6rem 1rem 8rem;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
}
.icon-header { font-size: 3rem; margin-bottom: 10px; }
.hero h1 { color: white; font-size: 3rem; margin: 0; text-shadow: 2px 2px 0px rgba(0,0,0,0.2); }
.subtitle { font-size: 1.2rem; margin-top: 0.5rem; opacity: 0.9; }

/* Secondary "Ghost" Button */
.secondary-btn {
    display: block;             /* Forces it to its own line below */
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto 0 auto;   /* Centers it and adds space on top */
    width: fit-content;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

.details-card {
    background: rgba(255,255,255,0.2);
    
    /* 1. Force it to be on its own line */
    display: block;
    
    /* 2. Make it only as wide as the text inside (so it doesn't stretch 100%) */
    width: fit-content;
    
    /* 3. Center it horizontally */
    margin: 20px auto; 
    
    padding: 15px 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Carousel Wrapper (Relative for positioning arrows) */
.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 10px; /* Slight padding so arrows don't overlap content on small screens */
}

/* The Scrollable Track */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px; /* Space for scrollbar if visible */
    
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.carousel-track::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Individual Cards */
.carousel-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    
    /* MOBILE DEFAULT: Show 1 image (100% width) */
    width: 100%; 
}

/* DESKTOP: Show 3 images */
@media (min-width: 768px) {
    .carousel-card {
        /* Calculation: (100% width minus the 2 gaps of 20px) divided by 3 items */
        width: calc((100% - 40px) / 3);
    }
}

.carousel-card img {
    width: 100%;

    aspect-ratio: 3 / 4;
    height: auto !important;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--elephant-grey);
    box-shadow: 5px 5px 0px var(--foam-blue);
}
.carousel-card:hover img {
    transform: scale(1.02);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--mat-purple);
    border: 2px solid var(--mat-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.2s;
    transition: transform 0.2s, background 0.2s;

}

.carousel-btn:hover {
    background: var(--mat-purple);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* Hide arrows on mobile since swiping is better/easier */
@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .carousel-wrapper { padding: 0; }
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--mat-purple);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Photos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
    gap: 20px;
    margin-top: 30px;
}
.photo-frame img {
    width: 100%;
    border-radius: 20px;
    border: 5px solid var(--elephant-grey);
    box-shadow: 5px 5px 0px var(--foam-blue);
    transition: transform 0.3s;
}
.photo-frame:hover img { transform: rotate(-2deg) scale(1.02); }

/* FAQ */
.faq-grid { text-align: left; max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; background: white; padding: 20px; border-radius: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faq-item h3 { color: var(--gym-pink); font-size: 1.1rem; margin-top: 0; }

.faq-item p a {
    color: var(--gym-pink);      /* Make it pink */
    font-weight: bold;           /* Make it thick */
    text-decoration: underline;  /* Bring back the underline */
    text-underline-offset: 3px;  /* Give the underline some breathing room */
    transition: color 0.2s;
}

.faq-item p a:hover {
    color: var(--mat-purple);    /* Turn purple on hover */
    background: #fff0f3;         /* Add a tiny highlight background on hover */
}

/* Map */
.map-responsive iframe {
    width: 100%;
    max-width: 100%;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#gift-ideas {
    cursor: pointer;
}

/* Gift Note Box */
.gift-note {
    background: var(--light-bg);
    border: 2px dashed var(--gym-pink);
    padding: 15px;
    border-radius: 15px;
    margin: 0 auto 20px auto;
    max-width: 600px;
    display: block;
}

/* Wishlist Layout */
.wishlist {
    list-style: none; /* Removes default bullets */
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between items */
}

/* Wishlist Items (The "Pills") */
.wishlist li {
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    text-align: left; /* Keeps text readable */
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.2s;
}

/* Hover effect for fun */
.wishlist li:hover {
    transform: scale(1.02);
    border-color: var(--mat-purple);
}

/* Icon styling */
.wishlist .icon {
    font-size: 1.4rem;
    margin-right: 15px;
    min-width: 30px; /* Ensures text lines up even if icons vary in width */
    text-align: center;
}

/* Mobile Tweak: Stack text nicely on very small screens */
@media (max-width: 400px) {
    .wishlist li {
        border-radius: 20px;
        align-items: flex-start;
    }
    .wishlist .icon {
        margin-top: 2px; /* Aligns icon with top line of text */
    }
}

/* Form */
.rsvp-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--elephant-grey);
}
.form-group { margin-bottom: 15px; text-align: left; }
label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--mat-purple); }
input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
}
input:focus { border-color: var(--gym-pink); outline: none; }

button {
    background: var(--mat-purple);
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s;
}
button:hover { background: var(--gym-pink); transform: scale(1.02); }

/* Responsive text for mobile */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .nav-content { justify-content: center; }
    .brand { display: none; } /* Hide brand on small screens to fit nav */
}
