/* ======================= Google Font & Variables ======================= */
:root {
    --primary-color: #007BFF; /* Bright Blue */
    --secondary-color: #0056b3; /* Darker Blue for hover */
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-white: #FFFFFF;
    --bg-light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Poppins', sans-serif;
}

/* ======================= Basic Reset & Body Styles ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevents horizontal scrollbars caused by animations or wide elements */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ======================= Utility Classes ======================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ======================= Header Styles ======================= */
/* ======================= Header Styles ======================= */
.header {
    background-color: var(--bg-white);
    padding: 15px 0; /* This is now the constant padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Shadow is now always visible */
    transition: padding 0.3s ease;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ======================= Footer Styles (REVISED) ======================= */
.footer {
    background-color: #111;
    color: var(--text-light);
    /* CHANGED: Increased top padding for better spacing */
    padding: 80px 0 0 0; 
}

.footer-grid {
    display: grid;
    /* CHANGED: A more controlled 4-column layout for desktop */
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr; 
    /* CHANGED: Increased gap for more breathing room */
    gap: 40px; 
}

.footer-col {
    /* This ensures content doesn't get squished */
    min-width: 0;
}

/* FIXED: Made the logo white for better contrast on the dark background */
.footer .logo {
    color: var(--bg-white);
    margin-bottom: 15px;
    display: block; /* Ensures margin-bottom works correctly */
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px; /* Increased bottom margin */
    position: relative;
    color: var(--bg-white);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Adjusted position */
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px; /* Adjusted spacing */
}

/* Selects the links in the Quick Links AND the new links in the Contact Us section */
.footer-col ul a,
.footer-col p a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Applies the hover effect to both sets of links */
.footer-col ul a:hover,
.footer-col p a:hover {
    color: var(--primary-color); /* This is your bright blue */
}

.footer-col p {
    color: #ccc;
    margin-bottom: 12px;
    display: flex; /* Helps align icons and text */
    align-items: flex-start;
}

.footer-col p i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 4px; /* Aligns icon with the text line */
}

.social-links a {
    /* FIXED: Using Flexbox for perfect icon centering */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: var(--text-light);
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0; /* Increased padding */
    margin-top: 60px; /* Increased top margin */
    border-top: 1px solid #444; /* Softened the border color */
}

/* ADDED: Media queries to make the footer responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col p {
        justify-content: center;
    }
}

/* ======================= Responsive Styles (Mobile Menu) ======================= */
.mobile-menu-icon {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    cursor: pointer;
}


/* Media Query for tablets and mobile phones */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 68px; /* Height of the header */
        left: -100%; /* Start off-screen */
        width: 100%;
        height: calc(100vh - 68px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links li {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    .mobile-menu-icon {
        display: block; /* Visible on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}