/* CSS Variables */
:root {
    --primary-color: #1A365D; /* Royal Blue */
    --secondary-color: #FFB800; /* Golden Yellow */
    --accent-color: #F97316; /* Orange */
    --text-color: #374151; /* Dark Gray */
    --text-dark: #111827;
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* Global Styles */
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-dark); }
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 { color: white !important; }
h1, .display-1 { font-size: 64px !important; line-height: 1.2; }
h2, .display-5 { font-size: 36px !important; line-height: 1.3; }
p, .text-muted { font-size: 20px; line-height: 1.8; }

/* Mobile View Optimizations */
@media (max-width: 768px) {
    h1, .display-1 { font-size: 36px !important; line-height: 1.3; }
    h2, .display-5 { font-size: 28px !important; line-height: 1.4; }
    p, .text-muted { font-size: 16px; line-height: 1.6; }
    .py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    
    /* Hero section */
    .hero-section { min-height: 100svh !important; height: auto !important; padding: 100px 0 100px 0 !important; overflow: hidden !important; }
    .hero-section .row.min-vh-100 { min-height: auto !important; padding-bottom: 20px; }
    .hero-section .badge { font-size: 11px !important; padding: 8px 15px !important; letter-spacing: 1px !important; }
    .hero-section h1 { font-size: 32px !important; line-height: 1.2; }
    .hero-section .lead { font-size: 15px !important; margin-bottom: 1.5rem !important; }
    .hero-section .btn { width: auto; margin-bottom: 10px; justify-content: center; padding: 12px 10px !important; font-size: 13px !important; flex: 1; text-align: center; white-space: nowrap; }
    .hero-section .btn i { font-size: 14px !important; }
    .hero-section .d-flex.justify-content-center { flex-direction: row; flex-wrap: nowrap !important; gap: 10px !important; width: 100%; padding: 0 10px; }

    /* Stats Section */
    .stats-section { margin-top: 0 !important; border-radius: 0 !important; padding: 2rem 0 !important; position: relative; z-index: 2 !important; }
    .stats-section .border-end { border: none !important; border-bottom: 1px solid rgba(255,255,255,0.2) !important; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
    .stats-section .col-6:last-child, .stats-section .col-6:nth-last-child(2) { border-bottom: none !important; margin-bottom: 0; padding-bottom: 0; }

    /* Layout & Cards */
    .about-feature-box { margin-bottom: 15px; }
    .icon-box { width: 35px !important; height: 35px !important; font-size: 1rem; }
    .service-card .card-img-top { height: 200px !important; }
    .package-card { margin-bottom: 20px; }
    .package-card.scale-up { transform: scale(1) !important; margin-top: 0; }
    .package-card:hover, .package-card.scale-up:hover { transform: translateY(-5px) !important; }

    /* Navbar */
    .navbar-brand .brand-text h4 { font-size: 1.1rem; }
    .navbar-logo { height: 45px !important; }
    .navbar-collapse { background: var(--bg-white); padding: 0.5rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; max-height: 85vh; overflow-y: auto; overflow-x: hidden; }
    .nav-link { padding: 0.5rem 1rem !important; }
    .navbar-collapse .d-flex { padding: 0.5rem 1rem 1rem 1rem; }
    /* Forms & Buttons */
    .btn-lg { padding: 10px 20px !important; font-size: 16px !important; }
    .newsletter-form .d-flex { flex-direction: column; }
    .newsletter-form .btn { margin-top: 10px; width: 100%; border-radius: 30px !important; }
    
    /* Process Steps */
    .process-step { margin-bottom: 30px; }
    .process-line { display: none !important; }
}

@media (max-width: 576px) {
    h1, .display-1 { font-size: 32px !important; }
    h2, .display-5 { font-size: 24px !important; }
    .container { padding-left: 15px; padding-right: 15px; overflow-x: hidden; }
    .btn { padding: 10px 20px !important; font-size: 14px !important; }
    .stats-section .col-6 { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.2) !important; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
    .stats-section .col-6:last-child { border-bottom: none !important; margin-bottom: 0; padding-bottom: 0; }
    
    /* Fixed mobile buttons overlapping issue */
    .floating-buttons { 
        bottom: 15px !important; 
        left: 15px !important; 
        transform: none !important;
        flex-direction: column !important; 
        gap: 10px !important; 
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .float-btn { width: 40px !important; height: 40px !important; font-size: 20px !important; }
    .back-to-top { bottom: 85px !important; right: 15px !important; width: 40px !important; height: 40px !important; font-size: 18px !important; }
    
    /* Ensure content doesn't get hidden behind the bottom bar */
    body { padding-bottom: 70px; }
}
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }


/* Enhanced Animations */
.service-card, .package-card, .icon-box {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% 100%;
    animation: gradientShift 5s ease infinite;
    color: white !important;
}
.btn-gradient:hover {
    box-shadow: 0 10px 20px rgba(247, 148, 29, 0.4);
    transform: translateY(-3px);
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.icon-box:hover {
    transform: rotateY(180deg) scale(1.1);
    background-color: var(--secondary-color) !important;
    color: white !important;
}
.navbar-brand:hover .navbar-logo {
    transform: rotate(5deg) scale(1.05);
}


/* Hero Slider Ken Burns Effect */
.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 6s ease-out;
}
.swiper-slide-active .hero-slide-bg {
    transform: scale(1);
}
.hero-overlay {
    pointer-events: none;
}



/* Premium Background Slider Animation */
.bg-slider-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 7s ease-in-out;
}
.swiper-slide-active .bg-slider-img {
    transform: scale(1);
}

