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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: #111827;
    line-height: 1.6;
    min-height: 100vh;
}

/* Harvard Colors */
.harvard-crimson {
    color: #A51C30;
}

.harvard-crimson-bg {
    background-color: #A51C30;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid #f3f4f6;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #A51C30;
}

/* Main Content */
main {
    padding-top: 6rem;
    animation: fadeIn 0.5s ease-in-out;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 2.5rem;
    font-weight: 500;
    color: #374151;
    margin-top: 1rem;
}

/* Event Card */
.event-card {
    max-width: 42rem;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.5s ease-out;
}

.event-label {
    color: #A51C30;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    text-align: center;
    opacity: 0.9;
}

.event-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #111827;
    line-height: 1.2;
}

.event-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

/* Event Details Grid */
.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.event-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(165, 28, 48, 0.1);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.event-detail-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(165, 28, 48, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 28, 48, 0.08);
}

.event-detail-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.event-detail-content {
    flex: 1;
    min-width: 0;
}

.event-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #A51C30;
    margin-bottom: 0.375rem;
    opacity: 0.85;
}

.event-detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-detail-time,
.event-detail-sublocation {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.4;
}

.event-footer-note {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
    margin: 0;
    font-style: italic;
}

/* Description */
.description {
    max-width: 48rem;
    margin: 5rem auto 0;
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.8;
    animation: fadeIn 0.5s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Footer */
footer {
    margin-top: 8rem;
    border-top: 1px solid #f3f4f6;
    padding: 2rem 1.5rem;
}

.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.popup-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.got-it-btn {
    background: #A51C30;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
    width: 100%;
}

.got-it-btn:hover {
    background: #8B1020;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 28, 48, 0.3);
}

.popup-section {
    margin-bottom: 2rem;
}

.popup-section:last-child {
    margin-bottom: 0;
}

.popup-section h2,
.popup-section h3 {
    color: #A51C30;
    font-size: 1.875rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.popup-section p {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.75rem;
    }
    
    .event-card {
        padding: 1.75rem;
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-detail-card {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .event-card {
        padding: 1.5rem;
        margin: 0 auto 2rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .event-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .event-detail-icon {
        font-size: 1.5rem;
    }
    
    .event-detail-value {
        font-size: 1rem;
    }
    
    .event-detail-time,
    .event-detail-sublocation {
        font-size: 0.875rem;
    }
    
    .popup-overlay {
        padding: 0;
    }
    
    .popup-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .popup-section {
        margin-bottom: 1.25rem;
    }
    
    .popup-section h2,
    .popup-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .popup-section p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .got-it-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
        margin-top: 1rem;
    }
}