:root {
    --bg-dark: #0a0a0f;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-primary: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.3;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ea580c, transparent);
    top: -100px; left: -100px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7c2d12, transparent);
    bottom: -100px; right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
    white-space: nowrap;
}
.nav-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.logo .dot { color: var(--accent-primary); }

/* Centered Floating Capsule Links */
.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.25rem 0.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

/* Nav CTA Balance */
.nav-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.15rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-nav-contact:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 16px var(--accent-glow);
    transform: translateY(-1px);
}

.nav-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: inline-block;
    animation: status-pulse-subtle 2s infinite ease-in-out;
}

@keyframes status-pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 85px;
    padding-bottom: 50px;
    position: relative;
    gap: 1.5rem;
    width: 100%;
}

.hero-brand-bg {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: pulse-glow 4s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-large {
    width: 80vw;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 0 50px var(--accent-glow));
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.08; transform: translate(-50%, -50%) scale(1.03); }
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-content .cta-group {
    justify-content: center;
}

.hero-content .availability {
    justify-content: center;
}

.hero-carousel-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Contextual Header above 3D Deck */
.hero-deck-header {
    text-align: center;
    margin-bottom: 1.6rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 20;
}

.deck-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #00f0ff;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}

.deck-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: status-ping 1.8s infinite;
}

.deck-heading {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.45rem;
    letter-spacing: -0.5px;
}

.deck-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 660px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 0.9rem;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 620px;
}

/* Buttons */
.cta-group { display: flex; gap: 1rem; }

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
}

.btn-primary:hover {
    background: #fbbf24;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

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

/* Common Section */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

/* Services */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* Highlight Card */
.highlight-card {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}
.highlight-card:hover {
    border-color: rgba(139, 92, 246, 0.8) !important;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2) !important;
}

/* Projects */
.projects-section {
    padding: 100px 0;
}

/* ============================================================
   JARVIS 3D ROUND-ROBIN HOLOGRAPHIC CAROUSEL
   ============================================================ */

.projects-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-view-controls {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.25rem;
    backdrop-filter: blur(12px);
    margin: 0;
    align-items: center;
}

.view-mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 60;
    pointer-events: auto;
    user-select: none;
}

.view-mode-btn.active {
    background: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.view-mode-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Jarvis HUD Bar above carousel */
.carousel-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(10, 15, 26, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.4rem;
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    position: relative;
    z-index: 50;
    pointer-events: auto;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.1);
}

.carousel-hud-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

.hud-target-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.hud-reticle-bracket {
    color: #00f0ff;
    font-weight: 800;
}

.hud-scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: hud-ping 1.5s infinite;
}

@keyframes hud-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hud-label {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.hud-target-title {
    color: #f59e0b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.hud-interaction-hint {
    color: #64748b;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-hint-icon {
    color: #00f0ff;
}

.carousel-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-arrow-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 60;
    pointer-events: auto;
    user-select: none;
}

.carousel-arrow-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
    transform: translateY(-1px);
}

.carousel-arrow-btn:active {
    transform: translateY(1px);
}

.carousel-pips {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.carousel-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 60;
    pointer-events: auto;
    padding: 0;
}

.carousel-pip.active {
    width: 22px;
    border-radius: 999px;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

/* 3D Viewport */
.jarvis-carousel-container {
    position: relative;
    width: 100%;
}

.carousel-viewport {
    perspective: 1600px;
    perspective-origin: 50% 45%;
    transform-style: preserve-3d;
    height: 550px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    overflow: visible;
}

.carousel-viewport.is-dragging {
    cursor: grabbing;
}

/* Holographic Reactor Base (Floor) */
.carousel-holo-floor {
    position: absolute;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    transform: rotateX(80deg) translateZ(-260px);
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.holo-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.1), 0 0 40px rgba(0, 240, 255, 0.15);
}

.holo-ring-ticks {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 1px dashed rgba(245, 158, 11, 0.35);
    animation: spin-floor 40s linear infinite;
}

.holo-ring-inner {
    position: absolute;
    inset: 120px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.4);
    animation: spin-floor-reverse 25s linear infinite;
}

.holo-core-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 70%);
    filter: blur(20px);
}

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

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

