/* Custom Properties (Variables) */
:root {
    /* Colors */
    --primary: #81001c;
    --primary-container: #a6192e;
    --primary-fixed: #ffdad9;
    --on-primary: #ffffff;
    
    --secondary: #515f7a;
    --secondary-fixed: #d7e2ff;
    
    --tertiary: #735c00;
    --tertiary-fixed: #ffe088;
    
    --surface: #fcf9f6;
    --surface-bright: #ffffff;
    --surface-container-low: #f6f3f0;
    --surface-container: #f0edea;
    --surface-variant: #e5e2df;
    
    --on-surface: #1c1c1a;
    --on-background: #1c1c1a;
    --outline-variant: #e1bebe;

    /* Typography */
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 9vh;
}

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

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
h1, h2, h3, h4, .font-headline {
    font-family: var(--font-headline);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

.section-padding { padding: 6rem 0; }
.bg-surface-low { background-color: var(--surface-container-low); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:active { transform: scale(0.95); }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-container);
}

.shadow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    border: 2px solid var(--outline-variant);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--surface-container-low);
}

.btn-dark {
    background-color: var(--on-background);
    color: white;
}

.btn-dark:hover {
    opacity: 0.9;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon .material-symbols-outlined {
    transition: transform 0.3s;
}

.btn-icon:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(252, 249, 246, 0.8);
    backdrop-filter: blur(16px);
    height: var(--nav-height);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a.active {
    color: var(--primary);
    font-family: var(--font-headline);
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-group {
    display: none;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .icon-group { display: flex; }
}

.icon-btn {
    color: var(--secondary);
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-btn:hover { color: var(--primary); }

.nav-btn {
    display: none;
}

@media (min-width: 1024px) {
    .nav-btn { display: inline-flex; }
}

.mobile-menu-btn {
    display: block;
    color: var(--on-surface);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 6rem; /* Account for navbar */
    min-height: 716px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 36rem;
}

@media (min-width: 768px) {
    .hero-content { width: 66.666%; }
}

.hero-content h1 {
    font-size: 3.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 6rem; }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1.625;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-container {
    display: none;
}

@media (min-width: 768px) {
    .hero-image-container {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 50%;
        border-top-left-radius: 4rem;
        border-bottom-left-radius: 4rem;
        overflow: hidden;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

.hero-image:hover {
    filter: grayscale(0%);
}

/* Alumni Bento Grid */
.section-header-flex {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.section-header-flex h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-background);
}

@media (min-width: 768px) {
    .section-header-flex h2 { font-size: 3rem; }
}

.header-line {
    height: 0.25rem;
    width: 8rem;
    background-color: var(--primary);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .header-line { margin-top: 0; }
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: 7fr 5fr; }
}

.bento-main-card {
    position: relative;
    height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--surface-container);
}

.bento-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-main-card:hover .bento-bg-image {
    transform: scale(1.05);
}

.scrim-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 28, 26, 0.9) 0%, rgba(28, 28, 26, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.tag-accent {
    color: var(--tertiary-fixed);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scrim-overlay h3 {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.scrim-overlay p {
    color: var(--surface-variant);
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 28rem;
}

.bento-side-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote-card {
    background-color: var(--primary);
    color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-variation-settings: 'FILL' 1;
}

.quote-card blockquote {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.quote-author h4 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.quote-author p {
    opacity: 0.8;
}

.impact-card {
    background-color: var(--surface-container-low);
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 8px solid var(--primary);
}

.impact-card h4 {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: var(--secondary);
}

/* Mentorship Section */
.mentorship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mentorship-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; }
}

.mentorship-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    order: 2;
}

@media (min-width: 768px) {
    .mentorship-images { order: 1; }
    .mentorship-content { order: 2; }
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.col-up { padding-top: 2rem; }

.image-column img {
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100%;
}

.img-short { height: 12rem; }
.img-tall { height: 16rem; }

.mentorship-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .mentorship-content h2 { font-size: 3rem; }
}

.mentorship-content p {
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1.625;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
    font-weight: 500;
}

.icon-primary { color: var(--primary); }

/* Events List */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-center h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header-center h2 { font-size: 3rem; }
}

.section-header-center p {
    color: var(--secondary);
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    background-color: var(--surface-bright);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .event-card {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.event-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.event-info-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-date {
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    min-width: 5rem;
}

.date-primary { background-color: var(--primary-fixed); color: var(--primary); }
.date-secondary { background-color: var(--secondary-fixed); color: var(--secondary); }
.date-tertiary { background-color: var(--tertiary-fixed); color: var(--tertiary); }

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.25rem;
}

.event-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s;
    margin-bottom: 0.25rem;
}

.event-card:hover .event-details h3 {
    color: var(--primary);
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.event-location .material-symbols-outlined {
    font-size: 1rem;
}

.event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* Avatar Group styling */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img, .avatar-count {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.avatar-group > *:not(:first-child) {
    margin-left: -0.75rem; /* Creates the overlap */
}

.avatar-count {
    background-color: var(--surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--on-surface);
}

/* Footer */
.footer {
    background-color: var(--surface-low);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: var(--secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links h4 {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--secondary);
    font-size: 0.875rem;
    transition: color 0.3s, text-decoration-color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(225, 190, 190, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

.footer-badges {
    display: flex;
    gap: 2rem;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 5rem; /* Fallback height */
        left: 0;
        right: 0;
        background-color: var(--surface);
        padding: 1rem 1.5rem 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 49;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .nav-links.nav-open a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--surface-container-low);
    }

    .nav-links.nav-open a:last-child {
        border-bottom: none;
    }
}