/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES (Based on reference style guidelines)
   ========================================================================== */
:root {
    --color-orange: hsl(23, 88%, 54%);
    --color-blue: hsl(217, 91%, 60%);
    --color-turtleneck: hsl(225, 7%, 19%);
    --color-bg-dark: hsl(222, 43%, 6%);
    --color-bg-card: hsla(225, 7%, 19%, 0.45);
    
    --color-text-white: hsl(0, 0%, 100%);
    --color-text-muted: hsl(215, 16%, 60%);
    --color-text-dim: hsl(215, 16%, 45%);
    
    --glow-orange: 0 0 15px hsla(23, 88%, 54%, 0.4);
    --glow-blue: 0 0 15px hsla(217, 91%, 60%, 0.4);
    --glow-green: 0 0 15px hsla(142, 70%, 45%, 0.45);
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-hover: 1px solid rgba(255, 255, 255, 0.18);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & BASIC ELEMENTS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-orange);
}

/* ==========================================================================
   BACKGROUNDS & SYSTEM OVERLAYS
   ========================================================================== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(9, 13, 22, 0.45) 0%, rgba(9, 13, 22, 0.88) 80%, rgba(9, 13, 22, 0.98) 100%),
                linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
    z-index: 1;
}

.webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Let scroll and clicks pass through to content */
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 13, 22, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    background: rgba(9, 13, 22, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
    max-w: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo-sub {
    color: var(--color-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-orange);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-white);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-link {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.mobile-link:hover {
    color: var(--color-orange);
}

/* ==========================================================================
   UI PIECES & REUSABLES
   ========================================================================== */
.pulse-node {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.orange-glow {
    background-color: var(--color-orange);
    box-shadow: var(--glow-orange);
    animation: pulse 2s infinite;
}

.green-glow {
    background-color: hsl(142, 70%, 45%);
    box-shadow: var(--glow-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 18px currentColor; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    width: fit-content;
}

.orange-border {
    border: 1px solid rgba(240, 113, 34, 0.3);
    background: rgba(240, 113, 34, 0.08);
}

.btn-primary {
    background: var(--color-orange);
    color: var(--color-text-white);
    padding: 0.85rem 1.8rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--glow-orange);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px hsla(23, 88%, 54%, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-white);
    padding: 0.85rem 1.8rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: var(--border-glass);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Glassmorphism Card base */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: var(--border-glass);
    border-radius: 18px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SECTIONS LAYOUT & HEADERS
   ========================================================================== */
section {
    padding: 8rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center-align {
    text-align: center;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-orange);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6rem;
}

.hero-content {
    max-width: 720px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight-text {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-text-white);
    background: linear-gradient(135deg, var(--color-orange) 30%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
}

/* Scroll Mouse Icon */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--color-text-white);
    position: relative;
}

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

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* ==========================================================================
   ABOUT & 3D AGENT CARDS
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-text-column {
    padding: 3rem;
}

.about-text-column h3 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.role-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
}

.bio-desc {
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.skills-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    color: var(--color-text-muted);
}

/* 3D CSS layout for the 3 Agent Cards */
.agent-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    perspective: 1000px; /* Enable 3D perspective context */
}

.agent-card {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.agent-card.featured {
    border-color: rgba(240, 113, 34, 0.25);
    background: linear-gradient(135deg, rgba(240, 113, 34, 0.08) 0%, rgba(9, 13, 22, 0.5) 100%);
    box-shadow: 0 8px 32px rgba(240, 113, 34, 0.05);
}

.agent-avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    overflow: hidden;
}

.agent-avatar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.blue-border { border: 1.5px solid var(--color-blue); }
.orange-border-icon { border: 1.5px solid var(--color-orange); }
.grey-border { border: 1.5px solid var(--color-text-muted); }

.text-blue { color: var(--color-blue); text-shadow: var(--glow-blue); }
.text-orange { color: var(--color-orange); text-shadow: var(--glow-orange); }
.text-grey { color: var(--color-text-muted); }

.agent-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.agent-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.4rem;
}

