/* ========================================
   CREATIVE PORTFOLIO - MODERN DESIGN
   ======================================== */

/* CSS Variables - Unique Color Palette */
:root {
    /* Primary Colors - Vibrant Purple/Blue Gradient */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    
    /* Backgrounds */
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --bg-light: #151b3b;
    --bg-card: #1a1f3a;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d0;
    --text-muted: #718096;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(102, 126, 234, 0.3);
    --shadow-xl: 0 20px 60px rgba(102, 126, 234, 0.4);
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('assets/ai-background.svg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    animation: fadeInBackground 2s ease-in-out;
}

@keyframes fadeInBackground {
    0% { opacity: 0; }
    100% { opacity: 0.9; }
}

/* Subtle premium grid + glow background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 18% 10%, rgba(102, 126, 234, 0.18), transparent 58%),
        radial-gradient(900px 520px at 85% 22%, rgba(240, 147, 251, 0.14), transparent 58%),
        linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: auto, auto, 80px 80px, 80px 80px;
    opacity: 0.55;
    z-index: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.logo-text {
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-text .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.nav-link:hover::before, .nav-link.active::before {
    left: 0;
    opacity: 0.15;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6.5rem 0 3rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left { padding-right: 1rem; }
.hero-right { display:flex; justify-content:center; align-items:center; }

.hero-title-wrap { display:flex; align-items:flex-start; gap:1rem; }
.hero-title { 
    font-family: var(--font-heading); 
    font-size: 3.2rem; 
    line-height:1.2; 
    margin:0;
}

.hero-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-hb { 
    background: linear-gradient(135deg,var(--primary),var(--accent)); 
    color:#fff; 
    width:54px; 
    height:54px; 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    border-radius:12px; 
    font-weight:700; 
    box-shadow:var(--shadow-lg);
    animation: hbPulse 2s ease-in-out infinite;
}

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

.hero-subtitle { margin: 0.6rem 0; color: var(--accent); font-size:1.1rem; }
.hero-description { color: var(--text-secondary); margin-bottom:1rem; max-width:680px; }
.hero-ctas { display:flex; gap:0.8rem; margin-bottom:0.9rem; }
.hero-ctas { flex-wrap: wrap; align-items: center; }

.hero-socials {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin: 0.2rem 0 0.6rem;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-btn:hover::before {
    opacity: 0.1;
}

.icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(102, 126, 234, 0.55);
    box-shadow: 0 14px 40px rgba(102, 126, 234, 0.22);
    background: rgba(102, 126, 234, 0.10);
}

.icon-btn:focus-visible {
    outline: 3px solid rgba(240, 147, 251, 0.35);
    outline-offset: 3px;
}
.hero-highlights { display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:0.6rem; }
.highlight-inline { 
    background: rgba(255,255,255,0.02); 
    padding:6px 10px; 
    border-radius:999px; 
    color:var(--text-secondary); 
    font-size:0.9rem; 
    border:1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-inline:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Constrain hero content and keep visual/profile on the right column */
.hero-content { max-width: 720px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.profile-card { max-width: 360px; margin: 0 auto; }

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.28;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -10%;
    left: -10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Creative Floating Elements */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.3;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.4;
    animation: particleFloat 12s ease-in-out infinite;
}

.particle-1 {
    width: 6px;
    height: 6px;
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.particle-2 {
    width: 8px;
    height: 8px;
    top: 65%;
    left: 85%;
    animation-delay: 3s;
    background: var(--gradient-accent);
}

.particle-3 {
    width: 5px;
    height: 5px;
    top: 45%;
    left: 70%;
    animation-delay: 6s;
}

.particle-4 {
    width: 7px;
    height: 7px;
    top: 85%;
    left: 25%;
    animation-delay: 1s;
    background: var(--gradient-success);
}

.particle-5 {
    width: 9px;
    height: 9px;
    top: 35%;
    left: 95%;
    animation-delay: 4s;
}

.particle-7 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 80%;
    animation-delay: 8s;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.particle-8 {
    width: 6px;
    height: 6px;
    top: 90%;
    left: 70%;
    animation-delay: 9s;
    background: var(--gradient-success);
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(0.9) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(5px) scale(1.05) rotate(270deg);
        opacity: 0.7;
    }
}

/* Neural Network Connections */
.neural-network {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--primary);
    animation: nodePulse 3s ease-in-out infinite;
}

.node-1 { top: 15%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; left: 60%; animation-delay: 0.5s; background: var(--gradient-accent); }
.node-3 { top: 35%; left: 40%; animation-delay: 1s; }
.node-4 { top: 50%; left: 70%; animation-delay: 1.5s; background: var(--gradient-success); }
.node-5 { top: 60%; left: 30%; animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.connection {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.3;
    animation: connectionFlow 4s ease-in-out infinite;
}

.connection-1 { animation-delay: 0s; }
.connection-2 { animation-delay: 1s; stroke: var(--accent); }
.connection-3 { animation-delay: 2s; }
.connection-4 { animation-delay: 3s; stroke: var(--success); }

@keyframes connectionFlow {
    0%, 100% {
        stroke-dasharray: 10 20;
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
    50% {
        stroke-dasharray: 20 10;
        stroke-dashoffset: -15;
        opacity: 0.6;
    }
}

/* Energy Waves */
.energy-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: waveExpand 6s ease-out infinite;
}

.wave-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.wave-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.wave-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
    background: radial-gradient(circle, var(--success) 0%, transparent 70%);
}

