:root {
    /* Color Palette */
    --bg-dark: #030712;
    --bg-surface: rgba(3, 7, 18, 0.6);
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.6);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, #050b18 0%, var(--bg-dark) 100%);
}

.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Floating Decor Elements */
.cyber-decor {
    position: fixed;
    border: 1px solid var(--primary-glow);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}
.shape-1 { width: 50px; height: 50px; border-radius: 50%; top: 10%; left: 5%; animation: float 6s ease-in-out infinite; }
.shape-2 { width: 30px; height: 30px; border: none; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); top: 20%; right: 10%; animation: float 8s ease-in-out infinite reverse; }
.shape-3 { width: 60px; height: 60px; transform: rotate(45deg); bottom: 15%; left: 10%; animation: float 7s ease-in-out infinite 1s; }
.shape-4 { width: 40px; height: 40px; border-radius: 50%; bottom: 30%; right: 5%; border-style: dashed; animation: spin 10s linear infinite; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uni-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.tech-badge {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.status-indicator {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px #00ff66; }
    50% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 4px #00ff66; }
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding-top: 1rem;
    perspective: 1000px;
}

.portrait-container {
    position: relative;
    margin-bottom: 2.5rem;
    width: 240px;
    height: 300px;
    transform-style: preserve-3d;
}

.cyber-frame {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    backdrop-filter: blur(10px);
    transform: translateZ(30px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    overflow: hidden;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(110%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.5), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}
@keyframes scan { 0% { top: -20%; } 100% { top: 120%; } }

.frame-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.portrait-container:hover .frame-corner {
    width: 35px;
    height: 35px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.hero-text {
    margin-bottom: 2rem;
}

.greeting {
    font-family: var(--font-code);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.code-symbol {
    color: var(--secondary);
    font-weight: bold;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 86px, 0); }
  5% { clip: rect(32px, 9999px, 6px, 0); }
  10% { clip: rect(12px, 9999px, 90px, 0); }
  15% { clip: rect(45px, 9999px, 20px, 0); }
  20% { clip: rect(72px, 9999px, 53px, 0); }
  25% { clip: rect(18px, 9999px, 34px, 0); }
  30% { clip: rect(89px, 9999px, 7px, 0); }
  35% { clip: rect(56px, 9999px, 45px, 0); }
  40% { clip: rect(13px, 9999px, 67px, 0); }
  45% { clip: rect(34px, 9999px, 89px, 0); }
  50% { clip: rect(67px, 9999px, 12px, 0); }
  55% { clip: rect(90px, 9999px, 56px, 0); }
  60% { clip: rect(23px, 9999px, 78px, 0); }
  65% { clip: rect(78px, 9999px, 23px, 0); }
  70% { clip: rect(45px, 9999px, 90px, 0); }
  75% { clip: rect(12px, 9999px, 34px, 0); }
  80% { clip: rect(89px, 9999px, 67px, 0); }
  85% { clip: rect(56px, 9999px, 12px, 0); }
  90% { clip: rect(34px, 9999px, 45px, 0); }
  95% { clip: rect(67px, 9999px, 89px, 0); }
  100% { clip: rect(90px, 9999px, 23px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(43px, 9999px, 54px, 0); }
  10% { clip: rect(89px, 9999px, 23px, 0); }
  15% { clip: rect(12px, 9999px, 78px, 0); }
  20% { clip: rect(56px, 9999px, 45px, 0); }
  25% { clip: rect(23px, 9999px, 89px, 0); }
  30% { clip: rect(78px, 9999px, 12px, 0); }
  35% { clip: rect(34px, 9999px, 67px, 0); }
  40% { clip: rect(90px, 9999px, 34px, 0); }
  45% { clip: rect(45px, 9999px, 90px, 0); }
  50% { clip: rect(12px, 9999px, 56px, 0); }
  55% { clip: rect(67px, 9999px, 23px, 0); }
  60% { clip: rect(89px, 9999px, 78px, 0); }
  65% { clip: rect(23px, 9999px, 45px, 0); }
  70% { clip: rect(56px, 9999px, 12px, 0); }
  75% { clip: rect(78px, 9999px, 89px, 0); }
  80% { clip: rect(34px, 9999px, 56px, 0); }
  85% { clip: rect(90px, 9999px, 34px, 0); }
  90% { clip: rect(45px, 9999px, 67px, 0); }
  95% { clip: rect(12px, 9999px, 90px, 0); }
  100% { clip: rect(67px, 9999px, 23px, 0); }
}

.name {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: block;
    width: 100%;
}

.title {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 1rem;
    min-height: 32px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 0.4rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: var(--primary);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Scroll Indicator */
.scroll-indicator {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    font-family: var(--font-code);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Glass Panels with 3D Tilt */
.tilt-effect {
    perspective: 1000px;
}

.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.card-inner {
    padding: 2.5rem;
    transform: translateZ(30px);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

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

/* Countdown Section */
.countdown-section {
    margin-bottom: 2rem;
    text-align: center;
}
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 1.5rem;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-glow);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform-style: preserve-3d;
}
.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(20px);
}
.cd-value {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}
.cd-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.cd-separator {
    font-family: var(--font-code);
    font-size: 2rem;
    color: var(--primary);
    animation: blink 1s infinite;
}

/* Message Section */
.message-content p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.7;
    font-weight: 400;
}

.signature {
    margin-top: 2rem;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary) !important;
}

/* Details Section */
.details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    margin-bottom: 0;
}

.detail-card .card-inner {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    color: var(--secondary);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(112, 0, 255, 0.5));
}

