/* ================================================
   MODERN DATA SCIENTIST PORTFOLIO - WOW FACTOR
   ================================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling and transitions for all elements */
html {
    scroll-behavior: smooth;
}

* {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
    /* Color Palette - Cyberpunk/Tech Inspired */
    --primary: #00f3ff;
    --secondary: #ff00ff;
    --accent: #7000ff;
    --bg-dark: #0a0e27;
    --bg-darker: #05070f;
    --text-light: #e0e7ff;
    --text-muted: #8b92b0;
    --success: #00ff88;
    --warning: #ffaa00;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f3ff 0%, #ff00ff 50%, #7000ff 100%);
    --gradient-secondary: linear-gradient(45deg, #7000ff, #ff00ff);
    --gradient-text: linear-gradient(90deg, #00f3ff, #ff00ff, #7000ff);
    
    /* Shadows & Glows */
    --glow-primary: 0 0 20px rgba(0, 243, 255, 0.5);
    --glow-secondary: 0 0 30px rgba(255, 0, 255, 0.6);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ========== THEME VARIANTS ========== */

/* Light Theme */
html[data-theme="light"] {
    --primary: #0066cc;
    --secondary: #cc0066;
    --accent: #6600cc;
    --bg-dark: #f5f7fa;
    --bg-darker: #ffffff;
    --text-light: #1a1a2e;
    --text-muted: #666666;
    --success: #00aa00;
    --warning: #ff8800;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #cc0066 50%, #6600cc 100%);
    --gradient-secondary: linear-gradient(45deg, #6600cc, #cc0066);
    --gradient-text: linear-gradient(90deg, #0066cc, #cc0066, #6600cc);
    --glow-primary: 0 0 20px rgba(0, 102, 204, 0.3);
    --glow-secondary: 0 0 30px rgba(204, 0, 102, 0.3);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Smooth theme transition */
html {
    /* Enhanced smooth theme switching */
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== PAGE TRANSITION OVERLAY ========== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
    opacity: 1;
}

.page-transition.exit {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Glow effect during transition */
.page-transition.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: transitionGlow 0.6s ease-out;
    box-shadow: var(--glow-primary);
}

@keyframes transitionGlow {
    from {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ========== RESUME MODAL ========== */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: resumeModalFadeIn 0.4s ease-out;
}

.resume-modal.active {
    display: flex;
}

@keyframes resumeModalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.resume-modal-content {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background: var(--bg-dark);
    border-radius: 20px;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-heavy), 0 0 50px rgba(0, 243, 255, 0.3);
    animation: resumeModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

@keyframes resumeModalSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes resumeModalSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
}

/* Section Transition Animation */
@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-close-btn {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
    flex-shrink: 0;
}

.resume-close-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(90deg) scale(1.1);
}

.resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(255, 0, 255, 0.05) 100%);
}

.resume-header h2 {
    color: var(--primary);
    font-size: 28px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--glow-primary);
    margin: 0;
    flex: 1;
}

.resume-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resume-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
    background: var(--secondary);
    color: var(--text-light);
}

.resume-viewer {
    flex: 1;
    overflow: hidden;
    display: flex;
    background: var(--bg-darker);
}

.resume-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Resume Modal */
@media (max-width: 768px) {
    .resume-modal-content {
        width: 95%;
        height: 95vh;
        border-radius: 15px;
    }

    .resume-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px;
        align-items: center;
    }

    .resume-header h2 {
        font-size: 22px;
        flex: 1 1 auto;
        min-width: 150px;
    }

    .resume-download-btn {
        flex: 1 1 auto;
        min-width: 150px;
        justify-content: center;
        font-size: 13px;
        padding: 10px 15px;
    }

    .resume-close-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .resume-modal-content {
        height: 98vh;
        border-radius: 10px;
    }

    .resume-header {
        padding: 12px;
        gap: 8px;
    }

    .resume-header h2 {
        font-size: 16px;
    }

    .resume-download-btn {
        font-size: 11px;
        padding: 8px 12px;
    }

    .resume-close-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 16px;
    }
}

/* Light Theme - Resume Modal */
html[data-theme="light"] .resume-modal-content {
    background: #f5f7fa;
    border-color: #0066cc;
    box-shadow: var(--shadow-heavy), 0 0 30px rgba(0, 102, 204, 0.2);
}