@keyframes waveExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Data Flow Streams */
.data-streams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 1px;
    animation: dataFlow 8s linear infinite;
}

.stream-1 {
    width: 200px;
    top: 20%;
    left: -200px;
    animation-delay: 0s;
}

.stream-2 {
    width: 300px;
    top: 40%;
    right: -300px;
    animation-delay: 2s;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stream-3 {
    width: 250px;
    top: 60%;
    left: -250px;
    animation-delay: 4s;
    background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.stream-4 {
    width: 180px;
    top: 80%;
    right: -180px;
    animation-delay: 6s;
}

@keyframes dataFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Pulsing Energy Orbs */
.energy-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.energy-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: energyPulse 4s ease-in-out infinite;
}

.orb-a {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.orb-b {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 15%;
    animation-delay: 1.5s;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb-c {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    background: radial-gradient(circle, var(--success) 0%, transparent 70%);
}

@keyframes energyPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Geometric Grid */
.geometric-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: gridPulse 6s ease-in-out infinite;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.h1 { top: 25%; animation-delay: 0s; }
.h2 { top: 50%; animation-delay: 2s; }
.h3 { top: 75%; animation-delay: 4s; }
.v1 { left: 25%; animation-delay: 1s; }
.v2 { left: 50%; animation-delay: 3s; }
.v3 { left: 75%; animation-delay: 5s; }

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.3;
        transform: scaleX(1.2);
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeMorph 10s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: var(--accent);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    bottom: 25%;
    left: 10%;
    animation-delay: 3s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: var(--primary);
    clip-path: circle(50% at 50% 50%);
    top: 50%;
    right: 25%;
    animation-delay: 6s;
}

.shape-5 {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    top: 25%;
    left: 25%;
    animation-delay: 12s;
}

.shape-6 {
    width: 55px;
    height: 55px;
    background: var(--gradient-success);
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    bottom: 15%;
    left: 75%;
    animation-delay: 15s;
}

@keyframes shapeMorph {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.1;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
        opacity: 0.15;
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.08;
        clip-path: circle(50% at 50% 50%);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.12;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
}

/* Code Snippets */
.code-snippets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.code-line {
    position: absolute;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.3;
    animation: codeFloat 12s ease-in-out infinite;
    white-space: nowrap;
}

.line-1 {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.line-2 {
    top: 45%;
    right: 8%;
    animation-delay: 3s;
}

.line-3 {
    bottom: 35%;
    left: 15%;
    animation-delay: 6s;
}

.line-4 {
    bottom: 20%;
    right: 5%;
    animation-delay: 9s;
}

.line-5 {
    top: 35%;
    left: 70%;
    animation-delay: 12s;
    color: var(--primary);
}

.line-6 {
    bottom: 45%;
    right: 20%;
    animation-delay: 15s;
    color: var(--accent);
}

@keyframes codeFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(2deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) translateX(-5px) rotate(-1deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-15px) translateX(5px) rotate(1deg);
        opacity: 0.4;
    }
}

/* Interactive Particle System */
.particle-system {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleOrbit 15s linear infinite;
}

.dot-1 { top: 20%; left: 20%; animation-delay: 0s; }
.dot-2 { top: 30%; right: 25%; animation-delay: 2s; background: var(--accent); }
.dot-3 { bottom: 30%; left: 25%; animation-delay: 4s; background: var(--success); }
.dot-4 { top: 60%; right: 15%; animation-delay: 6s; }
.dot-5 { bottom: 20%; left: 60%; animation-delay: 8s; background: var(--accent); }
.dot-6 { top: 40%; left: 70%; animation-delay: 10s; background: var(--success); }
.dot-7 { bottom: 50%; right: 40%; animation-delay: 12s; }
.dot-8 { top: 70%; left: 40%; animation-delay: 14s; background: var(--primary); }

@keyframes particleOrbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* Morphing Background Blobs */
.morphing-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    filter: blur(40px);
    animation: blobMorph 20s ease-in-out infinite;
    opacity: 0.1;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -15%;
    animation-delay: 7s;
    background: linear-gradient(45deg, var(--accent), var(--success));
}

.blob-3 {
    width: 250px;
    height: 250px;
    bottom: -10%;
    left: 30%;
    animation-delay: 14s;
    background: linear-gradient(45deg, var(--success), var(--primary));
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        border-radius: 50% 50% 80% 20% / 80% 20% 50% 50%;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        border-radius: 80% 20% 50% 50% / 30% 70% 60% 40%;
        transform: scale(1.05) rotate(270deg);
    }
}

/* Circuit Pattern Overlay */
.circuit-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    animation: circuitFade 10s ease-in-out infinite;
}

@keyframes circuitFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Floating Data Points */
/* Geometric Flow Elements */
.geometric-flow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.flow-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    animation: geometricFlow 15s ease-in-out infinite;
}

.shape-a {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-b {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 20%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.1), rgba(74, 222, 128, 0.1));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.shape-c {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 25%;
    animation-delay: 10s;
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-d {
    width: 35px;
    height: 35px;
    top: 40%;
    right: 35%;
    animation-delay: 7s;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
}

/* Circuit Pattern */
.circuit-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Morphing Background Elements */
.morphing-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.morph-blob {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    animation: morphingBlob 20s ease-in-out infinite;
    filter: blur(20px);
}

.blob-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    animation-delay: 10s;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.08), rgba(74, 222, 128, 0.08));
}