.detail-card h3 {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */

/* ── Tablets & large phones (≤ 600px) ── */
@media (max-width: 600px) {
    .app-container { padding: 14px; }
}

/* ── Phones (≤ 480px) ── */
@media (max-width: 480px) {

    /* Portal intro */
    .portal-rings  { transform: scale(0.73); }
    .portal-stage  { gap: 1rem; width: 92vw; }
    .portal-terminal { font-size: 0.62rem; max-height: 115px; }
    .portal-hint   { font-size: 0.68rem; letter-spacing: 1.8px; gap: 10px; }
    .portal-hint-bar { width: 16px; }

    /* Container */
    .app-container { padding: 12px; }

    /* Header */
    .header {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 1.2rem;
        padding: 0.6rem 0;
    }
    .logo-container { gap: 7px; }
    .uni-logo       { width: 34px; height: 34px; }
    .tech-badge     { font-size: 0.65rem; padding: 3px 6px; }
    .status-indicator { font-size: 0.62rem; letter-spacing: 0.5px; }

    /* Hero */
    .hero-section      { min-height: 88vh; }
    .portrait-container { width: 175px; height: 218px; margin-bottom: 1.6rem; }
    .name              { font-size: 1.85rem; letter-spacing: -0.5px; margin-bottom: 0.8rem; }
    .greeting          { font-size: 0.76rem; letter-spacing: 1.5px; }
    .title             { font-size: 0.86rem; margin-top: 0.3rem; min-height: 28px; }
    .hero-text         { margin-bottom: 1.2rem; }
    .scroll-indicator  { font-size: 0.62rem; letter-spacing: 1.5px; }
    .mouse             { width: 20px; height: 30px; }

    /* Disable 3D preserve-3d on mobile (performance + rendering) */
    .glass-panel, .portrait-container { transform-style: flat; }
    .cyber-frame, .card-inner, .countdown-box { transform: none !important; }

    /* Countdown */
    .countdown-section       { margin-bottom: 1.5rem; }
    .countdown-section .section-title { font-size: 1.05rem; }
    .countdown-container     { gap: 6px; padding: 0.9rem 0.7rem; }
    .cd-value                { font-size: 1.45rem; }
    .cd-label                { font-size: 0.58rem; letter-spacing: 0.5px; }
    .cd-separator            { font-size: 1.45rem; }

    /* Glass panels */
    .glass-panel    { margin-bottom: 1.4rem; }
    .card-inner     { padding: 1.5rem 1.1rem; }
    .section-title  { font-size: 1.2rem; }
    .section-icon   { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem; }

    /* Message */
    .message-content p { font-size: 0.92rem; line-height: 1.65; }
    .signature         { font-size: 1rem; }

    /* Details section → single column */
    .details-section       { grid-template-columns: 1fr; gap: 1rem; }
    .detail-card .card-inner { padding: 1.4rem 1.2rem; }
    .detail-value          { font-size: 1.1rem; }
    .detail-sub            { font-size: 0.8rem; }

    /* Agenda timeline */
    .tl-content h4 { font-size: 0.9rem; }
    .tl-content p  { font-size: 0.8rem; }

    /* Map section */
    .map-tabs   { gap: 6px; margin-bottom: 1.2rem; }
    .map-tab    { font-size: 0.6rem; padding: 0.5rem 0.4rem; gap: 4px; letter-spacing: 0.8px; }
    .pin-label  { font-size: 0.52rem; padding: 2px 6px; }
    .campus-map-legend { gap: 0.8rem; margin-top: 0.8rem; }
    .legend-item { font-size: 0.6rem; }

    /* Cyber button */
    .cyber-button { font-size: 0.72rem; padding: 0.85rem; letter-spacing: 1.5px; }

    /* Floating decor — reduce on mobile */
    .cyber-decor { opacity: 0.12; }
    .shape-1 { width: 32px; height: 32px; left: 1%; }
    .shape-2 { width: 20px; height: 20px; right: 2%; }
    .shape-3 { width: 36px; height: 36px; left: 1%; }
    .shape-4 { width: 24px; height: 24px; right: 2%; }

    /* Aurora — shrink blobs */
    .aurora-blob-1 { width: 240px; height: 240px; }
    .aurora-blob-2 { width: 180px; height: 180px; }
    .aurora-blob-3 { width: 200px; height: 200px; }

    /* Footer */
    .footer  { padding: 1.2rem 0; font-size: 0.72rem; }
    .credits { font-size: 0.62rem; }

    /* Disable glitch animation on mobile (performance) */
    .glitch::before, .glitch::after { display: none; }

    /* Reduce scan line opacity */
    .scanlines { opacity: 0.6; }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
    .portal-rings  { transform: scale(0.58); }
    .portal-terminal { font-size: 0.58rem; max-height: 100px; }

    .name              { font-size: 1.55rem; }
    .portrait-container { width: 150px; height: 190px; }
    .card-inner        { padding: 1.2rem 1rem; }
    .cd-value          { font-size: 1.2rem; }
    .countdown-container { gap: 4px; padding: 0.7rem 0.5rem; }
    .cd-separator      { font-size: 1.2rem; }
    .section-title     { font-size: 1.05rem; }
}

/* Agenda Timeline Section */
.timeline {
    position: relative;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.5;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.tl-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}
.tl-content h4 {
    font-family: var(--font-code);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}
.tl-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Map Section */
.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 1px solid var(--primary-glow);
    border-radius: 12px;
}

