/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #0a2540; /* Deep Royal Blue */
    --accent: #00d4ff; /* Tech Blue for highlights */
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fc;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }

/* --- Navbar --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary); letter-spacing: -1px; }
.logo span { color: #0056b3; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: #0056b3; transform: translateY(-2px); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 150%;
    left: -20px;
    background: white;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 25px; color: #555; }
.dropdown-menu a:hover { background: #f8f9fc; color: var(--primary); }

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}
.btn-primary:hover { background: #1a3a5c; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(10, 37, 64, 0.3); }

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fc 50%, #eef2f6 50%);
    position: relative;
    overflow: hidden;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; color: #666; margin-bottom: 40px; max-width: 500px; }

/* --- Sections & Cards --- */
.section-padding { padding: 100px 2rem; max-width: 1280px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: #666; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

.card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.5rem; color: #0056b3; margin-bottom: 20px; display: inline-block; }

/* --- Forms & Calculators --- */
.calculator-wrap { background: var(--primary); color: white; border-radius: 20px; padding: 50px; display: flex; gap: 50px; flex-wrap: wrap; }
.calc-inputs { flex: 1; min-width: 300px; }
.calc-results { flex: 1; min-width: 300px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 30px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; opacity: 0.9; }
.form-group input, .form-group select {
    width: 100%; padding: 15px; border-radius: 8px; border: none; outline: none; background: rgba(255,255,255,0.1); color: white; font-size: 1rem;
}
.form-group input:focus { background: rgba(255,255,255,0.2); }

.btn-calc { width: 100%; padding: 15px; background: white; color: var(--primary); border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-calc:hover { background: #eef2f6; }

/* --- Scroll Animation Class --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
footer { background: #051b30; color: white; padding: 80px 2rem 30px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1280px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-family: 'Inter', sans-serif; }
.footer-col ul { list-style: none; }
.footer-col a { color: #8899a6; text-decoration: none; transition: 0.3s; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .nav-links { display: none; } /* Mobile menu toggle needed for production */
    .hero-text h1 { font-size: 2.8rem; }
    .calculator-wrap { padding: 30px; }
}