.blob-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 25%;
    animation-delay: 15s;
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.08), rgba(102, 126, 234, 0.08));
}

@keyframes dataFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-5px) rotate(-3deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) translateX(5px) rotate(2deg);
        opacity: 0.9;
    }
}

@keyframes geometricFlow {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) rotate(180deg) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-25px) translateX(15px) rotate(270deg) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes morphingBlob {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
        opacity: 0.3;
    }
    25% {
        transform: scale(1.2) rotate(90deg);
        border-radius: 60% 40% 30% 70%;
        opacity: 0.5;
    }
    50% {
        transform: scale(0.8) rotate(180deg);
        border-radius: 30% 60% 70% 40%;
        opacity: 0.4;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        border-radius: 70% 30% 40% 60%;
        opacity: 0.6;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

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



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



.cursor-blink {
    animation: blink 1s infinite;
}

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



.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
}

/* Ensure no underline or unexpected decoration on social anchors */
.social-link, .social-link i {
    text-decoration: none !important;
}
.social-link:focus, .social-link:hover {
    text-decoration: none !important;
    outline: none;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

/* Modern hero showcase (replaces text-heavy hero visual card) */
.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 1.2rem;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 35px 120px rgba(0,0,0,0.55);
}

.hero-showcase > * { position: relative; z-index: 1; }

.showcase-glow {
    position: absolute;
    inset: -70px;
    background:
        radial-gradient(circle at 25% 20%, rgba(102, 126, 234, 0.40), transparent 55%),
        radial-gradient(circle at 70% 65%, rgba(240, 147, 251, 0.22), transparent 55%);
    filter: blur(38px);
    opacity: 0.9;
    z-index: 0;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.showcase-chip {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.10);
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #dbe4ff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: #b6fbd0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.showcase-radar {
    position: relative;
    height: 200px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 50%, rgba(10, 14, 39, 0.25), rgba(10, 14, 39, 0.55));
    border: 1px solid rgba(255,255,255,0.09);
    overflow: hidden;
    margin-bottom: 0.9rem;
}

/* When using the orbit showcase, make radar a bit shorter on small screens */
@media (max-width: 480px) {
    .showcase-orbits { height: 210px; }
    .orbit-2 { width: 235px; height: 235px; }

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

.showcase-radar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.12;
}

.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
}

.ring-1 { width: 70px; height: 70px; opacity: 0.7; }
.ring-2 { width: 130px; height: 130px; opacity: 0.45; }
.ring-3 { width: 190px; height: 190px; opacity: 0.25; }

.sweep {
    position: absolute;
    inset: -40px;
    background: conic-gradient(from 0deg, rgba(102,126,234,0.0), rgba(102,126,234,0.22), rgba(102,126,234,0.0));
    animation: radarSweep 3.8s linear infinite;
    opacity: 0.75;
}

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

.blip {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(240, 147, 251, 0.9);
    box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.35);
    animation: blipPulse 1.8s ease-in-out infinite;
}

.blip-1 { left: 22%; top: 38%; animation-delay: 0.1s; }
.blip-2 { left: 68%; top: 55%; background: rgba(102, 126, 234, 0.95); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35); animation-delay: 0.6s; }
.blip-3 { left: 55%; top: 26%; background: rgba(74, 222, 128, 0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35); animation-delay: 1.1s; }

@keyframes blipPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 currentColor; opacity: 0.95; }
    70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255,255,255,0.0); opacity: 1; }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.0); opacity: 0.9; }
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes chipReveal {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardSlideIn {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
}

@keyframes progressFill {
    0% { width: 0; }
    100% { width: var(--progress-width, 0%); }
}

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

@keyframes formFieldReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.showcase-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.metric {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(10, 14, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-k {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.metric-v {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
}

.showcase-terminal {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(5, 8, 22, 0.65);
}

/* Orbit animation (creative, minimal text) */
.showcase-orbits {
    position: relative;
    height: 220px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 45%, rgba(10, 14, 39, 0.15), rgba(10, 14, 39, 0.55));
    border: 1px solid rgba(255,255,255,0.09);
    overflow: hidden;
}

.showcase-orbits::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 260px at 30% 30%, rgba(102, 126, 234, 0.20), transparent 55%),
        radial-gradient(600px 260px at 70% 70%, rgba(240, 147, 251, 0.14), transparent 55%),
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    opacity: 0.25;
}

.core-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 20px 70px rgba(102, 126, 234, 0.35);
    border: 1px solid rgba(255,255,255,0.18);
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.11);
    animation: orbitSpin 9s linear infinite;
}

.orbit-1 { width: 180px; height: 180px; opacity: 0.9; }
.orbit-2 { width: 250px; height: 250px; opacity: 0.55; animation-duration: 14s; animation-direction: reverse; }

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

.node {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    transform: translate(-50%, -50%);
}

.node i { font-size: 1.25rem; color: rgba(255,255,255,0.92); }

/* Place nodes on the orbit perimeter */
.orbit-1 .n1 { left: 50%; top: 0%; }
.orbit-1 .n2 { left: 100%; top: 50%; }
.orbit-1 .n3 { left: 50%; top: 100%; }
.orbit-1 .n4 { left: 0%; top: 50%; }