.cyber-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-code);
    font-weight: bold;
    border: 1px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.cyber-button:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.cyber-button:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.credits {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Light Theme / Protocol Shift (White + Pastel Blue) */
body.light-theme {
    --bg-dark: #f0f4f8;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --primary: #5dadec; /* Pastel Blue */
    --primary-glow: rgba(93, 173, 236, 0.4);
    --secondary: #b39ddb; /* Pastel Purple */
    --secondary-glow: rgba(179, 157, 219, 0.4);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(93, 173, 236, 0.3);
    --glass-shadow: 0 10px 40px rgba(93, 173, 236, 0.15);
}

body.light-theme .section-title { color: #1e293b; }
body.light-theme .detail-value { color: var(--primary); }
body.light-theme .tl-content h4 { color: var(--primary); }
body.light-theme .cd-value { color: var(--primary); text-shadow: none; font-weight: 800;}
body.light-theme .name { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; }
body.light-theme .cyber-frame { background: rgba(255, 255, 255, 0.9); border-color: var(--primary); }
body.light-theme .scan-line { background: linear-gradient(to bottom, transparent, rgba(93,173,236,0.3), transparent); }
body.light-theme .cyber-overlay { opacity: 0.15; filter: invert(1); }

.interactive-title {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.interactive-title:hover {
    transform: scale(1.05) translateY(-5px);
    text-shadow: 0 10px 20px var(--primary-glow);
}

.theme-transition,
.theme-transition * {
    transition: background-color 1s ease, color 1s ease, border-color 1s ease, box-shadow 1s ease, background 1s ease !important;
}

/* Terminal Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050a14;
    color: #00ff66;
    font-family: var(--font-code);
    z-index: 999999;
    padding: 2rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}
.boot-line {
    margin-bottom: 8px;
    opacity: 0;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
    line-height: 1.4;
}
.blinking-cursor {
    width: 10px;
    height: 18px;
    background-color: #00ff66;
    animation: blink 1s step-end infinite;
    margin-top: 5px;
    display: none;
}

/* Cyber Popup Modal */
.cyber-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-modal.active {
    opacity: 1;
    visibility: visible;
}

.cyber-modal .modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
    text-align: center;
    /* GSAP handles transform & transition to avoid conflict */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

body.light-theme .close-btn {
    background: rgba(93, 173, 236, 0.1);
}

.close-btn:hover {
    background: var(--primary);
    color: #000;
    transform: rotate(90deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* =============================================
   ENHANCED ANIMATIONS — NEXT LEVEL EFFECTS
   ============================================= */

/* Touch fallback */
@media (hover: none) {
    body { cursor: auto !important; }
    .c-cursor-dot, .c-cursor-ring { display: none !important; }
}

/* Custom Cursor */
body { cursor: none; }

.c-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary-glow);
    will-change: left, top;
}

.c-cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: left, top;
}

.c-cursor-ring.hover {
    width: 52px;
    height: 52px;
    opacity: 1;
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
    background-size: 200% 100%;
    z-index: 99998;
    box-shadow: 0 0 8px var(--primary), 0 0 20px var(--primary-glow);
    animation: progress-shimmer 2s linear infinite;
    pointer-events: none;
    transition: width 0.1s linear;
}

@keyframes progress-shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.06;
    animation: aurora-drift linear infinite;
}

.aurora-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -15%;
    left: 15%;
    animation-duration: 22s;
}

