@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
    /* Brand Colors */
    --violet: #6b3fa0;
    --violet-dark: #32194f;
    --violet-light: #f4eff8;

    --yellow: #f5c542;
    --yellow-light: #fff8dc;

    --white: #ffffff;
    --black: #17121c;
    --gray: #716a78;
    --line: #ded8e3;

    /* Distinct Section Background Tokens */
    --bg-hero: #25113d;
    --bg-happening: #ffffff;
    --bg-summary: #f4eff8;        /* Soft Tint */
    --bg-about: #ffffff;          /* Pure White */
    --bg-mission: #eae0f4;        /* Subdued Tint */
    --bg-projects: #ffffff;       /* Pure White */
    --bg-initiatives: #e2d5f0;    /* Lavender Tint */
    --bg-partner: #32194f;        /* Deep Dark Purple */
    --bg-freshman: #ffffff;       /* Pure White */
    --bg-connect: #6b3fa0;        /* Original Violet Purple */

    --sans: "DM Sans", sans-serif;
    --serif: "Playfair Display", serif;

    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

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

button {
    font-family: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.overline {
    color: var(--violet);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1, h2, h3 {
    line-height: 1.05;
}

h2 {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 500;
}

h2 em {
    color: var(--violet);
    font-weight: 500;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(222, 216, 227, 0.8);
    backdrop-filter: blur(15px);
}

.nav-container {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10001;
}

.logo-mark {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    color: var(--violet-dark);
    font-size: 0.9rem;
    line-height: 1.1;
}

.brand-name span {
    margin-top: 3px;
    color: var(--gray);
    font-size: 0.55rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 10001;
}

.nav-links a {
    position: relative;
    color: var(--gray);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.25s ease;
}

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

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

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 10002;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px;
    background: var(--violet-dark);
}

/* HERO */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-hero);
    background-image: url("home.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(37, 17, 61, 0.96) 0%,
        rgba(37, 17, 61, 0.82) 48%,
        rgba(37, 17, 61, 0.35) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
}

.hero .overline {
    color: var(--yellow);
}

.hero h1 {
    max-width: 800px;
    margin-top: 18px;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: var(--yellow);
    font-style: italic;
}

