/* EBMUN - East Bay MUN Website Styles */
/* Minimalist Black & White Design inspired by BMUN and SCVMUN */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Black & White Color Palette */
    --black: #000000;
    --black-soft: #1a1a1a;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #999999;
    --gray-lighter: #cccccc;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--black-soft);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
nav {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

nav .logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

nav .logo:hover {
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    opacity: 0.7;
}

nav .menu-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* Hero Section with Background Image */
.hero {
    background-image: url('assets/campus-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero .hero-dates {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .hero-button {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero .hero-button:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Main Content */
main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 200px);
    background-color: var(--white);
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: var(--black);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--black);
    display: inline-block;
    width: 100%;
}

h3 {
    font-family: 'Playfair Display', serif;
    color: var(--black-soft);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-top: 0;
    color: var(--black);
}

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

.committee-card {
    background: var(--white);
    border-radius: 0;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.committee-card:hover {
    transform: translateY(-4px);
    border-color: var(--black);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.committee-card h3 {
    color: var(--black);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--black);
    padding-bottom: 0.75rem;
}

.committee-card a {
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.committee-card a:hover {
    border-bottom-color: var(--black);
}

/* Schedule Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--black);
}

.timeline-item {
    background: var(--white);
    border-left: 3px solid var(--black);
    padding: 2rem;
    margin-bottom: 2rem;
    margin-left: 2.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--black);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--black);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--black);
}

.timeline-item:hover {
    transform: translateX(8px);
    border-left-color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-item .time {
    font-weight: 700;
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--off-white);
    border: 1px solid var(--border-color);
}

.timeline-item .event {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--black-soft);
}

/* Forms */
form {
    background: var(--white);
    padding: 3rem;
    border-radius: 0;
    box-shadow: none;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.form-group {
    margin-bottom: 1.75rem;
}

form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--black-soft);
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--black);
    background-color: var(--white);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

form input:hover,
form select:hover,
form textarea:hover {
    border-color: var(--gray-medium);
}

form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

form button[type="submit"] {
    background: var(--black);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--black);
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    letter-spacing: 0.5px;
}

form button[type="submit"]:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--black);
}

form button[type="submit"]:active {
    transform: scale(0.98);
}

/* Placeholder text */
.placeholder {
    color: var(--gray-medium);
    font-style: italic;
    background: var(--off-white);
    padding: 1.25rem;
    border-radius: 0;
    border: 1px dashed var(--border-color);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--gray-dark);
}

footer p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.9;
}

footer p:first-child {
    font-weight: 600;
    font-size: 1.05rem;
    opacity: 1;
}

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

ul li, ol li {
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

/* Two-column layout for logistics */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Links */
a {
    color: var(--black);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: static;
        width: 100%;
        flex-direction: column;
        padding-top: 1rem;
        gap: 0.5rem;
        margin-top: 1rem;
        align-items: flex-start;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 0;
        border-radius: 0;
    }

    nav .menu-toggle {
        display: block;
    }

    nav {
        position: relative;
        background-color: var(--black);
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 500px;
    }

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

    .hero .hero-dates {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero .hero-button {
        padding: 0.875rem 2.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1rem;
    }

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

    .two-column {
        grid-template-columns: 1fr;
    }

    nav .container {
        padding: 0 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        margin-left: 2rem;
        padding: 1.5rem;
    }

    .timeline-item::before {
        left: -25px;
        width: 10px;
        height: 10px;
    }

    form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        position: relative;
        background-color: var(--black);
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .hero .hero-dates {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero .hero-button {
        padding: 0.75rem 2rem;
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    form {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

    .committee-card {
        padding: 2rem 1.5rem;
    }
}