.aurora-blob-2 {
    width: 380px;
    height: 380px;
    background: var(--secondary);
    top: 40%;
    right: -8%;
    animation-duration: 28s;
    animation-delay: -10s;
}

.aurora-blob-3 {
    width: 420px;
    height: 420px;
    background: var(--primary);
    bottom: 5%;
    left: -8%;
    animation-duration: 19s;
    animation-delay: -6s;
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(40px, -50px) scale(1.1); }
    50%  { transform: translate(-25px, 35px) scale(0.92); }
    75%  { transform: translate(50px, 25px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 0;
    animation: scanlines-drift 10s linear infinite;
}

@keyframes scanlines-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 0 120px; }
}

/* Click Ripple */
.click-ripple {
    position: fixed;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    animation: ripple-expand 0.65s ease-out forwards;
}

@keyframes ripple-expand {
    from { width: 6px; height: 6px; opacity: 0.9; box-shadow: 0 0 6px var(--primary); }
    to   { width: 90px; height: 90px; opacity: 0; box-shadow: 0 0 24px var(--primary-glow); }
}

/* Chromatic Aberration on Portrait Hover */
.portrait-container:hover .portrait-img {
    animation: chroma-glitch 0.6s steps(6) infinite;
}

@keyframes chroma-glitch {
    0%, 85%  { filter: grayscale(5%) contrast(115%); transform: translate(0, 0); }
    86%      { filter: grayscale(0%) contrast(130%); transform: translate(-3px, 0); }
    88%      { filter: saturate(2.5) contrast(120%); transform: translate(3px, 0); }
    90%      { filter: hue-rotate(80deg) contrast(110%); transform: translate(0, 1px); }
    92%      { filter: grayscale(0%) contrast(125%); transform: translate(2px, -1px); }
    94%      { filter: grayscale(10%) contrast(110%); transform: translate(0, 0); }
}

/* Digit Flip Animation for Countdown */
@keyframes digit-flip {
    0%   { transform: rotateX(0deg); opacity: 1; }
    45%  { transform: rotateX(-90deg); opacity: 0; }
    55%  { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.cd-value.flipping {
    animation: digit-flip 0.38s ease-in-out;
    display: inline-block;
}

/* Text Scramble dud characters */
.dud {
    color: var(--primary);
    opacity: 0.45;
}

/* Enhanced Glitch on Name */
.name.glitch::before {
    text-shadow: -4px 0 #ff0066;
    color: #ff0066;
    opacity: 0.75;
}

.name.glitch::after {
    text-shadow: 4px 0 #00f0ff;
    color: #00f0ff;
    opacity: 0.75;
}

/* Neon Pulse on Glass Card Hover */
@keyframes card-neon-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 240, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 240, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 50px rgba(0, 240, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 240, 255, 0.75);
    }
}

