/* ==========================================
   Aastro Vinmani Matrimony - Brand Stylesheet
   Color Palette derived from Logo:
   - Primary: Deep Mahogany Brown (#562801 / #3b1a00 / #743803)
   - Secondary / Accent: Imperial Gold (#d4af37 / #f3c633 / #b8860b)
   - Highlight: Cosmic Ocean Blue (#1363ab / #1d72b8)
   - Backgrounds: Warm Pearl Cream (#faf7f2 / #f4ece1)
   ========================================== */

:root {
    --brand-primary-dark: #3b1a00;
    --brand-primary: #562801;
    --brand-primary-light: #743803;
    --brand-gold: #d4af37;
    --brand-gold-bright: #f3c633;
    --brand-gold-light: #fff8e1;
    --brand-gold-dark: #b8860b;
    --brand-blue: #1363ab;
    --brand-blue-light: #1d72b8;
    --bg-cream: #faf7f2;
    --bg-warm-light: #f4ece1;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Logo Gradient / Main Navbar Background */
.logo-gradient {
    background: linear-gradient(135deg, #3b1a00 0%, #562801 50%, #743803 100%);
    box-shadow: 0 4px 15px rgba(86, 40, 1, 0.25);
    border-bottom: 2px solid var(--brand-gold);
}

.logo-gradient .nav-item {
    padding-left: 15px;
    padding-right: 15px;
}

.logo-gradient .nav-item a.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border-radius: 8px;
}

.logo-gradient .nav-item a.nav-link:hover,
.logo-gradient .nav-item a.nav-link.active {
    color: var(--brand-gold-bright) !important;
    background: rgba(212, 175, 55, 0.18);
    text-shadow: 0 0 10px rgba(243, 198, 51, 0.3);
}

/* Hero Section */
.hero-section {
    background-image: url('../images/banner1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 26, 0, 0.88) 0%, rgba(86, 40, 1, 0.75) 50%, rgba(19, 99, 171, 0.5) 100%);
}

.hero-caption {
    background: rgba(59, 26, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    display: inline-block;
    max-width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Search Section */
.search-section-bg {
    background: linear-gradient(135deg, #3b1a00 0%, #562801 50%, #743803 100%);
    color: #ffffff;
    border-bottom: 3px solid var(--brand-gold);
    position: relative;
    overflow: hidden;
}

.search-section-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.search-section-bg p {
    color: rgba(255, 255, 255, 0.9);
}

.text-gradient {
    background: linear-gradient(135deg, #f6ce37 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-gold);
}

.text-emerald,
.text-primary-brand {
    color: var(--brand-primary) !important;
}

.text-gold {
    color: var(--brand-gold) !important;
}

.bg-emerald,
.bg-primary-brand {
    background-color: var(--brand-primary) !important;
}

.bg-emerald-dark,
.bg-primary-dark {
    background-color: var(--brand-primary-dark) !important;
}

.bg-cream {
    background-color: var(--bg-cream) !important;
}

.members-section,
.success-stories-section,
.testimonials-section {
    background: var(--bg-cream);
}

/* Custom Gold Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f3c633 50%, #b8860b 100%);
    color: #3b1a00 !important;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f3c633 0%, #d4af37 100%);
    color: #261100 !important;
}

/* Primary Brand Button (#562801) */
.btn-emerald,
.btn-primary-brand {
    background: linear-gradient(135deg, #562801 0%, #743803 100%);
    color: #ffffff !important;
    border: 1px solid var(--brand-gold);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 40, 1, 0.3);
}

.btn-emerald:hover,
.btn-primary-brand:hover {
    background: linear-gradient(135deg, #3b1a00 0%, #562801 100%);
    color: var(--brand-gold-bright) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 26, 0, 0.45);
}

/* Outline Gold Button */
.btn-outline-gold {
    background: transparent;
    color: var(--brand-gold) !important;
    border: 2px solid var(--brand-gold);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--brand-gold);
    color: #3b1a00 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Card Gradient (Search Box Card) */
.card-gradient {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    border: 2px solid var(--brand-gold);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(86, 40, 1, 0.18);
}

.card-gradient .form-label {
    color: var(--brand-primary-dark) !important;
    font-weight: 700;
}

.card-gradient .form-select,
.card-gradient .form-control {
    border: 1.5px solid rgba(86, 40, 1, 0.2);
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.card-gradient .form-select:focus,
.card-gradient .form-control:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.card-gradient .btn-gradient {
    background: linear-gradient(135deg, #562801 0%, #743803 100%);
    color: var(--brand-gold-bright) !important;
    border: 1px solid var(--brand-gold);
}

.card-gradient .btn-gradient:hover {
    background: linear-gradient(135deg, #3b1a00 0%, #562801 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(86, 40, 1, 0.4);
}

/* Feature Card */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    background: #ffffff;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(86, 40, 1, 0.12) !important;
    border-color: var(--brand-gold);
}

.feature-card i {
    color: var(--brand-primary);
}

/* Member Card */
.member-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 6px 18px rgba(86, 40, 1, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #ffffff;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(86, 40, 1, 0.18);
    border-color: var(--brand-gold);
}

.member-card img {
    height: 380px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover img {
    transform: scale(1.06);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(59, 26, 0, 0.95), transparent);
    color: var(--brand-gold-bright);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-overlay {
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--brand-gold);
    height: 4px;
    border-radius: 2px;
}

.search-card,
.success-stories-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a1200 0%, #3b1a00 50%, #562801 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    border-top: 3px solid var(--brand-gold);
}

footer h5 {
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f3c633);
    border-radius: 2px;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--brand-gold-bright);
    padding-left: 6px;
}

/* Override bootstrap text-muted/white-50 in footer */
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

footer .text-warning {
    color: var(--brand-gold-bright) !important;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    color: var(--brand-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--brand-gold);
    color: #3b1a00;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(212, 175, 55, 0.4);
    padding-left: 0;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.35);
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* App Download Section */
.app-download-section {
    background: linear-gradient(135deg, #3b1a00 0%, #562801 50%, #743803 100%);
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--brand-gold);
    border-bottom: 2px solid var(--brand-gold);
    color: #ffffff;
}

.app-download-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.app-download-content h1,
.app-download-content h2,
.app-download-content h3,
.app-download-content h4,
.app-download-content h5,
.app-download-content h6 {
    color: #ffffff;
}

.app-download-content p {
    color: rgba(255, 255, 255, 0.92);
}

.app-download-content .bi-check-circle-fill {
    color: var(--brand-gold-bright);
}

.app-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.circle-1 {
    top: -80px;
    right: -80px;
}

.circle-2 {
    bottom: -80px;
    left: -80px;
}

.btn-app {
    background: #ffffff;
    color: #3b1a00;
    border: 1px solid var(--brand-gold);
    border-radius: 12px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 170px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.btn-app:hover {
    background-color: var(--brand-gold-light);
    transform: translateY(-3px);
    color: #261100;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-app i {
    font-size: 2rem;
    margin-right: 12px;
    color: var(--brand-primary);
}

.btn-app small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.85;
    color: #3b1a00;
}

.btn-app span {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3b1a00;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #ffffff;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF !important;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Responsive Nav Logo */
.nav-logo {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .nav-logo {
        height: 60px;
    }

    .mobile-nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .mobile-nav-logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin-bottom: 10px;
        order: 1;
    }

    .mobile-nav-right {
        margin-left: 0 !important;
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .mobile-nav-left {
        position: absolute;
        left: 15px;
        top: 15px;
    }
}

/* ==========================================
   Page Preloader / Loading Screen
   ========================================== */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #3b1a00 0%, #562801 50%, #743803 100%);
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    color: #ffffff;
}

#page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    z-index: -1 !important;
}

.preloader-content {
    text-align: center;
    position: relative;
    padding: 20px;
}

.preloader-spinner-box {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--brand-gold-bright);
    border-bottom-color: var(--brand-gold);
    animation: preloaderSpin 1.4s linear infinite;
}

.preloader-ring-inner {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: #ffffff;
    border-right-color: rgba(212, 175, 55, 0.6);
    animation: preloaderSpinReverse 1s linear infinite;
}

.preloader-icon {
    font-size: 2.2rem;
    color: var(--brand-gold-bright);
    animation: preloaderPulse 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(243, 198, 51, 0.6);
}

.preloader-img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: preloaderPulse 1.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(243, 198, 51, 0.5));
}

.preloader-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffe066 0%, #f3c633 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.preloader-dots {
    display: inline-block;
    margin-left: 4px;
}

.preloader-dots span {
    animation: preloaderDotFade 1.4s infinite;
    opacity: 0;
}

.preloader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderSpinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes preloaderPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes preloaderDotFade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}