/* =========================================================
   ADSA Lab — site.css
   
   ✅ FIX: Kept the original PINK/PURPLE branding for all content (--brand-600: #DD077F;).
   ✅ FIX: FORCED the Brand Title (.brand-text) to use the CYAN/BLUE glow (static and hover).
   ✅ FIX: Aggressively REMOVED all pink underline/border from the header link/text on all screens.
   ✅ FIX: Ensured the mobile header layout (brand/logo) does not collapse/overlap, and the 
          HAMBURGER MENU ICON IS VISIBLE on small screens.
   ========================================================= */


/* ---------- CSS Variables ---------- */

:root {
    --bg: #070707;
    /* page background (black) */
    --bg-elev: #1a1a1a;
    /* elevated sections */
    --card: #222;
    /* cards/panels (dark gray) */
    --soft: #333;
    /* borders / subtle surfaces */
    /* KEEPING ORIGINAL PINK/PURPLE BRANDING */
    --brand-50: rgba(255, 0, 126, .08);
    --brand-600: #DD077F;
    /* Main pink-purple color */
    --brand-700: #981580;
    /* Darker purple color */
    --text: #f5f5f5;
    /* white text */
    --muted: #bbbbbb;
    /* muted gray text */
    --line: rgba(255, 255, 255, .1);
    --shadow: 0 10px 30px rgba(0, 0, 0, .6);
    --radius: 14px;
    --container: 1120px;
    /* Avatar defaults (site-wide). Bio pages override below. */
    --avatar-size: 220px;
    /* default diameter for circular photos */
    --avatar-ring: 2px solid rgba(255, 255, 255, .18);
    --avatar-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}


/* ---------- Reset / Base ---------- */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    /* margin: 0; */
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input,
textarea,
select,
button {
    font: inherit;
}

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

a {
    /* Uses pink/purple brand color for generic links */
    color: var(--brand-600);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0 0 .6rem;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 5vw, 44px);
}

h2 {
    font-size: clamp(22px, 3.5vw, 32px);
}

h3 {
    font-size: clamp(18px, 2.6vw, 22px);
}

p {
    margin: 0 0 .9rem;
    color: var(--text);
}

small,
.muted {
    color: var(--muted);
}


/* ---------- Layout ---------- */

.container {
    width: min(1100px, 92vw);
    margin-inline: auto;
}

.section {
    padding: 64px 0;
}

.section+.section {
    border-top: 1px solid var(--line);
}

.grid-2 {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


/* ---------- HERO (full background image) ---------- */

.section-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url("assets/photos/home2.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-text {
    max-width: 900px;
    z-index: 1;
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-600), #3b82f6);
    color: #061022;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.06);
}

.btn.btn-outline {
    background: transparent;
    border-color: var(--soft);
    color: var(--text);
    box-shadow: none;
}

.btn.btn-outline:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
}


/* ============================================
   Interactive Lab Title (White Glow Only)
   ============================================ */


/* Keeping the original .brand-title for context, but using .brand-text below */

.brand-title {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none !important;
    position: relative;
    transition: text-shadow 0.3s ease;
}

.brand-title:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.brand-title:active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}


/* Flash animation when clicked */

.flash {
    animation: flashWhiteGlow 0.6s ease-in-out;
}

@keyframes flashWhiteGlow {
    0% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* ---------- Skip link ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    background: #111827;
    border: 1px solid var(--brand-600);
    border-radius: 6px;
    z-index: 9999;
}


/* =========================================================
     HEADER — Fixed Navigation Bar (UNIFIED)
     ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Consistent background and blur from home.css */
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 0.9rem 2.5rem;
    /* Consistent Header Height */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 3vw;
    box-sizing: border-box;
    max-width: none;
    margin: 0;
}


/* -------- Left: Logo + Title (Brand) -------- */

