/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-secondary: linear-gradient(135deg, #ff6b35, #f59e0b);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --border-glow: 1px solid rgba(0, 212, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: block;
    visibility: visible;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
}

.neural-network {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    animation: pulse 2s infinite;
}

.neural-network::before {
    content: '🧠';
    font-size: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    animation: loading 3s ease-in-out forwards; /* Added 'forwards' to keep final state */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 20px;
    border-bottom: var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.brand-icon {
    width: 35px;
    height: 35px;
    perspective: 1000px;
}

.icon-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 8s infinite linear;
}

.cube-face {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(124, 58, 237, 0.8));
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.cube-face.front  { transform: rotateY(0deg) translateZ(17.5px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(17.5px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(17.5px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(17.5px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(17.5px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(17.5px); }

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.brand-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #00d4ff 25%, 
        #7c3aed 50%, 
        #00d4ff 75%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waveGradient 4s ease-in-out infinite;
}

@keyframes waveGradient {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    align-items: center;
    top: 50%;
}

.hamburger {
    display: none;
    z-index: 10;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#three-container-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Story Progress Indicator */
.story-progress-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.progress-dot::after {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.progress-dot:hover::after {
    opacity: 1;
}

.progress-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transform: scale(1.3);
}

.progress-dot[data-phase="0"].active {
    background: #00d4ff;
}

.progress-dot[data-phase="1"].active {
    background: #7c3aed;
}

.progress-dot[data-phase="2"].active {
    background: #ff6b35;
}

.progress-dot[data-phase="3"].active {
    background: #10b981;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Make all sections have relative positioning and higher z-index than 3D background */
section {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Hero section - clear 3D background, no blur */
.hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.glitch-text {
    font-size: 4rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitch 3s infinite;
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--text-gray);
}

.ai-chat-preview {
    margin: 30px 0;
}

.chat-bubble {
    background: rgba(0, 212, 255, 0.1);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 15px 25px;
    display: inline-block;
    position: relative;
}

.typing-indicator {
    color: var(--primary-color);
    animation: typing 2s infinite;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 0 2px;
    animation: typing-dots 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: var(--border-glow);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.docker {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.k8s {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon.aws {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.floating-icon.ai {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

.hologram-effect {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: hologram 3s infinite;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    object-position: center top;
    transform: scale(1.2);
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    margin-top: 5px;
}
/* Terminal */
.terminal-window {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 5px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    color: #fff;
    font-size: 14px;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 10px;
}

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

.command {
    color: #fff;
}

.terminal-output {
    color: var(--text-gray);
    margin-left: 20px;
    margin-bottom: 15px;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

.clickable-command {
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-style: dashed;
}

.clickable-command:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateX(3px);
}

.clickable-command::before {
    content: '▶ ';
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-command:hover::before {
    opacity: 1;
}

.download-hint {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 5px;
    animation: pulse 2s ease-in-out infinite;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 60px;
}

.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.skill-category-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.skill-category-card:hover::before {
    transform: scaleX(1);
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.category-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.category-tagline {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-style: italic;
}

.skill-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-badge:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

.skill-badge:nth-child(1) .badge-icon { animation-delay: 0s; }
.skill-badge:nth-child(2) .badge-icon { animation-delay: 0.2s; }
.skill-badge:nth-child(3) .badge-icon { animation-delay: 0.4s; }
.skill-badge:nth-child(4) .badge-icon { animation-delay: 0.6s; }
.skill-badge:nth-child(5) .badge-icon { animation-delay: 0.8s; }
.skill-badge:nth-child(6) .badge-icon { animation-delay: 1s; }

.badge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.badge-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.skill-meter {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tech Stack Visual */
.tech-stack-visual {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    border: 2px dashed rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.visual-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.tech-tag.cloud { border-color: rgba(255, 165, 0, 0.5); }
.tech-tag.cloud:hover { background: linear-gradient(135deg, #ff9500, #ff6b35); border-color: #ff9500; }

.tech-tag.container { border-color: rgba(50, 150, 250, 0.5); }
.tech-tag.container:hover { background: linear-gradient(135deg, #3296fa, #00d4ff); border-color: #3296fa; }

.tech-tag.cicd { border-color: rgba(220, 53, 69, 0.5); }
.tech-tag.cicd:hover { background: linear-gradient(135deg, #dc3545, #c82333); border-color: #dc3545; }

.tech-tag.config { border-color: rgba(238, 75, 43, 0.5); }
.tech-tag.config:hover { background: linear-gradient(135deg, #ee4b2b, #d63384); border-color: #ee4b2b; }

.tech-tag.monitor { border-color: rgba(0, 212, 255, 0.5); }
.tech-tag.monitor:hover { background: var(--gradient-primary); border-color: var(--primary-color); }

.tech-tag.stream { border-color: rgba(0, 0, 0, 0.5); }
.tech-tag.stream:hover { background: linear-gradient(135deg, #231f20, #000000); border-color: #231f20; }

.tech-tag.code { border-color: rgba(55, 118, 171, 0.5); }
.tech-tag.code:hover { background: linear-gradient(135deg, #3776ab, #ffd43b); border-color: #3776ab; }

.tech-tag.shell { border-color: rgba(76, 175, 80, 0.5); }
.tech-tag.shell:hover { background: linear-gradient(135deg, #4caf50, #8bc34a); border-color: #4caf50; }

.tech-tag.version { border-color: rgba(240, 80, 50, 0.5); }
.tech-tag.version:hover { background: linear-gradient(135deg, #f05032, #f34f29); border-color: #f05032; }

.tech-tag.viz { border-color: rgba(242, 132, 17, 0.5); }
.tech-tag.viz:hover { background: linear-gradient(135deg, #f28411, #ff6b35); border-color: #f28411; }

.tech-tag.platform { border-color: rgba(0, 112, 210, 0.5); }
.tech-tag.platform:hover { background: linear-gradient(135deg, #0070d2, #0052cc); border-color: #0070d2; }

.tech-tag.linux { border-color: rgba(255, 204, 0, 0.5); }
.tech-tag.linux:hover { background: linear-gradient(135deg, #fcc000, #f57c00); border-color: #fcc000; }

.tech-tag.ai { border-color: rgba(124, 58, 237, 0.5); }
.tech-tag.ai:hover { background: linear-gradient(135deg, #7c3aed, #00d4ff); border-color: #7c3aed; }

/* Tech Orbit */
.tech-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 150px;
    height: 150px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation: rotate 25s linear infinite reverse;
}

.orbit-3 {
    width: 250px;
    height: 250px;
    animation: rotate 30s linear infinite;
}

.orbit-4 {
    width: 300px;
    height: 300px;
    animation: rotate 35s linear infinite reverse;
}

.orbit-5 {
    width: 350px;
    height: 350px;
    animation: rotate 40s linear infinite;
}

.orbit-6 {
    width: 400px;
    height: 400px;
    animation: rotate 45s linear infinite reverse;
}

.tech-node {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* AI Lab Section */
.ai-lab {
    padding: 100px 0;
    background: var(--bg-dark);
}

.lab-interface {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.control-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.control-panel h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: var(--border-glow);
    border-radius: 15px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.demo-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

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

.lab-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.neural-network-viz {
    height: 200px;
    margin-bottom: 20px;
}

#neural-canvas {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.ai-output {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ai-status {
    color: var(--primary-color);
    font-weight: 600;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.output-content {
    color: var(--text-gray);
    line-height: 1.6;
}

/* AI Chat */
.ai-chat {
    margin-top: 40px;
}

.chat-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.chat-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    max-width: 70%;
    line-height: 1.5;
}

.ai-message .message-content {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--text-light);
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

.icon-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Email Icon Animation */
.envelope {
    position: relative;
    width: 28px;
    height: 20px;
}

.envelope-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 14px;
    background: white;
    border: 2px solid white;
    border-radius: 2px;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 10px solid white;
    animation: flapMove 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes flapMove {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-180deg);
    }
}

.email-icon:hover .envelope-flap {
    animation: flapMove 0.6s ease-in-out infinite;
}

/* LinkedIn Icon Animation */
.linkedin-logo {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.linkedin-in {
    font-size: 16px;
    font-weight: bold;
    color: #00d4ff;
    animation: linkedinBounce 2s ease-in-out infinite;
}

@keyframes linkedinBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.linkedin-icon:hover .linkedin-in {
    animation: linkedinSpin 0.6s ease-in-out;
}

@keyframes linkedinSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.3);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Website/Globe Icon Animation */
.globe {
    position: relative;
    width: 28px;
    height: 28px;
}

.globe-ring {
    position: absolute;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0.8;
}

.ring-1 {
    width: 28px;
    height: 28px;
    top: 0;
    left: 0;
    animation: globeRotate1 3s linear infinite;
}

.ring-2 {
    width: 28px;
    height: 14px;
    top: 7px;
    left: 0;
    animation: globeRotate2 3s linear infinite reverse;
}

.ring-3 {
    width: 14px;
    height: 28px;
    top: 0;
    left: 7px;
    animation: globeRotate3 3s linear infinite;
}

@keyframes globeRotate1 {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes globeRotate2 {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(360deg);
    }
}

@keyframes globeRotate3 {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

.website-icon:hover .globe-ring {
    animation-duration: 1s;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-gray);
}

.contact-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.privacy-notice {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
}

.privacy-notice small {
    color: var(--text-gray);
    line-height: 1.4;
    display: block;
}

.btn-test {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-test:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-loading {
    display: none;
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.85);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.footer-left p {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 0;
    border: var(--border-glow);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close {
    color: var(--text-gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}
/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes typing {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes hologram {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 10;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        transform: none;
        margin: 0;
        z-index: 999;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-showcase {
        grid-template-columns: 1fr;
    }
    
    .skill-category-card {
        padding: 25px;
    }
    
    .skill-items-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-tags {
        gap: 10px;
    }
    
    .tech-tag {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .story-progress-indicator {
        right: 15px;
        gap: 15px;
    }
    
    .progress-dot {
        width: 10px;
        height: 10px;
    }
    
    .progress-dot::after {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tech-orbit {
        width: 250px;
        height: 250px;
    }
    
    .orbit-1 { width: 100px; height: 100px; }
    .orbit-2 { width: 130px; height: 130px; }
    .orbit-3 { width: 160px; height: 160px; }
    .orbit-4 { width: 190px; height: 190px; }
    .orbit-5 { width: 220px; height: 220px; }
    .orbit-6 { width: 250px; height: 250px; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar Styling - Futuristic Particle Trail */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(0, 212, 255, 0.1) 50%, 
        rgba(10, 10, 10, 0.8) 100%
    );
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(0, 212, 255, 0.8) 0%,
        rgba(124, 58, 237, 0.8) 50%,
        rgba(255, 107, 53, 0.8) 100%
    );
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: scrollPulse 2s ease-in-out infinite;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(0, 212, 255, 1) 0%,
        rgba(124, 58, 237, 1) 50%,
        rgba(255, 107, 53, 1) 100%
    );
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.9),
        inset 0 0 12px rgba(255, 255, 255, 0.5);
    animation: scrollPulse 0.5s ease-in-out infinite;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        #00d4ff 0%,
        #7c3aed 50%,
        #ff6b35 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 1),
        inset 0 0 15px rgba(255, 255, 255, 0.7);
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
    50% {
        transform: scaleY(1.02);
        filter: brightness(1.2);
    }
}

/* Scrollbar Corner */
::-webkit-scrollbar-corner {
    background: var(--bg-darker);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

        gap: 5px;
    }
    
    .alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
/* Experience Section */
section.experience {
    padding: 100px 0 !important;
    background: rgba(10, 10, 10, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.experience {
    padding: 100px 0 !important;
    background: rgba(10, 10, 10, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.timeline-content h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.location {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 15px;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    color: var(--text-gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.responsibilities li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.responsibilities li strong {
    color: var(--text-light);
}

/* Education Section */
.education {
    padding: 100px 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.education-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-content h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.education-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.education-date {
    color: var(--text-gray);
    font-weight: bold;
    margin-bottom: 5px;
}

.education-location {
    color: var(--text-gray);
    font-style: italic;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        align-self: center;
    }
}
/* AI Collaboration Demo Styles */
.ai-demo-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.demo-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.demo-intro h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.demo-intro p {
    color: var(--text-gray);
    margin: 0;
}

.collaboration-workspace {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.worker-avatar {
    text-align: center;
}

.avatar {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.human-avatar {
    animation-delay: 0s;
}

.ai-avatar {
    animation-delay: 1.5s;
}

.worker-label {
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.worker-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 2s ease;
}

.creativity {
    background: linear-gradient(90deg, #ff6b35, #f59e0b);
}

.problem-solving {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.speed-human {
    background: linear-gradient(90deg, #10b981, #059669);
}

.data-processing {
    background: linear-gradient(90deg, #00d4ff, #0ea5e9);
}

.pattern-recognition {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.speed-ai {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.collaboration-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.plus-icon {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

.collaboration-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flow-arrow.active {
    opacity: 1;
    animation: flowPulse 1s ease-in-out;
}

.scenario-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.scenario-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.scenario-controls {
    display: flex;
    gap: 10px;
}

.collab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collab-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.collab-btn.secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.collab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.work-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.task-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid;
}

.human-task {
    border-left-color: #ff6b35;
}

.ai-task {
    border-left-color: #00d4ff;
}

.task-panel h5 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1rem;
}

.thought-content {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.5;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.result-panel {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.result-panel h5 {
    color: #10b981;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.result-content {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.efficiency-meter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meter-label {
    color: var(--text-gray);
    font-weight: bold;
    white-space: nowrap;
}

.meter-bar {
    flex: 1;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    width: 0%;
    transition: width 3s ease;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: meterShine 2s infinite;
}

/* Animations */
@keyframes flowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes meterShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-demo-modal .modal-content {
        max-width: 95%;
        margin: 2% auto;
    }
    
    .collaboration-workspace {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .collaboration-center {
        order: -1;
    }
    
    .scenario-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .work-display {
        grid-template-columns: 1fr;
    }
    
    .efficiency-meter {
        flex-direction: column;
        gap: 10px;
    }
    
    .meter-bar {
        width: 100%;
    }
}

/* AI Laboratory Demo Results */
.ai-demo-result {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    animation: slideInUp 0.5s ease;
}

.ai-demo-result h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Infrastructure Analysis Styles */
.analysis-results {
    margin-bottom: 20px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-gray);
    font-size: 14px;
}

.metric-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.recommendations {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.recommendations h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    color: var(--text-light);
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.recommendations li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Cost Optimization Styles */
.cost-breakdown {
    margin-bottom: 20px;
}

.cost-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-category {
    color: var(--text-light);
    font-weight: 500;
}

.cost-current {
    color: var(--text-gray);
    text-decoration: line-through;
}

.cost-optimized {
    color: #10b981;
    font-weight: bold;
}

.cost-savings {
    color: var(--primary-color);
    font-weight: bold;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.total-savings {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #10b981;
    font-size: 16px;
}

/* Security Scan Styles */
.security-summary {
    margin-bottom: 20px;
    text-align: center;
}

.security-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 10px 20px;
}

.score-label {
    color: var(--text-gray);
    font-size: 14px;
}

.score-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.security-findings {
    margin-bottom: 20px;
}

.finding {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.finding.critical {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}

.finding.high {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
}

.finding.medium {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.finding-severity {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.finding.critical .finding-severity {
    color: #ef4444;
}

.finding.high .finding-severity {
    color: #f59e0b;
}

.finding.medium .finding-severity {
    color: #3b82f6;
}

.finding-count {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: var(--text-light);
}

.finding-desc {
    color: var(--text-gray);
}

.remediation {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
}

.remediation h5 {
    color: #ef4444;
    margin-bottom: 10px;
    font-size: 14px;
}

.remediation ul {
    list-style: none;
    padding: 0;
}

.remediation li {
    color: var(--text-light);
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.remediation li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* Performance Prediction Styles */
.prediction-timeline {
    margin-bottom: 20px;
}

.prediction-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.prediction-time {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
}

.prediction-metric {
    color: var(--text-light);
}

.prediction-value {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.prediction-item:nth-child(1) .prediction-value,
.prediction-item:nth-child(2) .prediction-value {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.prediction-item:nth-child(3) .prediction-value {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 1s infinite;
}

.prediction-actions {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
}

.prediction-actions h5 {
    color: #f59e0b;
    margin-bottom: 10px;
    font-size: 14px;
}

.prediction-actions ul {
    list-style: none;
    padding: 0;
}

.prediction-actions li {
    color: var(--text-light);
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.prediction-actions li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* AI Demo Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive AI Demo Results */
@media (max-width: 768px) {
    .cost-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .finding {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }
    
    .prediction-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }
    
    .metric-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
/* CV Section */
.cv-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* CV Preview */
.cv-preview {
    position: relative;
}

.cv-document {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.cv-document:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.cv-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.cv-info h3 {
    font-size: 28px;
    margin: 0;
    color: #333;
}

.cv-title {
    font-size: 18px;
    color: var(--primary-color);
    margin: 5px 0;
    font-weight: 600;
}

.cv-company {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.cv-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cv-section-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-section-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 5px 0;
}

.cv-job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.cv-job strong {
    color: #333;
}

.cv-date {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
}

.cv-education {
    margin-bottom: 10px;
}

.cv-education strong {
    color: #333;
    font-size: 14px;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-skill {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* CV Actions */
.cv-actions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cv-download-card,
.cv-contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.cv-download-card:hover,
.cv-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.download-icon,
.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.cv-download-card h3,
.cv-contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.cv-download-card p,
.cv-contact-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.download-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cv-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cv-stat .stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.cv-stat .stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.quick-contact {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* CV Responsive */
@media (max-width: 768px) {
    .cv-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cv-document {
        transform: none;
        padding: 20px;
    }
    
    .cv-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cv-avatar {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .cv-info h3 {
        font-size: 24px;
    }
    
    .cv-job {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 200px;
        justify-content: center;
    }
    
    .quick-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 200px;
        justify-content: center;
    }
    
    .cv-stats {
        flex-direction: column;
        gap: 15px;
    }
}
/* Ensure main content is visible after loading */
main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Loading screen override */
#loading-screen.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Emergency loading screen override */
#loading-screen.force-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure main content is always accessible */
body.loaded {
    overflow: auto !important;
}

body.loaded main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.loaded .navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Fix navbar on mobile */
    .navbar {
        padding: 10px 20px;
    }
    
    .nav-brand {
        font-size: 20px;
        z-index: 1001;
    }
    
    .hamburger {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 100vh;
        padding: 80px 20px 40px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    /* Terminal mobile */
    .terminal-body {
        font-size: 12px;
        padding: 15px;
    }
    
    .terminal-output {
        font-size: 11px;
    }
    
    /* Skills badges mobile */
    .badge-icon {
        font-size: 1.5rem;
    }
    
    .badge-name {
        font-size: 1rem;
    }
    
    .badge-desc {
        font-size: 0.8rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 25px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-date {
        font-size: 0.9rem;
    }
    
    /* Section padding mobile */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero {
        padding: 70px 15px 30px;
    }
    
    .glitch-text {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .terminal-body {
        font-size: 11px;
        padding: 12px;
    }
    
    .skill-category-card {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .tech-tag {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Landscape mobile fix */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link {
        padding: 15px 10px;
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 48px;
    }
    
    .skill-badge {
        padding: 18px;
    }
    
    .tech-tag {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Disable hover effects on touch devices */
    .skill-badge:hover {
        transform: none;
    }
    
    .tech-tag:hover {
        transform: none;
    }
}
