/* ==========================================================================
   MAX SOLAR JAIPUR - Premium Visual Design & Responsive Stylesheet
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
    --primary-color: #FDB813;     /* Solar Yellow */
    --secondary-color: #0A2342;   /* Dark Blue */
    --accent-color: #16A34A;      /* Green Accent */
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --muted-text: #6C757D;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility Classes */
.font-outfit {
    font-family: var(--font-heading);
}
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}
.text-accent {
    color: var(--accent-color) !important;
}
.text-light-gray {
    color: #E2E8F0 !important;
}
.small-text {
    font-size: 0.9rem;
}
.fs-7 {
    font-size: 0.8rem !important;
}
.fs-8 {
    font-size: 0.7rem !important;
}

/* Spacing Utilities */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* 2. Top Bar & Header Navbar */
.top-bar {
    background-color: var(--secondary-color);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.2px;
}
.hover-yellow:hover {
    color: var(--primary-color) !important;
    transition: var(--transition-smooth);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid rgba(10, 35, 66, 0.05);
}
.navbar.navbar-scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}
.navbar-brand svg {
    transition: transform 0.4s ease;
}
.navbar-brand:hover svg {
    transform: rotate(45deg) scale(1.05);
}
.navbar-brand .brand-name {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    line-height: 1;
}
.navbar-brand .brand-sub {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    line-height: 1;
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    position: relative;
    transition: var(--transition-smooth);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Premium Buttons Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #e5a40a;
    border-color: #e5a40a;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 184, 19, 0.4);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transition: var(--transition-smooth);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #06152a;
    border-color: #06152a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 35, 66, 0.4);
}
.hover-grow {
    transition: var(--transition-smooth);
}
.hover-grow:hover {
    transform: translateY(-3px);
}

/* 3. Hero Section Grid & Overlay Redesign */
.hero-section {
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.95) 0%, rgba(10, 35, 66, 0.75) 60%, rgba(10, 35, 66, 0.4) 100%);
    z-index: 1;
}
.z-index-2 {
    z-index: 2;
}
.text-shadow {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
.text-shadow-sm {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.tracking-wide {
    letter-spacing: 1.5px;
}
.uppercase {
    text-transform: uppercase;
}

/* Hero Glass Card styling */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: rgba(253, 184, 19, 0.4);
    transform: translateY(-3px);
}

.segment-grid .transition-all:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    transform: translateX(5px);
}

/* 4. About Our Founder & Stats Section */
.owner-portrait-card {
    border: 1px solid rgba(10, 35, 66, 0.1);
    transition: var(--transition-smooth);
}
.owner-portrait-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}
.owner-portrait-card img {
    border: 3px solid var(--light-bg);
    transition: var(--transition-smooth);
}
.owner-portrait-card:hover img {
    border-color: var(--primary-color);
}

.counter-card {
    transition: var(--transition-smooth);
}
.counter-card:hover {
    background-color: var(--white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-5px);
}

/* 5. Services Section */
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    z-index: 2;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}
.service-card .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}
.service-card:hover .icon-box {
    transform: rotateY(360deg);
}

/* 6. Tabs for Subsidy & Process */
.nav-tabs {
    border-bottom: 2px solid var(--secondary-color) !important;
}
.nav-tabs .nav-link {
    color: var(--secondary-color);
    border: none;
    background: none;
    transition: var(--transition-smooth);
    font-size: 1.05rem;
    border-radius: 12px 12px 0 0;
}
.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(10, 35, 66, 0.03);
}
.nav-tabs .nav-link.active {
    color: var(--white) !important;
    background-color: var(--secondary-color) !important;
    border: none;
}
.tab-content {
    background-color: var(--light-bg);
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 30px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-sm);
}
.doc-item {
    border-left: 3px solid var(--accent-color) !important;
    transition: var(--transition-smooth);
}
.doc-item:hover {
    background-color: var(--white) !important;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* 7. Benefits Section */
.benefit-card {
    border-bottom: 3px solid var(--secondary-color) !important;
    transition: var(--transition-smooth);
}
.benefit-card:hover {
    border-bottom-color: var(--primary-color) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}
.benefit-icon {
    width: 50px;
    height: 50px;
    transition: var(--transition-smooth);
}
.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* 8. Process Step Cards */
.process-step-card {
    border-left: 3px solid var(--primary-color) !important;
    transition: var(--transition-smooth);
}
.process-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

/* 9. Gallery & Testimonials Grid */
.gallery-card {
    height: 240px;
    position: relative;
    cursor: pointer;
}
.gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.95) 0%, rgba(10, 35, 66, 0.4) 60%, rgba(10, 35, 66, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}
.gallery-card:hover img {
    transform: scale(1.1);
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.w-fit-content {
    width: fit-content;
}

.carousel-inner {
    border-bottom: 5px solid var(--primary-color);
}
.testimonial-content .stars {
    font-size: 1.2rem;
}

/* 10. Enquiry Form */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(253, 184, 19, 0.15);
}

