@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary: #01235a;
    --secondary: #32a8de;
    --bg-light: #ffffff;
    --bg-gray: #f8faff;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section-title {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout & Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-gray { background-color: var(--bg-gray); }
.bg-primary { background-color: var(--primary); color: white; }
.text-center { text-align: center; }

/* Buttons & Hover Effects */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: var(--transition);
    border-radius: 50px;
}

.btn-primary { background-color: var(--secondary); color: white; box-shadow: 0 4px 15px rgba(50, 168, 222, 0.3); }
.btn-primary::before { background-color: #2080ad; transform: scaleX(0); transform-origin: left; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(50, 168, 222, 0.4); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline::before { background-color: var(--primary); transform: scaleY(0); transform-origin: bottom; }
.btn-outline:hover { color: white; transform: translateY(-3px); }
.btn-outline:hover::before { transform: scaleY(1); }

/* Navbar */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a {
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--secondary); }

/* Mobile Menu Drawer */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

/* Mobile Menu Drawer (Desktop Base) */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; transition: 0.3s; }
.drawer-close { display: none; font-size: 2rem; color: var(--primary); cursor: pointer; text-align: right; margin-bottom: 20px; }
/* .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1400; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; } */

/* Mobile Media Query */
@media (max-width: 768px) {
    .menu-toggle { display: block; } /* Show Hamburger */
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-light, #ffffff);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 25px;
        z-index: 1500;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        
        /* Bulletproof mobile sliding technique */
        transform: translateX(100%); 
        transition: transform 0.35s ease-in-out;
    }

    /* When active, slide it into view */
    .nav-links.active {
        transform: translateX(0);
    }

    .drawer-close { display: block; } /* Show X button inside drawer */
}
/* Page Covers */
.page-cover {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.page-cover::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(1, 35, 90, 0.9), rgba(1, 35, 90, 0.7));
}
.page-cover .container { position: relative; z-index: 1; }
.page-cover h1 { font-size: 3rem; margin-bottom: 15px; }

/* Clipping / Parallax Section */
.clipping-section {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: white;
}
.clipping-section::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(1, 35, 90, 0.75);
}
.clipping-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.clipping-content h2 { font-size: 2.5rem; margin-bottom: 20px; }

/* Hero Section */
.hero { padding: 60px 0 80px; background: linear-gradient(135deg, #f8faff 0%, #e6f2f9 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 3.5rem; color: var(--primary); line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(1, 35, 90, 0.15); transform: translateY(0); transition: var(--transition); }
.hero-image:hover { transform: translateY(-10px); box-shadow: 0 30px 50px rgba(1, 35, 90, 0.25); }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 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: 20px; }

.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }
.section-subtitle { color: var(--text-gray); margin-bottom: 50px; }

.card {
    background: white; padding: 40px 30px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: var(--transition);
    border: 1px solid #f0f0f0; position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--secondary); transform: scaleX(0); transition: var(--transition);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(1, 35, 90, 0.1); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; transition: var(--transition); }
.card:hover .card-icon { transform: scale(1.2); color: var(--primary); }
.card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.3rem; }

/* Images & Media */
.image-wrapper { border-radius: 16px; overflow: hidden; position: relative; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.image-wrapper:hover img { transform: scale(1.08); }

/* Lists & Pills */
.icon-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: var(--text-gray); }
.icon-list i { color: var(--secondary); margin-top: 5px; }

/* Footer */
footer { background-color: var(--primary); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: var(--secondary); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--secondary); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive & Mobile Drawer */
@media(max-width: 992px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: -300px;
        width: 300px; height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column; align-items: flex-start;
        padding: 80px 40px; gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 2001;
        pointer-events: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a { display: block; font-size: 1.2rem; width: 100%; z-index: 2002; }
    
    .drawer-close {
        display: block; position: absolute; top: 25px; right: 25px;
        font-size: 2rem; color: var(--primary); cursor: pointer;
        transition: var(--transition);
    }
    .drawer-close:hover { color: var(--secondary); transform: rotate(90deg); }

    .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-image { order: -1; }
    .page-cover h1 { font-size: 2.2rem; }
}