/* 1. VARIABLE DEFINITIONS */
:root {
    --white: #ffffff;
    --fire-red: #b71c1c; 
    --black: #111111;
    --light-gray: #f7f7f7;
    --nav-glass: rgba(183, 28, 28, 0.85); /* Slightly higher opacity for better text contrast */
}

/* 2. BOOTSTRAP OVERRIDES (Safe Reset) */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents unwanted horizontal scroll on mobile */
}

/* Avoid global * reset; Bootstrap handles box-sizing. 
   Only reset specific elements if needed. */
a {
    text-decoration: none;
}

/* 3. HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050; /* Higher than Bootstrap's default sticky-top */
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 5px 15px; /* Reduced vertical padding for a slimmer feel */
}

.logo img {
    height: 70px; /* Scaled down slightly for better proportions */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* NAVBAR LINKS */
.navbar-nav .nav-link {
    color: var(--white) !important; /* Force override of Bootstrap default */
    font-weight: 600;
    padding: 10px 15px !important;
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--light-gray) !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* DROPDOWN CUSTOMIZATION */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 10px;
    margin-top: 10px !important;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: 500;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--fire-red) !important;
    transform: translateX(5px);
}

/* 4. HERO SECTION */
.hero {
    min-height: 50vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px; /* Accounts for fixed header */
    background: var(--white);
    background-image: radial-gradient(#eee 1px, transparent 1px); /* Subtle modern pattern */
    background-size: 20px 20px;
}

.title {
    font-size: 6rem; /* Slightly smaller for better screen fitting */
    font-weight: 800;
    color: var(--fire-red);
    margin: 0;
    line-height: 1.1;
    animation: fadeIn 1.5s ease-out forwards; /* Faster animation feels snappier */
}

.tagline {
    font-size: 1.5rem;
    color: var(--black);
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 5. CONTENT SECTIONS */
.about {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

.about h2 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--fire-red);
}

/* 6. FOOTER */
footer {
    background: var(--fire-red);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-container {
    /* Using Bootstrap grid in HTML is better, but this supports your custom div */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.2);
}

.footer-map iframe {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 7. UTILITIES & COMPONENTS */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: rotate(15deg) scale(1.1);
}

/* 8. ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. RESPONSIVE QUERIES (Bootstrap Compatible) */
@media (max-width: 991.98px) {
    .title { font-size: 4rem; }
    .tagline { font-size: 1.2rem; }
    .navbar-collapse {
        background: var(--fire-red);
        margin-top: 15px;
        padding: 20px;
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .title { font-size: 2.8rem; }
    .hero { min-height: 40vh; }
    .footer-container { justify-content: center; text-align: center; }
}

/* 1. Fix the 'Wall' effect: Ensure the header only captures clicks on its content */
header {
    pointer-events: none; 
}
.nav-container {
    pointer-events: auto; /* Re-enable clicks for the actual nav bar */
}

/* 2. Pure CSS Hover Logic (Replaces your JS) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Align with header */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

/* 3. Ensure dropdowns are above everything */
.dropdown-menu {
    z-index: 2000 !important;
}