html[data-theme="light"] .resume-header {
    border-bottom-color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

html[data-theme="light"] .resume-header h2 {
    color: #0066cc;
    text-shadow: none;
}

html[data-theme="light"] .resume-close-btn {
    background: rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
    color: #0066cc;
}

html[data-theme="light"] .resume-close-btn:hover {
    background: #0066cc;
    color: #ffffff;
}

html[data-theme="light"] .resume-download-btn {
    background: #0066cc;
    color: #ffffff;
}

html[data-theme="light"] .resume-download-btn:hover {
    background: #cc0066;
    color: #ffffff;
}

html[data-theme="light"] .resume-viewer {
    background: #ffffff;
}

/* Light Theme Adjustments */
html[data-theme="light"] body {
    background: #f5f7fa;
}

html[data-theme="light"] .navbar {
    background: rgba(245, 247, 250, 0.95);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

html[data-theme="light"] section {
    background: #ffffff;
}

html[data-theme="light"] .terminal-window {
    background: rgba(245, 247, 250, 0.8);
    border: 1px solid #0066cc;
}

html[data-theme="light"] .terminal-header {
    background: rgba(0, 102, 204, 0.1);
}

html[data-theme="light"] .terminal-body {
    color: #00aa00;
}

html[data-theme="light"] .skill-category,
html[data-theme="light"] .project-card,
html[data-theme="light"] .contact-method,
html[data-theme="light"] .chart-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 102, 204, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08) !important;
}

html[data-theme="light"] .skill-category::before {
    background: conic-gradient(from 0deg, transparent, rgba(0, 102, 204, 0.2), transparent 30%);
}

html[data-theme="light"] .skill-category::after {
    background: rgba(255, 255, 255, 0.98) !important;
}

html[data-theme="light"] .skill-category:hover {
    border-color: #0066cc !important;
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15) !important;
}

html[data-theme="light"] .icon-glow {
    background: linear-gradient(135deg, #0066cc 0%, #cc0066 50%, #6600cc 100%);
    opacity: 0.2;
}

html[data-theme="light"] .category-icon {
    filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.3));
}

html[data-theme="light"] .category-title {
    color: #1a1a2e !important;
    font-weight: 700;
}

html[data-theme="light"] .skill-name {
    color: #2d2d2d !important;
    font-weight: 600;
}

html[data-theme="light"] .skill-level {
    color: #0066cc !important;
    text-shadow: none;
    font-weight: 700;
}

html[data-theme="light"] .skill-bar-bg {
    background: rgba(0, 102, 204, 0.12) !important;
}

html[data-theme="light"] .skill-bar-fill {
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
}

html[data-theme="light"] .btn-primary {
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3);
}

html[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 15px 60px rgba(0, 102, 204, 0.5);
}

/* Dark Theme Adjustments */
html[data-theme="dark"] body {
    background: #000000;
}

html[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

html[data-theme="dark"] section {
    background: #000000;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
}

/* Improve touch targets */
a, button, .btn, .nav-link, .social-link, .tech-icon {
    -webkit-tap-highlight-color: rgba(0, 243, 255, 0.3);
}

/* Prevent text selection on touch elements */
.btn, .nav-toggle, .project-card, .skill-category {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Subtle grain overlay for depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    opacity: 0.25;
    z-index: -3;
}

/* ========== MATRIX BACKGROUND ========== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Scroll progress bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-primary);
    box-shadow: 0 0 15px rgba(0,243,255,0.6);
    z-index: 2000;
}

/* ========== TYPOGRAPHY ========== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 14, 39, 0.9);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 20px var(--primary);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0 1rem;
    border-left: 1px solid rgba(0, 243, 255, 0.2);
    border-right: 1px solid rgba(0, 243, 255, 0.2);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.theme-btn.active {
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px var(--glow-primary);
}

.theme-btn i {
    transition: transform 0.3s ease;
}

.theme-btn.active i {
    transform: scale(1.2) rotate(15deg);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* Active nav state (scrollspy) */
.nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    width: 100%;
}

/* Resume Button in Nav */
.resume-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1.5px solid var(--primary);
    padding: 0.6rem 1rem !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.resume-btn::after {
    display: none !important;
}

/* Light Theme Resume Button */
html[data-theme="light"] .resume-btn {
    background: rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
    color: #0066cc;
}

html[data-theme="light"] .resume-btn:hover {
    background: #0066cc;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary); }
}

/* Old nav links - keeping for backwards compatibility */
.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 6rem;
    position: relative;
    overflow: visible;
}

