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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1333;
    --bg-card: #151937;
    --text-primary: #e6e6e6;
    --text-secondary: #a0a0a0;
    --accent-primary: #64ffda;
    --accent-secondary: #5c6bc0;
    --accent-hover: #7fffd4;
    --border-color: rgba(100, 255, 218, 0.2);
    --shadow: rgba(100, 255, 218, 0.15);
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   FLOATING BACKGROUND ELEMENTS
   ============================================ */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    top: 5%;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    bottom: 10%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    top: 25%;
    right: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: var(--gradient-end);
    top: 70%;
    right: 25%;
    animation-delay: -7s;
}

.shape-6 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--gradient-start), var(--accent-primary));
    bottom: 30%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40px, -40px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-30px, 30px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(30px, 40px) rotate(3deg) scale(1.02);
    }
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

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

.particle:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; width: 3px; height: 3px; }
.particle:nth-child(2) { left: 15%; top: 75%; animation-delay: -2s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 25%; top: 35%; animation-delay: -4s; }
.particle:nth-child(4) { left: 35%; top: 55%; animation-delay: -6s; width: 6px; height: 6px; }
.particle:nth-child(5) { left: 45%; top: 25%; animation-delay: -8s; }
.particle:nth-child(6) { left: 55%; top: 65%; animation-delay: -10s; width: 3px; height: 3px; }
.particle:nth-child(7) { left: 65%; top: 45%; animation-delay: -12s; }
.particle:nth-child(8) { left: 75%; top: 20%; animation-delay: -14s; width: 5px; height: 5px; }
.particle:nth-child(9) { left: 85%; top: 80%; animation-delay: -3s; }
.particle:nth-child(10) { left: 10%; top: 50%; animation-delay: -7s; width: 4px; height: 4px; }
.particle:nth-child(11) { left: 30%; top: 85%; animation-delay: -9s; }
.particle:nth-child(12) { left: 50%; top: 10%; animation-delay: -11s; width: 6px; height: 6px; }
.particle:nth-child(13) { left: 70%; top: 70%; animation-delay: -13s; }
.particle:nth-child(14) { left: 90%; top: 40%; animation-delay: -1s; width: 3px; height: 3px; }
.particle:nth-child(15) { left: 40%; top: 90%; animation-delay: -5s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-80px) translateX(30px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-120px) translateX(-20px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-60px) translateX(40px);
        opacity: 0.6;
    }
}

/* ============================================
   GLOW ORBS
   ============================================ */
.glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.15) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

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

/* ============================================
   HERO GLOW EFFECT
   ============================================ */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    animation: heroGlow 5s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.navbar:hover {
    border-bottom-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    transition: all 0.3s ease;
    animation: neonFlicker 3s infinite;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.nav-brand:hover {
    text-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary), 0 0 60px var(--accent-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
}

.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.08) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

