:root {
    --bg-dark: #0a0b10;
    --accent-green: #00ff41;
    --accent-blue: #00d2ff;
    --accent-purple: #9d50bb;
    --text-main: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(0, 255, 65, 0.2);
    --terminal-header: #1a1b26;
    --neon-shadow: 0 0 10px rgba(0, 255, 65, 0.3), 0 0 20px rgba(0, 255, 65, 0.2);
}

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

.hidden {
    display: none !important;
}

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

/* CRT Scanline & Vignette Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Vignette for darker edges/shades */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 9998;
    pointer-events: none;
}

.code-font {
    font-family: 'Fira Code', monospace;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Matrix Canvas Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Sidebar Navigation */
nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

nav a {
    color: #666;
    text-decoration: none;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    transition: 0.3s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
}

nav a::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--accent-green);
    transition: 0.3s;
}

nav a.active::after {
    height: 100%;
}

/* Main Container */
main {
    margin-left: 80px;
    padding: 2rem;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

/* Terminal Window Component */
.terminal-window {
    background: rgba(26, 27, 38, 0.95);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 65, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.terminal-header {
    background: #24283b;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #7982a9;
    font-family: 'Fira Code';
}

.terminal-body {
    padding: 2rem;
    min-height: 150px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Essential for 3D Globe */
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.glitch-text {
    color: var(--accent-green);
    text-shadow: 2px 2px var(--accent-purple);
    position: relative;
    display: inline-block;
}

/* Glitch Hover Effect */
.glitch-text:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--accent-blue);
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Profile Photo */
.profile-photo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
}

.photo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--accent-green) 60deg,
            var(--accent-blue) 120deg,
            var(--accent-purple) 180deg,
            var(--accent-blue) 240deg,
            var(--accent-green) 300deg,
            transparent 360deg);
    animation: rotateGlow 4s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.pipeline-status {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-badge {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-glow);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1) inset;
    transition: 0.3s;
}

.status-badge:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2) inset;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

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

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    background: rgba(22, 27, 34, 0.9);
    box-shadow: var(--neon-shadow);
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Metrics */
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: 0.3s;
}

.metric-box:hover {
    border-color: var(--accent-green);
}

.metric-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-green);
    display: block;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.metric-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

/* Skills Matrix */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-group h3 {
    font-size: 0.9rem;
    color: var(--accent-purple);
    border-bottom: 1px solid var(--accent-purple);
    padding-bottom: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: inline-block;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    font-size: 0.8rem;
    background: #161b22;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #30363d;
    transition: 0.3s;
    cursor: default;
}

.skill-item:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: scale(1.05);
}

/* Contacts */
.contact-strip {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    text-decoration: none;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.contact-link:hover {
    color: var(--bg-dark);
    background: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green);
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 10px;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-family: 'Fira Code';
    margin-bottom: 0.5rem;
}

/* Scroll Reveal Animation Classes */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
    main {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 6rem;
    }

    nav {
        width: 100%;
        height: 60px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        padding-top: 0;
        border-right: none;
        border-top: 1px solid var(--border-glow);
    }

    nav a {
        writing-mode: horizontal-tb;
        margin: 0;
    }

    nav a::after {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* IAM Visualizer Specifics */
.iam-canvas-wrap {
    position: relative;
    height: 150px;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.iam-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

/* 1. Matrix Background */
canvas#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
    /* Subtle */
    pointer-events: none;
}

/* 2. Decoding Text Effect */
.hacker-text {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    color: var(--text-main);
    cursor: default;
}

/* 3. Command Palette Modal */
#cmd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 1;
    transition: opacity 0.2s;
}

#cmd-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.cmd-box {
    width: 600px;
    max-width: 90%;
    background: #0d1117;
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.2s;
}

#cmd-overlay.hidden .cmd-box {
    transform: translateY(-20px);
}

.cmd-header {
    background: #161b22;
    padding: 10px 15px;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8b949e;
}

#cmd-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    color: #fff;
    outline: none;
}

#cmd-results {
    max-height: 300px;
    overflow-y: auto;
}

.cmd-item {
    padding: 12px 15px;
    cursor: pointer;
    border-left: 3px solid transparent;
    color: #c9d1d9;
    display: flex;
    justify-content: space-between;
}

.cmd-item:hover,
.cmd-item.selected {
    background: rgba(0, 255, 65, 0.1);
    border-left-color: var(--accent-green);
}

.cmd-key {
    font-size: 0.7rem;
    background: #30363d;
    padding: 2px 6px;
    border-radius: 3px;
    color: #aaa;
}

/* 4. Terminal Boot Overlay */
/* 5. Custom Cursor */

.split-open {
    transform: scaleY(0);
}