.glass-panel:hover {
    animation: card-neon-pulse 2.2s ease-in-out infinite;
}

/* Frame Corners Glow Animation */
.portrait-container:hover .frame-corner {
    animation: corner-flash 0.9s ease-in-out infinite alternate;
}

@keyframes corner-flash {
    from { box-shadow: 0 0 6px var(--primary-glow); }
    to   { box-shadow: 0 0 18px var(--primary), 0 0 36px var(--primary-glow); }
}

/* Timeline dot pulse */
.tl-dot {
    animation: tl-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes tl-dot-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--primary); transform: scale(1); }
    50%      { box-shadow: 0 0 16px var(--primary), 0 0 30px var(--primary-glow); transform: scale(1.4); }
}

/* Timeline line draw on scroll */
.timeline::before {
    height: 0 !important;
    transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.timeline.in-view::before {
    height: 100% !important;
}

/* Countdown separator heartbeat */
.cd-separator {
    animation: cd-heartbeat 1.1s ease-in-out infinite !important;
}

@keyframes cd-heartbeat {
    0%, 100% { opacity: 1; transform: scale(1); }
    40%       { opacity: 0.1; }
    55%       { opacity: 1; transform: scale(1.25); }
}

/* Cyber button enhanced hover */
.cyber-button:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 28px var(--primary-glow), inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
    letter-spacing: 3px;
}

/* Section icon hover spin */
.section-icon {
    transition: all 0.3s ease;
}

.section-icon:hover {
    animation: icon-jolt 0.5s ease-in-out;
    border-color: var(--primary);
    box-shadow: 0 0 22px var(--primary-glow);
}

@keyframes icon-jolt {
    0%   { transform: rotate(0deg) scale(1); }
    30%  { transform: rotate(-12deg) scale(1.12); }
    60%  { transform: rotate(8deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Reduced-motion safety */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   PORTAL INTRO — BREACH SEQUENCE
   ============================================= */

#portal-intro {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%,
        #0c0020 0%,
        #04000e 45%,
        #000000 100%);
}

/* ── Atmosphere glow blobs ── */
.portal-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pgb-drift ease-in-out infinite;
}
.pgb-1 {
    width: 600px; height: 600px;
    background: rgba(0, 240, 255, 0.04);
    animation-duration: 5s;
}
.pgb-2 {
    width: 350px; height: 350px;
    background: rgba(112, 0, 255, 0.07);
    animation-duration: 3.5s;
    animation-direction: reverse;
}
.pgb-3 {
    width: 200px; height: 200px;
    background: rgba(0, 240, 255, 0.06);
    animation-duration: 2.5s;
    animation-delay: -1s;
}
@keyframes pgb-drift {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.5); opacity: 1;   }
}

/* ── Rip halves (black panels that slide away) ── */
.portal-half {
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
    background: #000;
    will-change: transform;
}
.ph-top    { top: 0;    height: 50.5%; }
.ph-bottom { bottom: 0; height: 50.5%; }

/* ── Center stage ── */
.portal-stage {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: min(340px, 90vw);
}

/* ── Portal rings ── */
.portal-rings {
    position: relative;
    width: 280px; height: 280px;
    flex-shrink: 0;
}

.pr {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    will-change: transform;
}

/* Utility to center each ring */
.pr-1 { width: 68px;  height: 68px;  margin: -34px  0 0 -34px; }
.pr-2 { width: 120px; height: 120px; margin: -60px  0 0 -60px; }
.pr-3 { width: 180px; height: 180px; margin: -90px  0 0 -90px; }
.pr-4 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
.pr-5 { width: 310px; height: 310px; margin: -155px 0 0 -155px; }

.pr-1 {
    border: 2px solid var(--primary);
    box-shadow: 0 0 14px var(--primary), inset 0 0 14px rgba(0,240,255,0.12);
    animation: pr-spin 2.8s linear infinite;
}
.pr-2 {
    border: 1px solid rgba(112, 0, 255, 0.65);
    box-shadow: 0 0 16px rgba(112,0,255,0.25);
    animation: pr-spin 5.5s linear infinite reverse;
}
.pr-3 {
    border: 1px dashed rgba(0, 240, 255, 0.28);
    animation: pr-spin 10s linear infinite;
}
.pr-4 {
    border: 1px solid rgba(112, 0, 255, 0.1);
    animation: pr-spin 18s linear infinite reverse;
}
.pr-5 {
    border: 1px dashed rgba(0, 240, 255, 0.06);
    animation: pr-spin 28s linear infinite;
}