/* Connected Dots Cyber Grid */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating Space Objects */
.space-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.space-obj {
    position: absolute;
    color: var(--accent-primary);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

/* Individual object positions and styles */
.obj-1 { top: 10%; left: 5%; font-size: 0.8rem; opacity: 0.2; animation-delay: 0s; animation-duration: 15s; }
.obj-2 { top: 20%; right: 10%; font-size: 0.6rem; opacity: 0.18; animation-delay: 2s; animation-duration: 18s; }
.obj-3 { top: 60%; left: 15%; font-size: 1rem; opacity: 0.22; animation-delay: 4s; animation-duration: 22s; }
.obj-4 { bottom: 20%; right: 20%; font-size: 0.5rem; opacity: 0.16; animation-delay: 1s; animation-duration: 16s; }
.obj-5 { top: 40%; left: 8%; font-size: 0.7rem; opacity: 0.2; animation-delay: 3s; animation-duration: 19s; }
.obj-6 { top: 15%; right: 25%; font-size: 1.5rem; opacity: 0.12; --rot: -45deg; animation: floatRotated 25s ease-in-out infinite; }
.obj-7 { bottom: 30%; left: 25%; font-size: 1.2rem; opacity: 0.1; animation-delay: 5s; animation-duration: 28s; }
.obj-8 { top: 70%; right: 8%; font-size: 1.8rem; opacity: 0.08; animation-delay: 2s; animation-duration: 30s; }
.obj-9 { top: 30%; left: 30%; font-size: 1rem; opacity: 0.12; --rot: 30deg; animation: floatRotated 20s ease-in-out infinite; animation-delay: 7s; }
.obj-10 { bottom: 15%; right: 35%; font-size: 1.3rem; opacity: 0.1; --rot: -30deg; animation: floatRotated 26s ease-in-out infinite; animation-delay: 4s; }
.obj-11 { top: 50%; right: 5%; font-size: 1.1rem; opacity: 0.1; animation-delay: 6s; animation-duration: 24s; }
.obj-12 { bottom: 40%; left: 5%; font-size: 2rem; opacity: 0.06; animation-delay: 3s; animation-duration: 35s; }
.obj-13 { top: 85%; left: 40%; font-size: 0.6rem; opacity: 0.2; animation-delay: 8s; animation-duration: 17s; }
.obj-14 { top: 5%; left: 50%; font-size: 0.9rem; opacity: 0.18; animation-delay: 1s; animation-duration: 21s; }
.obj-15 { top: 45%; right: 15%; font-size: 0.5rem; opacity: 0.2; animation-delay: 9s; animation-duration: 14s; }

/* Extra tech objects */
.obj-16 { top: 25%; left: 45%; font-size: 1.1rem; opacity: 0.1; animation-delay: 2s; animation-duration: 23s; }
.obj-17 { bottom: 25%; right: 12%; font-size: 0.9rem; opacity: 0.12; animation-delay: 4s; animation-duration: 20s; }
.obj-18 { top: 75%; left: 35%; font-size: 1.3rem; opacity: 0.08; animation-delay: 6s; animation-duration: 27s; }
.obj-19 { top: 35%; right: 40%; font-size: 1rem; opacity: 0.1; animation-delay: 3s; animation-duration: 19s; }
.obj-20 { bottom: 45%; left: 42%; font-size: 1.2rem; opacity: 0.09; animation-delay: 5s; animation-duration: 24s; }
.obj-21 { top: 12%; left: 70%; font-size: 1rem; opacity: 0.11; animation-delay: 7s; animation-duration: 22s; }
.obj-22 { bottom: 12%; left: 20%; font-size: 0.8rem; opacity: 0.14; animation-delay: 1s; animation-duration: 18s; }
.obj-23 { top: 55%; right: 30%; font-size: 1.4rem; opacity: 0.08; animation-delay: 8s; animation-duration: 26s; }

/* Blinking Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary), 0 0 60px rgba(100, 255, 218, 0.3);
    animation: blink 3s ease-in-out infinite, floatOrb 15s ease-in-out infinite;
}

.orb-1 { top: 15%; left: 10%; width: 6px; height: 6px; opacity: 0.4; animation-delay: 0s; }
.orb-2 { top: 30%; right: 15%; width: 4px; height: 4px; opacity: 0.5; animation-delay: 0.5s; }
.orb-3 { bottom: 35%; left: 20%; width: 8px; height: 8px; opacity: 0.3; animation-delay: 1s; }
.orb-4 { top: 60%; right: 25%; width: 5px; height: 5px; opacity: 0.45; animation-delay: 1.5s; }
.orb-5 { bottom: 20%; right: 8%; width: 7px; height: 7px; opacity: 0.35; animation-delay: 2s; }
.orb-6 { top: 80%; left: 35%; width: 4px; height: 4px; opacity: 0.5; animation-delay: 2.5s; }
.orb-7 { top: 8%; right: 40%; width: 6px; height: 6px; opacity: 0.4; animation-delay: 0.8s; }
.orb-8 { bottom: 50%; left: 8%; width: 5px; height: 5px; opacity: 0.45; animation-delay: 1.8s; }

@keyframes blink {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 10px var(--accent-primary), 0 0 20px rgba(100, 255, 218, 0.2);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 30px var(--accent-primary), 0 0 60px var(--accent-primary), 0 0 80px rgba(100, 255, 218, 0.4);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-15px) translateX(8px);
    }
    66% {
        transform: translateY(10px) translateX(-12px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes floatRotated {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(var(--rot, 0deg));
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(var(--rot, 0deg));
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(var(--rot, 0deg));
    }
}

/* ============================================
   CYBER THEME FOR ALL SECTIONS
   ============================================ */
.cyber-section {
    position: relative;
    overflow: hidden;
}

.cyber-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cyber-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.cyber-obj {
    position: absolute;
    color: var(--accent-primary);
    opacity: 0.12;
    animation: float 20s ease-in-out infinite;
}

.c-obj-1 { top: 15%; left: 8%; font-size: 1.5rem; opacity: 0.1; animation-delay: 0s; animation-duration: 18s; }
.c-obj-2 { top: 25%; right: 12%; font-size: 1.3rem; opacity: 0.08; animation-delay: 2s; animation-duration: 22s; }
.c-obj-3 { bottom: 20%; left: 15%; font-size: 1.2rem; opacity: 0.1; animation-delay: 4s; animation-duration: 20s; }
.c-obj-4 { bottom: 30%; right: 10%; font-size: 1.4rem; opacity: 0.09; animation-delay: 3s; animation-duration: 24s; }

/* Small glowing orbs for sections */
.glow-orb-sm {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary), 0 0 30px rgba(100, 255, 218, 0.3);
    animation: blink 4s ease-in-out infinite, floatOrb 12s ease-in-out infinite;
}