/* Utilities */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.tracking-wide { letter-spacing: 0.1em; }
.glass-effect { background: var(--card-bg) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.05); }
.card { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; border: none; transition: var(--transition); background-size: 200% auto;
}
.btn-gradient:hover { background-position: right center; color: white; transform: translateY(-2px); }
.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(247, 148, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0); }
}

/* Loader */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-white); z-index: 9999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: opacity 0.5s ease;
}
.loader-wrapper img { height: 80px; margin-bottom: 20px; animation: bounce 2s infinite; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--bg-light); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Progress */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 99999; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0; background: var(--secondary-color); }

/* Navbar & Mega Menu */
.top-bar { font-size: 0.85rem; }
.navbar { transition: var(--transition); background-color: var(--bg-white) !important; }
.navbar.scrolled { padding: 0.5rem 0; background: var(--card-bg) !important; backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.navbar-logo { height: 55px; width: auto; transition: var(--transition); }
.navbar.scrolled .navbar-logo { height: 45px; }
.brand-text h4 { font-size: 1.1rem; letter-spacing: 0.5px; transition: var(--transition); }
.brand-text .tagline { font-size: 0.75rem; }
.nav-link { font-weight: 600; color: var(--text-dark) !important; padding: 1rem !important; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Mega Menu */
@media (min-width: 992px) {
    .mega-menu-parent:hover .mega-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
    .mega-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; position: absolute; left: 0; right: 0; background: var(--card-bg); backdrop-filter: blur(15px); border-radius: 0 0 1rem 1rem; border-top: 3px solid var(--primary-color); }
}
.mega-menu h6 { font-size: 0.9rem; letter-spacing: 1px; }
.mega-menu .dropdown-item { padding: 0.5rem 0; color: var(--text-color); font-weight: 500; font-size: 0.95rem; background: transparent; transition: var(--transition); border-radius: 4px; padding-left: 10px; }
.mega-menu .dropdown-item:hover { color: var(--primary-color); padding-left: 15px; background: rgba(26, 54, 93,0.05); }

.custom-dropdown { border-radius: 12px; padding: 1rem; background: var(--card-bg); border-top: 3px solid var(--primary-color); }
.custom-dropdown .dropdown-item { border-radius: 8px; padding: 0.5rem 1rem; font-weight: 500; transition: var(--transition); color: var(--text-color); }
.custom-dropdown .dropdown-item:hover { background-color: var(--bg-light); color: var(--primary-color); }

/* Floating Buttons */
.floating-buttons { position: fixed; bottom: 30px; left: 30px; z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.float-btn {
    width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: white; font-size: 26px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: var(--transition); text-decoration: none; position: relative;
}
.float-wa { background-color: #25D366; }
.float-call { background-color: var(--primary-color); }
.float-btn:hover { transform: scale(1.1); color: white; }
.float-btn::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; animation: pulse-border 2s infinite; }
.float-wa::after { border: 2px solid #25D366; }
.float-call::after { border: 2px solid var(--primary-color); }
@keyframes pulse-border { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--accent-color); color: white; border: none; border-radius: 50%;
    font-size: 20px; display: none; z-index: 99; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.back-to-top:hover { background: var(--primary-color); transform: translateY(-3px); }

/* Cookie Consent */
.cookie-consent { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(17,24,39,0.95); backdrop-filter: blur(10px); z-index: 9999; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 -5px 20px rgba(0,0,0,0.1); border-top: 1px solid rgba(255,255,255,0.1); }
.cookie-consent.show { transform: translateY(0); }

/* Footer */
.footer {
    background-color: #0B1120 !important;
    border-top: 3px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/indian_construction_site.png') center/cover;
    opacity: 0.03;
    pointer-events: none;
}
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 184, 0, 0.15);
}
.newsletter-form .btn {
    border: 1px solid var(--secondary-color);
}
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--secondary-color); border-radius: 2px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary-color); padding-left: 8px; }
.social-btn {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center; color: white; transition: var(--transition); text-decoration: none;
}
.social-btn.facebook:hover { background: #1877f2; color: white; transform: translateY(-3px); }
.social-btn.instagram:hover { background: #e4405f; color: white; transform: translateY(-3px); }
.social-btn.youtube:hover { background: #cd201f; color: white; transform: translateY(-3px); }
.social-btn.whatsapp:hover { background: #25d366; color: white; transform: translateY(-3px); }
.hover-secondary:hover { color: var(--secondary-color) !important; }

/* Sections & Cards */
.hero-section { height: 100vh; min-height: 600px; overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(17,24,39,0.95) 0%, rgba(26, 54, 93,0.7) 100%); z-index: 1; backdrop-filter: blur(2px); }
.service-card { transition: var(--transition); background: var(--card-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important; border-color: var(--primary-color); }
.service-card .card-img-top { overflow: hidden; }
.service-card .card-img-top img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover .card-img-top img { transform: scale(1.15); }
.service-icon { border-top-right-radius: 20px; transition: var(--transition); backdrop-filter: blur(10px); }
.service-card:hover .service-icon { padding-bottom: 25px !important; }

/* Package Card */
.package-card { 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    background: #ffffff; 
    border: 1px solid rgba(0,0,0,0.05); 
    z-index: 1; 
    position: relative;
}
.package-card:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; 
    border-color: var(--secondary-color); 
    z-index: 2;
}
.package-card.scale-up { 
    transform: scale(1.05); 
    z-index: 2; 
    background: linear-gradient(145deg, var(--primary-color) 0%, #0a1930 100%);
    border: none;
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.25) !important;
}
.package-card.scale-up:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.4) !important;
}
@media(max-width: 991px) { .package-card.scale-up { transform: scale(1); } .package-card.scale-up:hover { transform: translateY(-15px); } }
.package-features li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.package-features li:last-child { border-bottom: none; }
.package-card.scale-up .package-features li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(45deg, var(--secondary-color), #fcd34d);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.4);
    letter-spacing: 1px;
    z-index: 5;
}


/* Form Controls */
.form-control, .form-select { background-color: var(--bg-light); border: 1px solid rgba(0,0,0,0.1); color: var(--text-color); }
.form-control:focus, .form-select:focus { background-color: var(--bg-white); border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25); color: var(--text-dark); }

/* Filter Buttons */
.filter-btn { background: transparent; border: 2px solid var(--bg-light); color: var(--text-color); padding: 8px 20px; border-radius: 30px; font-weight: 600; transition: var(--transition); margin: 5px; }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }/* Process Section */
.process-line { position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 2px; border-top: 2px dashed rgba(255, 255, 255, 0.3); z-index: 0; }
@media (max-width: 991px) { .process-line { display: none; } }
.process-step-icon { position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, background-color 0.3s; }
.process-step:hover .process-step-icon { transform: scale(1.15) translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important; background-color: var(--secondary-color) !important; color: var(--text-dark) !important; }


.about-feature-box { transition: all 0.3s ease; background: var(--bg-white); border: 1px solid rgba(0,0,0,0.05); }
.about-feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; border-color: var(--primary-color); }

