/* ====================================================== */
/* 1. COLOR PALETTE (Your Specific Colors)                */
/* ====================================================== */
:root {
    --astro-primary: #5C0000;  /* Rich Maroon */
    --astro-accent: #FFD700;   /* Pure Gold */
    --astro-light: #FFF8E7;    /* Cosmic Latte */
    --astro-gradient: linear-gradient(135deg, #800000, #5C0000);
    /* NEW: Premium light gradient for top header contrast */
    --header-gradient-light: linear-gradient(to right, #FFF8E7, #FFFFFF, #FFF8E7);
}

/* --- GLOBAL RESET --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--astro-light);
}

/* ====================================================== */
/* 2. TOP HEADER SECTION (Updated for Contrast)           */
/* ====================================================== */
.top-header {
    /* FIX: Changed back to Light Gradient for better contrast with Navbar */
    background: var(--header-gradient-light); 
    padding: 10px 0;
    /* Subtle separation line */
    border-bottom: 1px solid rgba(92, 0, 0, 0.1); 
    width: 100%;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px; 
    transition: opacity 0.3s ease; /* Smoothly fades the logo in and out */
}

.brand-area:hover {
    opacity: 0.8; /* Dims the area slightly when the mouse is over it */
}

/* LOGO: 90px Desktop, No Border */
.logo-placeholder img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    /* Soft shadow to make it pop off the light background */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* Ensure it takes available space */
}

/* TITLE: Maroon Text on Light Background = High Contrast */
.site-title h1 {
    color: var(--astro-primary); 
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
    -webkit-text-stroke: 0;
}

/* --- CONTACT PILLS --- */
.contact-pills {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.contact-btn {
    /* FIX: Maroon Buttons on Light Background */
    background-color: var(--astro-primary); 
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    border: 1px solid var(--astro-primary);
}

.contact-btn:hover {
    background-color: var(--astro-accent); /* Turns Gold */
    color: var(--astro-primary); /* Text becomes Maroon */
    border-color: var(--astro-accent);
    transform: translateY(-2px);
}

/* ====================================================== */
/* 3. NAVBAR SECTION                                      */
/* ====================================================== */
.navbar {
    background: var(--astro-gradient);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 800;
    padding: 12px 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

/* Desktop Only Styles */
@media (min-width: 992px) {
    .navbar-nav .nav-item { margin: 0 3px; }

    .navbar-nav .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.2);
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        text-align: center;
        /* REDUCED PADDING & FONT SIZE TO FIT LONG TITLES */
        padding: 10px 10px; 
        font-size: 0.75rem;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--astro-accent);
        color: var(--astro-primary) !important;
        border-color: var(--astro-accent);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .dropdown:hover .dropdown-menu {
        display: block; margin-top: 0; animation: fadeIn 0.3s;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    background-color: var(--astro-primary);
    border: 1px solid var(--astro-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: white !important;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.dropdown-item:hover {
    background-color: var(--astro-accent);
    color: var(--astro-primary) !important;
}

/* --- LANGUAGE BUTTON & TOGGLER --- */
.lang-btn {
    border: 1px solid var(--astro-accent);
    color: var(--astro-accent);
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 4px;
    background: transparent;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.lang-btn:hover {
    background-color: var(--astro-accent);
    color: var(--astro-primary);
}

.navbar-toggler {
    border-color: var(--astro-accent);
    margin-right: 0;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ====================================================== */
/* 4. PRELOADER                                           */
/* ====================================================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #FFF8E7, #fff);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    text-align: center; transition: opacity 0.5s ease;
}

.swastik-icon {
    width: 250px; height: auto;
    animation: spin-slow 4s linear infinite;
    margin-bottom: 35px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.loading-text {
    color: var(--astro-primary); font-size: 1.8rem;
    font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.preloader-hidden { opacity: 0; pointer-events: none; }

/* ====================================================== */
/* 5. ABOUT ME SECTION                                    */
/* ====================================================== */
.about-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-image: url('images/about-bg.jpg');
    background-size: cover; background-position: center center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.1);
}

.container { position: relative; z-index: 5; }

.about-img-wrapper {
    position: relative; z-index: 6;
    border: 3px solid var(--astro-accent);
    border-radius: 8px;
    box-shadow: 15px 15px 0px var(--astro-primary);
    transition: transform 0.3s ease;
    background: white;
}

.about-img-wrapper:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px var(--astro-primary);
}

.about-img-wrapper img {
    width: 100%; height: auto;
    border-radius: 4px; display: block;
}

.about-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.about-content .main-title {
    color: var(--astro-primary); font-weight: 900; font-size: 2.7rem;
    margin-bottom: 25px; position: relative; padding-bottom: 15px;
    z-index: 6; text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.about-content .main-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 60px; height: 4px; background-color: var(--astro-primary);
}

.about-content .lead-text {
    font-size: 1.3rem; font-weight: 700; color: #000;
    margin-bottom: 20px; border-left: 5px solid var(--astro-primary);
    padding-left: 15px; line-height: 1.6;
}

.about-content p {
    color: #151414; font-weight: 500; font-size: 1.45rem;
    line-height: 1.8; margin-bottom: 15px;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.8);
}

/* --- STATS COUNTER STYLING (Universal) --- */
.stat-box {
    padding: 15px 10px;
    border: 1px solid var(--astro-primary);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 100px;
}

.stat-box:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.1);
}