.orb-sm-1 { top: 20%; right: 20%; width: 5px; height: 5px; opacity: 0.35; animation-delay: 0s; }
.orb-sm-2 { bottom: 25%; left: 25%; width: 4px; height: 4px; opacity: 0.4; animation-delay: 1.5s; }
.orb-sm-3 { top: 60%; right: 8%; width: 6px; height: 6px; opacity: 0.3; animation-delay: 3s; }

/* Ensure container stays above cyber elements */
.cyber-section > .container {
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(100, 255, 218, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(100, 255, 218, 0.5));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    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 ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5), 0 0 20px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 rgba(100, 255, 218, 0);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4), 0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
}

.btn-resume {
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-resume:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--gradient-start), var(--gradient-end));
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
}

/* ============================================
   TYPING EFFECT
   ============================================ */
.typed-text {
    color: var(--accent-primary);
}

.cursor {
    display: inline-block;
    color: var(--accent-primary);
    animation: blink 1s infinite;
    font-weight: 100;
}

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

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 180px;
    overflow: hidden;
}

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

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.2), 0 0 20px rgba(100, 255, 218, 0.1);
    border-color: var(--accent-primary);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.5));
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Stat Flip Card */
.stat-flip-card {
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
    min-height: 180px;
}

.stat-flip-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.stat-flip-card::before {
    display: none !important;
}

.stat-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.stat-flip-card:hover .stat-flip-inner,
.stat-flip-inner.flipped {
    transform: rotateY(180deg);
}

.stat-flip-front,
.stat-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.stat-flip-front {
    z-index: 2;
}

.stat-flip-back {
    transform: rotateY(180deg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.stat-flip-front i,
.stat-flip-back i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.5));
}

.stat-flip-front .stat-number,
.stat-flip-back .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-flip-front .stat-label,
.stat-flip-back .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6), 0 0 20px rgba(100, 255, 218, 0.3);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 1.8rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.6));
}

.social-links a:hover::after {
    width: 100%;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-secondary);
    padding-bottom: 15px;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 2px;
}

/* Main Projects Wrapper with Cyber Theme */
.main-projects-wrapper {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.main-projects-wrapper .projects-grid {
    position: relative;
    z-index: 1;
}

/* College Projects Wrapper with Cyber Theme */
.college-projects-wrapper {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.college-projects-wrapper .projects-grid {
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.languages, .professional-activities {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.languages:hover, .professional-activities:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 5px 30px rgba(100, 255, 218, 0.1);
}

.languages h3, .professional-activities h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.languages ul, .professional-activities ul {
    list-style: none;
    padding-left: 0;
}

.languages li, .professional-activities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.languages li:hover, .professional-activities li:hover {
    padding-left: 2rem;
    color: var(--text-primary);
}

.languages li::before, .professional-activities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.languages li:hover::before, .professional-activities li:hover::before {
    transform: translateX(5px);
}

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

.skill-category {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15), 0 0 20px rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-category:hover .skill-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.6));
}

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

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.skill-category:hover li {
    color: var(--text-primary);
}

.skill-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

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

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

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Clickable Project Cards */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-card.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.project-card.clickable:hover::before {
    left: 100%;
}

.project-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.2);
}

.project-link.learn-more {
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-card.clickable:hover .project-link.learn-more {
    gap: 1rem;
}

.project-link.learn-more i {
    transition: transform 0.3s ease;
}

.project-card.clickable:hover .project-link.learn-more i {
    transform: translateX(5px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

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

.tech-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

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

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.project-link.live-demo {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.project-link.live-demo:hover {
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    transform: translateY(-2px);
}

/* Certificates Section */
.certificates {
    background-color: var(--bg-primary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.certificate-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15), 0 0 30px rgba(100, 255, 218, 0.1);
    border-color: var(--accent-primary);
}

.certificate-card.placeholder {
    border-style: dashed;
    opacity: 0.7;
}

.certificate-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.6));
}

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

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

.certificate-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.certificate-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(100, 255, 218, 0.05);
}