/* Morphing glow blob in hero */
#hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    filter: blur(40px) saturate(140%);
    z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,243,255,0.25), transparent 40%),
                radial-gradient(circle at 70% 40%, rgba(255,0,255,0.22), transparent 45%),
                radial-gradient(circle at 40% 70%, rgba(112,0,255,0.22), transparent 45%);
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    opacity: 0.7;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    animation: hero-pulse 4s ease-in-out infinite;
}

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

.hero-container {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    position: relative;
}

/* Terminal Window */
.terminal-window {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.terminal-header {
    background: rgba(0, 243, 255, 0.1);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27ca3f;
}

.terminal-title {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

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

.terminal-button.red { background: #ff5f56; box-shadow: 0 0 10px #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; }
.terminal-button.green { background: #27c93f; box-shadow: 0 0 10px #27c93f; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--success);
    min-height: 60px;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.command {
    color: var(--success);
    flex: 1;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: bold;
    margin-left: 0.2rem;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

/* Hero Greeting */
.hero-greeting {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInDown 0.8s ease-out;
}

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

.greeting-text {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.greeting-name {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.5px;
    position: relative;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 24px rgba(0, 243, 255, 0.18), 0 2px 8px rgba(0,0,0,0.35);
}

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

.glitch-wrapper {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--primary);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--primary); }
    25% { text-shadow: -2px 0 10px var(--primary), 2px 0 10px var(--secondary); }
    50% { text-shadow: 2px 0 10px var(--secondary), -2px 0 10px var(--primary); }
    75% { text-shadow: 0 2px 10px var(--accent); }
}

.hero-title {
    font-size: clamp(2.75rem, 8.5vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.75rem;
    line-height: 1.05;
    text-shadow: 0 8px 28px rgba(0, 243, 255, 0.12);
}

.glitch {
    position: relative;
    display: inline-block;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--text-light);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    40% { clip-path: inset(58% 0 43% 0); }
    60% { clip-path: inset(40% 0 61% 0); }
    80% { clip-path: inset(92% 0 1% 0); }
    100% { clip-path: inset(43% 0 1% 0); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.code-bracket {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0.5rem;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

/* Live Stats */
.live-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 800px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

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

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

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

/* Ripple effect for interactive elements */
.ripple {
    position: absolute;
    transform: scale(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 60%);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(2.5); opacity: 0; }
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 70px rgba(0, 243, 255, 0.7);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
    transform: translateY(-4px) scale(1.02);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Cursor spotlight (desktop only) */
#cursor-spotlight {
    position: fixed;
    width: 220px;
    height: 220px;
    margin-left: -110px;
    margin-top: -110px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,243,255,0.12) 0%, rgba(255,0,255,0.05) 40%, transparent 70%);
    mix-blend-mode: screen;
    z-index: 5;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
    box-shadow: var(--glow-primary);
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.arrow {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arrow span {
    width: 12px;
    height: 2px;
    background: var(--primary);
    display: block;
    animation: arrow-move 2s ease-in-out infinite;
    box-shadow: var(--glow-primary);
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
    width: 10px;
    margin: 0 auto;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
    width: 8px;
    margin: 0 auto;
}

@keyframes arrow-move {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.5; }
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    text-shadow: var(--glow-primary);
}

/* Tech Stack */
.tech-stack {
    margin: 3rem 0;
}

.tech-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.tech-stack h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.tech-item {
    padding: 0.8rem 1rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    color: var(--primary);
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-primary);
}

/* Education Timeline */
.education-timeline {
    margin-top: 3rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--glow-primary);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.timeline-institution {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--glow-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Profile Card with Photo */
.profile-card {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 3rem;
}

/* Shine overlay (mouse-follow) */
.profile-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background: radial-gradient(300px 300px at var(--shine-x, -200px) var(--shine-y, -200px), rgba(255,255,255,0.15), transparent 60%);
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-heavy);
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    z-index: 1;
    animation: rotate-border 10s linear infinite;
    box-shadow: var(--glow-primary);
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    z-index: 1;
    animation: rotate-border 10s linear infinite;
    box-shadow: var(--glow-primary);
}

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

/* Floating Badges */
.float-badge {
    position: absolute;
    padding: 0.6rem 1rem;
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--primary);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.float-badge i {
    font-size: 1rem;
}

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

.badge-2 {
    top: 25%;
    right: -5%;
    animation-delay: 0.5s;
}

.badge-3 {
    bottom: 25%;
    left: -5%;
    animation-delay: 1s;
}

.badge-4 {
    bottom: 5%;
    right: -5%;
    animation-delay: 1.5s;
}

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

/* Chart Container */
/* About Text */
.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-primary);
}