@keyframes scanLaser {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

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

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

/* 5. Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    #cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--accent-green);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 99999;
        mix-blend-mode: exclusion;
    }

    #cursor-trail {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(0, 255, 65, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 99998;
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    /* Interactive States */
    body.hover-active #cursor-trail {
        width: 60px;
        height: 60px;
        background: rgba(0, 255, 65, 0.1);
        border-color: var(--accent-green);
    }
}

/* 6. Uptime Widget (Nav) */
.uptime-widget {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    margin: 1rem 0;
    width: 60px;
    /* Fits in 80px nav */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-row {
    font-size: 0.5rem;
    color: #888;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 769px) {
    .uptime-widget:hover {
        width: 140px;
        align-items: flex-start;
        padding-left: 15px;
        transition: 0.3s;
        background: #0d1117;
        position: relative;
        z-index: 200;
    }

    .uptime-widget:hover .status-row {
        font-size: 0.7rem;
    }
}

/* 7. CI/CD Pipeline Visualizer */
.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d1117;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: 0.3s;
    min-width: 80px;
}

.pipeline-stage.active {
    opacity: 1;
    color: var(--text-main);
    transform: scale(1.1);
}

.pipeline-stage.success {
    color: var(--accent-green);
}

.stage-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: 0.3s;
}

.active .stage-icon {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    animation: spin 2s linear infinite;
}

.success .stage-icon {
    border-color: var(--accent-green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px var(--accent-green);
    animation: none;
}

.connector {
    flex-grow: 1;
    height: 2px;
    background: #333;
    margin: 0 10px;
    position: relative;
}

.connector::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-green);
    transition: width 0.5s;
}

.connector.filled::after {
    width: 100%;
}

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

/* 8. 3D CSS Wireframe Globe */
.globe-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    z-index: 0;
    /* Brought forward slightly */
    perspective: 1000px;
    opacity: 0.8;
    /* Increased visibility */
    pointer-events: none;
    /* Prevent blocking clicks on contact links */
}

@media (max-width: 768px) {

    /* 1. Reset Main Layout */
    main {
        margin-left: 0;
        padding: 20px;
    }

    /* 2. Navigation bar (Bottom Fixed) */
    nav {
        flex-direction: row;
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        left: 0;
        padding: 0 10px;
        justify-content: space-around;
        background: rgba(13, 17, 23, 0.95);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 9999;
    }

    nav a {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 5px;
        font-size: 0.8rem;
        letter-spacing: 0;
    }

    .uptime-widget {
        display: none;
    }

    /* Hide uptime on mobile to save space */

    /* 3. Typography Fixes */
    h1.hacker-text {
        font-size: 2.5rem;
        /* Much smaller */
        word-break: break-word;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Profile Photo Mobile */
    .profile-photo-container {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    /* 4. Globe */
    .globe-container {
        width: 150px;
        height: 150px;
        top: 10%;
        right: -30px;
        opacity: 0.3;
        display: block;
        z-index: -1;
    }

    /* 5. Grids & Cards */
    .grid-container {
        grid-template-columns: 1fr;
    }

    /* 6. Pipeline Visualizer */
    .pipeline-container {
        padding: 1rem;
        overflow-x: scroll;
    }

    .pipeline-stage {
        min-width: 60px;
        font-size: 0.7rem;
    }

    .stage-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* 7. Architecture Sandbox */
    .arch-container {
        flex-direction: column;
        height: auto;
    }

    .arch-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        gap: 10px;
    }

    .draggable-item {
        min-width: 80px;
    }

    .drop-zone {
        height: 250px;
        /* Taller for tapping */
    }

    /* 8. Footer padding for nav */
    footer {
        padding-bottom: 80px;
    }
}

.globe {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGlobe 20s linear infinite;
}

.globe-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 65, 0.4);
    /* Stronger border */
    /* Simple wireframe lat/long lines using gradient */
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(0, 255, 65, 0.2) 40px, rgba(0, 255, 65, 0.2) 41px),
        repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(0, 255, 65, 0.2) 40px, rgba(0, 255, 65, 0.2) 41px);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2) inset;
}

@keyframes rotateGlobe {
    from {
        transform: rotateY(0deg) rotateX(20deg);
    }

    to {
        transform: rotateY(360deg) rotateX(20deg);
    }
}

.globe-worldmap,
.globe-worldmap-front,
.globe-worldmap-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    opacity: 0.2;
}

.globe-outer-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: -20px -20px 50px rgba(0, 0, 0, 0.5) inset;
    z-index: 5;
    pointer-events: none;
}

.globe-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.05) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* 9. Architecture Sandbox */
.arch-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.arch-container {
    display: flex;
    gap: 20px;
    height: 300px;
}