.hero-description {
    max-width: 590px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.button-primary {
    background: var(--yellow);
    color: var(--violet-dark);
}

.button-primary:hover {
    transform: translateY(-3px);
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-bottom {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
}

/* HAPPENING SOON */
.happening {
    background: var(--bg-happening);
    border-bottom: 1px solid var(--line);
}

.happening-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.happening-heading > p {
    max-width: 390px;
    color: var(--gray);
    font-size: 0.85rem;
}

.featured-event {
    margin-top: 65px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    background: var(--violet-dark);
    color: white;
}

.featured-event::after {
    content: "∑";
    position: absolute;
    right: 35px;
    bottom: -75px;
    color: rgba(255, 255, 255, 0.04);
    font-family: var(--serif);
    font-size: 15rem;
    pointer-events: none;
}

.featured-label {
    display: inline-block;
    padding: 7px 12px;
    background: var(--yellow);
    color: var(--violet-dark);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.featured-content {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: flex-end;
}

.featured-term {
    color: var(--yellow);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.featured-content h3 {
    max-width: 750px;
    margin-top: 10px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    font-weight: 500;
}

.featured-content p {
    max-width: 680px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.featured-date {
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-date span {
    color: var(--yellow);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.featured-date strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
}

/* SUMMARY HIGHLIGHTS */
.summary-highlights {
    background: var(--bg-summary);
    border-bottom: 1px solid var(--line);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.summary-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(50, 25, 79, 0.08);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
}

.summary-action {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--violet-dark);
    transition: color 0.2s ease;
}

.summary-action:hover {
    color: var(--violet);
}

.summary-middle {
    margin: 22px 0 16px;
}

.summary-middle h3 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
}

.tile-title-link {
    color: var(--violet-dark);
    transition: color 0.2s ease;
}

.tile-title-link:hover {
    color: var(--violet);
}

.summary-org {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--gray);
}

.summary-org a {
    color: var(--gray);
    font-weight: 600;
    transition: color 0.2s ease;
}

.summary-org a:hover {
    color: var(--violet);
}

.summary-bottom h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.summary-bottom p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.55;
}

/* ABOUT */
.intro {
    background: var(--bg-about);
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: flex-end;
}

.intro-text p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* MISSION & VISION */
.department {
    background: var(--bg-mission);
    border-bottom: 1px solid var(--line);
}

.department-heading {
    max-width: 850px;
}

.department-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 50px;
    gap: 20px;
}

.department-card {
    min-height: 380px;
    padding: 45px;
    background: var(--white);
    border-top: 5px solid var(--violet);
    border: 1px solid var(--line);
    border-top-width: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(64, 32, 96, 0.1);
}

.department-card.vision-card {
    background: var(--violet-dark);
    color: white;
    border-top-color: var(--yellow);
    border-color: transparent;
}

.department-number {
    color: var(--violet);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.vision-card .department-number {
    color: var(--yellow);
}

.department-card h3 {
    margin-top: 40px;
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 500;
}

.department-card p {
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.8rem;
}

.department-card.vision-card p {
    color: rgba(255, 255, 255, 0.68);
}

/* PROJECTS */
.projects {
    background: var(--bg-projects);
    border-bottom: 1px solid var(--line);
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.projects-heading > p {
    max-width: 390px;
    color: var(--gray);
    font-size: 0.85rem;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 50px;
}

.project-card {
    min-height: 310px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(50, 25, 79, 0.08);
}

.project-type {
    color: var(--violet);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h3 {
    margin-top: 15px;
    color: var(--violet-dark);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
}

.project-card p {
    margin-top: 14px;
    color: var(--gray);
    font-size: 0.74rem;
}

.project-meta {
    display: block;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--gray);
    font-size: 0.58rem;
}

/* INITIATIVES */
.initiatives {
    background: var(--bg-initiatives);
    border-bottom: 1px solid var(--line);
}

.initiatives .project-card {
    background: var(--white);
}

.initiatives .project-card:hover {
    background: var(--yellow-light);
}

/* PARTNER WITH US */
.partner {
    background: var(--bg-partner);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.partner .overline {
    color: var(--yellow);
}

.partner h2 {
    color: var(--white);
}

.partner h2 em {
    color: var(--yellow);
}

/* Directly targets the header paragraph in the partner section to make it white */
.partner .projects-heading > p {
    color: rgba(255, 255, 255, 0.85);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.partner-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.partner-number {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--violet);
    display: block;
    margin-bottom: 12px;
}

.partner-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--violet-dark);
}

.partner-card h3 em {
    color: var(--violet);
}

.partner-card p {
    font-size: 0.74rem;
    color: var(--gray);
    line-height: 1.55;
    margin-top: 12px;
}

.partner-contact-info {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 0.72rem;
    color: var(--black);
}

.partner-contact-info a {
    color: var(--violet);
    font-weight: 600;
}

.partner-contact-info a:hover {
    text-decoration: underline;
}

.partner-action {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* FRESHMAN */
.freshman {
    background: var(--bg-freshman);
    border-bottom: 1px solid var(--line);
}

.freshman-box {
    padding: 70px;
    background: var(--violet-light);
    border-left: 5px solid var(--violet);
}

.freshman-content {
    max-width: 760px;
}

.freshman-content h2 {
    margin-top: 14px;
}

.freshman-content > p:not(.overline) {
    max-width: 650px;
    margin-top: 25px;
    color: var(--gray);
    font-size: 0.9rem;
}

.freshman-content .button {
    margin-top: 30px;
}

/* CONNECT */
.connect {
    background: var(--bg-connect);
}

.connect-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-end;
}

.connect-heading .overline {
    color: var(--yellow);
}

.connect-heading h2 {
    color: white;
}

.connect-heading h2 em {
    color: var(--yellow);
}

.connect-heading > p:last-child {
    max-width: 450px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
}

.social-buttons a {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 600;
    transition: padding 0.25s ease, color 0.25s ease;
}

.social-buttons a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-buttons a:hover {
    padding-left: 15px;
    padding-right: 15px;
    color: var(--yellow);
}

.social-buttons strong {
    font-size: 1rem;
}

/* FOOTER */
.footer {
    background: var(--violet-dark);
    color: white;
    padding: 55px 0 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer .brand-name strong {
    color: white;
}

.footer .brand-name span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.65rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.55rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 24px 25px;
        background: white;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 13px 0;
    }

    .menu-button {
        display: block;
    }

    .summary-grid,
    .intro-grid,
    .connect-box,
    .partner-grid {
        grid-template-columns: 1fr;
    }

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

    .department-card {
        border-right: none;
    }

    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-date {
        padding-left: 0;
        padding-top: 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 80px 0;
    }

    .brand-name span {
        display: none;
    }

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

    .project-list {
        grid-template-columns: 1fr;
    }

    .department-card {
        padding: 30px;
    }

    .summary-card {
        padding: 30px 25px;
    }

    .freshman-box {
        padding: 35px 28px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 18px;
    }
}