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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

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

/* Color Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #111111;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-primary: 0 10px 40px rgba(59, 130, 246, 0.1);
    --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-primary: 0 10px 40px rgba(37, 99, 235, 0.15);
    --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-description {
    color: #334155;
    text-shadow: none;
}


/* Dark Theme (Default) */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #111111;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-primary: 0 10px 40px rgba(59, 130, 246, 0.1);
    --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.theme-toggle i {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

#hero-neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.hero-content-centered h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 15px rgba(59, 130, 246, 0.4);
}

.name-highlight {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-text {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(59, 130, 246, 0.3);
}

.hero-description {
    font-size: 1.4rem;
    color: #c1c1c8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Neural Network Visualization */
.neural-network {
    position: relative;
    height: 400px;
    width: 100%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stream-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 1px;
    opacity: 0;
}

.stream-1 {
    top: 30%;
    left: 0;
    width: 80%;
    animation: stream-flow-1 4s ease-in-out infinite;
}

.stream-2 {
    top: 50%;
    right: 0;
    width: 70%;
    animation: stream-flow-2 5s ease-in-out infinite 1s;
}

.stream-3 {
    bottom: 30%;
    left: 10%;
    width: 60%;
    animation: stream-flow-3 3.5s ease-in-out infinite 2s;
}

.pulse-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    animation: neural-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

@keyframes stream-flow-1 {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(20%); }
}

@keyframes stream-flow-2 {
    0% { opacity: 0; transform: translateX(100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-20%); }
}

@keyframes stream-flow-3 {
    0% { opacity: 0; transform: translateX(-50%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(50%); }
}

@keyframes neural-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
        box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.6);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    margin: 10px auto;
    animation: scroll-bounce 2s infinite;
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.projects-hint {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    margin-top: 1rem !important;
    font-style: italic;
    opacity: 0.8;
}

.about-cta {
    margin-top: 1.5rem;
    text-align: center;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    justify-items: stretch;
}

.skill-group {
    background: var(--bg-card);
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-secondary);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.12);
}

.skill-group h3 {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-group h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

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

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag.expert {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: none;
}

.skill-tag.advanced {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: none;
}

.skill-tag.intermediate {
    background: rgba(161, 161, 170, 0.1);
    color: #a1a1aa;
    border: 1px solid rgba(161, 161, 170, 0.2);
    box-shadow: none;
}

.skill-tag.beginner {
    background: rgba(161, 161, 170, 0.08);
    color: #71717a;
    border: 1px solid rgba(161, 161, 170, 0.15);
    box-shadow: none;
}

.skill-tag:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Competitive Programming Stats */
.competitive-stats {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.competitive-stats h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: var(--bg-primary);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.kids-in-motion .stat-label {
    color: #ede9e7;
    opacity: 0.9;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.project-image {
    height: 200px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 8rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 8px;
    padding: 0.5rem;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.3rem;
    transition: all 0.3s ease, opacity 0.15s ease;
}

.project-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease, opacity 0.15s ease;
}

.project-image:hover .project-logo,
.project-image.slideshow-active .project-logo {
    opacity: 0;
    transform: scale(0.95);
}

.project-image:hover .project-gallery,
.project-image.slideshow-active .project-gallery {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

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

.project-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* YouTube Section */
.youtube-section {
    background: var(--bg-primary);
    padding: 6rem 0;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-secondary);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.video-placeholder i {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-placeholder small {
    opacity: 0.7;
    font-size: 0.9rem;
}

.video-info h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-info h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #ff0000;
    border-radius: 2px;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.youtube-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.youtube-stat {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.youtube-stat:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.youtube-stat i {
    color: #ff0000;
    font-size: 1.2rem;
}

.youtube-stat span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Kids in Motion Section */
.kids-in-motion {
    background: linear-gradient(135deg, #2f506a 0%, #3a6587 100%);
    position: relative;
    color: #ffffff;
    padding: 3.5rem 0;
    overflow: hidden;
}

.kids-in-motion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 80, 106, 0.93) 0%, rgba(58, 101, 135, 0.88) 100%);
    z-index: 0;
}

.kids-in-motion .container {
    position: relative;
    z-index: 1;
}

.kids-in-motion-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.kids-in-motion-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.kids-in-motion-header p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
}

.kids-in-motion-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.kim-details {
    flex: 1 1 320px;
    background: rgba(237, 233, 231, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.kim-details h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.kim-details p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.kim-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kim-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.kim-stat-number {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
}

.kim-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.kim-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.kim-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.kim-links .btn-primary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.kim-links .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.kim-links .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.kim-links .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.kim-photo {
    flex: 0 1 240px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kim-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.kim-photo-caption {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

@media (max-width: 900px) {
    .kids-in-motion {
        padding: 3rem 0;
    }

    .kids-in-motion-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .kim-photo {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .kim-details {
        padding: 1.4rem;
    }

    .kim-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .kids-in-motion-header h2 {
        font-size: 2.1rem;
    }

    .kids-in-motion-header p {
        font-size: 0.95rem;
    }
}

/* Achievements Section */
.achievements {
    background: var(--bg-secondary);
}

.achievement-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(20% - 1.5rem);
    min-width: 220px;
    max-width: 320px;
}

.achievement-card[open] {
    box-shadow: var(--shadow-secondary);
    transform: translateY(-4px);
}

.achievement-card summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.achievement-card summary::-webkit-details-marker {
    display: none;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-indicator {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.achievement-card[open] .summary-indicator {
    transform: rotate(180deg);
}

.achievement-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.achievement-content {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.achievement-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.achievement-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.achievement-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.achievement-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.achievement-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.4rem;
}

.achievement-card li {
    color: var(--text-secondary);
    position: relative;
    line-height: 1.5;
}

.achievement-card li::before {
    content: '•';
    position: absolute;
    left: -1.4rem;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 1200px) {
    .achievement-card {
        flex: 1 1 calc(33.33% - 1.5rem);
    }
}

@media (max-width: 900px) {
    .achievement-card {
        flex: 1 1 calc(50% - 1.5rem);
    }
}

@media (max-width: 600px) {
    .achievement-card {
        flex: 1 1 100%;
    }
}


/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-left h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-left p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content-centered h1 {
        font-size: 3.5rem;
    }

    .subtitle-text {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-scroll {
        bottom: 20px;
        font-size: 0.9rem;
    }

    .hero-scroll span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        display: inline-block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-cta {
        margin-top: 1rem;
        padding: 0 20px;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .achievement-columns {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .youtube-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .video-info {
        order: 2;
    }

    .video-container {
        order: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-content-centered h1 {
        font-size: 2.8rem;
    }

    .subtitle-text {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-scroll {
        bottom: 15px;
        font-size: 0.8rem;
    }

    .hero-scroll span {
        max-width: 120px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .project-card,
    .achievement-card,
    .skill-category {
        margin: 0 10px;
    }

    /* Mobile slideshow improvements */
    .project-image {
        cursor: pointer;
    }

    .project-gallery {
        opacity: 1 !important;
    }

    .project-logo {
        opacity: 0.7 !important;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-cta {
        margin-top: 1.5rem;
        padding: 0 15px;
    }

    .about-cta .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
    }

    /* Neural Network Mobile */
    .neural-network {
        height: 300px;
        margin: 0 10px;
    }

    .pulse-ring {
        width: 60px;
        height: 60px;
    }

    .stream-line {
        height: 1px;
    }
}

/* Smooth Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

