/* Color Theme Variables */
:root {
    /* Dark Theme (Default) - Black & Yellow */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #e5e5e5;
    --text-muted: #999999;
    --accent-primary: #fbbf24;
    --accent-secondary: #f59e0b;
    --accent-hover: #d97706;
    --border-color: rgba(251, 191, 36, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --code-bg: #1a1a1a;
}

:root[data-theme="light"] {
    /* Light Theme - White & Orange/Yellow */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #495057;
    --accent-primary: #f97316;
    --accent-secondary: #ea580c;
    --accent-hover: #c2410c;
    --border-color: rgba(0, 0, 0, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --code-bg: #e9ecef;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.1);
}

/* Global light mode card styling */
:root[data-theme="light"] .timeline-content,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .story-card,
:root[data-theme="light"] .skill-category,
:root[data-theme="light"] .certification-card,
:root[data-theme="light"] .education-content,
:root[data-theme="light"] .profile-info,
:root[data-theme="light"] .terminal-line,
:root[data-theme="light"] .code-block,
:root[data-theme="light"] .tech-item,
:root[data-theme="light"] .experience-card,
:root[data-theme="light"] .about-card,
:root[data-theme="light"] .dag-task,
:root[data-theme="light"] .feature-badge,
:root[data-theme="light"] .node-header,
:root[data-theme="light"] .achievement-item,
:root[data-theme="light"] .tech-category {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
}

/* Ensure all text is visible in light mode */
:root[data-theme="light"] * {
    color: var(--text-primary);
}

/* Fix node-icon visibility in light mode */
:root[data-theme="light"] .node-icon i {
    color: #000000 !important;
}

:root[data-theme="light"] .highlight,
:root[data-theme="light"] .stat-number {
    color: var(--accent-primary) !important;
}

:root[data-theme="light"] .text-muted,
:root[data-theme="light"] .stat-label {
    color: var(--text-muted) !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Disable animations during scrolling on mobile for better performance */
body.scrolling * {
    animation-play-state: paused !important;
    transition: none !important;
}

/* Page load animation */
body {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Loading spinner */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(251, 191, 36, 0.1);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scroll-snap-type: none;
    cursor: default;
}

/* Custom selection colors */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(251, 191, 36, 0.3);
    color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    will-change: scroll-position;
    position: relative;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    background: var(--accent-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced focus styles for better accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Remove default focus for mouse users while keeping it for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Animated Tech Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-size: 50px 50px;
    z-index: -1;
}



/* Tech particles */
.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    animation: none;
    opacity: 0;
    display: none;
}

.tech-particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    filter: blur(1px);
    animation: none;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes particleGlow {
    0% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
}

/* Ensure all interactive elements are clickable */
button, a, .btn, .social-btn, .social-links a {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Ensure content has proper stacking context */
.container, section, .hero-content, .navbar {
    position: relative;
    z-index: 5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Improved Section Spacing */
section {
    padding: 100px 0;
    width: 100%;
    box-sizing: border-box;
    scroll-margin-top: 80px; /* Better scroll positioning */
    position: relative;
    isolation: isolate; /* Create stacking context */
    backface-visibility: hidden; /* Improve rendering performance */
    contain: layout style; /* Optimize rendering */
}

section:first-of-type {
    padding-top: 140px; /* Account for fixed navbar */
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1.5rem;
}

/* Typography */
.gradient-text {
    color: var(--text-primary);
    font-weight: 800;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.highlight-accent {
    color: var(--text-muted);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    background: var(--bg-secondary);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-logo h2 {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.code-bracket {
    color: var(--accent-primary);
    font-weight: 700;
    text-shadow: none;
}

.name-text {
    color: var(--text-primary);
    margin: 0 2px;
    background: none;
    font-weight: 600;
}

.cursor-blink {
    color: var(--accent-primary);
    animation: none;
    font-weight: 400;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo:hover .code-bracket {
    color: var(--accent-secondary);
}

.nav-logo:hover .name-text {
    color: #ffffff;
}

.nav-logo:hover .cursor-blink {
    color: var(--accent-secondary);
}

.nav-logo:active {
    transform: translateY(0px) scale(0.98);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.language-toggle {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: center;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(251, 191, 36, 0.1);
}

.lang-text {
    transition: all 0.3s ease;
}

.lang-text.inactive {
    opacity: 0.5;
}

.lang-separator {
    opacity: 0.6;
}

.memoji {
    font-size: 2rem;
    animation: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active {
    transform: translateY(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    position: relative;
    z-index: 1002;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(251, 191, 36, 0.2);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 140px 0 60px; /* Reduced bottom padding to prevent gaps */
    z-index: 1;
    margin-bottom: 0; /* Remove any margin */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff08" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.4;
    z-index: 2;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    min-height: 80vh;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1200px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-scanner {
    position: relative;
    width: 200px;
    height: 200px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    animation: none;
    display: none;
}

@keyframes scanAnimation {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 0.7; }
    100% { transform: translateY(200px); opacity: 0; }
}

/* Hero Text */
.hero-text {
    text-align: left;
}

.ai-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ffff;
}

.prompt-symbol {
    color: #00ff00;
    font-weight: bold;
}

.typing-text {
    animation: none;
}

@keyframes typewriter {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}



.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.highlight-accent {
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000000;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

:root[data-theme="light"] .btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(26, 26, 26, 0.7);
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 12px 48px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-accent {
    background: rgba(71, 85, 105, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.4);
    background: rgba(100, 116, 139, 0.9);
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.1em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .social-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    background: rgba(26, 26, 26, 0.7);
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .social-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.social-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.social-btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* AI Background Elements */
.ai-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden; /* Prevent overflow */
}

.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent overflow */
}

.stream {
    position: absolute;
    width: 2px;
    background: var(--accent-primary);
    animation: none;
    display: none;
}

.stream-1 {
    left: 20%;
    height: 60%;
    top: 20%;
    animation-delay: 0s;
}

.stream-2 {
    left: 60%;
    height: 40%;
    top: 30%;
    animation-delay: 1s;
}

.stream-3 {
    left: 80%;
    height: 50%;
    top: 10%;
    animation-delay: 2s;
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent nodes from causing scrollbars */
    max-width: 100%;
    max-height: 100%;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
    animation: none;
    display: none;
}

.node-1 { top: 20%; left: 85%; animation-delay: 0s; }
.node-2 { top: 60%; left: 90%; animation-delay: 0.5s; }
.node-3 { top: 40%; left: 15%; animation-delay: 1s; }
.node-4 { top: 80%; left: 25%; animation-delay: 1.5s; }

.connection {
    position: absolute;
    height: 1px;
    background: transparent;
    animation: connectionPulse 3s ease-in-out infinite;
}

.con-1 {
    top: 22%;
    left: 85%;
    width: 5%;
    transform: rotate(45deg);
}

.con-2 {
    top: 58%;
    left: 88%;
    width: 8%;
    transform: rotate(-30deg);
}

.con-3 {
    top: 42%;
    left: 15%;
    width: 6%;
    transform: rotate(60deg);
}

@keyframes streamFlow {
    0% { opacity: 0; transform: translateY(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(100%); }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* AI Status Bar */
.ai-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(20px) saturate(180%);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: 'Monaco', monospace;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.processing {
    background: var(--text-muted);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-indicator.active {
    background: var(--accent-secondary);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-indicator.ready {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.status-text {
    color: var(--text-muted);
    text-transform: uppercase;
}

.status-value {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* AI Status Panel */
.ai-status-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.panel-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    font-weight: bold;
    letter-spacing: 1px;
}

.panel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    animation: indicatorBlink 2s ease-in-out infinite;
}

.panel-indicator.active {
    background: #00ff00;
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

@keyframes indicatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes indicatorPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.status-metrics {
    margin-bottom: 12px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.metric-value {
    color: #00ff00;
    font-weight: bold;
}

.panel-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.timestamp {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(0, 255, 255, 0.8);
    animation: timestampFlicker 3s ease-in-out infinite;
}

@keyframes timestampFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Hero Main Layout */
.hero-main {
    display: grid;
    grid-template-columns: minmax(300px, 350px) 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile Section */
.hero-profile {
    position: relative;
}

.profile-container {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .profile-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.profile-border {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-primary);
    /* Removed rotation animation */
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
}

.scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    animation: scanMove 2s linear infinite;
}

.profile-data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-title {
    font-family: 'Monaco', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 16px 20px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    user-select: none;
    transform-style: preserve-3d;
    perspective: 1000px;
}

:root[data-theme="light"] .profile-title {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* AI Neural Network Background */
.profile-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: neural-network 8s linear infinite;
    transition: opacity 0.4s ease;
}

/* AI Circuit Pattern */
.profile-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    background-size: 8px 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Hover State - AI Activation */
.profile-title:hover {
    transform: translateY(-8px) scale(1.08) rotateX(5deg) rotateY(2deg);
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 12px 48px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    filter: brightness(1.1);
}

:root[data-theme="light"] .profile-title:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.profile-title:hover::before {
    opacity: 1;
    animation: neural-network 4s linear infinite;
}

.profile-title:hover::after {
    content: 'Click to train the model';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.7);
    color: var(--accent-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: 'Monaco', monospace;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    backdrop-filter: blur(15px);
    opacity: 0;
    animation: hover-message-fade 0.4s ease forwards;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    min-width: max-content;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.4);
}

/* Click State - AI Interface Flip */
.profile-title:active {
    transform: translateY(-5px) scale(1.05) rotateX(180deg) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.1), 
        rgba(15, 23, 42, 0.95),
        rgba(15, 23, 42, 0.9)
    );
    border-color: rgba(251, 191, 36, 1);
    box-shadow: 
        0 30px 60px rgba(251, 191, 36, 0.3),
        0 0 150px rgba(251, 191, 36, 0.2),
        inset 0 0 50px rgba(251, 191, 36, 0.1);
}

/* AI Code Brackets Animation */
.profile-title:hover .code-bracket {
    opacity: 0.3;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

/* AI Text Transformation */
.profile-title:hover .name-text {
    opacity: 0.3;
    transform: scale(1.05);
    transition: all 0.4s ease;
}

/* AI Cursor Animation */
.profile-title:hover .cursor-blink {
    opacity: 0.3;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

/* Click Effect - AI System Activation */
.profile-title:active .code-bracket,
.profile-title:active .name-text,
.profile-title:active .cursor-blink {
    animation: 
        ai-system-boot 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        ai-energy-burst 0.6s ease-out;
    transform: perspective(1000px) rotateY(180deg) rotateX(10deg) scale(1.1);
    filter: 
        brightness(1.5) 
        contrast(1.3) 
        drop-shadow(0 0 25px rgba(251, 191, 36, 0.8));
}

/* AI-Themed Keyframe Animations */

@keyframes hover-message-fade {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes neural-network {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.1); }
}

@keyframes circuit-flow {
    0% { 
        background-position: 0% 0%; 
        opacity: 0.3;
    }
    50% { 
        background-position: 100% 100%; 
        opacity: 0.8;
    }
    100% { 
        background-position: 200% 200%; 
        opacity: 0.3;
    }
}

@keyframes ai-bracket-pulse {
    0%, 100% { 
        transform: scale(1.25) rotateZ(5deg);
        color: var(--accent-primary);
        text-shadow: 
            0 0 20px rgba(251, 191, 36, 0.6),
            0 0 40px rgba(251, 191, 36, 0.3);
    }
    25% { 
        transform: scale(1.4) rotateZ(-3deg);
        color: var(--text-muted);
        text-shadow: 
            0 0 25px rgba(245, 158, 11, 0.7),
            0 0 50px rgba(245, 158, 11, 0.4);
    }
    50% { 
        transform: scale(1.6) rotateZ(0deg);
        color: #666666;
        text-shadow: 
            0 0 30px rgba(217, 119, 6, 0.8),
            0 0 60px rgba(217, 119, 6, 0.5);
    }
    75% { 
        transform: scale(1.4) rotateZ(3deg);
        color: var(--accent-primary);
        text-shadow: 
            0 0 25px rgba(251, 191, 36, 0.7),
            0 0 50px rgba(251, 191, 36, 0.4);
    }
}

@keyframes ai-text-scan {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 200% 75%; }
    75% { background-position: 300% 50%; }
}

@keyframes ai-glow-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(251, 191, 36, 0.5),
            0 0 20px rgba(251, 191, 36, 0.3),
            0 0 30px rgba(251, 191, 36, 0.1);
        filter: brightness(1.3) contrast(1.2);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(251, 191, 36, 0.7),
            0 0 30px rgba(251, 191, 36, 0.5),
            0 0 45px rgba(251, 191, 36, 0.3),
            0 0 60px rgba(251, 191, 36, 0.1);
        filter: brightness(1.5) contrast(1.4);
    }
}

@keyframes ai-cursor-morph {
    0%, 100% { 
        content: '|';
        transform: scale(1.8) rotateZ(0deg) translateZ(5px);
        color: var(--accent-primary);
    }
    20% { 
        content: '▌';
        transform: scale(2.2) rotateZ(45deg) translateZ(8px);
        color: var(--text-muted);
    }
    40% { 
        content: '▓';
        transform: scale(2.5) rotateZ(90deg) translateZ(10px);
        color: #666666;
    }
    60% { 
        content: '█';
        transform: scale(2.8) rotateZ(135deg) translateZ(8px);
        color: var(--accent-primary);
    }
    80% { 
        content: '▐';
        transform: scale(2.2) rotateZ(180deg) translateZ(5px);
        color: var(--text-muted);
    }
}

@keyframes ai-system-boot {
    0% { 
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: perspective(1000px) rotateY(45deg) rotateX(5deg) scale(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: perspective(1000px) rotateY(90deg) rotateX(10deg) scale(1.1);
        opacity: 0.6;
    }
    75% { 
        transform: perspective(1000px) rotateY(135deg) rotateX(5deg) scale(1.05);
        opacity: 0.8;
    }
    100% { 
        transform: perspective(1000px) rotateY(180deg) rotateX(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes ai-energy-burst {
    0% { 
        box-shadow: 0 0 0 rgba(251, 191, 36, 0);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(251, 191, 36, 0.8),
            0 0 60px rgba(251, 191, 36, 0.6),
            0 0 90px rgba(251, 191, 36, 0.4);
        transform: scale(1.1);
    }
    100% { 
        box-shadow: 
            0 0 50px rgba(251, 191, 36, 0.4),
            0 0 100px rgba(251, 191, 36, 0.2);
        transform: scale(1);
    }
}

.profile-title .code-bracket {
    color: var(--accent-primary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.profile-title .name-text {
    color: #ffffff;
    margin: 0 2px;
    background: var(--accent-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-title .cursor-blink {
    color: var(--accent-primary);
    animation: blink 1.2s infinite;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* AI Mini Game Styles */
.ai-game-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: min(calc(100vw - 40px), 500px);
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 24px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 120px rgba(251, 191, 36, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

:root[data-theme="light"] .ai-game-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 120px rgba(249, 115, 22, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Modal Backdrop */
.ai-game-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

:root[data-theme="light"] .ai-game-backdrop {
    background: rgba(255, 255, 255, 0.8);
}

.ai-game-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.ai-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(251, 191, 36, 0.1), 
        transparent
    );
    transition: left 0.8s ease;
}

.ai-game-container.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: game-entrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ai-game-container.active::before {
    left: 100%;
}

.ai-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
}

.ai-game-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.8s ease;
}

.ai-game-container.active .ai-game-header::after {
    width: 100%;
}

.ai-game-header h3 {
    color: var(--accent-primary);
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Monaco', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    animation: title-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.ai-game-header h3::after {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.6);
    font-weight: 400;
    margin-top: 4px;
    white-space: nowrap;
    animation: none;
    text-shadow: none;
}

.close-ai-game {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.close-ai-game::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-ai-game::after {
    content: '×';
    position: relative;
    z-index: 1;
    font-weight: bold;
    line-height: 1;
}

.close-ai-game:hover {
    color: #ffffff;
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-primary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.close-ai-game:hover::before {
    opacity: 1;
}

.close-game {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-primary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .close-game {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.close-game::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.close-game:hover {
    background: rgba(26, 26, 26, 0.7);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .close-game:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.close-game:hover::before {
    width: 100%;
    height: 100%;
}

/* Tic Tac Toe Game Styles */
.game-status {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .game-status {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.game-status p {
    color: var(--text-primary);
    margin: 4px 0;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.game-status p:first-child {
    font-size: 1rem;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.game-status span {
    color: var(--accent-primary);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 240px;
    height: 240px;
    margin: 0 auto 20px auto;
    padding: 16px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9), 
        rgba(15, 23, 42, 0.8)
    );
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 
        0 8px 25px rgba(15, 23, 42, 0.3),
        inset 0 0 20px rgba(251, 191, 36, 0.05);
}

.board-cell {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .board-cell {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.board-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(251, 191, 36, 0.1), 
        rgba(251, 191, 36, 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.board-cell:hover {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(251, 191, 36, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .board-cell:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.board-cell:hover::before {
    opacity: 1;
}

.board-cell.player-x {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.2), 
        rgba(251, 191, 36, 0.1)
    );
    border-color: rgba(251, 191, 36, 0.8);
    animation: cellPlace 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.board-cell.player-o {
    color: var(--text-muted);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.2), 
        rgba(245, 158, 11, 0.1)
    );
    border-color: rgba(245, 158, 11, 0.8);
    animation: cellPlace 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.board-cell.winning {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.3), 
        rgba(34, 197, 94, 0.2)
    );
    border-color: rgba(34, 197, 94, 1);
    animation: winningCell 1s ease-in-out infinite alternate;
}

.game-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.reset-btn, .reset-score-btn {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-primary);
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Monaco', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .reset-btn,
:root[data-theme="light"] .reset-score-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.reset-btn:hover, .reset-score-btn:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .reset-btn:hover,
:root[data-theme="light"] .reset-score-btn:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.reset-btn:hover::before, .reset-score-btn:hover::before {
    left: 100%;
}

.reset-btn:active, .reset-score-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes cellPlace {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes winningCell {
    0% {
        box-shadow: 
            0 0 15px rgba(34, 197, 94, 0.6),
            inset 0 0 15px rgba(34, 197, 94, 0.2);
        transform: scale(1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(34, 197, 94, 0.9),
            0 0 45px rgba(34, 197, 94, 0.6),
            inset 0 0 25px rgba(34, 197, 94, 0.3);
        transform: scale(1.05);
    }
}

@keyframes gameWin {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-50%, -50%) scale(1.02) rotateZ(0.5deg); }
    50% { transform: translate(-50%, -50%) scale(1.05) rotateZ(-0.5deg); }
    75% { transform: translate(-50%, -50%) scale(1.02) rotateZ(0.25deg); }
}

/* Responsive adjustments for tic-tac-toe */
@media (max-width: 480px) {
    .tic-tac-toe-board {
        width: 200px;
        height: 200px;
        gap: 6px;
        padding: 12px;
    }
    
    .board-cell {
        font-size: 2rem;
        border-radius: 8px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .reset-btn, .reset-score-btn {
        width: 100%;
        max-width: 200px;
    }
}

@keyframes title-glow {
    0% { 
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 20px rgba(251, 191, 36, 0.6),
            0 0 30px rgba(251, 191, 36, 0.4);
    }
}

@keyframes game-entrance {
    0% { 
        transform: translate(-50%, -50%) scale(0.8) rotateY(-15deg);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05) rotateY(5deg);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes ai-success-celebration {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-50%, -50%) scale(1.05) rotateZ(1deg); }
    50% { transform: translate(-50%, -50%) scale(1.1) rotateZ(-1deg); }
    75% { transform: translate(-50%, -50%) scale(1.05) rotateZ(0.5deg); }
}

@keyframes particle-float {
    0% { 
        transform: translateY(0px) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateY(-60px) scale(0);
        opacity: 0;
    }
}

.data-point {
    display: flex;
    justify-content: space-between;
    font-family: 'Monaco', monospace;
    font-size: 0.8rem;
}

.label {
    color: var(--text-muted);
}

.value {
    color: var(--accent-primary);
    font-weight: 600;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scanMove {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* Hero Info Section */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.system-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.system-prompt {
    color: var(--accent-secondary);
    font-weight: 700;
}

.typing-text {
    overflow: hidden;
    border-right: 2px solid var(--accent-secondary);
    animation: typing 3s steps(40) infinite, blink 1s infinite;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.name-display {
    font-family: 'Monaco', monospace;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.name-prefix {
    color: #ff6b9d;
    font-size: 1.2rem;
}

.name-suffix {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.role-definition {
    background: var(--bg-primary);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.code-line {
    margin-bottom: 0.3rem;
}

.keyword { color: #ff6b9d; }
.function { color: #ffd93d; }
.variable { color: #c9d1d9; }
.string { color: #98d982; }
.indent { color: transparent; }

/* Capability Matrix */
.capability-matrix {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .capability-matrix {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.matrix-header {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.capability-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.capability-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .capability-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.capability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.capability-item:hover {
    transform: translateY(-2px);
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.capability-item:hover::before {
    left: 100%;
}

.cap-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    flex: 1;
}

.cap-bar {
    flex: 1;
    height: 6px;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 3px;
    margin: 0 1rem;
    overflow: hidden;
    position: relative;
}

.cap-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.cap-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: shimmer 2s infinite;
}

.cap-value {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

/* Matrix Status Section */
.matrix-status {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-secondary);
    animation: pulse 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Action Interface */
.action-interface {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.interface-header {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Network Connections */
.network-connections {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.network-header {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes typing {
    0%, 50% { width: 0; }
    100% { width: 100%; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0 2rem;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 30;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding: 0;
    position: relative;
    z-index: 30;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    min-height: 55px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
    position: relative;
    z-index: 20;
    cursor: pointer;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
}

.social-btn i {
    font-size: 1.1rem;
}



.btn-accent:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* AI Capabilities */
.ai-capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent any overflow */
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.matrix-title {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #00ffff;
    font-weight: 600;
}

.matrix-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
}

.matrix-indicator.pulsing {
    animation: pulse 2s infinite;
}

.capability-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.capability-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 0.5rem;
}

.cap-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cap-bar {
    height: 4px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.cap-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.cap-value {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent-primary);
    min-width: 30px;
    text-align: right;
}

.ai-terminal {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    max-height: none; /* Ensure no height restrictions */
    width: 100%; /* Ensure full width */
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .ai-terminal {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.terminal-header {
    background: rgba(26, 26, 26, 0.6);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

:root[data-theme="light"] .terminal-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 0.3rem;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27ca3f; }

.terminal-title {
    font-size: 0.7rem;
    color: #00ffff;
    margin-left: auto;
}

.terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow: visible; /* Ensure no scrollbar */
    width: 100%;
}

.code-line {
    margin-bottom: 0.3rem;
}

.prompt {
    color: #00ff00;
    margin-right: 0.5rem;
}

.command {
    color: #ffffff;
}

.string {
    color: var(--accent-primary);
}

.output {
    margin-left: 1rem;
}

.success {
    color: var(--accent-secondary);
}

.metric {
    color: var(--accent-primary);
}

.typing-cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    will-change: transform;
    transform: translateZ(0); /* Create new stacking context for better performance */
}

.achievement-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.4);
}

.achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
}

.metric-trend {
    font-size: 1.2rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
    animation: pulse 2s infinite;
}

.metric-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.metric-badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-detail {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.achievement-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.floating-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.floating-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* About Section */
.about {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 120px;
    margin-top: 0;
    z-index: 2;
    min-height: 100vh;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

/* Technical Stack Section */
.tech-stack-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    position: relative;
}

.section-divider {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.divider-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.divider-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .story-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.story-card {
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: transform, opacity;
    transform: translateZ(0); /* Hardware acceleration */
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced scroll animations */
.animate-in {
    animation-play-state: running !important;
}

/* Smoother transitions for all interactive elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, button, .btn, .social-btn, .tech-item, .story-card, .achievement-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover states */
.story-card:hover, .achievement-item:hover {
    filter: brightness(1.1);
}

/* Simple, clean styling */
/* Professional experience cards */

.story-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.25);
}

.story-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.story-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.story-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.story-card p {
    line-height: 1.7;
    color: #cbd5e1;
}

.tech-stack {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    height: fit-content;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease-out 0.4s forwards;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .tech-stack {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-stack h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    text-align: center;
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-category {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.tech-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-category h4 i {
    color: var(--accent-primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tech-item:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-item:hover::before {
    left: 100%;
}

.achievement-item:nth-child(1) { animation-delay: 0.5s; }
.achievement-item:nth-child(2) { animation-delay: 0.6s; }
.achievement-item:nth-child(3) { animation-delay: 0.7s; }
.achievement-item:nth-child(4) { animation-delay: 0.8s; }

.achievement-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.25), 0 5px 15px rgba(15, 23, 42, 0.3);
    background: rgba(26, 26, 26, 0.7);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.3);
    flex-shrink: 0;
}

.achievement-icon i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.achievement-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.achievement-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Experience Section */
.experience {
    background: var(--bg-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.company-logo {
    width: 45px;
    height: 45px;
    object-fit: scale-down;
    border-radius: 50%;
    padding: 5px;
    background: white;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    width: calc(50% - 2rem);
    margin: 0 2rem;
    position: relative;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
}

:root[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.timeline-content h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-list {
    list-style: none;
    margin-top: 1rem;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

:root[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: transparent;
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 2rem;
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-status.internal {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-primary);
}

.project-status i {
    font-size: 0.65rem;
}

.project-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.project-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-primary);
}

.add-project {
    border: 2px dashed #667eea;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.add-project:hover {
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.add-project-content h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(26, 26, 26, 0.7);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.4);
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-item {
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.skill-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5), 0 2px 8px rgba(168, 85, 247, 0.3);
}

.skill-item:hover::before {
    width: 200px;
    height: 200px;
}

/* ========================================
   VISUALIZATION SECTIONS
   ======================================== */

/* Pipeline Visualization Section */
.pipeline-viz-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin: 0;
    border-top: 1px solid rgba(251, 191, 36, 0.05);
    border-bottom: 1px solid rgba(251, 191, 36, 0.05);
}

.pipeline-viz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.pipeline-viz-section .section-header {
    margin-bottom: 60px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pipeline-viz-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.pipeline-viz-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pipeline-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 60px 0;
    flex-wrap: wrap;
    position: relative;
}

.pipeline-stage {
    flex: 1;
    min-width: 180px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: stageAppear 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pipeline-stage:nth-child(1) { animation-delay: 0.1s; }
.pipeline-stage:nth-child(2) { animation-delay: 0.2s; }
.pipeline-stage:nth-child(3) { animation-delay: 0.3s; }
.pipeline-stage:nth-child(4) { animation-delay: 0.4s; }
.pipeline-stage:nth-child(5) { animation-delay: 0.5s; }
.pipeline-stage:nth-child(6) { animation-delay: 0.6s; }

@keyframes stageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

:root[data-theme="light"] .stage-icon {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.stage-icon i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.pipeline-stage:hover .stage-icon {
    transform: scale(1.05);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .pipeline-stage:hover .stage-icon {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.stage-content {
    text-align: center;
    padding: 0 10px;
    flex-grow: 1;
}

.stage-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stage-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.stage-connector {
    position: absolute;
    right: -50px;
    top: 40px;
    width: 100px;
    height: 50px;
    z-index: 1;
}

.connector-arrow {
    width: 100%;
    height: 100%;
}

.pipeline-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.metric-card {
    text-align: center;
    padding: 30px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .metric-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.metric-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2);
    cursor: pointer;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.metric-card:hover .metric-value {
    color: var(--accent-secondary);
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    transition: all 0.3s ease;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Agentic AI Visualization Section */
.agentic-viz-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin: 0;
    border-top: 1px solid rgba(251, 191, 36, 0.05);
    border-bottom: 1px solid rgba(251, 191, 36, 0.05);
}

.agentic-viz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.agentic-viz-section .section-header {
    margin-bottom: 60px;
}

.agentic-viz-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.agentic-viz-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@keyframes bgShift {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Shared visualization section styling */
.pipeline-viz-section .container,
.agentic-viz-section .container,
.tech-radar-section .container,
.dag-viz-section .container {
    position: relative;
    z-index: 1;
}

/* Better section transitions */
.pipeline-viz-section,
.agentic-viz-section,
.tech-radar-section,
.dag-viz-section {
    position: relative;
}

.pipeline-viz-section::after,
.agentic-viz-section::after,
.tech-radar-section::after,
.dag-viz-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(251, 191, 36, 0.5) 50%, 
        transparent 100%
    );
}

.agent-architecture {
    position: relative;
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.agent-layer {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.agent-node {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: nodeAppear 0.6s ease forwards;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .agent-node {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.orchestrator-layer .agent-node {
    animation-delay: 0.2s;
    min-width: 280px;
}

.workers-layer .agent-node {
    animation-delay: 0.4s;
    min-width: 250px;
}

.workers-layer .agent-node:nth-child(1) { animation-delay: 0.4s; }
.workers-layer .agent-node:nth-child(2) { animation-delay: 0.5s; }
.workers-layer .agent-node:nth-child(3) { animation-delay: 0.6s; }

@keyframes nodeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.agent-node:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.3);
}

.orchestrator {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(26, 26, 26, 0.7);
}

.orchestrator:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.2);
}

.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .node-icon {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.node-icon i {
    font-size: 1.8rem;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orchestrator .node-icon {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .orchestrator .node-icon {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.orchestrator .node-icon i {
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-node:hover .node-icon {
    transform: rotate(360deg) scale(1.1);
}

.node-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.node-subtitle {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.node-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.connection-lines {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.agent-connections {
    width: 100%;
    height: 100%;
}

.connection-path {
    stroke-dasharray: 5, 5;
    animation: dashAnimation 2s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -10;
    }
}

.agent-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-3px);
}

.feature-badge i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Tech Radar Visualization Section */
.tech-radar-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin: 0;
    border-top: 1px solid rgba(251, 191, 36, 0.05);
    border-bottom: 1px solid rgba(251, 191, 36, 0.05);
}

.tech-radar-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: transparent;
}

.tech-radar-section .section-header {
    margin-bottom: 60px;
}

.tech-radar-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-radar-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@keyframes radarPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.radar-container {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.radar-chart {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.radar-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

.radar-polygon {
    animation: radarScan 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes radarScan {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.radar-point {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px currentColor);
}

.radar-point:hover {
    r: 8;
    filter: drop-shadow(0 0 8px currentColor);
}

.radar-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.radar-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.radar-label:hover {
    transform: scale(1.1);
    z-index: 10;
}

.label-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.label-dot.ml { background: var(--accent-primary); }
.label-dot.cloud { background: var(--accent-primary); }
.label-dot.data { background: var(--accent-primary); }
.label-dot.devops { background: var(--accent-primary); }
.label-dot.backend { background: var(--accent-primary); }
.label-dot.frontend { background: var(--accent-primary); }

.label-level {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-top: 2px;
}

.tech-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
    min-width: 400px;
}

.tech-detail-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

:root[data-theme="light"] .tech-detail-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.tech-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.tech-detail-card:hover::before {
    left: 100%;
}

.tech-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 12px 48px rgba(251, 191, 36, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .tech-detail-card:hover {
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.tech-detail-card.ml { border-color: rgba(251, 191, 36, 0.2); }
.tech-detail-card.cloud { border-color: rgba(251, 191, 36, 0.2); }
.tech-detail-card.data { border-color: rgba(251, 191, 36, 0.2); }
.tech-detail-card.devops { border-color: rgba(251, 191, 36, 0.2); }
.tech-detail-card.backend { border-color: rgba(251, 191, 36, 0.2); }
.tech-detail-card.frontend { border-color: rgba(251, 191, 36, 0.2); }

.tech-detail-card.ml:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }
.tech-detail-card.cloud:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }
.tech-detail-card.data:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }
.tech-detail-card.devops:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }
.tech-detail-card.backend:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }
.tech-detail-card.frontend:hover { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-list span {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-list span:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.tech-detail-card .tech-list span {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--accent-primary);
}

/* DAG Workflow Visualization Section */
.dag-viz-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin: 0;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.dag-viz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.dag-viz-section .section-header {
    margin-bottom: 60px;
}

.dag-viz-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dag-viz-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@keyframes dagBgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.dag-workflow {
    max-width: 600px;
    margin: 60px auto;
    position: relative;
}

.dag-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.dag-row.parallel-row {
    gap: 15px;
}

.dag-task {
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-width: 160px;
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation: taskSlideIn 0.5s ease forwards;
    position: relative;
    cursor: pointer;
}

.dag-task:nth-child(1) { animation-delay: 0.1s; }
.dag-task:nth-child(2) { animation-delay: 0.2s; }
.dag-task:nth-child(3) { animation-delay: 0.3s; }

@keyframes taskSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dag-task:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2);
}

.task-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.task-status.success {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.task-status.running {
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

.task-status.pending {
    background: var(--text-muted);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.task-status.failed {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.task-content {
    text-align: center;
}

.task-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .task-icon {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.task-icon i {
    font-size: 1.3rem;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dag-task:hover .task-icon {
    transform: rotate(360deg) scale(1.1);
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.task-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dag-connector-down {
    display: flex;
    justify-content: center;
    margin: 0;
    height: 30px;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: var(--accent-primary);
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--accent-primary);
}

.connector-line.multi {
    width: 2px;
    height: 100%;
    background: var(--accent-primary);
}

.connector-line.multi::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--accent-primary);
}

.dag-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-item .task-status {
    position: static;
    margin: 0;
}

/* Responsive Design for Visualizations */
/* Tablet & iPad Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .pipeline-flow {
        gap: 1rem;
    }
    
    .pipeline-stage {
        min-width: 160px;
    }
    
    .stage-content h3 {
        font-size: 1rem;
    }
    
    .stage-content p {
        font-size: 0.8rem;
    }
    
    .connection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metric-card {
        min-width: 180px;
    }
    
    .tech-detail-card {
        min-width: 280px;
    }
}

@media (max-width: 1024px) {
    .pipeline-flow {
        gap: 10px;
    }
    
    .stage-connector {
        display: none;
    }
    
    .pipeline-stage {
        min-width: 150px;
    }
    
    .agent-layer {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .connection-lines {
        display: none;
    }
    
    .radar-container {
        flex-direction: column;
    }
    
    .tech-details-grid {
        grid-template-columns: 1fr;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Better mobile navigation */
    .nav-menu {
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu li {
        padding: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(251, 191, 36, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover, .nav-link:focus {
        background: rgba(251, 191, 36, 0.1);
        padding-left: 2.5rem;
    }
    
    .nav-controls {
        padding: 1rem 2rem;
        border-top: 1px solid rgba(251, 191, 36, 0.1);
    }
    

    
    .pipeline-viz-section,
    .agentic-viz-section,
    .dag-viz-section,
    .tech-radar-section {
        padding: 60px 0;
        margin: 40px 0;
    }
    
    .pipeline-flow {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    
    .pipeline-stage {
        min-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .stage-connector {
        display: none;
    }
    
    .pipeline-stage::after {
        content: '';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 1.5rem;
        background: transparent;
    }
    
    .pipeline-stage:last-child::after {
        display: none;
    }
    
    .stage-icon {
        width: 70px;
        height: 70px;
    }
    
    .stage-icon i {
        font-size: 1.5rem;
    }
    
    .pipeline-metrics {
        gap: 1rem;
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .metric-card {
        width: 100%;
        min-width: auto;
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }
    
    .metric-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }
    
    .metric-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metric-value {
        font-size: 2rem;
        line-height: 1;
    }
    
    .metric-label {
        font-size: 0.9rem;
        margin-top: 4px;
    }
    
    .agent-node {
        min-width: 100% !important;
    }
    
    .agent-features {
        gap: 10px;
    }
    
    .feature-badge {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .dag-row.parallel-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .dag-task {
        min-width: 100%;
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Touch-friendly sizing */
    .pipeline-stage,
    .metric-card,
    .agent-node,
    .dag-task,
    .tech-detail-card,
    .project-card {
        min-height: 44px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(251, 191, 36, 0.1);
    }
    
    /* Improve readability on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Better spacing */
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .dag-legend {
        gap: 15px;
    }
    
    .radar-chart {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
    
    .radar-label {
        font-size: 0.75rem;
    }
    
    .tech-details-grid {
        gap: 15px;
    }
    
    .tech-detail-card {
        padding: 15px;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
}

/* AI Terminal */
.ai-terminal {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
    border: 1px solid #333;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27ca3f; }

.terminal-title {
    color: #ccc;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1.5rem;
    background: var(--bg-primary);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}

.line-number {
    color: #666;
    margin-right: 1rem;
    user-select: none;
    min-width: 20px;
}

.keyword { color: #ff6b9d; }
.class-name { color: #61dafb; }
.function { color: #ffd93d; }
.variable { color: #c9d1d9; }
.string { color: #98d982; }
.boolean { color: #ff7b72; }
.indent { color: transparent; }

.cursor {
    color: #00ff88;
    animation: blink 1s infinite;
}

.typing-animation {
    /* Remove problematic animation that causes vertical movement */
    min-height: 1.5em; /* Fixed height to prevent layout shifts */
    display: block;
    overflow: hidden;
}

.typing-animation .string {
    display: inline;
}

@keyframes typewriter {
    /* Disable the old animation */
}

/* Connection Nodes */
.connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.connection-node {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .connection-node {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.connection-node:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}

.connection-node .node-header {
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 26, 0.7);
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    flex-direction: row !important;
}

.node-header {
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 26, 0.7);
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    flex-direction: row !important;
}

.connection-node .node-icon {
    width: 32px !important;
    height: 32px !important;
    background: rgba(26, 26, 26, 0.6) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    margin: 0 !important;
}

:root[data-theme="light"] .connection-node .node-icon {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.connection-node:hover .node-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .connection-node:hover .node-icon {
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.connection-node .node-icon i {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

:root[data-theme="light"] .connection-node .node-icon i {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.connection-node .node-status {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: var(--accent-secondary);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-indicator.processing {
    background: var(--text-muted);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.node-content {
    padding: 1.5rem;
}

.node-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.node-address {
    color: var(--accent-primary);
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.node-metrics {
    display: flex;
    gap: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric i {
    color: var(--text-muted);
}

.node-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.node-action:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #93c5fd;
}

.node-action.disabled {
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    cursor: default;
}

/* Collaboration Stats */
.collaboration-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .collaboration-stats {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .stat-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #000000;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-content p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #93c5fd;
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
    background: var(--accent-primary);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* Desktop optimizations */
@media (min-width: 1024px) {
    .hero-container {
        min-height: 80vh;
    }
    
    .hero-visual {
        flex-direction: row;
        gap: 2rem;
        max-width: 800px;
        margin: 3rem auto 0;
    }
    
    .achievement-card {
        flex: 1;
        min-width: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: calc(100vh + 200px);
    }
    
    .hero-container {
        min-height: 60vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin: 2rem 0 1.5rem;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    /* Technical Visualizations - Mobile Responsive */
    .tech-stack-section {
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .section-divider {
        margin-bottom: 2rem;
    }
    
    .divider-title {
        font-size: 1.5rem;
    }
    
    .divider-description {
        font-size: 1rem;
    }
    
    /* Compact Visualizations Mobile */
    .viz-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .inline-viz-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Mobile Hero Styles */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .ai-status-bar {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0.8rem;
    }
    
    .status-item {
        font-size: 0.7rem;
        justify-content: space-between;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .ai-capabilities {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-container {
        max-width: 280px;
        margin: 0 auto;
        padding: 1rem;
    }
    
    .profile-border {
        width: 150px;
        height: 150px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .name-display {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .name-prefix, .name-suffix {
        font-size: 0.9rem;
    }
    
    .role-definition {
        font-size: 0.75rem;
        padding: 0.8rem;
        margin: 0 -10px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .capability-item {
        padding: 0.6rem;
    }
    
    .cap-icon {
        font-size: 1.2rem;
        width: 30px;
    }
    
    .cap-label {
        font-size: 0.8rem;
    }
    
    .level-text {
        font-size: 0.65rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .social-btn {
        min-width: auto;
        padding: 0.6rem 0.8rem;
    }
    
    .social-icon {
        width: 25px;
        height: 25px;
    }
    
    .social-label {
        font-size: 0.8rem;
    }
    
    .social-status {
        font-size: 0.65rem;
    }
    
    .hero-visual {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        order: 1;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .achievement-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 1.2rem;
        min-height: auto;
    }
    
    .achievement-number {
        font-size: 1.8rem;
    }
    
    .achievement-card h4 {
        font-size: 1rem;
    }
    
    .achievement-card p {
        font-size: 0.85rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    right: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    }
    
    :root[data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    :root[data-theme="light"] .nav-link {
        color: #000000;
    }
    
    .nav-menu.active {
    left: 0;
    box-shadow: 0 10px 27px rgba(0,0,0,0.5);
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    }
    
    .nav-link:hover {
        background: rgba(251, 191, 36, 0.1);
    }
    

    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        order: 1;
        margin-top: 2rem;
    }
    
    .hero-content {
        order: 0;
    }
    
    .floating-card:nth-child(2),
    .floating-card:nth-child(3) {
        margin: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-marker {
        left: 20px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-container {
        padding: 0 20px;
        gap: 2rem;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-controls {
        gap: 1.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 70px;
        gap: 0.4rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        right: 0;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(15, 23, 42, 0.05);
        backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(251, 191, 36, 0.1);
        padding: 2rem 0;
        margin: 0;
        justify-content: flex-start;
        z-index: 1000;
    }
    
    :root[data-theme="light"] .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    :root[data-theme="light"] .nav-link {
        color: #000000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .tech-stack {
        order: -1;
    }
    
    .achievements-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .achievement-item {
        padding: 1.5rem;
    }
    
    .tech-categories {
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .project-card,
    .skill-category,
    .stat {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--bg-primary);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
}

.education-item {
    position: relative;
    margin: 3rem 0;
    width: 100%;
}

.education-item:nth-child(odd) .education-content {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    padding-right: 2rem;
    width: 48%;
}

.education-item:nth-child(even) .education-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    padding-left: 2rem;
    width: 48%;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.education-content {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.education-date {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-logo {
    margin-bottom: 1rem;
}

.university-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.education-content h3 {
    color: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.education-content h4 {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievement-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.education-description {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-item {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Certifications Section */
.certifications {
    padding: 100px 0;
    background: var(--bg-primary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certification-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.cert-header {
    margin-bottom: 1.5rem;
}

.cert-header i {
    font-size: 3rem;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.cert-header h3 {
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
}

.cert-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cert-details {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.cert-id {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.cert-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-link:hover {
    color: var(--accent-primary);
}

.cert-link i {
    font-size: 0.8rem;
}

.cert-status {
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsive Design for Education and Certifications */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 20px;
    }
    
    .education-item:nth-child(odd) .education-content,
    .education-item:nth-child(even) .education-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        padding-left: 3rem;
        padding-right: 1rem;
    }
    
    .education-item::before {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact section mobile styles */
    .ai-terminal {
        margin: 0 -10px 2rem;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .connection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .connection-node {
        margin: 0 -10px;
    }
    
    .node-header {
        padding: 0.8rem 1rem;
        justify-content: flex-start !important;
        gap: 0.75rem;
    }
    
    .node-content {
        padding: 1rem;
    }
    
    .node-address {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .collaboration-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem -10px 0;
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    /* AI Game Mobile Responsive */
    .ai-game-container {
        width: 95vw;
        min-width: 280px;
        max-height: 85vh;
        padding: 16px;
        border-radius: 16px;
    }
    
    .ai-game-header h3 {
        font-size: 1rem;
    }
    
    .ai-game-header h3::after {
        font-size: 0.6rem;
        margin-top: 2px;
    }
    
    .close-ai-game {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .neural-nodes {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
        margin: 16px 0;
        min-height: 110px;
        padding: 14px;
    }
    
    .neural-node {
        height: 12px;
        aspect-ratio: 1;
        font-size: 0.6rem;
    }
}

/* Extra Small Mobile (max 400px) */
@media (max-width: 400px) {
    .ai-game-container {
        width: 98vw;
        min-width: 260px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .neural-nodes {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        min-height: 100px;
        padding: 10px;
        margin: 12px 0;
    }
    
    .neural-node {
        height: 10px;
        aspect-ratio: 1;
        font-size: 0.5rem;
        border-width: 0.5px;
    }
    
    .ai-game-header h3 {
        font-size: 0.9rem;
    }
    
    .ai-game-header h3::after {
        font-size: 0.55rem;
        margin-top: 1px;
    }
    
    .close-ai-game {
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }
}

/* Tiny Mobile (max 320px) */
@media (max-width: 320px) {
    .ai-game-container {
        width: 99vw;
        min-width: 240px;
        padding: 10px;
    }
    
    .neural-nodes {
        grid-template-columns: repeat(6, 1fr);
        gap: 3px;
        min-height: 90px;
        padding: 8px;
        margin: 10px 0;
        border-radius: 12px;
    }
    
    .neural-node {
        height: 8px;
        aspect-ratio: 1;
        font-size: 0.4rem;
        border-width: 0.5px;
        border-radius: 50%;
    }
    
    .ai-game-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .ai-game-header h3 {
        font-size: 0.85rem;
    }
    
    .ai-game-header h3::after {
        font-size: 0.5rem;
        margin-top: 0;
    }
    
    .close-ai-game {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        padding: 6px;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

