* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation Bar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--navbar-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.navbar {
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;

}

.logo {
    display: flex;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    object-fit: contain;
    gap: 10px;
    align-items: center;
}

.logo #logo {
    border-radius: 50%;
    height: 42px;
    width: 42px;
    cursor: pointer;
    border: 2px solid rgba(102, 217, 255, 0.45);
    box-shadow: 0 0 20px rgba(102, 217, 255, 0.18);
    transition: all 0.8s ease;
    position: relative;
    z-index: 1000;

}

/* Logo Backdrop Overlay */
.logo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.logo-active .logo-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.logo-active header,
header:has(#logo.animate) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 100000;
}

/* Logo Click Animation - Vertical Elliptical Shape */
.logo #logo.animate,
#logo.animate {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(76vw, 290px);
    height: min(92vw, 400px);
    aspect-ratio: 29 / 40;
    margin: 0;
    border-radius: 50%; /* Height > Width + 50% border-radius creates a vertical ellipse */
    clip-path: ellipse(50% 50% at 50% 50%);
    object-fit: contain;
    background: #ffffff;
    padding: 36px 24px;
    z-index: 100001;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 191, 255, 0.6), 0 25px 65px rgba(0, 0, 0, 0.85);
    filter: drop-shadow(0px 14px 28px rgba(0, 0, 0, 0.6));
    transform: translate(-50%, -50%) rotate(360deg);
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 13px;
    color: var(--paragraph-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, background 0.25s ease;
    border-radius: 10px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.045);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--heading-color);
    font-size: 24px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
    z-index: 1001;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* MOBILE MENU BACKDROP */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* HERO SECTION */
.hero {
    padding-top: 60px;
    background:
        linear-gradient(rgba(1, 0, 10, 0.35),
            rgba(6, 15, 27, 0.45)),
        url("images/background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

body.lightmode .hero {
    background:
        linear-gradient(rgba(180, 170, 170, 0.35),
            rgba(236, 245, 255, 0.45)),
        url("images/background.jpeg");
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

.badge {
    background: var(--navbar-bg);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: .9rem;
}


.hero-content {
    margin-top: 12%;
    text-align: center;

}

.hero-content h1 {
    font-size: 4rem;
    max-width: 900px;
    margin: auto;
    line-height: 1.2;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--heading-color);
    max-width: 800px;
}

.hero-text span {
    color: var(--button-bg);
}

.hero-content p {
    margin: 25px auto;
    max-width: 700px;
    color: var(--paragraph-color);
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    text-decoration: none;
    border-radius: 40px;
    margin: 10px;
    transition: 0.4s;
    background: var(--button-bg);
    color: white;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: white;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: #00bfff30;
    filter: blur(120px);
    border-radius: 50%;
}

.main {
    color: var(--paragraph-color);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}


/* Footer Section */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightmode footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer .complete-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 30px 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-alignment {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1.3fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

footer .student-chapter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer .student-chapter img {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.chapter-tagline {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--paragraph-color);
    max-width: 320px;
    margin: 6px 0 0 0;
}

.all-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.acm-access-links,
.gcoerc-access-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 16px 0;
    text-align: left;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer Links: Strictly Vertical Columns */
footer ul,
footer ul.access-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

footer li {
    padding: 0;
    margin: 0;
    width: 100%;
}

footer .access-links a {
    text-decoration: none;
    color: var(--paragraph-color);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease, transform 0.25s ease;
    width: auto;
}

footer .access-links a i {
    font-size: 0.72rem;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

footer .access-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

footer .access-links a:hover i {
    transform: translateX(2px);
}

.college-handles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.connect-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

footer .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
}

footer .social-btn {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: 1px solid var(--shadow-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .social-btn:hover {
    transform: translateY(-3px);
    background: var(--button-bg);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px var(--shadow-color);
}

footer .location {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer .location-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--paragraph-color);
    font-size: 0.88rem;
    line-height: 1.55;
    transition: color 0.25s ease;
    margin-top: 2px;
}

footer .location-icon {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
}

footer .location-link:hover {
    color: var(--primary-color);
}

/* Copyright Notice */
footer .last-line {
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--last-line);
    font-size: 0.88rem;
    color: var(--paragraph-color);
}

.lightmode footer .last-line {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}