.brand {
    /* 💥 FIX: Ensure the brand link itself has no decoration or border (Aggressive removal) */
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.brand-logo {
    height: 55px;
    /* UNIFIED LOGO HEIGHT */
    width: auto;
    margin-right: 0;
}

.brand-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
    /* 💥 FIX: AGGRESSIVELY REMOVE BORDER/UNDERLINE */
    border-bottom: none !important;
    text-decoration: none !important;
    /* 💥 FIX: FORCE STATIC CYAN/BLUE GLOW (to match team/home) */
    text-shadow: 0 1px 1px rgba(0, 255, 255, 0.5), 0 0 15px rgba(0, 255, 255, 0.3);
    white-space: nowrap;
}


/* 💥 FIX: Remove the unwanted hyphen/dash that may be a pseudo-element */

.brand-text::after,
.brand-text::before {
    content: none !important;
}

.brand-text strong {
    font-weight: 700;
}

.brand-text:hover {
    color: #ffffff;
    transform: scale(1.08);
    /* 💥 FIX: FORCE HOVER CYAN/BLUE GLOW (to match team/home) */
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6), 0 0 16px rgba(0, 255, 255, 0.4), 0 0 24px rgba(0, 255, 255, 0.3);
}


/* -------- Right: Navigation Links -------- */

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* UNIFIED NAV GAP */
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-shadow: none;
}

.site-nav a:hover {
    /* Uses the pink/purple brand color */
    color: var(--brand-600);
    text-shadow: none;
}

.site-nav a.is-active {
    /* Uses the pink/purple brand color */
    color: var(--brand-600);
    text-shadow: none;
}


/* 💥 FIX: Mobile collapse and Hamburger menu visibility */

@media (max-width: 900px) {
    .header-inner {
        /* Ensures alignment on mobile */
        align-items: center;
    }
    .brand {
        /* Ensures brand logo and text stay in one line and aligned */
        display: flex;
        align-items: center;
        gap: 0.7rem;
        /* Tighter gap for mobile */
    }
    /* Fix for brand text wrapping on small screens */
    .brand-text {
        font-size: 0.8rem;
        white-space: normal;
        /* Allow the text to wrap */
        max-width: 180px;
        /* Limit the width */
        line-height: 1.2;
    }
    /* HIDE desktop navigation links */
    .site-nav ul {
        display: none;
    }
    /* SHOW the hamburger menu icon */
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
        /* push hamburger to far right */
    }
}


/* =========================================================
     HOME HERO (index.html)
     ========================================================= */

.section-hero .lead {
    color: var(--muted);
}

.hero-visual {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--soft);
    box-shadow: var(--shadow);
}

.hero-visual figcaption {
    color: var(--muted);
    font-size: .9rem;
    padding: .4rem .75rem;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .18);
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.typed {
    border-right: 2px solid currentColor;
    padding-right: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 2001;
    /* ensures it stays above nav */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* Animation when menu is open */

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* =========================================================
     PEOPLE / TEAM (team.html)
     ========================================================= */

.people-page #people {
    position: relative;
    padding-top: 64px;
}

.people-page #people-title {
    text-align: center;
    font-size: clamp(28px, 4.6vw, 40px);
    margin-bottom: 32px;
    position: relative;
}

.people-page #people-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 10px auto 0;
    /* Uses pink/purple brand color */
    background: var(--brand-600);
    border-radius: 2px;
}


/* Rows */

.people-row {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    margin: 14px 0 36px;
    padding: 0;
}

@media (max-width: 780px) {
    .people-row {
        grid-template-columns: 1fr;
    }
}

.person {
    display: grid;
    grid-template-columns: 92px auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .02));
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
}

.person .name {
    font-weight: 800;
    letter-spacing: .01em;
}

.person .position {
    /* Uses pink/purple brand color */
    color: var(--brand-600);
    font-weight: 700;
}


/* Circular thumbnail fed by data-photo (JS sets bg-image) */

.thumb[data-photo] {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .25);
}


/* Clickable whole card helper (anchor inside card) */

.stretched-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}


/* =========================================================
     BIO PAGES (prof_*.html, ahmed_al_marouf.html)
     ========================================================= */


/* Make ONLY bio pages bigger: set the desired circle size here */

.people-page {
    --avatar-size: 300px;
}


/* change this value to grow/shrink */


/* Bio hero layout */

.bio-hero {
    padding-top: 48px;
}

