/*
   UM House Style Colors:
   - Dark Blue: #003366
   - Accent Orange: #FF6600
   - Bright Blue: #00A2DB
*/

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

:root {
    --um-dark-blue: #003366;
    --um-orange: #FF6600;
    --um-bright-blue: #00A2DB;
    --um-light-gray: #f5f5f5;
    --um-text: #333;
    --um-white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--um-dark-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--um-bright-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--um-orange);
    text-decoration: underline;
}

/* Navigation */
#navbar {
    background-color: var(--um-dark-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

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

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

.nav-link {
    color: var(--um-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--um-orange);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--um-orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--um-white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--um-dark-blue) 0%, var(--um-bright-blue) 100%);
    color: var(--um-white);
    padding: 100px 0 80px;
    text-align: center;
}

#hero h1 {
    color: var(--um-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--um-white);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-funding {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-funding a {
    color: var(--um-orange);
    font-weight: 600;
}

.hero-funding a:hover {
    color: var(--um-white);
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--um-light-gray);
}

/* Update Box */
.update-box {
    background-color: var(--um-bright-blue);
    color: var(--um-white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.update-box h3 {
    color: var(--um-white);
    border-bottom: 2px solid var(--um-orange);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.update-box p {
    margin-bottom: 0;
}

.update-box a {
    color: var(--um-white);
    font-weight: 600;
    text-decoration: underline;
}

.update-box a:hover {
    color: var(--um-orange);
}

/* Team Section */
.team-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.team-member {
    background-color: var(--um-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--um-bright-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.team-member:hover .team-photo {
    border-color: var(--um-orange);
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.team-member h3 a {
    color: var(--um-dark-blue);
}

.team-member h3 a:hover {
    color: var(--um-orange);
    text-decoration: none;
}

.team-member p {
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: left;
}

/* App Features */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-feature {
    background-color: var(--um-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--um-orange);
}

.app-feature h3 {
    color: var(--um-dark-blue);
    margin-bottom: 1rem;
}

.app-feature p:last-child {
    margin-bottom: 0;
}

/* Lists */
ol, ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

ol li, ul li {
    margin-bottom: 0.5rem;
}

.outreach-list {
    list-style: none;
    margin-left: 0;
}

.outreach-list li {
    background-color: var(--um-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--um-bright-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.outreach-list li strong {
    color: var(--um-dark-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.outreach-list li em {
    color: var(--um-text);
}

/* Footer */
footer {
    background-color: var(--um-dark-blue);
    color: var(--um-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo p {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--um-orange);
}

.footer-contact a:hover {
    color: var(--um-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--um-dark-blue);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
    }

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

    /* Mobile menu toggle animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

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

    /* Sections */
    section {
        padding: 50px 0;
    }

    #hero {
        padding: 60px 0 50px;
    }

    /* Grids */
    .team-grid,
    .app-features {
        grid-template-columns: 1fr;
    }

    /* Lists */
    ol, ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

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

    .team-member,
    .app-feature {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Funding Section with Logo */
.funding-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.nro-logo {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .funding-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nro-logo {
        width: 50px;
        margin-bottom: 1rem;
    }
}
