/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4B9CD3;
    --secondary-color: #13294B;
    --accent-color: #7BAFD4;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation */
.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.nav-brand {
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 0.5rem;
    display: none;
    z-index: 2000;
    margin-top: 0;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--secondary-color);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

/* Keep dropdown open when hovering over the menu itself */
.nav-dropdown-menu:hover {
    display: block;
}

/* Helps anchor links land below the sticky nav */
.anchor-offset {
    display: block;
    position: relative;
    top: -90px; /* adjust if navbar height changes */
    height: 0;
    visibility: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

/* Project Introduction */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Weekly Reports */
.weekly-reports-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weekly-report-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 100%;
}

.weekly-report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.weekly-report-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-align: center;
}

.weekly-report-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.weekly-report-meta {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Deliverables */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.deliverable-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.deliverable-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-align: center;
}

.deliverable-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.deliverable-meta {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Team */
.team-block {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.subsection-title-spaced {
    margin-top: 2.5rem;
}

.people-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: stretch;
}

.person-card {
    flex: 1 1 220px;
    max-width: 260px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.avatar {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.person-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.person-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.person-email {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.person-email:hover {
    color: var(--secondary-color);
}

.team-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.schedule-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.schedule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.schedule-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.schedule-details p {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.schedule-details strong {
    color: var(--secondary-color);
}

/* Rules */
.rules-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.rules-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.rules-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.rules-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.rules-card:last-child {
    margin-bottom: 0;
}

.rules-card h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.rules-card ul {
    list-style: none;
    padding-left: 0;
}

.rules-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
}

.rules-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.rules-card strong {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        border-radius: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: block;
    }

    .nav-dropdown-menu.active {
        max-height: 500px !important;
        padding: 0.5rem 0 !important;
    }

    .nav-dropdown-menu a {
        color: var(--bg-white);
        padding: 0.75rem 0;
        opacity: 0.9;
    }

    .nav-dropdown-menu a:hover {
        background: transparent;
        color: var(--accent-color);
        opacity: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .rules-section,
    .team-block,
    .weekly-reports-block {
        padding: 1.5rem;
    }

    .person-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .section {
        padding: 3rem 0;
    }
}
