:root {
    --primary-color: #A71E34;
    --secondary-color: #C71F37;
    --dark-color: #6c757d;
    --light-color: #f8f9fa;
}

/* Base Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

section {
    scroll-margin-top: 200px;
}

ul, ol, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/Hero.jpg');
    height: 100vh;
    background-size: cover;
    background-position: bottom;
    color: white;
    text-align: center;
}

.hero-content {
    width: 100%;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

.title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-top: 0;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 0.2s;
}

.subtitle {
    font-family: 'Pacifico', cursive;
    margin-bottom: 0.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.3s;
}

/* Section Titles */
.section-title {
    font-family: 'Pacifico', cursive;
    text-align: center;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: block;
    padding-bottom: 0.5rem;
    width: fit-content;
}

    .section-title::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: 60px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

/* Navigation */
#mainNav {
    background: transparent;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

    #mainNav.scrolled {
        background-color: rgba(53,53,53,0.95) !important;
    }

.navbar-brand {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.nav-links .nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

    .nav-links .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s, left 0.3s;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--primary-color);
    }

        .nav-links .nav-link:hover::after,
        .nav-links .nav-link.active::after {
            width: 60%;
            left: 20%;
        }

/* Mobile Menu */
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

    .menu-backdrop.active {
        display: block;
    }

/* Countdown */
.countdown-container {
    padding: 0.5rem;
    border-radius: 6px;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 2.5s;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.time-box {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.2rem;
    backdrop-filter: blur(6px);
    border-radius: 6px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

    .time-box span {
        font-size: 2.5rem;
        font-weight: 600;
        display: block;
    }

.time-split {
    text-align: center;
    padding: 0.2rem 0.2rem;
}

    .time-split span {
        font-size: 2.5rem;
        font-weight: 600;
        display: block;
    }
    /* Couple Section */
    .couple-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        padding: 3rem 1rem 0rem;
        background-color: #f9f9f9;
    }

.couple-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.couple-image {
    flex: 0 0 300px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.oval-wrapper {
    overflow: hidden;
    border-radius: 50% / 30%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: var(--light-color);
}

    .oval-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        left: 0;
        top: 0;
    }

.couple-profiles {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.profile-card {
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

    .profile-card h3 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

/*Gallery Section*/

.gallery-section {
    padding: 3rem 1rem 0;
}

/* details section*/
.details-section {
    padding: 3rem 1rem 0;
}

.detail-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow .2s;
}

    .detail-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.detail-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

    .detail-header i {
        font-size: 24px;
        line-height: 1;
    }

.detail-item h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.bank-details-title {
    font-size: 1rem;
    font-weight: 600;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .schedule-list li {
        display: flex;
        align-items: baseline;
        margin-bottom: 8px;
    }

.schedule-time {
    display: inline-block;
    width: 50px;
    font-weight: bold;
}

/* RSVP Section */
.rsvp-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 3rem 1rem 0rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        color: #fff;
        background-color: var(--secondary-color);
        border-color: var(--primary-color);
    }

    .btn-primary:focus {
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
    }

    .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* Utilities */
.no-bullets {
    list-style-type: none !important;
    margin-left: 16px !important;
}

.icon-primary {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .oval-wrapper {
        width: 400px;
        height: 600px;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        background: rgb(53 53 53 / 95%);
        padding: 1rem;
    }
        .navbar-collapse.collapsing {
            height: auto !important;
            transition: none !important;
        }

    .couple-content {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (min-width: 768px) {
    .details-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: 70% 40%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content {
        margin: auto;
        top: 25%;
        left: 50%;
    }

    .countdown-container {
        padding: 0.5rem;
        width: 100%;
    }

    .time-box {
        padding: 0.3rem 0.3rem;
        min-width: 50px;
    }
        .time-box span {
            font-size: 1.5rem;
        }

    .time-split {
        padding: 0.2rem 0.2rem;
    }

        .time-split span {
            font-size: 1.5rem;
        }

    .couple-section {
        padding: 2rem 1rem;
    }

    .oval-wrapper {
        width: 200px;
        height: 300px;
    }

    .profile-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .countdown {
        flex-direction: row;
        gap: 0.1rem;
    }

    .time-box small {
        font-size: 0.4rem;
    }
}

.site-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity .25s ease;
}

.loader-spinner {
    width: 3rem;
    height: 3rem;
    border: .4rem solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.site-loader:not(.d-none) {
    opacity: 1;
}

.d-none + .site-loader {
    opacity: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body, #rsvp {
    overflow: visible !important;
}

@media (max-width: 575px) {
    #rsvp {
        padding-bottom: 20px;
    }
}

.captcha-container {
    text-align: center;
}

body, #rsvp {
    overflow: visible !important;
}

@media (max-width: 575px) {
    #rsvp {
        padding-bottom: 20px;
    }
}

.grecaptcha-badge {
    z-index: 9999 !important;
}