/* ============================================================
   ARC ROVER TEAM — LANDING PAGE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg:        #0b0a08;
    --bg-alt:    #0e0c09;
    --rust:      #c85a2e;
    --amber:     #e8a33d;
    --text:      #f2ede4;
    --muted:     #948a7c;
    --muted-2:   #635c52;
    --border:    rgba(232, 163, 61, 0.16);
    --border-2:  rgba(232, 163, 61, 0.32);
    --green:     #5fb87a;
    --blue:      #4a90e2;
    --mono: 'IBM Plex Mono', 'Courier New', monospace;
    --sans: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    min-height: 100vh;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(232, 163, 61, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 12px 22px;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm { padding: 9px 16px; font-size: 12px; }

.btn-primary {
    background: linear-gradient(135deg, var(--rust), var(--amber));
    color: #171008;
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
    border-color: var(--border-2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: rgba(232, 163, 61, 0.06); }

/* ===== HUD PANEL ===== */
.hud-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.hud-panel::before,
.hud-panel::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--amber);
    border-style: solid;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hud-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-panel::after   { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.hud-panel:hover::before, .hud-panel:hover::after { opacity: 1; }

/* ===== NAVIGATION ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(8, 8, 8, 0.92);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.nav-logo .logo-icon {
    height: 75px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .nav-logo .logo-icon { height: 24px; }
}

.logo-mark { color: var(--rust); font-size: 16px; }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-link {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active { color: var(--amber); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-dashboard {
    color: var(--amber);
    border: 1px solid var(--border-2);
    padding: 7px 14px;
    border-radius: 3px;
}

.nav-dashboard::after { display: none; }
.nav-dashboard:hover { background: rgba(232, 163, 61, 0.08); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

.team-photo-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('mars-bg.png');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-color: #0b0a08;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 900px 500px at 50% 30%, rgba(200, 90, 46, 0.18), transparent 65%),
        linear-gradient(180deg, rgba(11,10,8,0.55) 0%, rgba(11,10,8,0.35) 40%, rgba(11,10,8,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
    margin-top: -6vh;
}

.hero-content h1 {
    font-family: var(--mono);
    font-size: clamp(40px, 8vw, 76px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.01em;
    margin: 14px 0 20px;
}

.hero-content .accent { color: var(--rust); }

.hero-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(242, 237, 228, 0.72);
    max-width: 56ch;
    margin: 0 auto 30px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 22px;
    height: 36px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--amber);
    animation: scrollcue 1.6s ease-in-out infinite;
}

.hero-credit {
    position: absolute;
    bottom: 14px;
    right: 18px;
    z-index: 1;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.03em;
    color: rgba(242, 237, 228, 0.4);
}

@keyframes scrollcue {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    font-family: var(--mono);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(242, 237, 228, 0.72);
    max-width: 68ch;
    margin-bottom: 44px;
}

/* ===== OVERVIEW: PILLARS ===== */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pillar-card { padding: 24px 20px; }
.pillar-icon { font-size: 26px; display: block; margin-bottom: 12px; }
.pillar-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pillar-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ===== HISTORY: TIMELINE ===== */
.timeline {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    padding-left: 22px;
    margin: 0 0 56px 6px;
}

.timeline-item { position: relative; padding: 13px 0; }

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--rust);
}

.timeline-date {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--rust);
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 3px;
}

.timeline-content p {
    font-size: 14.5px;
    color: rgba(242, 237, 228, 0.78);
    max-width: 60ch;
}

/* ===== PRESS MARQUEE ===== */
.press-block { margin: 2rem 0; }
.press-heading { font-family: var(--mono); font-size: 15px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }

.marquee-container {
    overflow: hidden;
    width: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 0;
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.clipping {
    flex: 0 0 auto;
    width: 200px;
    height: 250px;
    background: #f4f1ea;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clipping img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 2px; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .clipping { width: 160px; height: 200px; }
}

/* ===== ACHIEVEMENT STRIP ===== */
.achievement-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.achievement-pill {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== FACULTY ===== */
.faculty-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 32px;
}

.faculty-photo {
    aspect-ratio: 1;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(200,90,46,0.22), rgba(232,163,61,0.1));
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--amber);
}