.arch-sidebar {
    width: 120px;
    background: #161b22;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.draggable-item {
    background: #21262d;
    padding: 8px;
    border-radius: 4px;
    cursor: grab;
    border: 1px solid #30363d;
    font-size: 0.8rem;
    text-align: center;
}

.draggable-item:active {
    cursor: grabbing;
}

.drop-zone {
    flex-grow: 1;
    border: 2px dashed #30363d;
    border-radius: 6px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.drop-zone.drag-over {
    border-color: var(--accent-green);
    background: rgba(0, 255, 65, 0.05);
}

.zone-label {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.7rem;
    color: #666;
    font-family: 'Fira Code';
}

.deployed-item {
    position: absolute;
    background: #21262d;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 0.8rem;
    cursor: grab;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* 10. Deploy Offer Button */
.deploy-btn {
    position: relative;
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 15px 30px;
    font-size: 1rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.deploy-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.deploy-btn:active {
    transform: translateY(0);
}

.btn-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-green);
    z-index: 0;
    transition: width 3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* 11. Grafana Panel */
.grafana-box {
    background: #111217;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.grafana-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

/* 12. Kubernetes Grid */
.k8s-wrapper {
    background: #0d1117;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.k8s-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 15px;
    padding: 10px;
}

.pod-hex {
    width: 40px;
    height: 46px;
    /* Hexagon ratio */
    background: #1f2a36;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.pod-hex::after {
    content: '';
    width: 80%;
    height: 80%;
    background: var(--accent-green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: 0.3s;
    opacity: 0.8;
}

.pod-hex:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.pod-hex.pod-error::after {
    background: #ff5f56;
    animation: pulseRed 1s infinite;
}

@keyframes pulseRed {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.pod-hex.healing {
    animation: spinPod 0.5s ease-out;
}

@keyframes spinPod {
    0% {
        transform: rotate(0deg) scale(0.8);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Self-Healing CI/CD Card Styles */
#self-healing-card {
    position: relative;
    overflow: hidden;
}

#self-healing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(0, 255, 65, 0.1) 60deg,
            transparent 120deg);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#self-healing-card:hover::after {
    opacity: 1;
}

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

#self-healing-card a:hover {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.25), rgba(0, 184, 255, 0.25));
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

#self-healing-output {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Responsive adjustments for featured project */
@media (max-width: 768px) {
    #self-healing-card {
        grid-column: span 1 !important;
    }
}

/* ================================
   NEW SECTIONS STYLES
   ================================ */

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.theme-toggle:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-green);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    color: var(--text-main);
}

.theme-toggle .moon-icon {
    display: none;
}

body.light-mode .theme-toggle .sun-icon {
    display: none;
}

body.light-mode .theme-toggle .moon-icon {
    display: block;
}

/* Light Mode Styles */
body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-main: #1a1a2e;
    --text-secondary: #4a4a6a;
    background: var(--bg-primary);
    color: var(--text-main);
}

body.light-mode nav {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .card,
body.light-mode .terminal-window {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Case Studies Section */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-study-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, transparent 100%);
}

.case-study-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.5rem;
}

.case-study-tag.aiops {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.2));
    color: #a78bfa;
}

.case-study-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-section {
    margin-bottom: 1.5rem;
}

.case-study-section h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 1.2rem;
}

.case-study-section p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Architecture Diagram */
.architecture-diagram {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.layer-label {
    width: 60px;
    color: #666;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
}

.arch-nodes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.arch-node {
    padding: 6px 12px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: #c9d1d9;
}

.arch-node.terraform {
    border-color: #7b42bc;
    color: #7b42bc;
}

.arch-node.aws {
    border-color: #ff9900;
    color: #ff9900;
}

.arch-node.azure {
    border-color: #0089d6;
    color: #0089d6;
}

.arch-node.gcp {
    border-color: #4285f4;
    color: #4285f4;
}

.arch-node.mcp {
    border-color: #00b8ff;
    color: #00b8ff;
}

.arch-arrow {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.1);
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'Fira Code', monospace;
}

.result-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.25rem;
}

.case-study-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-badge {
    padding: 4px 10px;
    background: #21262d;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #8b949e;
    font-family: 'Fira Code', monospace;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 160px;
    overflow: hidden;
}

.blog-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-tag {
    padding: 4px 10px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
}

.blog-tag.aiops {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.2));
    color: #a78bfa;
}

.blog-date {
    color: #666;
    font-size: 0.75rem;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--accent-green);
    font-size: 0.85rem;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    transition: color 0.2s;
}

.blog-link:hover {
    color: var(--accent-blue);
}