/* 3D Cylinder with cards */
.carousel-cylinder {
    position: relative;
    width: 365px;
    height: 540px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-cylinder.is-animating {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-cylinder.is-dragging {
    transition: none !important;
}

/* Bulbous Glass Cards inside 3D Cylinder */
.jarvis-carousel-container:not(.mode-grid) .project-card {
    position: absolute;
    width: 365px;
    left: 0;
    top: 0;
    height: 540px;
    margin: 0;
    border-radius: 28px;
    background: linear-gradient(165deg, rgba(16, 22, 38, 0.92) 0%, rgba(8, 12, 22, 0.96) 100%);
    border: 1px solid rgba(0, 240, 255, 0.24);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 -3px 12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Bulbous Top Lens Arc Highlight */
.jarvis-carousel-container:not(.mode-grid) .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.95), transparent 75%);
    border-radius: 999px;
    z-index: 5;
    pointer-events: none;
}

/* Base 3D Carousel Card Orbit Positions */
.jarvis-carousel-container:not(.mode-grid) .project-card:nth-child(1) { transform: rotateY(0deg) translateZ(380px); }
.jarvis-carousel-container:not(.mode-grid) .project-card:nth-child(2) { transform: rotateY(72deg) translateZ(380px); }
.jarvis-carousel-container:not(.mode-grid) .project-card:nth-child(3) { transform: rotateY(144deg) translateZ(380px); }
.jarvis-carousel-container:not(.mode-grid) .project-card:nth-child(4) { transform: rotateY(216deg) translateZ(380px); }
.jarvis-carousel-container:not(.mode-grid) .project-card:nth-child(5) { transform: rotateY(288deg) translateZ(380px); }