.orbit-2 .n5 { left: 50%; top: 0%; }
.orbit-2 .n6 { left: 100%; top: 60%; }
.orbit-2 .n7 { left: 10%; top: 75%; }

.orbit-1 .n1 i { color: #60a5fa; }
.orbit-1 .n2 i { color: #61dafb; }
.orbit-1 .n3 i { color: #fca5a5; }
.orbit-1 .n4 i { color: #a78bfa; }
.orbit-2 .n5 i { color: #4ade80; }
.orbit-2 .n6 i { color: #fbbf24; }
.orbit-2 .n7 i { color: #93c5fd; }

/* Professional expertise section */
.showcase-expertise {
    padding: 1rem;
    background: rgba(10, 14, 39, 0.35);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.expertise-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.expertise-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.expertise-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .orbit, .sweep, .blip { animation: none !important; }
}

.terminal-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.terminal-top .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.85;
}

.terminal-top .dot.red { background: #ff5f57; }
.terminal-top .dot.yellow { background: #febc2e; }
.terminal-top .dot.green { background: #28c840; }

.terminal-title {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.terminal-code {
    margin: 0;
    padding: 0.85rem 0.9rem;
    color: #d6deff;
    font-size: 0.88rem;
    line-height: 1.5;
    overflow-x: auto;
}

.terminal-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 1.25rem;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 35px 120px rgba(0,0,0,0.55);
}

.hero-visual-card > * { position: relative; z-index: 1; }

.hero-visual-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.35), transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(240, 147, 251, 0.22), transparent 55%);
    filter: blur(35px);
    opacity: 0.85;
    z-index: 0;
}

.hero-visual-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hero-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 14px 40px rgba(102, 126, 234, 0.25);
}

.hero-visual-meta { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-visual-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.hero-visual-role { color: var(--text-secondary); font-size: 0.92rem; }

.hero-availability {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #b6fbd0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.hero-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.kv {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(10, 14, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kv-k {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.kv-v {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
}

.hero-visual-strip {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-visual-strip .pill {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.card-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
}

.profile-img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.status-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.floating-tech {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.tech-1 { top: 10%; left: -10%; animation-delay: 0s; color: #3776ab; }
.tech-2 { top: 20%; right: -10%; animation-delay: 1s; color: #61dafb; }
.tech-3 { bottom: 30%; left: -15%; animation-delay: 2s; color: var(--primary); }
.tech-4 { bottom: 20%; right: -5%; animation-delay: 3s; color: #68a063; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    margin: 0.5rem auto;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { height: 40px; opacity: 1; }
    50% { height: 20px; opacity: 0.5; }
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: 5rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about { 
    background: var(--bg-dark); 
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* About Section Gradient Orbs - Similar to Hero */
.about-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -5%;
    right: -5%;
    animation-delay: 0s;
    filter: blur(80px);
}

.about-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-accent);
    bottom: -5%;
    left: -5%;
    animation-delay: 3s;
    filter: blur(70px);
}

.about-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-success);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
    filter: blur(60px);
}

/* About Section Particles */
.about-particle-1 {
    width: 12px;
    height: 12px;
    top: 25%;
    left: 20%;
    animation-delay: 1s;
    background: var(--gradient-primary);
}

.about-particle-2 {
    width: 8px;
    height: 8px;
    top: 70%;
    right: 25%;
    animation-delay: 4s;
    background: var(--gradient-accent);
}

.about-particle-3 {
    width: 10px;
    height: 10px;
    bottom: 30%;
    left: 15%;
    animation-delay: 7s;
    background: var(--gradient-success);
}

.about-particle-4 {
    width: 6px;
    height: 6px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
    background: var(--gradient-primary);
}

/* About Section Neural Network */
.about-node-1 {
    top: 35%;
    left: 25%;
    animation-delay: 0s;
}

.about-node-2 {
    top: 65%;
    right: 30%;
    animation-delay: 2s;
}

.about-node-3 {
    bottom: 25%;
    left: 60%;
    animation-delay: 4s;
}

/* About Section Energy Waves */
.wave-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.wave-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    animation-delay: 4s;
    border-color: rgba(240, 147, 251, 0.3);
}

.about-grid { display:grid; grid-template-columns: 1fr 320px; gap:2.5rem; align-items:start; }
.about-right { display:flex; flex-direction:column; gap:1rem; }

.info-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(2,6,23,0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.35);
    background: linear-gradient(180deg, rgba(102,126,234,0.10), rgba(255,255,255,0.015));
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.28);
    color: var(--text-primary);
}

.info-body { display: flex; flex-direction: column; gap: 0.15rem; }
.info-title { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.info-text { color: var(--text-primary); font-size: 0.98rem; line-height: 1.35; }

.about-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:1.25rem; border-radius:12px; border:1px solid rgba(255,255,255,0.03); }

.about-ctas { margin-top:1rem; display:flex; gap:0.6rem; }

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out forwards;
}

.about-text:nth-child(1) { animation-delay: 0.2s; }
.about-text:nth-child(2) { animation-delay: 0.4s; }

.about-quote {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out 0.6s forwards;
}

.skill-chips { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top: 1rem; }
.chip {
    background: rgba(255,255,255,0.03);
    padding:6px 10px;
    border-radius:999px;
    color:var(--text-secondary);
    font-size:0.9rem;
    border:1px solid rgba(255,255,255,0.03);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: chipReveal 0.6s ease-out forwards;
}

.chip:nth-child(1) { animation-delay: 0.8s; }
.chip:nth-child(2) { animation-delay: 0.9s; }
.chip:nth-child(3) { animation-delay: 1.0s; }
.chip:nth-child(4) { animation-delay: 1.1s; }
.chip:nth-child(5) { animation-delay: 1.2s; }

.chip:hover {
    background: rgba(99,102,241,0.08);
    color:var(--text-primary);
    border-color: rgba(99,102,241,0.15);
    transform: translateY(-3px);
    animation: none;
}

.info-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(2,6,23,0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation: cardSlideIn 0.8s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.3s; }
.info-card:nth-child(2) { animation-delay: 0.5s; }
.info-card:nth-child(3) { animation-delay: 0.7s; }
.info-card:nth-child(4) { animation-delay: 0.9s; }

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.35);
    background: linear-gradient(180deg, rgba(102,126,234,0.10), rgba(255,255,255,0.015));
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.28);
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    animation: iconBounce 0.6s ease-in-out;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

/* About card & profile */

.about-card {
    display: block;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 8px 30px rgba(2,6,23,0.4);
}

.about-body { padding: 0; }

.about-extra { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.4s ease; opacity: 0; }
.about-extra.open { max-height: 200px; opacity: 1; }

.about-readmore { margin-top: 0.8rem; }

.skill-chips { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top: 1rem; }
.chip { background: rgba(255,255,255,0.03); padding:6px 10px; border-radius:999px; color:var(--text-secondary); font-size:0.9rem; border:1px solid rgba(255,255,255,0.03); }
.chip:hover { background: rgba(99,102,241,0.08); color:var(--text-primary); border-color: rgba(99,102,241,0.15); transform: translateY(-3px); }

.about-ctas { margin-top:1rem; display:flex; gap:0.75rem; }
.btn-outline { border:1px solid rgba(255,255,255,0.06); background:transparent; color:var(--text-primary); padding:10px 18px; border-radius:10px; text-decoration:none; }


.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    border-color: rgba(102, 126, 234, 0.75);
    background: rgba(102, 126, 234, 0.10);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-left, .hero-right { padding: 0; }
    .hero-title { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .about-right .stat-card { width: 100%; }
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

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

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

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.skills-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Skills Section Gradient Orbs */
.skills-orb-1 {
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    top: -5%;
    right: -5%;
    animation-delay: 0s;
    filter: blur(70px);
}

.skills-orb-2 {
    width: 280px;
    height: 280px;
    background: var(--gradient-accent);
    bottom: -5%;
    left: -5%;
    animation-delay: 3s;
    filter: blur(65px);
}

.skills-orb-3 {
    width: 220px;
    height: 220px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
    filter: blur(60px);
}

/* Skill Network */
.skill-network {
    position: absolute;
    inset: 0;
}

.skill-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: skillNodePulse 3s ease-in-out infinite;
}

.node-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 70%;
    right: 25%;
    animation-delay: 1s;
    background: var(--accent);
}