.chart-container {
    max-width: 350px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* ========== CURRENTLY LEARNING SECTION ========== */
.currently-learning {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.02) 0%, rgba(255, 0, 255, 0.02) 100%);
}

.currently-learning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    animation: float-bg 20s ease-in-out infinite;
    pointer-events: none;
}

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

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.learning-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.learning-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* keep decorative shape static so it doesn't visually overlap the badge */
    animation: none;
    z-index: 0;
}

.learning-card:hover::before {
    opacity: 0.8;
}

@keyframes float-shapes {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-30px, -30px); }
    50% { transform: translate(-60px, 0); }
    75% { transform: translate(-30px, 30px); }
}

.learning-card:hover {
    /* smooth hover with subtle lift */
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.35),
                0 0 40px rgba(255, 0, 255, 0.25),
                inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.learning-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.6));
    transition: all 0.5s ease;
}

.learning-card:hover .learning-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.9));
}

.learning-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 1.25rem; /* ensure space above the badge */
}

.learning-title {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.learning-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.learning-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-tag:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: scale(1.05);
}

.learning-status {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 22px;
    color: var(--success);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

/* removed pulse animation for status badge to keep it static */

/* Learning Progress Section */
.learning-progress-section {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(255, 0, 255, 0.03) 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.progress-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-timeline {
    position: relative;
    padding: 2rem 0;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 243, 255, 0.5) 0%, rgba(255, 0, 255, 0.5) 50%, rgba(0, 243, 255, 0.5) 100%);
}

.progress-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.progress-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.progress-item:nth-child(odd) .progress-marker {
    margin-left: 0;
}

.progress-marker {
    position: relative;
    width: 30px;
    height: 30px;
    background: var(--bg-darker);
    border: 3px solid rgba(0, 243, 255, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
    top: 0;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.progress-item.completed .progress-marker {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.progress-item.current .progress-marker {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    animation: pulse-marker 1.5s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.progress-item.future .progress-marker {
    background: transparent;
    border-color: rgba(0, 243, 255, 0.3);
}

.progress-content {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.progress-item.current .progress-content {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.progress-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.progress-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Light Theme Adjustments for Learning Section */
html[data-theme="light"] .currently-learning {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(204, 0, 102, 0.03) 100%);
}

html[data-theme="light"] .learning-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

html[data-theme="light"] .learning-card:hover {
    border-color: #0066cc !important;
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15) !important;
}

html[data-theme="light"] .learning-title {
    color: #1a1a2e !important;
}

html[data-theme="light"] .learning-description {
    color: #2d2d2d !important;
}

html[data-theme="light"] .topic-tag {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.3);
}

html[data-theme="light"] .topic-tag:hover {
    background: rgba(0, 102, 204, 0.15);
}

html[data-theme="light"] .learning-progress-section {
    background: rgba(0, 102, 204, 0.04);
    border-color: rgba(0, 102, 204, 0.15);
}

html[data-theme="light"] .progress-timeline::before {
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.4) 0%, rgba(204, 0, 102, 0.4) 50%, rgba(0, 102, 204, 0.4) 100%);
}

html[data-theme="light"] .progress-marker {
    background: #f5f7fa;
    border-color: rgba(0, 102, 204, 0.4);
}

html[data-theme="light"] .progress-item.current .progress-marker {
    border-color: #0066cc;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
}

html[data-theme="light"] .progress-content {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.15);
}

html[data-theme="light"] .progress-item.current .progress-content {
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.3);
}

html[data-theme="light"] .progress-content h4 {
    color: #1a1a2e;
}

html[data-theme="light"] .progress-content p {
    color: #2d2d2d;
}

/* Responsive Design for Learning Section */
@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .progress-timeline::before {
        left: 15px;
    }

    .progress-item {
        gap: 1.5rem;
    }

    .progress-item:nth-child(odd) {
        flex-direction: row;
    }

    .progress-item:nth-child(odd) .progress-marker {
        margin-left: auto;
    }

    .progress-marker {
        width: 25px;
        height: 25px;
    }

    .progress-content {
        padding: 1rem;
    }

    .learning-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .learning-icon {
        font-size: 2rem;
    }
}

/* ========== SKILLS SECTION ========== */
.skills {
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.15) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Hologram orb floating accent */
#holo-orb {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(0,243,255,0.7) 30%, rgba(255,0,255,0.4) 60%, transparent 70%);
    box-shadow: 0 0 40px rgba(0,243,255,0.6), 0 0 70px rgba(255,0,255,0.3);
    filter: blur(0.3px) saturate(140%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 243, 255, 0.3), transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.skill-category:hover::before {
    opacity: 1;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(5, 7, 15, 0.95);
    border-radius: 18px;
    z-index: 0;
}

