:root {
    --bg-color: #050505;
    --grid-color: #1A1A1A;
    --accent-color: #00F5FF;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --glow-strength: 0px 0px 20px rgba(0, 245, 255, 0.3);
}

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

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    color: var(--text-primary);
    font-family: var(--font-heading);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-cyan {
    color: var(--accent-color);
}

.font-mono {
    font-family: var(--font-mono);
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--grid-color);
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -1px;
    font-size: 1.2rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    /* Account for fixed header */
    padding-bottom: 50px;
    position: relative;
}

.profile-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.profile-container img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}

.status-badge-container {
    margin-bottom: 30px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
    }
}

.pulse-cyan {
    animation: pulse-cyan 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px var(--accent-color);
}

.hero h1 {
    font-size: 3.5rem;
    /* Slightly smaller for mobile safe */
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.name-title {
    font-size: 2rem;
    font-weight: 700;
}

.role-title {
    font-size: 1.2rem;
    font-family: var(--font-mono);
}

/* About Section (Split Layout) */
.about-section {
    padding: 80px 0;
    position: relative;
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
        align-items: center;
    }

    .about-bio {
        flex: 1;
        padding-right: 40px;
        border-right: 1px solid var(--grid-color);
    }

    .about-quote {
        flex: 1;
        padding-left: 40px;
    }
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    color: #ddd;
}

.highlight-quote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--accent-color);
    text-align: center;
    border: 1px dashed var(--card-border);
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Bento Box Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    padding: 100px 0;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--glow-strength);
}

/* Restaurant Agent Specifics */
.bento-item.featured {
    grid-column: span 12;
    height: 600px;
    display: flex;
    flex-direction: column;
    /* Mobile first fallback */
}


@media (min-width: 1024px) {
    .bento-item.featured {
        flex-direction: row;
    }
}

.featured-visual {
    flex: 2;
    background-size: cover;
    background-position: center;
    position: relative;
    border-right: 1px solid var(--card-border);
}

.featured-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Standard Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-color);
}

.card-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.card-info {
    padding: 20px;
}

.card-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
}

/* Research Section */
.research-section {
    padding: 100px 0;
    border-top: 1px solid var(--grid-color);
}

.milestone {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.milestone:hover {
    color: var(--text-primary);
}

/* Interactive Elements */
.btn-cyan {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cyan:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--grid-color);
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .bento-grid {
        display: block;
    }

    .bento-item {
        margin-bottom: 20px;
    }
}

/* =========================================
   Project Details Page Styles
   ========================================= */

.detail-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--grid-color);
    padding-top: 60px;
}

.back-link {
    position: absolute;
    top: 100px;
    left: 40px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.detail-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.detail-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.status-indicator {
    font-family: var(--font-mono);
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent-color);
}

.main-content {
    padding: 60px 20px;
}

.section-block {
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--grid-color);
    padding-bottom: 10px;
    display: inline-block;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

/* Workflow Diagram */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.step-card {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid var(--accent-color);
    padding: 15px 30px;
    border-radius: 4px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.step-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.step-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.flow-branches {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.branch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arrow-line {
    width: 2px;
    height: 20px;
    background: var(--accent-color);
}

.branch-target {
    border: 1px dashed var(--accent-color);
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 4px;
    color: #ccc;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.agent-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.agent-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
}

.agent-header h3 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.agent-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.agent-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.spec-row .label {
    color: var(--text-secondary);
}

.capabilities-list {
    margin-top: 15px;
}

.capabilities-list .label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.capabilities-list ul {
    list-style: none;
    padding-left: 10px;
    color: #ddd;
}

.capabilities-list li {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

/* Media/Placeholders */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.video-container {
    grid-row: span 2;
    /* Make video taller if needed */
}

.video-frame {
    position: relative;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-frame video {
    width: 100%;
    display: block;
}

/* Scanline animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 245, 255, 0.05) 51%, transparent 52%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.media-placeholder {
    background: #000;
    border: 1px dashed var(--grid-color);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.placeholder-content {
    text-align: center;
}

.placeholder-content span {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

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

/* Gallery Grid */
.gallery-grid {
    grid-column: span 2;
    /* Span full width if inside grid */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.screenshot-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    transform: scale(1.02);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-color);
    margin-bottom: 10px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-card:hover img {
    transform: scale(1.1);
}

.caption {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    padding: 5px;
}

/* Neural Map */
.neural-map-section {
    padding: 60px 0 20px;
    text-align: center;
}

.neural-map {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.skill-node {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--grid-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.skill-node:hover,
.skill-node.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    background: rgba(0, 245, 255, 0.05);
}

/* Agent Terminal */
.agent-terminal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--accent-color);
    padding: 10px 20px;
    z-index: 9999;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: inline-block;
    color: var(--accent-color);
    margin-right: 15px;
    font-weight: 700;
}

.terminal-window {
    display: inline-block;
    color: #888;
}

.log-line {
    margin-right: 15px;
}

.site-footer {
    padding: 50px 0 100px;
    /* Add padding for terminal */
    text-align: center;
    border-top: 1px solid var(--grid-color);
}