/* Tick marks on inner rings */
.pr-1::before, .pr-2::before, .pr-3::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 2px; height: 8px;
    transform: translateX(-50%);
}
.pr-1::before { background: var(--primary);   box-shadow: 0 0 6px var(--primary); }
.pr-2::before { background: var(--secondary); height: 5px; }
.pr-3::before { background: rgba(0,240,255,0.4); height: 4px; }

@keyframes pr-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Orbiting accent dots */
.portal-orbit {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.po-1 {
    width: 5px; height: 5px;
    background: var(--primary);
    top: 50%; left: 50%;
    margin: -2.5px 0 0 -2.5px;
    box-shadow: 0 0 8px var(--primary);
    transform-origin: 0 0;
    animation: po-orbit-1 2.8s linear infinite;
}
.po-2 {
    width: 4px; height: 4px;
    background: var(--secondary);
    top: 50%; left: 50%;
    margin: -2px 0 0 -2px;
    box-shadow: 0 0 8px var(--secondary);
    transform-origin: 0 0;
    animation: po-orbit-2 5.5s linear infinite reverse;
}
.po-3 {
    width: 3px; height: 3px;
    background: var(--primary);
    top: 50%; left: 50%;
    margin: -1.5px 0 0 -1.5px;
    transform-origin: 0 0;
    box-shadow: 0 0 5px var(--primary-glow);
    animation: po-orbit-3 10s linear infinite;
}
@keyframes po-orbit-1 { from { transform: rotate(0deg)   translateX(34px);  } to { transform: rotate(360deg)   translateX(34px);  } }
@keyframes po-orbit-2 { from { transform: rotate(0deg)   translateX(60px);  } to { transform: rotate(360deg)   translateX(60px);  } }
@keyframes po-orbit-3 { from { transform: rotate(45deg)  translateX(90px);  } to { transform: rotate(405deg)  translateX(90px);  } }

/* Core dot */
.portal-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow:
        0 0 12px var(--primary),
        0 0 30px var(--primary-glow),
        0 0 65px rgba(0,240,255,0.18);
    animation: portal-core-pulse 2s ease-in-out infinite;
    z-index: 3;
}
@keyframes portal-core-pulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 12px var(--primary), 0 0 30px var(--primary-glow); }
    50%       { transform: scale(1.8); box-shadow: 0 0 20px var(--primary), 0 0 55px var(--primary-glow), 0 0 100px rgba(0,240,255,0.15); }
}

/* ── Portal terminal ── */
.portal-terminal {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: #00ff66;
    text-align: left;
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
    line-height: 1.55;
}

.portal-boot-line {
    margin-bottom: 2px;
    opacity: 0;
    animation: pb-line-in 0.15s ease forwards;
}
@keyframes pb-line-in { to { opacity: 1; } }

.portal-term-cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: #00ff66;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 8px #00ff66;
}

/* ── Breach hint ── */
.portal-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 3.5px;
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
    opacity: 0;
    pointer-events: none;
    animation: hint-breathe 2.2s ease-in-out infinite;
}
.portal-hint-bar {
    height: 1px;
    width: 26px;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}
@keyframes hint-breathe {
    0%, 100% { opacity: 0.65; text-shadow: 0 0 8px var(--primary-glow); }
    50%       { opacity: 1;    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(0,240,255,0.3); }
}

/* =============================================
   TACTICAL MAP SECTION
   ============================================= */

/* Tab switcher */
.map-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.map-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.map-tab.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}

.map-tab:not(.active):hover {
    border-color: rgba(0, 240, 255, 0.5);
    color: var(--text-main);
}

/* Panel visibility */
.map-panel-hidden {
    display: none;
}

/* Tactical frame container */
.tactical-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