.skill-category:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.45), 
                0 0 40px rgba(255, 0, 255, 0.25),
                inset 0 0 20px rgba(0, 243, 255, 0.12);
}

.category-header {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    inset: -10px;
    background: var(--gradient-primary);
    border-radius: 20px;
    filter: blur(20px);
    opacity: 0.5;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.category-icon {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.6));
    transition: all 0.5s ease;
}

.skill-category:hover .category-icon {
    transform: rotateY(360deg) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.9));
}

.category-title {
    font-size: 1.4rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.skill-items {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    opacity: 0;
    animation: fade-in-up 0.6s ease forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-name {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-level {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.skill-bar-container {
    position: relative;
    height: 10px;
}

.skill-bar-bg {
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.skill-category:hover .skill-bar-fill {
    width: var(--skill-width) !important;
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.6),
                    0 0 40px rgba(0, 243, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.8),
                    0 0 60px rgba(0, 243, 255, 0.6),
                    0 0 80px rgba(255, 0, 255, 0.4);
    }
}

.skill-bar-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

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

.skill-bar-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 243, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover .skill-bar-glow {
    opacity: 1;
    animation: glow-move 2s ease-in-out infinite;
}

@keyframes glow-move {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.5); }
}

/* Skills Visualization */
.skills-visualization {
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.chart-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.03) 0%, rgba(255, 0, 255, 0.03) 100%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-size: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.chart-title i {
    color: var(--primary);
    font-size: 1.8rem;
    animation: rotate-slow 10s linear infinite;
}

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

.chart-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.legend-dot.primary {
    background: var(--primary);
}

.chart-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* ========== PROJECTS SECTION ========== */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2.5rem;
}

/* Dynamic sheen based on mouse position */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(200px 200px at var(--mx, -300px) var(--my, -300px), rgba(255,255,255,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--glow-primary), var(--shadow-heavy);
}

.project-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 243, 255, 0.1);
    z-index: 0;
    line-height: 1;
}

.project-image {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 255, 0.1));
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.2) rotate(10deg);
    color: rgba(0, 243, 255, 0.5);
}

.project-overlay {
    display: none;
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.project-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

/* Project Links */
.project-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.project-link {
    padding: 0.9rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: max-content;
}

.project-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;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
    color: var(--bg-darker);
}

.project-link i {
    font-size: 1.1rem;
}

/* Projects Footer */
.projects-footer {
    text-align: center;
    margin-top: 4rem;
}

/* GitHub CTA */
.github-cta {
    margin-top: 5rem;
    padding: 4rem;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-content h3 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

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

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.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(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-primary);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

.method-info h4,
.method-details h4 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.method-info span,
.method-details span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact links & details */
.contact-info a,
.method-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-info a::after,
.method-details a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--glow-primary);
    transition: width 0.3s ease;
}

.contact-info a:hover,
.method-details a:hover {
    color: #e6fdff;
}

.contact-info a:hover::after,
.method-details a:hover::after {
    width: 100%;
}

.contact-info a:focus-visible,
.method-details a:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}

.method-details h4 + a {
    display: inline-block;
    margin-top: 2px;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 3rem;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    background: rgba(0, 243, 255, 0.05);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-primary);
}

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

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Resume button spacing under contact info */
.resume-download {
    margin-top: 2rem;
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    padding: 6rem 5% 2rem;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.95) 0%, rgba(10, 14, 39, 0.98) 100%);
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary) 20%,
        var(--secondary) 50%,
        var(--primary) 80%,
        transparent
    );
    animation: scan-line 3s linear infinite;
}

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

.footer-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: footer-glow-pulse 4s ease-in-out infinite;
}

@keyframes footer-glow-pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

/* Footer Main Layout */
.footer-main {
    max-width: 800px;
    margin: 0 auto 4rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Brand Section */
.footer-brand {
    max-width: 700px;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.logo-bracket {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    animation: bracket-glow 2s ease-in-out infinite;
}

@keyframes bracket-glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
}

.footer-tagline {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-stats-mini {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.stat-mini:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stat-mini i {
    color: var(--primary);
    font-size: 1rem;
}

/* Footer Divider */
.footer-divider {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    animation: rotate-slow 10s linear infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

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

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-copyright,
.footer-credits,
.footer-back-top {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-copyright p,
.footer-credits p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-credits {
    text-align: center;
}

.footer-back-top {
    text-align: right;
}

.back-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.back-top-link:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.back-top-link i {
    font-size: 0.9rem;
}

.heartbeat {
    color: #ff0055;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

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

/* Animated Background Shapes */
.footer-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.3;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: float-shape-1 15s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.15) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: float-shape-2 18s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float-shape-3 12s ease-in-out infinite;
}

@keyframes float-shape-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
}

@keyframes float-shape-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.15); }
}

