/* 
    KEA Engineering & Infra Pvt. Ltd. 
    Global CSS Stylesheet
*/

:root {
    /* Color Palette - Enterprise Navy & Emerald */
    --primary-blue: #041e42;
    --secondary-blue: #0b3168;
    --primary-green: #00a859;
    --secondary-green: #008f4c;
    
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1536px; /* Massive MNC container */
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

h1 { font-size: 5.5rem; }
h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 2rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.15rem; line-height: 1.8; }

.text-massive {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

/* Buttons & CTAs */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(4, 30, 66, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

/* ------------------------------------- */
/* HEADER & NAVIGATION */
/* ------------------------------------- */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.company-tag {
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav Links */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link:not(.btn-contact):hover {
    color: var(--primary-blue);
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-green);
    transition: width var(--transition-medium);
}

.nav-link:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all var(--transition-medium);
}

.btn-contact:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-medium);
    padding: 10px 0;
    border-top: 3px solid var(--primary-green);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Main Spacing */
.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 400px); /* Adjust based on footer */
}

/* ------------------------------------- */
/* FOOTER */
/* ------------------------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo .logo-mark.light {
    background: var(--primary-blue);
}

.footer-logo .logo-text.light .company-name {
    color: white;
}

.footer-about {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'FontAwesome';
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--primary-green);
    transition: margin-right var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::before {
    margin-right: 12px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    color: #94a3b8;
}

.contact-info i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 4px;
}

.contact-info a {
    color: #94a3b8;
}
.contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 20px;
}
.legal-links a:hover {
    color: white;
}

/* Base Page Header (for all pages except home) */
.page-header {
    background: linear-gradient(rgba(11, 74, 125, 0.85), rgba(11, 74, 125, 0.85)), url('../img/page-header-bg.jpg') center/cover;
    padding: 100px 0 60px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 16px;
}

.breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}
.breadcrumb a {
    color: white;
    font-weight: 500;
}
.breadcrumb a:hover {
    color: var(--primary-green);
}

/* Utility Classes */
.section-padding { padding: 180px 0; }
.section-padding-sm { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
}
.section-subtitle {
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* Animations Trigger Classes */
.fade-up { opacity: 0; transform: translateY(30px); }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }


/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        transition: left var(--transition-medium);
        overflow-y: auto;
    }
    
    .main-nav.active { left: 0; }
    
    .main-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--primary-green);
        margin-left: 10px;
        padding: 10px 0 0 0;
        display: none;
    }
    
    .dropdown.active .dropdown-menu { display: block; }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