/* Corner brackets */
.tac-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary);
    z-index: 20;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tac-tl { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.tac-tr { top: -1px; right: -1px; border-left: none;  border-bottom: none; }
.tac-bl { bottom: -1px; left: -1px;  border-right: none; border-top: none; }
.tac-br { bottom: -1px; right: -1px; border-left: none;  border-top: none; }

.tactical-frame:hover .tac-corner {
    width: 32px; height: 32px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Grid overlay */
.tactical-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 4;
}

/* Scan beam over map */
.tactical-scan-beam {
    position: absolute;
    left: 0; right: 0;
    height: 70px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 240, 255, 0.06) 40%,
        rgba(0, 240, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.06) 60%,
        transparent);
    top: -70px;
    animation: tac-scan 5s linear infinite;
    pointer-events: none;
    z-index: 6;
}

@keyframes tac-scan {
    0%   { top: -70px; }
    100% { top: 100%; }
}

/* Campus map image */
.campus-map-img {
    width: 100%;
    display: block;
    filter: brightness(0.88) saturate(0.85) contrast(1.08);
    transition: filter 0.4s ease;
}

.tactical-frame:hover .campus-map-img {
    filter: brightness(0.92) saturate(0.95) contrast(1.12);
}

/* ── MAP PINS ── */
.map-pin {
    position: absolute;
    left: var(--px);
    top: var(--py);
    transform: translate(-50%, -100%);
    z-index: 15;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; /* animated in via JS */
}

.pin-head {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-glow);
    position: relative;
    z-index: 2;
    animation: pin-bounce 2.4s ease-in-out infinite;
}

.pin-ceremony .pin-head {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary-glow);
    width: 14px;
    height: 14px;
}

.pin-photo .pin-head {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.5);
}

.pin-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    animation: pin-ring-out 2.4s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

.pin-ceremony .pin-ring {
    border-color: rgba(112, 0, 255, 0.5);
}

.pin-photo .pin-ring {
    border-color: rgba(0, 255, 136, 0.5);
}

.pin-ring-2 {
    animation-delay: 1.2s;
}

.pin-needle {
    width: 2px;
    height: 12px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: -1px;
}

.pin-ceremony .pin-needle {
    background: linear-gradient(to bottom, var(--secondary), transparent);
}

.pin-photo .pin-needle {
    background: linear-gradient(to bottom, #00ff88, transparent);
}

.pin-label {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(3, 7, 18, 0.92);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.62rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.pin-ceremony .pin-label {
    border-color: var(--secondary);
    color: #c4a0ff;
}

.pin-photo .pin-label {
    border-color: #00ff88;
    color: #00ff88;
}

.map-pin:hover .pin-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes pin-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-4px) scale(1.15); }
}

@keyframes pin-ring-out {
    0%   { width: 14px; height: 14px; opacity: 0.8; }
    100% { width: 40px; height: 40px; opacity: 0; }
}

/* Legend */
.campus-map-legend {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}

.ld-entry    { background: var(--primary);   box-shadow: 0 0 6px var(--primary-glow); }
.ld-ceremony { background: var(--secondary); box-shadow: 0 0 6px var(--secondary-glow); }
.ld-photo    { background: #00ff88;          box-shadow: 0 0 6px rgba(0,255,136,0.5); }

/* ── Map container (street view iframe) ── */
.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid var(--primary-glow);
    border-radius: 8px;
}

/* =============================================
   EXTRA MICRO-ANIMATIONS
   ============================================= */

/* Greeting text shimmer */
@keyframes text-shimmer {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; letter-spacing: 3px; }
}

.greeting {
    animation: text-shimmer 4s ease-in-out infinite;
}

/* Status indicator glow pulse */
.status-indicator {
    animation: status-glow 3s ease-in-out infinite;
}

@keyframes status-glow {
    0%, 100% { text-shadow: none; }
    50%       { text-shadow: 0 0 12px rgba(0, 240, 255, 0.3); }
}

/* Countdown box hover pop */
.countdown-box {
    transition: transform 0.2s ease;
    cursor: default;
}

.countdown-box:hover {
    transform: translateZ(20px) scale(1.08);
}

/* Detail card icon float */
.card-icon svg {
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Footer glow on hover */
.footer:hover .credits {
    opacity: 1;
    color: var(--primary);
    transition: all 0.5s ease;
}


/* ── MOBILE EFFECTS ─────────────────────────────────────────────────────────── */
#touch-trail-canvas { display: none; }
@media (hover: none) {
    #touch-trail-canvas { display: block; }
}

#gyro-btn:hover {
    background: var(--primary) !important;
    color: #000 !important;
    box-shadow: 0 0 16px var(--primary);
}