.faculty-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(95, 184, 122, 0.1);
    border: 1px solid rgba(95, 184, 122, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.faculty-info h3 { font-family: var(--mono); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.faculty-role { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.faculty-bio { font-size: 14.5px; line-height: 1.75; color: rgba(242, 237, 228, 0.75); max-width: 64ch; margin-bottom: 22px; }
.faculty-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   TEAMS ROTATING ORBITAL LAYOUT (ENLARGED)
   ============================================================ */
.team-orbit-container {
    position: relative;
    width: 100%;
    height: 800px; /* Increased from 650px */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    overflow: hidden;
}

.orbit-hub {
    position: absolute;
    width: 160px; /* Increased from 140px */
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--amber);
    background: rgba(200, 90, 46, 0.1);
    border: 2px dashed var(--rust);
    z-index: 10;
    box-shadow: 0 0 30px rgba(200, 90, 46, 0.2);
    animation: pulseHub 4s ease-in-out infinite;
}

@keyframes pulseHub {
    0% { box-shadow: 0 0 20px rgba(200, 90, 46, 0.1); }
    50% { box-shadow: 0 0 40px rgba(200, 90, 46, 0.4); }
    100% { box-shadow: 0 0 20px rgba(200, 90, 46, 0.1); }
}

/* The Rotating Ring */
.orbit-ring {
    position: absolute;
    width: 100%;
    max-width: 750px; /* Increased from 600px */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    animation: spin 40s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Node Positioning */
.team-node {
    position: absolute;
    width: 140px; /* Increased from 110px */
    height: 140px;
    z-index: 5;
}

.team-node.software { top: 0%; left: 50%; margin-top: -70px; margin-left: -70px; }
.team-node.electrical { top: 50%; right: 0%; margin-top: -70px; margin-right: -70px; }
.team-node.mechanical { bottom: 0%; left: 50%; margin-bottom: -70px; margin-left: -70px; }
.team-node.science { top: 50%; left: 0%; margin-top: -70px; margin-left: -70px; }

.leader-node {
    position: absolute;
    width: 120px; /* Increased from 90px */
    height: 120px;
    z-index: 6;
}

.leader-node[data-team="software"] { top: 15%; left: 15%; margin-top: -60px; margin-left: -60px; }
.leader-node[data-team="electrical"] { top: 15%; right: 15%; margin-top: -60px; margin-right: -60px; }
.leader-node[data-team="mechanical"] { bottom: 15%; right: 15%; margin-bottom: -60px; margin-right: -60px; }
.leader-node[data-team="science"] { bottom: 15%; left: 15%; margin-bottom: -60px; margin-left: -60px; }

/* Node Inner Content */
.node-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--mono);
    font-size: 14px; /* Increased from 11px */
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    cursor: pointer;
    animation: spin-reverse 40s linear infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    line-height: 1.3;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Team Node Colors */
.team-node.software .node-inner { background: linear-gradient(135deg, var(--rust), #e06a3a); border: 2px solid #ff8c5a; }
.team-node.electrical .node-inner { background: linear-gradient(135deg, var(--amber), #f0b55a); border: 2px solid #ffc776; color: #171008; }
.team-node.mechanical .node-inner { background: linear-gradient(135deg, var(--green), #7acc92); border: 2px solid #8aff9e; color: #0b1a0f; }
.team-node.science .node-inner { background: linear-gradient(135deg, var(--blue), #6ba8f0); border: 2px solid #8bbfff; color: #fff; }

/* Leader Node Styles */
.leader-node .node-inner {
    border: 3px solid var(--amber);
    filter: grayscale(40%);
}

/* Hover Effects */
.team-node:hover .node-inner,
.leader-node:hover .node-inner {
    animation-play-state: paused;
    transform: scale(1.15);
    box-shadow: 0 0 25px var(--amber);
    z-index: 20;
}

.leader-node:hover .node-inner {
    border-color: #fff;
    filter: grayscale(0%);
}

/* ============================================================
   TEAM MODAL
   ============================================================ */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px; /* Slightly wider for bigger avatars */
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    background: rgba(14, 12, 9, 0.95);
    border: 1px solid var(--border-2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.team-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--amber);
}

.modal-title {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.modal-leader {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(232, 163, 61, 0.2);
    margin-bottom: 1.5rem;
}

.modal-leader .leader-avatar {
    width: 160px; /* Increased from 120px */
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.1);
    border: 4px solid var(--amber); /* Thicker border */
    margin: 0 auto 16px;
    box-shadow: 0 0 0 6px rgba(232,163,61,0.1);
}

.modal-leader .leader-label {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 4px;
}

.modal-leader .leader-name {
    display: block;
    font-weight: 700;
    font-size: 2rem; /* Bigger text */
    color: #fff;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
    padding: 1rem 0;
}

.member {
    text-align: center;
}

.member-avatar {
    width: 110px; /* Increased from 80px */
    height: 110px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.06);
    border: 3px solid var(--border-2); /* Thicker border */
    margin: 0 auto 10px;
    transition: border-color 0.2s, transform 0.2s;
}

.member-avatar:hover {
    border-color: var(--amber);
    transform: scale(1.1);
}

.member-name {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
    font-weight: 600;
}

@media (max-width: 600px) {
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-leader .leader-avatar { width: 120px; height: 120px; }
    .modal-leader .leader-name { font-size: 1.5rem; }
    .member-avatar { width: 80px; height: 80px; }
    .member-name { font-size: 13px; }
}

/* ===== JOIN ===== */
.section-join {
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(200, 90, 46, 0.12), transparent 65%),
        var(--bg);
    border-top: 1px solid var(--border);
}

.join-inner { text-align: center; }
.join-inner .section-lead { margin-left: auto; margin-right: auto; }

.join-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.role-chip {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.02);
}

.join-actions { justify-content: center; }

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted-2);
    letter-spacing: 0.03em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0; right: 0;
        background: rgba(11, 10, 8, 0.97);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 32px 20px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-dashboard { margin-top: 8px; text-align: center; }
    .nav-toggle { display: flex; }

    .faculty-card { grid-template-columns: 1fr; text-align: center; }
    .faculty-photo { width: 120px; margin: 0 auto; }
    .faculty-links { justify-content: center; }
    .faculty-bio { margin-left: auto; margin-right: auto; }

    /* Orbit Responsive */
    .team-orbit-container {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 40px;
        overflow: visible;
    }
    .orbit-hub { position: relative; margin-bottom: 20px; width: 140px; height: 140px; }
    .orbit-ring { 
        position: relative; 
        animation: none; 
        width: 100%; 
        max-width: 100%; 
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .team-node, .leader-node {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
        margin: 0 !important;
        width: 120px;
        height: 120px;
    }
    .leader-node { width: 100px; height: 100px; }
    .node-inner { animation: none !important; }
    .team-node:hover .node-inner, .leader-node:hover .node-inner { transform: scale(1.05); }
}

@media (max-width: 600px) {
    .section { padding: 70px 0; }
    .pillar-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 42px; }
}