@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #213888;
    --secondary-color: #29aae1;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; margin-bottom: 15px; }
p { color: var(--text-light); margin-bottom: 15px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Navigation */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex; align-items: center; gap: 10px;
}

.logo h2 {
    margin: 0; color: var(--primary-color); font-size: 20px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--primary-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.open { right: 0; }

.close-btn {
    position: absolute;
    top: 25px; right: 5%;
    font-size: 35px;
    color: var(--bg-white);
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover { transform: rotate(90deg) scale(1.1); color: var(--secondary-color); }

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
}

.mobile-nav-overlay li { margin: 25px 0; }
.mobile-nav-overlay a {
    color: var(--bg-white);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}
.mobile-nav-overlay a:hover { color: var(--secondary-color); }

/* Home Page - Scrolling Sections */
.viewport-container { 
    position: relative; 
    overflow-x: hidden;
}

.viewport {
    position: relative; /* Changed from sticky to allow standard scrolling */
    min-height: 100vh; /* Changed from fixed height to min-height so content can expand */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%; /* Added padding for safer spacing */
}

.vp-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.vp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(33, 56, 136, 0.7); /* Primary color overlay */
    z-index: -1;
}
.vp-overlay.light { background: rgba(244, 247, 246, 0.95); }

.vp-content {
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    max-width: 1100px; /* Increased to allow wider grids */
    width: 100%;
    padding: 20px 0;
}

.light .vp-content { color: var(--text-dark); }
.light .vp-content h2 { color: var(--primary-color); font-size: 3rem; }

.vp-content h1 { font-size: 4rem; color: var(--bg-white); margin-bottom: 20px; }
.vp-content h1 span { color: var(--secondary-color); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    border: 2px solid var(--secondary-color);
}
.btn:hover {
    background: transparent;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(41, 170, 225, 0.4);
    transform: translateY(-3px);
}

/* General Page Headers */
.page-header {
    padding: 150px 5% 80px;
    background: linear-gradient(rgba(33,56,136,0.8), rgba(33,56,136,0.8)), url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&q=80');
    background-size: cover; background-position: center;
    color: white; text-align: center;
}
.page-header h1 { color: white; font-size: 3.5rem; }

/* Grid Systems & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
    max-width: 1400px; margin: 0 auto;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}
.card i { font-size: 50px; color: var(--secondary-color); margin-bottom: 20px; transition: var(--transition); }
.card:hover i { transform: scale(1.2) rotate(5deg); color: var(--primary-color); }

/* Standard Section */
.section-pad { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.text-center { text-align: center; }

/* Contact Specific */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info, .contact-form { flex: 1; min-width: 300px; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 24px; color: var(--secondary-color); background: rgba(41,170,225,0.1); padding: 15px; border-radius: 50%; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; outline: none; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--secondary-color); }

/* Footer - 3 Columns */
footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px; margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h3 { color: var(--bg-white); border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 10px; margin-bottom: 20px; }
.footer-col p, .footer-col ul { color: rgba(255,255,255,0.7); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }
.footer-col i { color: var(--secondary-color); margin-right: 10px; }

.footer-bottom { text-align: center; padding-top: 20px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* Animations Classes */
.reveal { opacity: 0; transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.9); }

/* Responsive */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .menu-btn { display: block; }
    .vp-content h1 { font-size: 2.5rem; }
    .light .vp-content h2 { font-size: 2.2rem; }
}