.certificate-link:hover {
    color: var(--bg-primary);
    background: var(--accent-primary);
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.4);
}

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

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

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

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-primary);
    background-color: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.footer p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-secondary);
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .skills-grid,
    .projects-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-item i {
        font-size: 1.8rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Flip card mobile - tap to flip */
    .stat-flip-card {
        min-height: 150px;
    }
    
    .stat-flip-inner {
        min-height: 150px;
    }
    
    .stat-flip-front,
    .stat-flip-back {
        padding: 1.5rem 1rem;
    }
    
    .stat-flip-front i,
    .stat-flip-back i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-flip-front .stat-number,
    .stat-flip-back .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-flip-front .stat-label,
    .stat-flip-back .stat-label {
        font-size: 0.8rem;
    }

    /* Project wrappers mobile */
    .main-projects-wrapper,
    .college-projects-wrapper {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    /* Project cards mobile */
    .project-card {
        padding: 1.5rem;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
    }

    /* About section mobile */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-text p {
        font-size: 1rem;
    }

    /* Tech stack mobile */
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-stack span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Section padding mobile */
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    /* Contact section mobile */
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }

    /* Cyber objects mobile - reduce/hide some */
    .cyber-obj {
        display: none;
    }
    
    .glow-orb-sm {
        width: 80px;
        height: 80px;
        opacity: 0.3;
    }

    /* Canvas background - reduce opacity on mobile */
    .cyber-grid-bg {
        opacity: 0.3;
    }
    
    /* Certificates */
    .certificate-card {
        padding: 1.5rem;
    }
    
    .certificate-card i {
        font-size: 2rem;
    }
    
    /* Skills */
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card i {
        font-size: 2rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    /* DISABLE GLOW EFFECTS ON MOBILE FOR PERFORMANCE */
    /* Remove text shadows/glows */
    .nav-brand,
    .hero-title,
    .section-title,
    .stat-number,
    .glow-text {
        text-shadow: none !important;
        animation: none !important;
    }
    
    /* Remove box shadows/glows */
    .project-card,
    .skill-card,
    .certificate-card,
    .stat-item,
    .stat-flip-front,
    .stat-flip-back,
    .contact-item,
    .btn,
    .back-to-top,
    .hamburger span,
    .nav-link::after {
        box-shadow: none !important;
    }
    
    /* Remove filter effects */
    .stat-flip-front i,
    .stat-flip-back i,
    .project-card i,
    .skill-card i,
    .certificate-card i,
    .contact-item i {
        filter: none !important;
    }
    
    /* Disable expensive animations */
    .floating-shape,
    .glow-orb,
    .particle {
        animation: none !important;
        display: none !important;
    }
    
    /* Simplify hero background */
    .hero::before,
    .hero::after {
        display: none !important;
    }
    
    /* Remove hover glow effects */
    .project-card:hover,
    .skill-card:hover,
    .certificate-card:hover,
    .btn:hover,
    .nav-link:hover {
        text-shadow: none !important;
        box-shadow: none !important;
    }
    
    /* Hide canvas completely on mobile */
    .cyber-grid-bg {
        display: none !important;
    }
    
    /* Remove orbs */
    .glow-orb-sm {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-flip-card {
        min-height: 130px;
    }
    
    .stat-flip-inner {
        min-height: 130px;
    }
    
    .stat-flip-front .stat-number,
    .stat-flip-back .stat-number {
        font-size: 1.4rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .tech-stack span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .main-projects-wrapper,
    .college-projects-wrapper {
        padding: 0.75rem;
        border-radius: 15px;
    }
    
    /* Hide more decorative elements on small screens */
    .glow-orb-sm {
        display: none;
    }
    
    .floating-shape {
        display: none;
    }
}

/* Responsive Floating Elements */
@media (max-width: 768px) {
    .floating-shape {
        opacity: 0.05;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5, .shape-6 {
        width: 150px;
        height: 150px;
    }
    
    .glow-orb {
        opacity: 0.5;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 200px;
        height: 200px;
    }
    
    .hero-glow {
        width: 300px;
        height: 300px;
    }
    
    .particle {
        opacity: 0.2;
    }
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Glowing Text Utility */
.glow-text {
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

/* Glowing Border Utility */
.glow-border {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    border-color: var(--accent-primary);
}