/* ======== GLOBAL & VARIABLES ======== */
:root {
    --primary-color: #0a4d68; /* A deep, professional blue */
    --secondary-color: #088395; /* A slightly lighter, active teal */
    --accent-color: #05BFDB; /* A bright, modern accent */
    --dark-color: #0B2447;
    --light-color: #f9f9f9;
    --text-color: #333;
    --white-color: #ffffff;
    --nav-height: 70px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    color: var(--primary-color);
}
.section-header p {
    font-size: 1.1rem;
    color: #555;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--dark-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
    transform: translateY(-3px);
}

/* ======== NAVIGATION BAR ======== */
.navbar {
    position: fixed; /* Using fixed for simplicity, 'sticky' works too */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent; /* Initial state */
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--white-color);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.btn {
    padding: 0.5rem 1.5rem; /* Smaller padding for nav button */
    color: var(--white-color);
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.nav-link.btn:hover {
    background-color: var(--white-color);
    border-color: var(--white-color);
    color: var(--dark-color);
    transform: translateY(0); /* Disable up-down hover in nav */
}

/* Navbar "scrolled" state (added via JS) */
.navbar.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-logo {
    color: var(--dark-color);
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.navbar.scrolled .nav-link.btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.navbar.scrolled .nav-link.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* ======== HERO SECTION ======== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: var(--dark-color); /* Fallback */

    /* IMPORTANT: Place your banner image at 'my_app/static/images/hero-banner.jpg'
      for this path to work correctly.
    */
    background-image: url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-like effect */

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white-color);
}

/* Hero overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 36, 71, 0.6); /* Dark blue overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card img { /* Placeholder for icon/image */
    height: 60px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ======== ABOUT SECTION ======== */
.about {
    background-color: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ======== CONTACT SECTION ======== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(10, 77, 104, 0.3);
}

.contact-form .btn {
    width: 100%;
    font-size: 1.1rem;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2.5rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
}

.footer-links li {
    margin-left: 1.5rem;
}

.footer-links a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ======== ANIMATIONS (JS-controlled) ======== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}