/* --- 1. ROOT VARIABLES & RESET --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --light-bg-icon: #ffffff;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --font-stack: 'Helvetica Neue', Arial, sans-serif;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 2. TYPOGRAPHY --- */
h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    color: var(--text-light);
}

h2 {
    font-size: 2em;
    color: var(--primary-color);
}

/* --- 3. NAVBAR (Light, two-row) --- */
.navbar {
    background-color: #ffffff;
    position: relative;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:active {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none !important;
    color: #011b33 !important;
}

.nav-link,
.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:active {
    text-decoration: none !important;
    color: #333 !important;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    margin: 0 !important;
    transition: color 0.3s ease, background-color 0.3s ease;
    background-color: transparent;
}

.nav-link:hover,
.nav-links a:hover {
    color: #20c997 !important;
    background-color: rgba(1, 27, 51, 0.05);
}

.nav-link-btn {
    border-radius: 5px;
    font-weight: 500;
}

.nav-link-btn:hover {
    opacity: 0.9;
}

/* Desktop layout: two stacked rows, right-aligned */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.nav-top-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-bottom-row {
    display: flex;
    gap: 10px;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #011b33;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    /* Shown when hamburger is clicked */
    .nav-links.active {
        display: flex;
    }

    .nav-top-row,
    .nav-bottom-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
}

/* --- 4. HEADER/HERO SECTION --- */
.hero-section {
    background-color: var(--dark-bg);
    padding: 60px 20px 40px;
    text-align: center;
    color: var(--text-light);
}

.logo-icon-container {
    background-color: var(--light-bg-icon);
    display: inline-block;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-main {
    max-width: 180px;
    height: auto;
    margin: 0;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.8;
}

/* --- 5. CONTENT SECTIONS --- */
.content-section {
    padding: 40px 0;
}

.light-bg {
    background-color: var(--light-bg);
}

.dark-bg {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dark-bg h2 {
    color: var(--secondary-color);
}

.intro-text {
    font-size: 1.1em;
    padding: 15px;
    margin: 20px 0;
    border-left: 5px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.description-text {
    margin: 30px 0;
    padding: 15px;
    background-color: #fff;
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 5px 5px 0;
    color: var(--text-dark);
}

/* --- 6. IMAGES & GALLERY --- */
.content-section img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.image-gallery img {
    flex: 1 1 300px;
}

/* --- 7. KEY FEATURES GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-grid div {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}

/* --- 8. DOWNLOADS TABLE --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    color: var(--text-dark);
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: var(--primary-color);
    color: white;
}

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

table a:hover {
    text-decoration: underline;
}

/* --- 9. CONTACT FORM --- */
.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #218838;
}

.success {
    color: var(--secondary-color);
    font-weight: bold;
    border: 1px solid var(--secondary-color);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #e6ffe6;
}

.error {
    color: #dc3545;
    font-weight: bold;
    border: 1px solid #dc3545;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #ffe6e6;
}

/* --- 10. FOOTER --- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

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

.site-footer a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 10px;
    font-size: 0.9em;
}

.contact-info p {
    margin-top: 5px;
}

/* --- 11. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }
}