.agent-desc {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    grid-column: 2;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.orange-bg { background: rgba(240, 113, 34, 0.1); color: var(--color-orange); border: 1px solid rgba(240, 113, 34, 0.2); }
.blue-bg { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.grey-bg { background: rgba(255, 255, 255, 0.05); color: var(--color-text-white); border: 1px solid rgba(255, 255, 255, 0.1); }
.orange-bg-2 { background: rgba(240, 113, 34, 0.06); color: var(--color-orange); border: 1px solid rgba(240, 113, 34, 0.15); }

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    font-size: 0.8rem;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    margin-top: auto;
}

.service-link:hover {
    color: var(--color-text-white);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   AGENT SQUAD SECTION (Premium Grid Showcase)
   ========================================================================== */
.squad-section {
    padding: 8rem 0;
    position: relative;
}

.squad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.squad-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: var(--border-glass);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.squad-card:hover {
    border-color: rgba(240, 113, 34, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 15px hsla(23, 88%, 54%, 0.05);
    transform: translateY(-5px);
}

.squad-img-container {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.squad-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.squad-card:hover .squad-img-container img {
    transform: scale(1.06);
}

.squad-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.squad-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text-white);
}

.squad-speciality {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.squad-desc {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image-box {
    height: 220px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    border-bottom: var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.grid-mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.tech-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
}

.orange-bg { background-color: var(--color-orange); color: var(--color-text-white); }
.blue-bg { background-color: var(--color-blue); color: var(--color-text-white); }

.project-details {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
}

.project-text {
    color: var(--color-text-muted);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.p-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    color: var(--color-text-muted);
}

/* ==========================================================================
   TERMINAL SECTION (Interactive shell mockup)
   ========================================================================== */
.terminal-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
    background: rgba(9, 13, 22, 0.8);
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-glass);
}

.terminal-buttons {
    display: flex;
    gap: 0.45rem;
}

.t-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.t-btn.red { background-color: #ef4444; }
.t-btn.yellow { background-color: #eab308; }
.t-btn.green { background-color: #22c55e; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.terminal-status {
    font-size: 0.65rem;
    color: hsl(142, 70%, 45%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.terminal-body {
    height: 340px;
    padding: 1.5rem;
    background: rgba(6, 9, 15, 1);
    overflow-y: auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.t-output {
    color: var(--color-text-muted);
    word-break: break-all;
    line-height: 1.5;
}

.t-input-echo {
    color: var(--color-text-white);
    font-weight: 500;
}

.t-system-response {
    color: var(--color-orange);
    padding-left: 1rem;
    border-left: 2px solid var(--color-orange);
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.terminal-input-bar {
    background: rgba(6, 9, 15, 0.95);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-top: var(--border-glass);
}

.prompt {
    color: var(--color-blue);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-input {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-white);
    font-size: 0.8rem;
    width: 100%;
}

.terminal-shortcuts {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.t-shortcut {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-white);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin: 0.3rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.t-shortcut:hover {
    background: rgba(240, 113, 34, 0.1);
    color: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: 0 0 10px rgba(240, 113, 34, 0.2);
    transform: translateY(-1px);
}

.icon-orange {
    color: var(--color-orange);
    margin-right: 5px;
}

.icon-blue {
    color: var(--color-blue);
    margin-right: 5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.glass-footer {
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: var(--border-glass);
    padding: 5rem 2rem 2.5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    display: block;
    margin-bottom: 1.25rem;
}

.footer-meta {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    line-height: 1.6;
    border-left: 2px solid rgba(240, 113, 34, 0.3);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
    background: rgba(240, 113, 34, 0.06);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.8rem;
    color: var(--color-orange);
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 0.3rem;
}

.system-status-box {
    background: rgba(0, 0, 0, 0.2);
    border: var(--border-glass);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.7rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
}

.status-row span:first-child {
    color: var(--color-text-dim);
}

.status-val {
    font-weight: 500;
}
.status-val.text-green { color: #22c55e; }
.status-val.text-orange { color: var(--color-orange); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: var(--border-glass);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.7rem;
    color: var(--color-text-dim);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-dim);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
}

/* ==========================================================================
   SCROLL DRIVEN ANIMATIONS & TRANSITIONS (Baseline YYYY CSS)
   ========================================================================== */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Define timelines globally */
    html {
        timeline-scope: --sec-about, --sec-services, --sec-projects, --sec-terminal;
    }
    
    #about { view-timeline: --sec-about block; }
    #services { view-timeline: --sec-services block; }
    #projects { view-timeline: --sec-projects block; }
    #terminal { view-timeline: --sec-terminal block; }
    
    @keyframes scroll-fade-in {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.96);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .scroll-section .section-container {
        animation: scroll-fade-in linear both;
        animation-range: entry 10% cover 30%;
    }
    
    #about .section-container { animation-timeline: --sec-about; }
    #services .section-container { animation-timeline: --sec-services; }
    #projects .section-container { animation-timeline: --sec-projects; }
    #terminal .section-container { animation-timeline: --sec-terminal; }
}

/* JS-Fallback Scroll Animation class (applied by IntersectionObserver in main.js) */
.js-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet & Smaller Layouts */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 6rem 1.5rem;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .squad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-container > :first-child {
        grid-column: span 2;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .squad-section {
        padding: 4rem 0;
    }
    
    .squad-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    .nav-links, .status-badge {
        display: none; /* Hide on mobile, show toggle */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas a {
        text-align: center;
    }
    
    .about-text-column {
        padding: 1.5rem;
    }
    
    .agent-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .agent-avatar-icon {
        margin: 0 auto;
    }
    
    .agent-desc {
        grid-column: 1;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .project-details {
        padding: 1.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-container > :first-child {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   MANDATORY ACCESSIBILITY / SYSTEM ACCORDS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-section .section-container,
    .js-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .wheel {
        animation: none !important;
    }
    
    .pulse-node {
        animation: none !important;
    }
}

/* ==========================================================================
   HEADLESS CRISP LIVE CHAT OVERRIDES
   ========================================================================== */
.crisp-client, #crisp-chatbox, [class^="crisp-"], [id^="crisp-"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