.node-3 {
    bottom: 20%;
    left: 70%;
    animation-delay: 2s;
    background: var(--success);
}

.skill-connections {
    position: absolute;
    width: 100%;
    height: 100%;
}

.skill-connection {
    fill: none;
    stroke: rgba(102, 126, 234, 0.3);
    stroke-width: 2;
    animation: skillFlowConnect 5s ease-in-out infinite;
}

.conn-1 { animation-delay: 0s; }
.conn-2 { animation-delay: 1.5s; }
.conn-3 { animation-delay: 3s; }
.stream-3 { left: 40%; animation-delay: 4s; }
.stream-4 { left: 55%; animation-delay: 6s; }
.stream-5 { left: 70%; animation-delay: 1s; }

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    inset: 0;
}

.code-snippet {
    position: absolute;
    color: rgba(102, 126, 234, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    animation: codeFloat 12s ease-in-out infinite;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.cs-1 { top: 20%; left: 15%; animation-delay: 0s; }
.cs-2 { top: 60%; right: 20%; animation-delay: 3s; }
.cs-3 { bottom: 25%; left: 60%; animation-delay: 6s; }
.cs-4 { top: 40%; right: 10%; animation-delay: 9s; }

/* Circuit Board Pattern */
.circuit-board {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

/* Skill Flow Elements */
.skill-flow-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.skill-flow {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    animation: skillFlow 12s ease-in-out infinite;
}

.flow-1 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 15%;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.flow-2 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.08), rgba(74, 222, 128, 0.08));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.flow-3 {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 70%;
    animation-delay: 8s;
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.08), rgba(102, 126, 234, 0.08));
}

/* Progress Rings */
.progress-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.progress-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.15);
    animation: progressRingRotate 8s linear infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.ring-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 15%;
    animation-delay: 4s;
    border-color: rgba(240, 147, 251, 0.15);
}

.ring-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.02);
}

