/* =========================================
   GLOBAL STYLES (styles.css) - FINAL
   ========================================= */

/* --- CSS Variables (The Design System) --- */
:root {
    --primary-color: #0052CC;
    --secondary-color: #0A192F;
    --accent-color: #FFC107;
    --bg-light: #FFFFFF;
    --bg-soft-gray: #F7F9FC;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --text-secondary: #555555;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

/* --- Base Reset & Defaults --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text-dark); background-color: var(--bg-light); display: flex; flex-direction: column; min-height: 100vh; }
body.loading { overflow: hidden; } /* Prevent scrolling while preloader is active */
main { flex: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--secondary-color); font-weight: 700; line-height: 1.3; }
h1 { font-size: 3rem; } h2 { font-size: 2.25rem; } h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { text-decoration: none; color: var(--primary-color); transition: color var(--transition-speed); }
a:hover { color: var(--secondary-color); }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 28px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border-radius: var(--border-radius); border: 2px solid transparent; cursor: pointer; text-align: center; transition: all var(--transition-speed); }
.btn-primary { background-color: var(--primary-color); color: var(--text-light); }
.btn-primary:hover { background-color: #0041A3; color: var(--text-light); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3); }

/* --- Header & Navigation --- */
.main-header { background-color: var(--bg-light); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; } /* Logo with text */
.nav-logo img { height: 45px; width: auto; }
.nav-logo .logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--secondary-color); }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-family: var(--font-heading); font-weight: 600; color: var(--secondary-color); padding-bottom: 5px; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link .fas { font-size: 0.7rem; margin-left: 5px; }
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background-color: var(--bg-light); min-width: 220px; box-shadow: var(--box-shadow); border-radius: var(--border-radius); padding: 0.5rem 0; opacity: 0; visibility: hidden; transition: all var(--transition-speed); z-index: 1001; }
.dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; top: 120%; }
.dropdown-content a { display: block; padding: 0.75rem 1.5rem; color: var(--text-dark); }
.dropdown-content a:hover { background-color: var(--bg-soft-gray); color: var(--primary-color); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--secondary-color); transition: all 0.3s ease-in-out; }

/* --- Footer --- */
.main-footer { background-color: var(--secondary-color); color: #A9B5D2; padding: 5rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #2C3A54; }
.footer-col h4 { color: var(--text-light); font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: #A9B5D2; }
.footer-col ul li a:hover { color: var(--text-light); padding-left: 5px; }
.footer-logo { max-width: 50px; margin-bottom: 1rem; }
.footer-col p { color: #A9B5D2; }
.footer-col p i { color: var(--primary-color); min-width: 25px; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { color: #A9B5D2; font-size: 1.2rem; }
.social-links a:hover { color: var(--primary-color); transform: scale(1.1); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.9rem; }

/* --- PRELOADER V2 (WITH LOGO) --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: var(--secondary-color); display: flex; justify-content: center; align-items: center; transition: opacity 0.75s ease, visibility 0.75s ease; }
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-logo { max-width: 80px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0.5; transform: scale(0.95); } }

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .nav-cta { display: none; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: 81px; 
        flex-direction: column; 
        justify-content: flex-start; 
        background-color: var(--bg-light); 
        width: 100%; 
        height: calc(100vh - 81px); 
        text-align: center; 
        transition: 0.3s; 
        gap: 2rem; 
        padding-top: 2rem;
        z-index: 1000;
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 0; }
    .nav-link { font-size: 1.5rem; }

    /* Disable hover dropdown for mobile */
    .dropdown:hover .dropdown-content { display: none; }

    /* Mobile dropdown */
    .dropdown-content { position: static; display: none; transform: none; box-shadow: none; background-color: transparent; padding: 1rem 0 0 0; flex-direction: column; }
    .dropdown.active .dropdown-content { display: flex; }
    .dropdown-content a { font-size: 1.2rem; color: var(--text-secondary); padding: 0.5rem 0; }

    /* Logo text smaller on mobile */
    .nav-logo .logo-text { font-size: 1rem; }
}
