/* Basic Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px; /* Adjust based on header height */
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Variables */
:root {
    --primary-color: #1A237E; /* Deep Indigo */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #fff;
    --text-dark: #333;
    --button-bg-register: linear-gradient(90deg, #FF6B6B, #FFD700); /* Red to Gold */
    --button-bg-download: linear-gradient(90deg, #4CAF50, #8BC34A); /* Greenish */
    --button-shadow: rgba(0, 0, 0, 0.3);
}

/* --- Header Styles --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 80px; /* Minimum height for desktop */
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--button-shadow);
    z-index: 1000;
    color: var(--text-light);
}

.site-header .logo {
    font-size: 2.5em; /* Larger logo */
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    display: block;
}

/* Desktop Header Top */
.header-top-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.main-nav .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.main-nav .nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.header-desktop-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--button-shadow);
    border: none;
    min-width: 120px;
}

.btn-register {
    background: var(--button-bg-register);
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px var(--secondary-color);
}

.btn-download {
    background: var(--button-bg-download);
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px #4CAF50;
}

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-contact:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile Header Top (hidden by default on desktop) */
.header-top-mobile,
.header-mobile-buttons,
.mobile-nav-overlay {
    display: none;
}

/* Hamburger Menu */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1002; /* Above other mobile elements */
    padding: 5px;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px 20px;
    margin-top: 50px;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    display: block;
}

.footer-column h3 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }

    /* Hide desktop header elements */
    .header-top-desktop {
        display: none;
    }

    /* Show mobile header elements */
    .site-header {
        min-height: unset; /* Allow height to adjust based on content */
    }

    .header-top-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        min-height: 80px;
        position: relative;
    }

    .header-top-mobile .logo {
        flex: 1;
        text-align: center;
        font-size: 2em;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }

    .mobile-spacer {
        width: 30px;
        height: 1px;
    }

    .hamburger-menu {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .header-mobile-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 15px 20px;
        background-color: var(--primary-color);
        box-shadow: 0 2px 4px var(--button-shadow);
        z-index: 1000;
    }

    .header-mobile-buttons .btn {
        flex: 1;
        max-width: 150px;
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-out;
        z-index: 1001; /* Above buttons, below hamburger */
        padding-top: 80px;
        overflow-y: auto;
    }

    .mobile-nav-overlay.open {
        transform: translateX(0);
    }

    .mobile-nav-overlay .nav-list {
        flex-direction: column;
        text-align: center;
        width: 80%;
    }

    .mobile-nav-overlay .nav-list li {
        margin: 15px 0;
    }

    .mobile-nav-overlay .nav-link {
        font-size: 1.8em;
        padding: 15px 0;
        color: var(--text-light);
    }

    .mobile-nav-overlay .nav-link::after {
        display: none;
    }

    /* Footer adjustments for mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }
}