/* 11. Contact details & Map */
.contact-card-item {
    transition: var(--transition-smooth);
}
.contact-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}
.map-wrapper iframe {
    filter: grayscale(10%) contrast(105%);
}

/* 12. Footer Color & Visibility Overrides (Dark Blue Theme) */
.footer-bg {
    background-color: var(--secondary-color) !important; /* Forces Dark Blue #0A2342 */
}
.footer-bg p,
.footer-bg span,
.footer-bg li,
.footer-bg div,
.footer-bg strong {
    color: rgba(255, 255, 255, 0.85) !important;
}
.footer-bg h5 {
    color: var(--primary-color) !important; /* Headings in solar yellow */
}
.footer-links a {
    color: #E2E8F0 !important; /* Force high legibility light gray links */
    display: inline-block;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--primary-color) !important; /* Highlights in yellow on hover */
    padding-left: 5px;
}
.social-icon-btn {
    width: 36px;
    height: 36px;
}
.hover-bg-primary:hover {
    background-color: var(--primary-color) !important;
}
.hover-text-secondary:hover {
    color: var(--secondary-color) !important;
}

/* 13. Floating Widget Animations & Pulsating Glow (Left & Right Side layout) */
.smo-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.smo-btn svg {
    z-index: 2;
}

/* Call Now widget positioned bottom-left */
#floatingCall {
    left: 25px;
    bottom: 30px;
    position: fixed;
    background-color: var(--secondary-color);
    animation: callPulseRing 2s infinite;
}
#floatingCall:hover {
    background-color: #06152a;
    transform: scale(1.1);
}
#floatingCall .smo-label {
    position: absolute;
    left: 62px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
#floatingCall:hover .smo-label {
    opacity: 1;
    left: 58px;
}

/* WhatsApp widget positioned bottom-right */
#floatingWA {
    right: 25px;
    bottom: 30px;
    position: fixed;
    background-color: #25D366;
    animation: waPulseRing 2s infinite;
}
#floatingWA:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}
#floatingWA .smo-label {
    position: absolute;
    right: 62px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
#floatingWA:hover .smo-label {
    opacity: 1;
    right: 58px;
}

/* Ripple animations */
@keyframes callPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(10, 35, 66, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(10, 35, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 35, 66, 0); }
}
@keyframes waPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 14. Mobile Sticky CTA Bar */
.mobile-sticky-cta {
    display: none;
}
@keyframes ctaPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 184, 19, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(253, 184, 19, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 184, 19, 0); }
}
.mobile-sticky-cta a {
    animation: ctaPulse 2s infinite;
}

/* 15. Custom Scroll Reveal Animation (Intersection Observer Classes) */
.reveal-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.revealed {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* 16. Mobile Responsiveness / Premium UX overrides */
@media (max-width: 991px) {
    .py-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .display-4 {
        font-size: 2.3rem !important;
        font-weight: 800 !important;
    }
    .display-5 {
        font-size: 1.85rem !important;
        font-weight: 800 !important;
    }
    .navbar-brand .brand-name {
        font-size: 1.15rem;
    }
    .navbar-brand .brand-sub {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    /* Move floating actions above the sticky mobile bottom CTA */
    #floatingCall {
        bottom: 82px;
        left: 15px;
    }
    #floatingWA {
        bottom: 82px;
        right: 15px;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    body {
        padding-bottom: 74px; /* Avoid overlapping sticky bottom cta */
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    .testimonial-content {
        padding: 10px;
    }
}