.number-wrapper { display: flex; align-items: baseline; justify-content: center; }

.stat-box h3 {
    color: var(--astro-primary); font-weight: 900; font-size: 2rem;
    margin: 0; line-height: 1;
}

.stat-box span {
    color: var(--astro-primary); font-weight: 900; font-size: 2rem;
    margin-left: 2px; line-height: 1;
}

.stat-box p {
    color: #333; font-weight: 600; font-size: 0.95rem;
    margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- CUSTOM BUTTON --- */
.btn-astro {
    background-color: var(--astro-primary); color: white;
    padding: 14px 35px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 50px; border: 2px solid var(--astro-primary);
    transition: all 0.3s ease; display: inline-flex; align-items: center;
}

.btn-astro:hover {
    background-color: #FFD700; color: var(--astro-primary);
    border-color: #5C0000; box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* ====================================================== */
/* 6. MODAL STYLES                                        */
/* ====================================================== */
.booking-content {
    border: 2px solid var(--astro-primary); border-radius: 10px; overflow: hidden;
}

.modal-header {
    background: var(--astro-gradient); color: white; border-bottom: 2px solid var(--astro-accent);
}

.modal-title {
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 auto;
}

.modal-body { background-color: var(--astro-light); padding: 30px; }

.form-label { font-weight: 600; color: var(--astro-primary); font-size: 0.9rem; }

.form-control {
    border: 1px solid #ccc; border-radius: 6px; padding: 10px;
}

.form-control:focus {
    border-color: var(--astro-primary); box-shadow: 0 0 5px rgba(128, 0, 0, 0.2);
}

.check-icon i { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header .btn-close { filter: invert(1); }

/* =========================================
   FLOATING SIDE SOCIAL BAR
========================================= */
.side-social-bar {
    position: fixed;
    top: 50%;
    right: 0; 
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.side-social-bar a {
    /* INCREASED SIZE FOR LAPTOPS */
    width: 60px;  
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem; /* Bigger icons to match 60px height */
    transition: 0.3s;
    margin-bottom: 2px;
}

/* Specific Colors preserved from your perfect code */
.side-whatsapp { background-color: #25D366; }
.side-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.side-youtube { background-color: #FF0000; }

.side-social-bar a:hover {
    width: 75px; /* Larger hover expansion for laptops */
    padding-right: 10px;
}
/* ====================================================== */
/* 7. RESPONSIVE MEDIA QUERIES (UPDATED FIX)              */
/* ====================================================== */

/* --- TABLET & BELOW (991px to 577px) --- */
@media (max-width: 991px) {
    /* 1. TOP HEADER ALIGNMENT (Tighter Gap) */
    .brand-area {
        margin-bottom: 5px; 
        flex-wrap: nowrap; 
        justify-content: flex-start; 
        text-align: left;
        gap: 10px; /* Reduced from default 15px to 10px */
    }
    
    .site-title {
        width: auto; 
        padding-left: 0; /* FIX: Removed the extra 15px padding */
        align-items: flex-start;
    }
    
    /* Font size adjustment for your new longer name */
    .site-title h1 { 
        font-size: 1.5rem; 
    }
    
    .contact-pills { justify-content: center; margin-top: 5px; }

    /* 2. GENERAL CENTERING HELPERS */
    .navbar-nav {
        text-align: left; margin-left: 0 !important; padding-left: 15px;
    }
   .about-content {
        padding-left: 0 !important;
        text-align: center;
    }
    .about-content .main-title::after { left: 50%; transform: translateX(-50%); }
    .about-content .row {
        justify-content: center !important; /* Centers the 3 columns horizontally */
        margin-left: 0 !important;          /* Removes negative margin that pulls left */
        margin-right: 0 !important;         /* Removes negative margin that pulls right */
    }
    
    /* 3. FOOTER ALIGNMENT */
    .footer-col.text-center { text-align: center !important; }
    .text-center .footer-heading::after { left: 50%; transform: translateX(-50%); }
   
    .footer-description { margin: 15px auto; }
    .social-links { justify-content: center; }
    
    /* Video & Modern Section */
    .modern-title { font-size: 2.2rem; }
    .modern-video-section { padding: 50px 0; }
    .video-glass-card { animation: none; margin-bottom: 0; }
    .video-wrapper { padding-top: 75%; }
}

/* --- MOBILE & SMALL PHONES (576px and below) --- */
@media (max-width: 576px) {
    
    /* BRANDING FIX: Keep side-by-side even on small phones */
    .brand-area { gap: 10px; }
    
    .logo-placeholder img {
        width: 60px; /* Shrink logo */
        height: 60px;
    }

    .site-title h1 {
        font-size: 1.1rem; /* Resize text to fit next to logo */
       
    }

    .contact-pills {
        justify-content: flex-start; /* Left align buttons on phone */
        margin-top: 10px;
    }
    
    .contact-btn {
        padding: 6px 12px; font-size: 0.8rem; /* Smaller buttons */
       
    }
    
    .footer-logo { width: 65px; height: 65px; }

    /* General Typography */
    .about-content .main-title { font-size: 1.8rem; }
    .about-content p { font-size: 1.1rem; }
    .stat-box { padding: 8px 2px; }
    .stat-box h3, .stat-box span { font-size: 1.4rem; }
    .stat-box p { font-size: 0.7rem; margin-top: 3px; }
    
    /* --- FIXED: Footer Mobile (Updated for 3-word links) --- */
    .footer-col.col-6 { 
        width: 100%; 
        text-align: center; 
        margin-bottom: 30px; 
       
    }
    
    .footer-col.col-6 .footer-heading, 
    .footer-col.col-6 .footer-links { 
        text-align: center; 
       
    }

    .footer-col.col-6 .footer-heading::after { 
        left: 50%; 
        transform: translateX(-50%); 
       
    }

    .footer-links li { margin-bottom: 15px; }
    
    /* Video Mobile */
    .video-wrapper { padding-top: 85%; }
    .badge-modern { margin-top: 15px; }
    
    /* Testimonial Mobile */
    .section-title-light { font-size: 2rem; }
    .testimonial-card { padding: 40px 50px; }

   /* FIX: Transparent Arrows for Mobile */
    .carousel-control-prev, .carousel-control-next {
        width: 40px; 
        height: 40px; 
        background-color: transparent; 
        border: none; 
        border-radius: 50%; 
        top: 50%; 
        transform: translateY(-50%);
        opacity: 1;
    }

    .carousel-control-prev { left: 5px; }
    .carousel-control-next { right: 5px; }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 2rem; 
        height: 2rem; 
        filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
    }
    /* Hide floating social bar on mobile to keep screen clear */
   .side-social-bar {
        top: auto;
        bottom: 0;
        right: auto; /* Remove right alignment */
        left: 0;     /* Snap to left */
        transform: none;
        flex-direction: row; 
        width: 50%;  /* Only take half the screen */
        background: rgba(0, 0, 0, 0.8); 
        padding: 0;
        border-top-right-radius: 10px; /* Optional: rounds the inner corner */
        overflow: hidden;
    }

    .side-social-bar a {
        width: 33.33%; /* These 3 now share 50% of the total screen width */
        height: 45px;  /* Slightly shorter for a "squeezed" look */
        margin-bottom: 0;
        border-radius: 0;
        font-size: 1rem; /* Smaller icons to fit the tight space */
    }

    .side-social-bar a:hover {
        width: 33.33%; 
        padding-right: 0;
    }
}
/* =========================================
   VIDEO SHLOKA SECTION
========================================= */
.video-shloka-section {
    position: relative; width: 100%; height: 80vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-top: 4px solid var(--astro-primary); border-bottom: 4px solid var(--astro-accent);
}
.video-bg-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.video-bg-container video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    background: linear-gradient(to bottom, rgba(5, 5, 20, 0.6), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(1px);
}
.shloka-content { animation: fadeInUp 1.5s ease-out; padding: 0 20px; }
.shloka-sanskrit {
    font-size: 3.5rem; font-weight: 900; color: #FFD700;
    line-height: 1.4; margin-bottom: 25px; text-shadow: 0px 0px 15px rgba(255, 215, 0, 0.6);
}
.shloka-meaning {
    font-size: 1.6rem; font-weight: 500; color: #FFFFFF; font-style: italic;
    line-height: 1.6; max-width: 800px; margin: 0 auto; text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .video-shloka-section { height: 70vh; }
    .shloka-sanskrit { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .video-shloka-section { height: 60vh; min-height: 500px; }
    .shloka-sanskrit { font-size: 2.2rem; }
    .shloka-meaning { font-size: 1.2rem; }
}
@media (max-width: 576px) {
    .shloka-sanskrit { font-size: 1.8rem; }
    .shloka-meaning { font-size: 1rem; }
}

/* --- Background Video Fade Logic --- */
.video-fade {
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth 1.5 second fade */
}

.video-ready {
    opacity: 1 !important;
}
/* =========================================
   SERVICES / EXPERTISE SECTION (Square Fix)
========================================= */
.services-section { padding: 80px 0; background-color: var(--astro-light); position: relative; }
.sub-title { color: var(--astro-primary); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 1rem; margin-bottom: 10px; }
.section-title { color: #000; font-weight: 900; font-size: 2.8rem; margin-bottom: 20px; }

/* CARD UPDATES */
.service-card {
    background: #ffffff; 
    border: 5px solid var(--astro-primary); 
    border-radius: 15px; 
    padding: 30px 20px; /* Reduced padding */
    transition: all 0.4s; 
    box-shadow: 0 10px 30px rgba(92, 0, 0, 0.05); 
    
    /* Flexbox for Centering */
    display: flex; 
    flex-direction: column; 
    height: 100%;
    align-items: center;    /* Center Horizontally */
    justify-content: center; /* Center Vertically */
    text-align: center;      /* Center Text */
}

/* DESKTOP ONLY: FORCE SQUARE SHAPE */
@media (min-width: 992px) {
    .service-card {
        aspect-ratio: 1 / 1; /* Forces a perfect square */
    }
}

.service-card:hover { transform: translateY(-10px); border-color: var(--astro-accent); box-shadow: 0 20px 40px rgba(92, 0, 0, 0.15); }

.icon-wrapper {
    width: 70px; /* Slightly smaller icon bubble */
    height: 70px; 
    background-color: #f8ead7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 20px; /* Reduced margin */
    transition: 0.4s; border: 2px solid var(--astro-primary);
    flex-shrink: 0; 
}
.icon-wrapper i { font-size: 2rem; color: var(--astro-primary); }

.service-card:hover .icon-wrapper { background-color: var(--astro-primary); transform: rotate(360deg); }
.service-card:hover .icon-wrapper i { color: var(--astro-accent); }

.service-title { font-size: 1.6rem; font-weight: 800; color: #000; margin-bottom: 15px; }

/* CRITICAL: Limit Text to keep it Square */
.service-text {
    font-size: 1.2rem; 
    color: #333; 
    font-weight: 500; 
    line-height: 1.6;
    margin-bottom: 20px; 
    
    /* This cuts off extra text so the card stays square */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Shows only 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    font-weight: 800; text-transform: uppercase; color: var(--astro-primary);
    text-decoration: none; font-size: 1rem; letter-spacing: 1px;
    transition: 0.3s; padding-bottom: 5px; border-bottom: 3px solid var(--astro-accent);
    margin-top: auto;
}
.read-more-btn:hover { color: #000; border-bottom-color: var(--astro-primary); padding-left: 10px; }

/* Intro Text */
.section-intro-text {
    font-size: 1.1rem; font-weight: 500; color: #444; line-height: 1.7;
    margin-top: 20px; margin-bottom: 30px !important; max-width: 800px;
}
.header-line {
    width: 100px; height: 5px; background-color: var(--astro-primary); border-radius: 2px;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .services-section { padding: 50px 0; }
    .service-card { 
        padding: 30px 20px; 
        aspect-ratio: auto; 
        min-height: auto;
    }
    .service-text {
        -webkit-line-clamp: 5; 
    }
}
@media (max-width: 576px) { .section-title { font-size: 1.8rem; } }

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonials-section {
    padding: 80px 0; position: relative;
    background-image: url('images/testimonials.jpg');
    background-size: cover; background-position: center;
    background-attachment: fixed; background-repeat: no-repeat;
    color: white;
}
.testimonials-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(92, 0, 0, 0.85); z-index: 1;
}
.sub-title-light {
    color: var(--astro-accent); font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px;
}
.section-title-light {
    color: white; font-weight: 900; font-size: 2.5rem; margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.header-line-light {
    width: 80px; height: 4px; background-color: var(--astro-accent); border-radius: 2px;
}
.testimonial-card {
    background: white; color: #333; border-radius: 15px;
    padding: 40px 50px; max-width: 800px; margin: 0 auto;
    position: relative; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--astro-accent);
}
.quote-icon {
    font-size: 3rem; color: rgba(92, 0, 0, 0.1);
    position: absolute; top: 20px; left: 20px;
}
.review-text {
    font-size: 1.2rem; font-weight: 500; line-height: 1.8;
    margin-bottom: 30px; text-align: center; position: relative; z-index: 2;
}
.client-info {
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.client-img {
    width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid var(--astro-accent); object-fit: cover;
}
.client-name {
    font-weight: 800; color: var(--astro-primary); margin: 0; font-size: 1.1rem;
}
.client-location { font-size: 0.85rem; color: #666; display: block; }
.stars { color: var(--astro-accent); font-size: 0.9rem; margin-top: 3px; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
    width: 3rem; height: 3rem;
}

/* =========================================
   MODERN 3D VIDEO SECTION
========================================= */
.modern-video-section {
    padding: 100px 0; position: relative; overflow: hidden;
    background-color: #FFFDF5; border-top: 5px solid var(--astro-accent);
}
.animated-blob {
    position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(92, 0, 0, 0.05) 70%);
    border-radius: 50%; filter: blur(60px); z-index: 1;
    animation: blob-float 10s ease-in-out infinite alternate;
}
/* Feedback when the button is clicked */
.play-trigger-wrapper:active {
    transform: scale(0.95);
    opacity: 0.8;
}
@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}
.video-glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px; padding: 15px;
    box-shadow: 0 25px 50px rgba(92, 0, 0, 0.15);
    position: relative; animation: card-float 6s ease-in-out infinite;
}
@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.video-wrapper {
    border-radius: 20px; overflow: hidden; position: relative;
    width: 100%; padding-top: 56.25%; background: black;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}
.video-wrapper video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.badge-modern {
    background-color: rgba(255, 215, 0, 0.2); color: var(--astro-primary);
    padding: 8px 16px; border-radius: 30px; font-size: 0.85rem;
    font-weight: 800; letter-spacing: 1px; display: inline-block;
    margin-bottom: 20px; border: 1px solid var(--astro-accent);
}
.modern-title {
    font-size: 3rem; font-weight: 900; color: #000; line-height: 1.2;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--astro-primary), #000);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.modern-desc { font-size: 1.15rem; color: #555; line-height: 1.8; font-weight: 500; }
.cursor-pointer { cursor: pointer; }
.play-pulse-btn {
    width: 60px; height: 60px; background: var(--astro-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--astro-accent); font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(92, 0, 0, 0.7); animation: pulse-red 2s infinite;
}
.watch-text {
    font-weight: 800; text-transform: uppercase; color: var(--astro-primary);
    letter-spacing: 1px; font-size: 0.9rem;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(92, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(92, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(92, 0, 0, 0); }
}

/* =========================================
   FOOTER SECTION STYLES
========================================= */
.footer-section {
    background-color: #2c0000; color: white; padding-top: 70px;
    position: relative; font-size: 0.95rem; border-top: 5px solid var(--astro-accent);
}
.footer-col { margin-bottom: 20px; }
.footer-logo {
    width: 80px; height: 80px; border-radius: 50%;
    margin-right: 15px; object-fit: cover;
    /* No Border */
}
.footer-title {
    font-weight: 800; color: var(--astro-accent); margin: 0;
     font-size: 1.1rem;
}
.footer-description {
    color: rgba(255, 255, 255, 0.7); line-height: 1.6; margin-top: 15px; max-width: 400px;
}
.footer-heading {
    font-size: 1rem; font-weight: 700; color: white; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 10px;
}
.footer-heading::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background-color: var(--astro-accent);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
/* --- UPDATED FOR 3-WORD LINKS --- */
.footer-links a { 
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 0.9rem; 
    display: inline-block; /* Helps with text wrapping and hit area */
    line-height: 1.4;      /* Added space between lines for 3-word links */
}
.footer-links a:hover { color: var(--astro-accent); padding-left: 5px; }
.contact-info p { margin-bottom: 10px; color: rgba(255, 255, 255, 0.9); }
.text-gold { color: var(--astro-accent); }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: white;
    transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.2);
}
.social-links a:hover { background: var(--astro-accent); color: var(--astro-primary); }


.copyright-bar {
    background-color: #1a0000; padding: 20px 0; margin-top: 40px;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   BACK TO TOP BUTTON
========================================= */
.back-to-top {
    position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px;
    z-index: 996; background: var(--astro-accent); width: 40px; height: 40px;
    border-radius: 50%; transition: all 0.4s; border: 2px solid var(--astro-primary);
    text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.back-to-top i { font-size: 18px; color: var(--astro-primary); }
.back-to-top:hover { background: var(--astro-primary); border-color: var(--astro-accent); }
.back-to-top:hover i { color: var(--astro-accent); }
.back-to-top.active { visibility: visible; opacity: 1; }

/* --- ULTRA SMALL DEVICES (386px and below) --- */
@media (max-width: 386px) {
    /* Tighten Footer Logo Gap */
    .footer-logo {
        margin-right: 5px !important; /* Force small gap */
        width: 50px; /* Slightly smaller logo to fit */
        height: 50px;
    }
    
    .footer-title {
        font-size: 1rem; /* Prevent text wrapping awkwardly */
    }

    /* FIX: Shrink footer link font slightly for ultra-small screens */
    .footer-links a { 
        font-size: 0.85rem;
    }
    
    /* Ensure Header Logo/Title stays tight too */
    .brand-area {
        gap: 5px;
    }
    .logo-placeholder img {
        width: 50px;
        height: 50px;
    }
    .site-title h1 {
        font-size: 1.1rem;
    }
}