.bio-wrap {
    display: grid;
    gap: 28px;
    /* left column matches the circular photo's diameter */
    grid-template-columns: var(--avatar-size) 1fr;
    align-items: flex-start;
}

@media (max-width: 880px) {
    .bio-wrap {
        grid-template-columns: 1fr;
    }
}


/* Circular photo container (the clip) */

.bio-photo {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    /* perfect circle */
    overflow: hidden;
    /* crop the image to the circle */
    border: var(--avatar-ring);
    box-shadow: var(--avatar-shadow);
    background: #111;
    /* fallback color while image loads */
    flex: 0 0 auto;
    line-height: 0;
    /* remove inline gaps */
}


/* The image fills the circle and centers the face */

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fill without distortion */
    object-position: center;
    display: block;
}


/* Text styles */

.bio-text h1 {
    margin: 0 0 6px;
}

.bio-role {
    /* Uses pink/purple brand color */
    color: var(--brand-600);
    font-weight: 800;
    margin-bottom: 10px;
}


/* Quick facts list */

.bio-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    border: 1px solid var(--soft);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .02));
}

.bio-meta li {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.bio-meta li:last-child {
    border-bottom: none;
}


/* Actions under bio */

.bio-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}


/* Responsive: slightly smaller avatars on narrow screens */

@media (max-width: 992px) {
    .people-page {
        --avatar-size: 220px;
    }
    .bio-wrap {
        grid-template-columns: var(--avatar-size) 1fr;
    }
}


/* =========================================================
     NEWS (index)
     ========================================================= */

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.news-item {
    padding: 12px 14px;
    border: 1px solid var(--soft);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .02));
}

.news-item time {
    color: var(--muted);
    margin-right: 8px;
}


/* =========================================================
     PUBLICATIONS (index)
     ========================================================= */

.pub-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.pub-controls label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-controls select,
.pub-controls input[type="search"] {
    background: #0d1530;
    color: var(--text);
    border: 1px solid var(--soft);
    padding: 8px 10px;
    border-radius: 10px;
}

.pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.pub-item {
    padding: 12px 14px;
    border: 1px solid var(--soft);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .02));
}


/* =========================================================
     CONTACT (index)
     ========================================================= */

.contact-form {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    background: #0d1530;
    color: var(--text);
    border: 1px solid var(--soft);
    border-radius: 10px;
    padding: 10px 12px;
    resize: vertical;
}

.contact-form button {
    width: fit-content;
}

.contact-form .form-status {
    color: #10b981;
    font-weight: 700;
}

@media (max-width: 760px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
     FOOTER
     ========================================================= */

.site-footer {
    background: #0b0c0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-meta {
    color: #d1d5db;
    margin-top: 0.5rem;
}

.footer-meta a {
    color: #06b6d4;
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--soft);
    border-radius: 999px;
}

.social-links a:hover {
    background: var(--brand-50);
    text-decoration: none;
}


/* =========================================================
     ACCESSIBILITY / FOCUS
     ========================================================= */

:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: 4px;
}


/* =========================================================
     UTILITIES
     ========================================================= */

.lead {
    font-size: 1.08rem;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.is-active {
    background: var(--brand-50);
    border-radius: 10px;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--soft);
    border-radius: 999px;
}


/* ===== Featured Logos Section (Updated) ===== */

.featured-section {
    background: rgba(15, 18, 28, 0.4);
    /* more transparent */
    backdrop-filter: blur(8px);
    padding: 70px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
}

.featured-logo {
    height: 100px;
    /* bigger logos */
    width: auto;
    opacity: 0.85;
    filter: brightness(0.9);
    transition: all 0.35s ease;
}

.featured-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    /* Blue glow on logo hover (to match brand name glow) */
    filter: brightness(1.2) drop-shadow(0 0 25px rgba(0, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .featured-logo {
        height: 70px;
    }
    .featured-logos {
        gap: 40px;
    }
}


/* Prevent header overlap on bio pages */

.people-page .bio-hero {
    padding-top: 130px;
    /* space for fixed header */
}

#page-info {
    padding: 0.75rem 1.75rem;
}