/* Prevent global .glass-panel:hover from flattening 3D transforms */
.jarvis-carousel-container:not(.mode-grid) .project-card.glass-panel:hover {
    transform: none;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-image {
    height: 140px;
    flex-shrink: 0;
    border-top-left-radius: 27px;
    border-top-right-radius: 27px;
    overflow: hidden;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-info {
    padding: 1.15rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-info h3 {
    font-size: 1.22rem;
    margin-bottom: 0.35rem;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-info p {
    font-size: 0.84rem;
    line-height: 1.48;
    margin-bottom: 0.5rem;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-proof {
    font-size: 0.76rem;
    padding-top: 0.45rem;
    margin-top: auto;
}

.jarvis-carousel-container:not(.mode-grid) .project-card .project-links {
    margin-top: 0.9rem;
    padding-bottom: 0.4rem;
}

.card-telemetry-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 0.6rem;
}

.telem-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Active bulbous card in front */
.jarvis-carousel-container:not(.mode-grid) .project-card.is-active-card {
    opacity: 1 !important;
    filter: none !important;
    border-color: rgba(0, 240, 255, 0.65) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
    z-index: 10;
    cursor: default;
    pointer-events: auto;
}

.jarvis-carousel-container:not(.mode-grid) .project-card.is-active-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #00f0ff, #f59e0b, #00f0ff);
    box-shadow: 0 0 10px #00f0ff;
}

/* Inactive cards in background */
.jarvis-carousel-container:not(.mode-grid) .project-card.is-inactive-card {
    opacity: 0.38;
    filter: brightness(0.65) blur(1.5px);
    pointer-events: auto;
}

.jarvis-carousel-container:not(.mode-grid) .project-card.is-inactive-card:hover {
    opacity: 0.65;
    filter: brightness(0.85);
}

/* GRID MODE (When toggled to standard grid) */
.jarvis-carousel-container.mode-grid .carousel-hud-bar {
    border-color: var(--glass-border);
}
.jarvis-carousel-container.mode-grid .hud-interaction-hint,
.jarvis-carousel-container.mode-grid .carousel-nav-arrows,
.jarvis-carousel-container.mode-grid .carousel-holo-floor {
    display: none !important;
}

.jarvis-carousel-container.mode-grid .carousel-viewport {
    perspective: none;
    height: auto;
    overflow: visible;
    display: block;
    cursor: default;
}

.jarvis-carousel-container.mode-grid .carousel-cylinder {
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

.jarvis-carousel-container.mode-grid .project-card {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    cursor: default !important;
}

@media (max-width: 1000px) {
    .jarvis-carousel-container.mode-grid .carousel-cylinder {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .carousel-viewport {
        height: 490px;
        perspective: 1200px;
    }
    .carousel-cylinder {
        width: 270px;
        height: 420px;
    }
    .jarvis-carousel-container:not(.mode-grid) .project-card {
        width: 270px;
        height: 410px;
    }
    .carousel-holo-floor {
        width: 460px;
        height: 460px;
        transform: rotateX(80deg) translateZ(-180px);
    }
    .hud-interaction-hint {
        display: none;
    }
    .jarvis-carousel-container.mode-grid .carousel-cylinder {
        grid-template-columns: 1fr !important;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.placeholder-img, .project-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.bg-gradient-1 { background: linear-gradient(45deg, #1e3a8a, #3b82f6); }
.bg-gradient-2 { background: linear-gradient(45deg, #4c1d95, #8b5cf6); }
.bg-gradient-3 { background: linear-gradient(45deg, #064e3b, #10b981); }

.project-info { padding: 2rem; }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

.project-info h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.project-link:hover { color: var(--accent-primary); }

/* Contact */
.contact-section { padding: 100px 0 150px; }
.contact-panel {
    text-align: center;
    padding: 4rem 2rem;
}
.contact-panel h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-panel p { color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .title { font-size: 3rem; }
    .nav-links { display: none; }
}
/* Portfolio service and career content */
section[id] { scroll-margin-top: 110px; }
a:focus-visible { outline: 3px solid var(--accent-primary); outline-offset: 6px; border-radius: 3px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; padding: .8rem 1rem; background: var(--accent-primary); color: #111; }
.skip-link:focus { top: 1rem; }
.hero {
    min-height: 88vh;
    padding-top: 135px;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5rem;
}
.hero-content {
    max-width: 950px;
    width: 100%;
}

/* Hero Agent Card & Telemetry */
.hero-agent-card {
    background: rgba(12, 16, 26, 0.82);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 20px;
    padding: 1.8rem 2.2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-agent-card-wide {
    width: 100%;
    max-width: 1000px;
}

.hero-agent-wide-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-agent-col-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-agent-col-action .hero-agent-terminal {
    margin-bottom: 0;
}

.hero-agent-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
}

.hero-agent-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, #06b6d4, transparent);
}

.hero-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.hero-agent-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

/* Active Status Pill */
.agent-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
}

.status-dot-wrapper {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: block;
}

.status-ping {
    position: absolute;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: status-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-ping {
    0% { transform: scale(1); opacity: 0.9; }
    75%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Status: checking */
.agent-status-pill.status-checking {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: rgba(245, 158, 11, 0.7);
}
.agent-status-pill.status-checking .status-dot,
.agent-status-pill.status-checking .status-ping {
    background: rgba(245, 158, 11, 0.6);
}
.agent-status-pill.status-checking .status-ping {
    animation: none;
}

/* Status: offline */
.agent-status-pill.status-offline {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.agent-status-pill.status-offline .status-dot {
    background: #ef4444;
}
.agent-status-pill.status-offline .status-ping {
    animation: none;
    background: transparent;
}

.hero-agent-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.hero-agent-title-row h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-agent-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.hero-agent-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.hero-agent-telemetry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.telemetry-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.telem-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.telem-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #f1f5f9;
    font-weight: 700;
}

.hero-agent-terminal {
    background: #080a10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.terminal-bar {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.term-circle.red { background: #ef4444; }
.term-circle.yellow { background: #f59e0b; }
.term-circle.green { background: #10b981; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 0.4rem;
}

.terminal-code {
    padding: 0.75rem 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    line-height: 1.55;
    margin: 0;
    overflow-x: auto;
}

.term-p { color: #10b981; font-weight: 700; }
.term-cmd { color: #f8fafc; font-weight: 600; }
.term-ok { color: #34d399; }
.term-info { color: #38bdf8; }
.term-active { color: #a78bfa; font-weight: 700; }

.hero-agent-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-emerald {
    background: #10b981;
    color: #022013;
    font-weight: 700;
}

.btn-emerald:hover {
    background: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    color: #01140c;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.title {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 0.9rem;
}
.title-line-1 {
    display: block;
}
.title-offset {
    display: block;
    padding-left: clamp(1.4rem, 4.5vw, 3.8rem);
}
.subtitle {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    max-width: 650px;
}
.availability { display: flex; align-items: center; gap: .65rem; margin-top: 1.8rem; color: #b7b8c2; font-size: .85rem; }
.availability span { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--accent-primary); }
.eyebrow { color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em; margin-bottom: 1rem; }
.section-title { margin-bottom: 1.5rem; line-height: 1.2; }
.section-intro { max-width: 760px; color: var(--text-muted); margin-bottom: 2.5rem; }
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card .service-icon { font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .1em; color: var(--accent-primary); }
.offer-details { margin: 1.4rem 0; padding-left: 1.2rem; color: #d1d2db; font-size: .95rem; }
.offer-details li { margin-bottom: .65rem; padding-left: .25rem; }
.service-card .offer-scope { border-top: 1px solid var(--glass-border); padding-top: 1.2rem; margin: 1.3rem 0; font-size: .9rem; }
.capability-note { margin-top: 2rem; border-left: 2px solid var(--accent-primary); padding: .5rem 1.5rem; }
.capability-note h3 { font-size: 1rem; margin-bottom: .4rem; }
.capability-note p { color: var(--text-muted); max-width: 800px; font-size: .95rem; }
.about-section { padding: 90px 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.about-signature { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: .72rem; }
.about-copy p { color: #b6b8c5; margin-bottom: 1.2rem; }
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.project-info { padding: 1.5rem; }
.project-info h3 { font-size: 1.25rem; }
.project-info .project-proof { font-size: .84rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); color: #c0c1ce; }
.project-proof strong { color: #e5e5ed; }
.project-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.project-link { gap: .4rem; }
.process-section { padding: 20px 0 90px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 2rem; }
.process-grid li { padding-top: 1rem; border-top: 1px solid #45404a; }
.process-grid span { font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); font-size: .75rem; }
.process-grid h3 { font-size: 1.1rem; margin: .8rem 0; }
.process-grid p { color: var(--text-muted); font-size: .9rem; }
.contact-panel h2 { line-height: 1.25; }
.contact-panel p { max-width: 650px; }
.fade-in { opacity: 1; transform: none; }
.js-motion .fade-in { opacity: 0; transform: translateY(20px); }
.js-motion .fade-in.visible { opacity: 1; transform: none; }
@media (max-width: 1000px) {
    .hero {
        padding-top: 120px;
        gap: 2.5rem;
    }
    .hero-agent-wide-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .title-offset {
        padding-left: 1.25rem;
    }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-section { gap: 2.5rem; }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .nav-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem;
        padding: 0.75rem 1.25rem;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 0.2rem;
        padding: 0.2rem 0.4rem;
        background: rgba(255, 255, 255, 0.03);
    }
    .nav-links a { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
    .nav-cta { order: 2; }
    .btn-nav-contact { font-size: 0.72rem; padding: 0.35rem 0.85rem; }
    main { padding: 0 1.25rem; }
    .hero { padding-top: 150px; min-height: 0; padding-bottom: 65px; }
    .subtitle { font-size: 1.05rem; }
    .title { letter-spacing: -1.4px; }
    .badge { font-size: .65rem; }
    .cta-group { flex-wrap: wrap; }
    .availability { align-items: flex-start; font-size: .78rem; }
    .availability span { margin-top: .5rem; }
    .services-grid, .projects-grid, .about-section { grid-template-columns: 1fr; }
    .services-section, .projects-section, .about-section { padding: 65px 0; }
    .section-title { font-size: 2rem; }
    .service-card { padding: 1.7rem; }
    .about-section { gap: 1.8rem; }
    .contact-section { padding: 40px 0 80px; }
    .contact-panel { padding: 2.5rem 1.4rem; }
    .contact-panel h2 { font-size: 2rem; }
}
@media (max-width: 420px) { .process-grid { grid-template-columns: 1fr; } .logo { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .js-motion .fade-in { opacity: 1; transform: none; }
}