@keyframes float-shape-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(calc(-50% + 30px), calc(-50% - 30px)) scale(1.2); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-left {
        order: 2;
    }

    .about-right {
        order: 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-image-wrapper {
        width: 240px;
        height: 240px;
        margin: 0 auto 2rem;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 250px;
    }

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

    .footer-main {
        padding: 0 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

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

    .footer-back-top {
        text-align: center;
    }
}

/* Medium screens - tablets */
@media (max-width: 900px) {
    .hero-stats {
        gap: 2rem;
    }

    .stat-item {
        min-width: 140px;
    }

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

    .about-content {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }

    .theme-switcher {
        display: flex !important;
        order: 3;
        margin-left: auto;
        margin-right: 1rem;
        gap: 0.5rem;
        border: none;
        padding: 0;
    }

    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0, 243, 255, 0.2);
        z-index: 1000;
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

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

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

    .theme-switcher {
        display: none;
        gap: 0.5rem;
        align-items: center;
    }

    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero {
        padding: 5rem 5% 3rem;
        min-height: auto;
    }

    .hero-greeting {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
        min-width: 120px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-buttons {
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }

    .terminal-window {
        margin-bottom: 2rem;
    }

    .terminal-body {
        font-size: 0.9rem;
        padding: 1.2rem;
    }

    /* Hide heavy background effects on mobile */
    #hero-blob {
        opacity: 0.3;
        filter: blur(60px);
    }

    #cursor-spotlight {
        display: none;
    }

    .scroll-indicator {
        bottom: 2rem;
        transform: translateX(-50%) scale(0.8);
    }

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

    .skill-category {
        padding: 2rem 1.5rem;
    }

    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    /* Reduce hologram orb on mobile */
    #holo-orb {
        display: none;
    }

    .chart-wrapper {
        padding: 2rem 1.5rem;
    }

    .chart-title {
        font-size: 1.2rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

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

    .project-description {
        font-size: 1rem;
    }

    .project-tags {
        gap: 0.6rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-metrics {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .metric {
        font-size: 0.9rem;
    }

    .project-link {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .projects-footer .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 0 1rem;
    }

    .footer-divider {
        gap: 1rem;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .stat-mini {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    /* Reduce footer background shapes on mobile */
    .footer-bg-shapes {
        opacity: 0.15;
    .footer-bg-shapes {
        opacity: 0.15;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .float-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .contact-method {
        padding: 1.2rem;
        min-height: 60px;
    }

    .method-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 3rem 5%;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-greeting {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        gap: 0.5rem;
    }

    .greeting-name {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

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

    .hero-stats {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat-item {
        padding: 0.8rem;
        min-width: 100px;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .terminal-window {
        margin-bottom: 1.5rem;
    }

    .terminal-body {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .float-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .tech-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .skill-category {
        padding: 1.5rem 1.2rem;
    }

    .category-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .category-icon {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .skill-level {
        font-size: 0.8rem;
    }

    .chart-wrapper {
        padding: 1.5rem 1.2rem;
    }

    .project-card {
        padding: 1.5rem 1.2rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .metric {
        font-size: 0.85rem;
    }

    .project-link {
        padding: 0.8rem 1.3rem;
        font-size: 0.85rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .method-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

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

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 3rem 5% 1.5rem;
    }

    .footer-main {
        gap: 2rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .footer-logo {
        font-size: 1.8rem;
        justify-content: center;
    }

    .logo-text {
        font-size: 2rem;
    }

    .footer-tagline {
        text-align: center;
        font-size: 0.85rem;
    }

    .stat-mini {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .footer-bottom {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .footer-copyright,
    .footer-credits {
        justify-content: center;
    }

    .back-top-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .back-top-link span {
        display: none;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }

    /* Further reduce effects on very small screens */
    #hero-blob {
        display: none;
    }

    .footer-bg-shapes .shape {
        display: none;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* ========== SELECTION ========== */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ========== LOADING ANIMATION ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeIn 0.8s ease;
}
