/* public/css/main.css - Main stylesheet for all pages */

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

:root {
    --primary: #1a237e;
    --secondary: #0d47a1;
    --accent: #ff6f00;
    --text: #212121;
    --text-light: #757575;
    --bg: #ffffff;
    --bg-light: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Generic container for page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation container override - full width */
nav .container {
    max-width: 100%;
    margin: 0;
}

/* ===================== */
/* Navigation            */
/* ===================== */

nav {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Override container padding inside nav to keep bar height smaller */
nav .container {
    padding: 1rem 2rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo area */
nav .logo {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-right: auto;
    padding-left: 0.5rem;
}

/* VTOL Rocketry logo */
.logo-image {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* stacked title only (subtitle removed) */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Vertical separator line */
.logo-separator {
    height: 45px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* KU Leuven logo */
.ku-leuven-logo {
    height: 45px;
    width: auto;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
}

/* Apply fancy button styling ONLY to nav menu links */
nav ul li a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.85;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.2s ease;
}

nav ul li a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.16);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

/* Logo link stays clean and unstyled */
nav .logo {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    opacity: 1 !important;
}

/* ===================== */
/* Hero Section          */
/* ===================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* ===================== */
/* Sections              */
/* ===================== */

section {
    padding: 4rem 0;
}

section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===================== */
/* Cards                 */
/* ===================== */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ===================== */
/* Grid                  */
/* ===================== */

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

/* ===================== */
/* Buttons               */
/* ===================== */

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===================== */
/* Footer                */
/* ===================== */

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ===================== */
/* Responsive            */
/* ===================== */

@media (max-width: 992px) {
    nav .container {
        padding: 0.9rem 1.5rem;
        gap: 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .logo-image {
        height: 48px;
    }

    .logo-separator {
        height: 38px;
    }

    .ku-leuven-logo {
        height: 38px;
    }

    .logo-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    nav .container {
        padding: 0.8rem 1.25rem;
        gap: 1.25rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo-image {
        height: 42px;
    }

    .logo-separator {
        height: 34px;
    }

    .logo-title {
        font-size: 1.15rem;
    }

    .ku-leuven-logo {
        height: 34px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .container {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav .container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
    }

    nav .logo {
        gap: 0.5rem;
        padding-left: 0;
        margin-right: 0;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        padding-right: 0;
        flex-wrap: wrap;
    }

    nav ul li a {
        padding: 0.3rem 0.75rem;
        font-size: 0.8rem;
    }

    .logo-image {
        height: 32px;
    }

    .logo-separator {
        height: 24px;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .ku-leuven-logo {
        height: 24px;
    }

    .container {
        padding: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