.skill-category {
    margin-bottom: 4rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

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

.skill-card {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.skill-icon.python { background: linear-gradient(135deg, #3776ab 0%, #ffd343 100%); }
.skill-icon.js { background: linear-gradient(135deg, #f7df1e 0%, #e8b801 100%); }
.skill-icon.c { background: linear-gradient(135deg, #00599c 0%, #004482 100%); }
.skill-icon.sql { background: linear-gradient(135deg, #f29111 0%, #dd8a0b 100%); }
.skill-icon.ai { background: var(--gradient-primary); }
.skill-icon.nlp { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.skill-icon.cv { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.skill-icon.ml { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.skill-icon.react { background: linear-gradient(135deg, #61dafb 0%, #282c34 100%); }
.skill-icon.html { background: linear-gradient(135deg, #e34f26 0%, #f16529 100%); }
.skill-icon.css { background: linear-gradient(135deg, #1572b6 0%, #33a9dc 100%); }
.skill-icon.bootstrap { background: linear-gradient(135deg, #7952b3 0%, #563d7c 100%); }
.skill-icon.flask { background: linear-gradient(135deg, #000000 0%, #4d4d4d 100%); }
.skill-icon.api { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.skill-icon.jwt { background: linear-gradient(135deg, #d63aff 0%, #b026d6 100%); }
.skill-icon.postman { background: linear-gradient(135deg, #ff6c37 0%, #ff4500 100%); }
.skill-icon.mongodb { background: linear-gradient(135deg, #4db33d 0%, #3b8686 100%); }
.skill-icon.sqlite { background: linear-gradient(135deg, #003b57 0%, #005f8a 100%); }
.skill-icon.workbench { background: linear-gradient(135deg, #00758f 0%, #f29111 100%); }
.skill-icon.git { background: linear-gradient(135deg, #f14e32 0%, #e84d3d 100%); }

.skill-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.skill-progress {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    animation: progressFill 2s ease-out forwards;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Skills Section Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.skills-particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    background: var(--primary);
}

.skills-particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    background: var(--accent);
}

.skills-particle-3 {
    bottom: 25%;
    left: 60%;
    animation-delay: 4s;
    background: var(--success);
}

.skills-particle-4 {
    top: 40%;
    right: 10%;
    animation-delay: 6s;
    background: var(--primary);
}

/* Skills Section Neural Network */
.neural-network {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: nodePulse 3s ease-in-out infinite;
}

.skills-node-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.skills-node-2 {
    top: 70%;
    right: 25%;
    animation-delay: 1s;
    background: var(--accent);
}

.skills-node-3 {
    bottom: 20%;
    left: 70%;
    animation-delay: 2s;
    background: var(--success);
}

.connections {
    position: absolute;
    width: 100%;
    height: 100%;
}

.connection {
    fill: none;
    stroke: rgba(102, 126, 234, 0.3);
    stroke-width: 2;
    animation: connectionFlow 5s ease-in-out infinite;
}

.connection-1 { animation-delay: 0s; }
.connection-2 { animation-delay: 1.5s; }
.connection-3 { animation-delay: 3s; }

/* Skills Section Energy Waves */
.energy-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: waveExpand 6s ease-in-out infinite;
}

.wave-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.wave-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 15%;
    animation-delay: 3s;
    border-color: rgba(240, 147, 251, 0.2);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Contact Section Gradient Orbs */
.contact-orb-1 {
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    top: -5%;
    right: -5%;
    animation-delay: 0s;
    filter: blur(70px);
}

.contact-orb-2 {
    width: 280px;
    height: 280px;
    background: var(--gradient-accent);
    bottom: -5%;
    left: -5%;
    animation-delay: 3s;
    filter: blur(65px);
}

.contact-orb-3 {
    width: 220px;
    height: 220px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
    filter: blur(60px);
}

/* Contact Section Floating Particles */
.contact-particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    background: var(--primary);
}

.contact-particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    background: var(--accent);
}

.contact-particle-3 {
    bottom: 25%;
    left: 60%;
    animation-delay: 4s;
    background: var(--success);
}

.contact-particle-4 {
    top: 40%;
    right: 10%;
    animation-delay: 6s;
    background: var(--primary);
}

/* Contact Section Neural Network */
.contact-node-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.contact-node-2 {
    top: 70%;
    right: 25%;
    animation-delay: 1s;
    background: var(--accent);
}

.contact-node-3 {
    bottom: 20%;
    left: 70%;
    animation-delay: 2s;
    background: var(--success);
}

/* Contact Section Energy Waves */
.wave-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.wave-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 15%;
    animation-delay: 3s;
    border-color: rgba(240, 147, 251, 0.2);
}
.projects {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.projects-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* Projects Section Gradient Orbs */
.projects-orb-1 {
    width: 450px;
    height: 450px;
    background: var(--gradient-primary);
    top: -8%;
    right: -8%;
    animation-delay: 0s;
    filter: blur(90px);
}

.projects-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--gradient-accent);
    bottom: -8%;
    left: -8%;
    animation-delay: 4s;
    filter: blur(80px);
}

.projects-orb-3 {
    width: 280px;
    height: 280px;
    background: var(--gradient-success);
    top: 45%;
    left: 45%;
    transform: translateX(-50%);
    animation-delay: 8s;
    filter: blur(70px);
}

/* Innovation Sparks */
.innovation-sparks {
    position: absolute;
    inset: 0;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: sparkTwinkle 3s ease-in-out infinite;
}

.spark-1 { top: 25%; left: 20%; animation-delay: 0s; }
.spark-2 { top: 60%; right: 30%; animation-delay: 1s; background: var(--primary); }
.spark-3 { bottom: 30%; left: 70%; animation-delay: 2s; }
.spark-4 { top: 45%; left: 50%; animation-delay: 0.5s; background: var(--success); }
.spark-5 { bottom: 15%; right: 15%; animation-delay: 1.5s; }

/* Project Constellations */
.project-constellations {
    position: absolute;
    inset: 0;
}

.constellation-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: starTwinkle 4s ease-in-out infinite;
}

.star-1 { top: 30%; left: 25%; animation-delay: 0s; }
.star-2 { top: 65%; right: 35%; animation-delay: 1.5s; background: var(--accent); }
.star-3 { bottom: 25%; left: 65%; animation-delay: 3s; background: var(--success); }

.constellation-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.constellation-path {
    fill: none;
    stroke: rgba(102, 126, 234, 0.3);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: constellationFlow 6s ease-in-out infinite;
}

.path-1 { animation-delay: 0s; }
.path-2 { animation-delay: 2s; }

/* Development Waves */
.dev-waves {
    position: absolute;
    inset: 0;
}

.dev-wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: devWaveExpand 8s ease-out infinite;
}

.wave-a {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.wave-b {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 20%;
    animation-delay: 3s;
    border-color: rgba(240, 147, 251, 0.2);
}

.wave-c {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 60%;
    animation-delay: 6s;
    border-color: rgba(74, 222, 128, 0.2);
}

/* Floating Project Icons */
.project-icons {
    position: absolute;
    inset: 0;
}

.proj-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    animation: iconFloat 10s ease-in-out infinite;
}

.icon-1 { top: 35%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 70%; right: 25%; animation-delay: 2.5s; }
.icon-3 { bottom: 20%; left: 75%; animation-delay: 5s; }
.icon-4 { top: 15%; right: 10%; animation-delay: 7.5s; }

/* Code Particles */
.code-particles {
    position: absolute;
    inset: 0;
}

.code-particle {
    position: absolute;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    animation: codeFloat 12s ease-in-out infinite;
}

.particle-1 { top: 25%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 60%; right: 20%; animation-delay: 3s; }
.particle-3 { bottom: 35%; left: 25%; animation-delay: 6s; }
.particle-4 { top: 40%; right: 35%; animation-delay: 9s; }

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

/* Desktop: 2 columns for tidy 2x2 arrangement */
@media (min-width: 900px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* Ensure grid uses full container width and centers */
.projects .projects-grid {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .projects .projects-grid { max-width: 100%; }
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.project-card.featured { grid-column: span 1; }

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* slightly larger image for the featured card */
.project-card.featured .project-image { height: 220px; }

/* Video modal styles */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.75);
    z-index: 20000;
    padding: 2rem;
}
.video-modal.open { display: flex; }
.video-modal-inner {
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 0.75rem;
    position: relative;
}
.video-wrapper iframe { width: 100%; height: 520px; border: 0; border-radius: 8px; display: block; }
.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Hide on-card outcomes to keep cards compact; details available in modal */
.project-outcomes { display: none; }

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-title i {
    color: var(--primary);
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-demo { display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap; }

/* For vertical demo groups: keep buttons compact, centered and readable */
.project-demo.vertical { flex-direction: column; align-items: center; }
.project-demo.vertical .demo-btn,
.project-demo.vertical .btn-outline {
    display: block;
    width: auto;
    max-width: 260px;
    margin: 0.35rem auto;
    text-align: center;
}

/* Center layout for featured project content */
.project-card.featured .project-content {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.project-card.featured .project-title {
    justify-content: center;
}

.project-card.featured .project-tech {
    justify-content: center;
}

.project-card.featured .project-stats {
    justify-content: center;
}

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

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.demo-btn:hover::before {
    left: 100%;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.demo-btn.video {
    background: var(--gradient-accent);
}

.demo-btn.video:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
}

.demo-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.demo-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.demo-btn.disabled::before {
    display: none;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.form-group {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: formFieldReveal 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group i {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.form-group textarea {
    resize: vertical;
    padding-top: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer i {
    color: var(--accent);
    margin: 0 0.25rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

/* ========================================
   PROJECT DEMO SECTION
   ======================================== */
.project-demo {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.demo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.demo-placeholder i {
    font-size: 1.5rem;
    color: var(--primary);
}

.demo-placeholder:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.18s ease;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.18);
}

.demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.demo-btn.video {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.demo-btn.video:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.demo-btn i { font-size: 1rem; }

/* Project outcomes list */
.project-outcomes {
    margin: 1rem 0 0 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}
.project-outcomes li { margin-bottom: 0.5rem; }

/* Project modal styles */
.project-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(2,6,23,0.8); z-index: 30000; padding: 2rem; }
.project-modal.open { display:flex; }
.project-modal-inner { width:100%; max-width:900px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:12px; padding:1rem; position:relative; }
.project-modal .project-close { position:absolute; top:10px; right:10px; background:transparent; color:var(--text-primary); border:none; font-size:2rem; cursor:pointer; }
.project-modal-body { padding:1rem 1.25rem; }
.modal-title { font-size:1.6rem; margin-bottom:0.5rem; }
.modal-desc { color:var(--text-secondary); margin-bottom:1rem; }
.modal-screenshots { display:flex; gap:0.75rem; margin-bottom:1rem; }
.modal-screenshots img { width: 48%; border-radius:8px; object-fit:cover; }
.modal-tech { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.modal-links { display:flex; gap:0.75rem; }
.modal-links a { text-decoration:none; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Stack demo buttons vertically on small screens for better tap targets */
    .project-demo { flex-direction: column; align-items: stretch; }
    .project-demo .demo-btn, .project-demo .btn-outline { width: 100%; max-width: 100%; margin: 0.35rem 0; }
    
    .floating-tech {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual-card {
        max-width: 100%;
    }

    .hero-showcase {
        max-width: 100%;
    }

    .showcase-metrics {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Make video modal and project modal scrollable and fit smaller screens */
    .video-wrapper iframe { height: min(60vh, 420px); }
    .project-modal-inner { max-height: 90vh; overflow-y: auto; padding: 0.75rem; }
}

/* Improve modal iframe sizing on large screens too (responsive) */
.video-wrapper iframe { height: min(60vh, 520px); }

/* Touch-friendly demo buttons: slightly larger tap area */
.demo-btn { padding: 0.65rem 1rem; }

/* Ensure project images don't force too-tall cards on very small screens */
@media (max-width: 420px) {
    .project-image { height: 160px; }
}

/* About Section Background Animation Keyframes */
@keyframes aboutFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.6;
    }
}

@keyframes knowledgePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.5); 
        opacity: 1;
    }
}

@keyframes knowledgeFlow {
    0% { 
        stroke-dasharray: 0 100; 
        opacity: 0;
    }
    50% { 
        stroke-dasharray: 50 50; 
        opacity: 0.6;
    }
    100% { 
        stroke-dasharray: 100 0; 
        opacity: 0;
    }
}

@keyframes learningExpand {
    0% { 
        transform: scale(0.5); 
        opacity: 0.8;
    }
    100% { 
        transform: scale(2); 
        opacity: 0;
    }
}

@keyframes skillOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skills Section Animation Keyframes */
@keyframes codeFall {
    0% { 
        transform: translateY(-100px); 
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh); 
        opacity: 0;
    }
}

@keyframes codeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
        opacity: 0.8;
    }
}

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

@keyframes skillFlow {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-25px) translateX(15px) rotate(90deg) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-8px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(10px) rotate(270deg) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes progressRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes skillNodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes skillFlowConnect {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    50% {
        stroke-dasharray: 50 50;
        opacity: 0.6;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 0;
    }
}

/* Projects Section Animation Keyframes */
@keyframes sparkTwinkle {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.5); 
        opacity: 1;
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3); 
        opacity: 1;
    }
}

@keyframes constellationFlow {
    0% { 
        stroke-dashoffset: 0; 
        opacity: 0.3;
    }
    50% { 
        stroke-dashoffset: 10; 
        opacity: 0.6;
    }
    100% { 
        stroke-dashoffset: 0; 
        opacity: 0.3;
    }
}

@keyframes devWaveExpand {
    0% { 
        transform: scale(0.3); 
        opacity: 0.8;
    }
    100% { 
        transform: scale(3); 
        opacity: 0;
    }
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.5;
    }
    33% { 
        transform: translateY(-15px) rotate(120deg); 
        opacity: 0.8;
    }
    66% { 
        transform: translateY(10px) rotate(240deg); 
        opacity: 0.6;
    }
}

@keyframes codeFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-20px) translateX(10px); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) translateX(-10px); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-30px) translateX(5px); 
        opacity: 0.9;
    }
}

/* Skills Section Background Animation Keyframes */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-25px) translateX(15px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) translateX(8px);
        opacity: 0.7;
    }
}

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

@keyframes connectionFlow {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0.2;
    }
    50% {
        stroke-dasharray: 50 50;
        opacity: 0.6;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 0.2;
    }
}

@keyframes waveExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS & RESPONSIVE DESIGN
   ======================================== */

/* Performance optimizations for mobile devices */
@media (max-width: 768px) {
    /* Reduce background animations on mobile for better performance */
    .hero-bg, .about-bg, .skills-bg, .projects-bg, .contact-bg {
        opacity: 0.3 !important;
    }

    /* Disable complex animations on mobile */
    .floating-particles, .neural-network, .energy-waves, .geometric-shapes, .particle-system {
        display: none !important;
    }

    /* Simplify background effects */
    body::before {
        opacity: 0.2 !important;
    }

    /* Optimize scrolling */
    html {
        scroll-behavior: auto; /* Disable smooth scroll on mobile for better performance */
    }

    /* Reduce blur effects */
    .gradient-orb {
        filter: blur(30px) !important;
    }

    /* Simplify shadows */
    .btn, .skill-card, .project-card {
        box-shadow: var(--shadow-sm) !important;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .btn:hover, .skill-card:hover, .project-card:hover, .tech-tag:hover {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }

    /* Ensure buttons are large enough for touch */
    .btn, .demo-btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .contact-method {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Responsive breakpoints */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Stack elements vertically on small screens */
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjust font sizes */
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Reduce padding */
    .section {
        padding: 4rem 0;
    }

    /* Optimize cards */
    .skill-card, .project-card {
        padding: 1.25rem;
    }

    /* Adjust navigation */
    .nav-links {
        display: none; /* Hide on mobile, use hamburger */
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {
    /* Re-enable animations on desktop */
    .hero-bg, .about-bg, .skills-bg, .projects-bg, .contact-bg {
        opacity: 0.7;
    }

    .floating-particles, .neural-network, .energy-waves {
        display: block;
    }
}

/* Hardware acceleration for better performance */
.gradient-orb, .particle, .node, .wave, .shape {
    will-change: transform, opacity;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Optimize AOS animations for mobile */
@media (max-width: 768px) {
    [data-aos] {
        transition: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