/* GitHub Activity Section */
.github-container {
    max-width: 900px;
    margin: 0 auto;
}

.github-profile-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.github-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.github-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
}

.github-info h3 {
    margin: 0;
    font-size: 1.3rem;
}

.github-info p {
    color: #888;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.github-follow-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    color: var(--accent-green);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.github-follow-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
}

.github-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.github-stat {
    text-align: center;
}

.github-stat .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'Fira Code', monospace;
}

.github-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Contribution Graph */
.contribution-graph {
    margin-bottom: 2rem;
}

.graph-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 3px;
    margin-bottom: 0.75rem;
}

.contribution-day {
    aspect-ratio: 1;
    border-radius: 2px;
    background: #161b22;
}

.contribution-day.level-1 {
    background: #0e4429;
}

.contribution-day.level-2 {
    background: #006d32;
}

.contribution-day.level-3 {
    background: #26a641;
}

.contribution-day.level-4 {
    background: #39d353;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 0.7rem;
    color: #888;
}

.legend-squares {
    display: flex;
    gap: 3px;
}

.legend-square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Featured Repos */
.featured-repos h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #c9d1d9;
}

.repo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.repo-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.repo-card:hover {
    border-color: var(--accent-green);
    background: #1c2128;
}

.repo-icon {
    font-size: 1.5rem;
}

.repo-info {
    flex: 1;
}

.repo-name {
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.repo-desc {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.repo-lang {
    padding: 4px 10px;
    background: #21262d;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
}

.repo-lang.python {
    color: #3572A5;
}

.repo-lang.javascript {
    color: #f1e05a;
}

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

.testimonial-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.testimonial-quote {
    margin-bottom: 1.5rem;
}

.quote-icon {
    fill: var(--accent-green);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-quote p {
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-main);
}

.author-title {
    font-size: 0.8rem;
    color: #888;
}

/* Opportunities Section */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
}

.opportunity-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.opportunity-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.opportunity-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Contact Form Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-terminal {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.social-link.github:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.social-link.email:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.contact-form {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.form-input::placeholder {
    color: #555;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
}

.form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.15), rgba(0, 184, 255, 0.15));
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    color: var(--accent-green);
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.form-submit svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Performance Metrics Section */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.performance-card {
    text-align: center;
}

.perf-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--progress) * 1%),
            #1a1a2e calc(var(--progress) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.perf-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: #0d1117;
    border-radius: 50%;
}

.perf-value {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'Fira Code', monospace;
}

.perf-label {
    color: #888;
    font-size: 0.9rem;
}

.web-vitals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.vital-item {
    text-align: center;
}

.vital-label {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.vital-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.25rem;
}

.vital-value.good {
    color: var(--accent-green);
}

.vital-value.needs-improvement {
    color: #ffbd2e;
}

.vital-value.poor {
    color: #ff5f56;
}

.vital-desc {
    display: block;
    font-size: 0.7rem;
    color: #666;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .github-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .github-follow-btn {
        margin-left: 0;
    }

    .github-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .contribution-grid {
        grid-template-columns: repeat(26, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .performance-grid,
    .web-vitals {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   INNOVATION FEATURES
   ================================ */

/* AI Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff41, #00b8ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1117;
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(0, 255, 65, 0.6);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5f56;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #0d1117;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1), rgba(0, 184, 255, 0.1));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-green);
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chatbot-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.chatbot-close:hover {
    color: #ff5f56;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: #161b22;
    color: #c9d1d9;
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 184, 255, 0.2));
    color: var(--text-main);
    border-bottom-right-radius: 4px;
}

.chatbot-input-container {
    display: flex;
    padding: 1rem;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-green);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1117;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

/* Voice control styles removed */

/* Game styles removed */

/* K8s styles removed */

.legend-dot.error {
    background: #ff5f56;
}

/* Mobile Responsive for New Features */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-container {
        width: 320px;
        right: -10px;
    }

    .game-container {
        padding: 1.5rem;
    }

    .game-area {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-pod {
        width: 40px;
        height: 40px;
    }
}

/* ================================
   Self-Drawing Animation Effects
   ================================ */

.draw-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block !important;
}

.draw-icon path,
.draw-icon circle,
.draw-icon line,
.draw-icon polyline,
.draw-icon rect {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.5s ease;
}

.draw-icon.drawn path,
.draw-icon.drawn circle,
.draw-icon.drawn line,
.draw-icon.drawn polyline,
.draw-icon.drawn rect {
    stroke-dashoffset: 0;
}

/* Specific icon colors */
.icon-challenge {
    stroke: #ff5f56;
}

.icon-solution {
    stroke: var(--accent-blue);
}

.icon-results {
    stroke: var(--accent-green);
}