/* ===== Modern Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Tech Developer Color Palette */
    --primary: #00d9ff;
    --primary-hover: #00b8d9;
    --primary-light: #33e5ff;
    --primary-dark: #00a8c4;
    --primary-glow: rgba(0, 217, 255, 0.2);
    
    --secondary: #7c3aed;
    --secondary-hover: #6d28d9;
    --secondary-light: #8b5cf6;
    --secondary-dark: #5b21b6;
    --secondary-glow: rgba(124, 58, 237, 0.2);
    
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #34d399;
    --accent-dark: #047857;
    --accent-glow: rgba(16, 185, 129, 0.2);
    
    --code-green: #10b981;
    --code-blue: #3b82f6;
    --code-purple: #8b5cf6;
    --code-yellow: #f59e0b;
    --code-red: #ef4444;
    
    /* Tech Gradients */
    --gradient-1: linear-gradient(135deg, #00d9ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #00d9ff 0%, #3b82f6 50%, #7c3aed 100%);
    --gradient-4: linear-gradient(180deg, #00d9ff 0%, #7c3aed 100%);
    --gradient-5: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    
    /* Tech Glow Effects */
    --glow-primary: 0 0 15px var(--primary-glow);
    --glow-secondary: 0 0 15px var(--secondary-glow);
    --glow-accent: 0 0 15px var(--accent-glow);
    --glow-mixed: 0 0 20px rgba(0, 217, 255, 0.15);
    
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff3366;
    
    /* Text Colors - Tech Theme */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0a0e27;
    --text-glow: rgba(226, 232, 240, 0.9);
    --text-code: #00d9ff;
    
    /* Background Colors - Tech Dark Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1629;
    --bg-tertiary: #151b2e;
    --bg-card: rgba(15, 22, 41, 0.8);
    --bg-glass: rgba(15, 22, 41, 0.6);
    --bg-glass-hover: rgba(15, 22, 41, 0.9);
    --bg-dark: #050811;
    --bg-code: #1a1f35;
    
    /* Glassmorphism - Tech Dark Mode */
    --glass-bg: rgba(15, 22, 41, 0.6);
    --glass-border: rgba(0, 217, 255, 0.15);
    --glass-blur: blur(20px) saturate(180%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-hover: rgba(15, 22, 41, 0.9);
    
    /* Borders - Tech Mode */
    --border-light: rgba(0, 217, 255, 0.2);
    --border-medium: rgba(0, 217, 255, 0.3);
    --border-dark: rgba(0, 217, 255, 0.4);
    --border-glow: rgba(0, 217, 255, 0.5);
    --border-grid: rgba(0, 217, 255, 0.1);
    
    /* Shadows - Tech Mode */
    --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 4px 20px rgba(0, 217, 255, 0.3);
    --shadow-glow-lg: 0 8px 40px rgba(0, 217, 255, 0.4);
    
    /* Spacing - Enhanced */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions - Premium */
    --transition-fast: 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-base: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius - Enhanced */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;
    
    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* 3D Perspective */
    --perspective: 1000px;
    --perspective-small: 500px;
    --perspective-large: 2000px;
    
    /* 3D Transforms */
    --transform-3d: perspective(var(--perspective));
    --transform-origin: center center;
}

/* Light Mode Support (Optional) */
@media (prefers-color-scheme: light) {
    :root {
        --text-primary: #000000;
        --text-secondary: #666666;
        --text-tertiary: #999999;
        
        --bg-primary: #ffffff;
        --bg-secondary: #fafafa;
        --bg-tertiary: #f5f5f5;
        --bg-card: #ffffff;
        
        --border-light: #eaeaea;
        --border-medium: #e0e0e0;
        --border-dark: #d0d0d0;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Code', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', monospace;
    background: var(--bg-primary);
    background-image: 
        linear-gradient(rgba(0, 112, 243, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 112, 243, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 112, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 99px,
            rgba(0, 112, 243, 0.015) 99px,
            rgba(0, 112, 243, 0.015) 100px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

/* Tech Code Background Layer - Simplified for Performance */
.tech-code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 112, 243, 0.03) 2px,
            rgba(0, 112, 243, 0.03) 4px
        );
    background-size: 100px 100px;
}

/* Hexagon Pattern - Static for Performance */
.hexagon-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 80px,
            rgba(0, 112, 243, 0.08) 80px,
            rgba(0, 112, 243, 0.08) 81px
        );
}

/* Circuit Board Pattern - Static for Performance */
.circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 112, 243, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
    background-size: 150px 150px, 150px 150px;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-md);
    }
}

/* Modal Responsive Styles */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 75vw;
        max-height: 65vh;
        border-radius: clamp(12px, 2vw, 20px);
    }
    
    .modal-media-container {
        height: min(28vh, 280px);
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .project-modal {
        padding: 0;
        align-items: flex-end;
        padding-top: 70px; /* مسافة من الـ header */
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: calc(100vh - 70px); /* طرح ارتفاع الـ header */
        border-radius: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 20px) 0 0;
        margin: 0;
        transform: translateY(100%);
        width: 100%;
    }
    
    .project-modal.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-media-container {
        height: min(35vh, 320px);
        min-height: 200px;
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .modal-close {
        top: clamp(10px, 2vw, 15px);
        right: clamp(10px, 2vw, 15px);
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .modal-info {
        padding: clamp(16px, 3vw, 24px);
    }
    
    .modal-info h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: clamp(6px, 1.5vw, 12px);
    }
    
    .modal-info p {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .project-modal {
        padding: 0;
        padding-top: 60px; /* مسافة أقل على الشاشات الصغيرة */
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: calc(100vh - 60px); /* طرح ارتفاع الـ header */
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }
    
    .modal-backdrop {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .modal-media-container {
        height: min(30vh, 280px);
        min-height: 180px;
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
    
    .modal-info {
        padding: 20px 16px;
    }
    
    .modal-info h3 {
        font-size: 1.1rem;
    }
    
    .modal-info p {
        font-size: 0.9rem;
    }
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Premium Header & Navigation with Glassmorphism ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
    opacity: 0.5;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.main-header.scrolled {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), var(--glow-primary);
    border-bottom-color: var(--border-glow);
}

.main-header.scrolled::before {
    opacity: 0.5;
}

body:not(.loaded) .main-header {
    opacity: 0;
}

body.loaded .main-header {
    opacity: 1;
    animation: fadeInDown 0.6s ease-out;
}

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

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: var(--space-md) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', 'Fira Code', monospace;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    position: relative;
    transition: all var(--transition-base);
    text-shadow: 0 0 10px var(--primary-glow);
    display: inline-block;
}

.logo::before {
    content: '> ';
    color: var(--code-green);
}

.logo::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--primary);
}

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

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-3);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-primary);
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.6));
    transform: scale(1.05);
}

.logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: var(--glass-blur);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 16px);
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.social-icon,
.contact-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-icon::before,
.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.social-icon:hover,
.contact-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 245, 255, 0.3);
}

.social-icon:hover::before,
.contact-btn:hover::before {
    opacity: 0.2;
}

.social-icon:active,
.contact-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
    display: block;
}

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

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

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

/* ===== Premium Hero Section with Glassmorphism ===== */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--space-xl);
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--border-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(124, 58, 237, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.01) 50%, transparent 70%);
    z-index: 0;
    opacity: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 112, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(121, 40, 202, 0.15) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

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

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: relative;
    will-change: transform;
}

#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(0, 112, 243, 0.02) 50%, transparent 52%);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

/* ===== Hero Content Centered Layout - Professional Tech Design ===== */
.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.hero-image-wrapper-top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    margin-bottom: var(--space-md);
}

.hero-image-frame-square {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: visible;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 112, 243, 0.2),
        inset 0 0 40px rgba(0, 112, 243, 0.1),
        0 0 0 1px rgba(0, 112, 243, 0.3);
    transform-style: preserve-3d;
    transform-origin: center center;
}

.hero-image-frame-square::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.3), rgba(121, 40, 202, 0.3));
    border-radius: var(--radius-lg);
    opacity: 0.5;
    z-index: -1;
    filter: blur(15px);
}

.hero-image-frame-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 112, 243, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 112, 243, 0.1) 50%, transparent 100%);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.hero-image-frame-square:hover {
    border-color: var(--primary);
    box-shadow: 
        0 12px 48px rgba(0, 112, 243, 0.3),
        inset 0 0 60px rgba(0, 112, 243, 0.15),
        0 0 0 2px rgba(0, 112, 243, 0.4);
}

.hero-image-frame-square:hover::before {
    opacity: 0.7;
}

.hero-image-frame-square:hover::after {
    opacity: 0.5;
}

/* Code Corner Decorations */
.code-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    z-index: 3;
    opacity: 0.8;
}

.code-corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: var(--radius-sm);
}

.code-corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: var(--radius-sm);
}

.code-corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
}

.code-corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: var(--radius-sm);
}

.hero-image-frame-square:hover .code-corner {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.15) 0%, rgba(121, 40, 202, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    border-radius: var(--radius-2xl);
}

.hero-image-placeholder.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.placeholder-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    filter: brightness(1.05) contrast(1.05);
}

.hero-image.loaded {
    opacity: 1;
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

.hero-image-frame-square:hover .hero-image {
    filter: brightness(1.1) contrast(1.1);
}

.hero-image.error {
    opacity: 1;
    background: var(--bg-card);
}

.hero-image-glow,
.hero-image-border {
    display: none;
}


.hero-badge {
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.badge-icon {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-text-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    max-width: 800px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-greeting-centered {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    flex-wrap: wrap;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.greeting-icon {
    font-size: 1.25rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.name-highlight {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.5));
    position: relative;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-3);
    border-radius: var(--radius-full);
    opacity: 0.5;
    box-shadow: var(--glow-primary);
}

.hero-title-centered {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin: 0;
    text-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
    filter: drop-shadow(0 4px 20px rgba(0, 245, 255, 0.2));
    position: relative;
}

.hero-title-centered::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: title-glow 3s ease-in-out infinite;
    z-index: -1;
    filter: blur(10px);
}

@keyframes title-glow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-size: 0.4em;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-secondary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.title-main {
    display: block;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.title-sub {
    display: block;
    font-size: 0.5em;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5em;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.hero-description-centered {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ===== Professional Tech Hero Badge ===== */

/* ===== Professional Tech Hero Name Section ===== */
.hero-name-section {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-greeting-tech {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.hero-name-tech {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    font-family: 'Courier New', 'Fira Code', monospace;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin: var(--space-xs) 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.name-first {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}


.name-last {
    color: var(--code-green);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.name-last::after {
    content: ' = {';
    color: var(--text-secondary);
    font-size: 0.3em;
    font-weight: 400;
}

.hero-role-tech {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.role-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-code);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-code);
    font-family: 'Courier New', 'Fira Code', monospace;
    font-weight: 400;
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.role-separator {
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

/* ===== Professional Tech Hero Description ===== */
.hero-description-tech {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    animation: fadeInUp 0.6s ease-out 0.6s both;
    font-weight: 400;
}

/* ===== Terminal/Code Editor Style - Professional 3D ===== */
.hero-terminal-tech {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 22, 41, 0.98) 100%);
    border: 2px solid rgba(0, 112, 243, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 112, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Courier New', 'Fira Code', 'Consolas', monospace;
    animation: fadeInUp 0.6s ease-out 0.6s both;
    position: relative;
    transform-style: preserve-3d;
    perspective: var(--perspective);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .hero-terminal-tech {
        max-width: 550px;
    }
}

@media (min-width: 1400px) {
    .hero-terminal-tech {
        max-width: 500px;
    }
}

.hero-terminal-tech::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.4), rgba(121, 40, 202, 0.4));
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.hero-terminal-tech:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(0, 112, 243, 0.5);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(0, 112, 243, 0.3),
        0 0 40px rgba(0, 112, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.hero-terminal-tech:hover::before {
    opacity: 0.6;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 2px solid rgba(0, 112, 243, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.terminal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0.5), transparent);
}

.terminal-controls {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.terminal-dot:hover {
    transform: scale(1.2);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.terminal-dot-red {
    background: linear-gradient(135deg, #ff5f56 0%, #ff3b30 100%);
}

.terminal-dot-yellow {
    background: linear-gradient(135deg, #ffbd2e 0%, #ff9500 100%);
}

.terminal-dot-green {
    background: linear-gradient(135deg, #27c93f 0%, #00c853 100%);
}

.terminal-title {
    font-size: 0.8125rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 112, 243, 0.3);
}

.terminal-profile-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.terminal-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(0, 112, 243, 0.4);
    object-fit: cover;
    box-shadow: 
        0 0 20px rgba(0, 112, 243, 0.3),
        inset 0 0 20px rgba(0, 112, 243, 0.1);
    transition: all 0.3s ease;
}

.terminal-profile-img:hover {
    border-color: rgba(0, 112, 243, 0.6);
    box-shadow: 
        0 0 30px rgba(0, 112, 243, 0.5),
        inset 0 0 30px rgba(0, 112, 243, 0.2);
    transform: scale(1.02);
}

.terminal-body {
    padding: var(--space-lg);
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--text-primary);
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 112, 243, 0.03) 1px,
            rgba(0, 112, 243, 0.03) 2px
        );
    position: relative;
    min-height: 280px;
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0.3), transparent);
}

.terminal-line {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    transition: all 0.2s ease;
    padding: 2px 0;
}

.terminal-line:hover {
    background: rgba(0, 112, 243, 0.05);
    padding-left: var(--space-xs);
    border-left: 2px solid rgba(0, 112, 243, 0.3);
}

.terminal-prompt {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 8px var(--primary-glow);
    min-width: 1ch;
}

.terminal-command {
    color: var(--code-green);
    font-weight: 500;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.terminal-line:hover .terminal-command {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.terminal-output {
    margin-left: calc(var(--space-xs) + 1ch);
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
    border-left: 1px solid rgba(0, 112, 243, 0.2);
    transition: all 0.2s ease;
}

.terminal-line:hover + .terminal-output,
.terminal-output:hover {
    border-left-color: rgba(0, 112, 243, 0.4);
    padding-left: var(--space-md);
}

.terminal-keyword {
    color: #c792ea;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(199, 146, 234, 0.3);
}

.terminal-variable {
    color: #82aaff;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(130, 170, 255, 0.3);
}

.terminal-string {
    color: #c3e88d;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(195, 232, 141, 0.3);
}

.terminal-comment {
    color: #546e7a;
    font-style: italic;
    opacity: 0.8;
}

.terminal-cursor {
    margin-top: var(--space-sm);
}

.terminal-cursor-blink {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: blink 1s infinite, pulse-glow 2s ease-in-out infinite;
}

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

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

/* ===== Professional Tech Stats ===== */
.hero-stats-tech {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.stat-card-tech {
    padding: var(--space-lg) var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.stat-card-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    z-index: 1;
}

.stat-card-tech:hover {
    border-color: var(--primary);
    box-shadow: 
        0 4px 16px rgba(0, 112, 243, 0.15),
        0 0 0 1px rgba(0, 112, 243, 0.1);
}

.stat-card-tech:hover::before {
    transform: scaleX(1);
}

.stat-value-tech {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
}

.stat-value-tech .stat-number {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    display: inline-block;
}

.stat-unit {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.85;
}

.stat-label-tech {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
}

.stat-card-tech:hover .stat-label-tech {
    color: var(--primary);
}

.stat-line-tech {
    width: 40px;
    height: 2px;
    background: var(--gradient-3);
    margin: 0 auto;
    border-radius: var(--radius-full);
    opacity: 0.4;
    position: relative;
    z-index: 2;
}

/* ===== Professional Tech Buttons ===== */
.hero-buttons-tech {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 1s both;
    margin-top: var(--space-md);
}

.btn-tech {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-tech-primary {
    background: var(--bg-code);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
    font-family: 'Courier New', 'Fira Code', monospace;
}

.btn-tech-primary:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.5),
        inset 0 0 30px rgba(0, 217, 255, 0.2);
}

.btn-tech-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    font-family: 'Courier New', 'Fira Code', monospace;
}

.btn-tech-outline:hover {
    background: var(--bg-code);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.2),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-tech svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.btn-tech:hover svg {
    transform: translateX(4px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
    text-align: center;
}

.hero-stat-item .stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-plus {
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}

.hero-stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.hero-buttons-centered {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.9s both;
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span,
.btn svg {
    position: relative;
    z-index: 1;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-3);
    color: var(--text-inverse);
    box-shadow: 
        0 8px 24px rgba(0, 245, 255, 0.4),
        var(--glow-primary);
    border: 1px solid rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    transform-style: preserve-3d;
    perspective: var(--perspective-small);
    transform-origin: center center;
    will-change: transform;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    background: var(--gradient-1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.3),
        var(--glow-primary);
    border-color: var(--primary);
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(0, 245, 255, 0.3);
}

.btn-secondary:hover::before {
    opacity: 0.15;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}


/* ===== Section Styles ===== */
section {
    padding: var(--space-xl) 0;
    position: relative;
    border-bottom: 1px solid var(--border-grid);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-3);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-base);
}

section.visible::before {
    opacity: 0.3;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
    margin: var(--space-2xl) 0;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider.fancy {
    height: 2px;
    background: var(--gradient-3);
    opacity: 0.5;
    margin: var(--space-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    line-height: 1.2;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-3);
    border-radius: var(--radius-full);
    opacity: 0.5;
}

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

.section-description {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: var(--space-xl) auto var(--space-2xl);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== Personal Info Section ===== */
.personal-info-section {
    background: var(--bg-primary);
    position: relative;
    padding: var(--space-2xl) 0;
}

.personal-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 112, 243, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(121, 40, 202, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.personal-info-section .container {
    position: relative;
    z-index: 1;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    z-index: 1;
}

.info-item:hover {
    border-color: var(--primary);
    box-shadow: 
        0 2px 8px rgba(0, 112, 243, 0.1);
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 2;
}

.info-item:hover .info-icon {
    background: rgba(0, 112, 243, 0.1);
    border-color: var(--primary);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.info-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.info-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.info-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: -0.01em;
}

/* ===== Expertise Section ===== */
.expertise-section {
    background: var(--bg-primary);
    position: relative;
    padding: var(--space-2xl) 0;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(121, 40, 202, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 112, 243, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.expertise-section .container {
    position: relative;
    z-index: 1;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-item {
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    z-index: 1;
}

.expertise-item:hover {
    border-color: var(--primary);
    box-shadow: 
        0 2px 8px rgba(0, 112, 243, 0.1);
}

.expertise-item:hover::before {
    transform: scaleX(1);
}

.expertise-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary);
    position: relative;
    z-index: 2;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.expertise-item:hover .expertise-icon {
    background: rgba(0, 112, 243, 0.1);
    border-color: var(--primary);
}

.expertise-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.expertise-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.expertise-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--bg-primary);
    position: relative;
    padding: var(--space-2xl) 0;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 20%, rgba(0, 112, 243, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(121, 40, 202, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.skills-section .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
}

/* Programming Languages Section */
.programming-languages-section {
    background: var(--bg-primary);
    position: relative;
    padding: var(--space-2xl) 0;
}

.programming-languages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 112, 243, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.programming-languages-section .container {
    position: relative;
    z-index: 1;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.language-card {
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    z-index: 1;
}

.language-card:hover {
    border-color: var(--primary);
    box-shadow: 
        0 2px 8px rgba(0, 112, 243, 0.1);
}

.language-card:hover::before {
    transform: scaleX(1);
}

.language-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 50%;
    padding: var(--space-xs);
    box-shadow: 
        0 2px 8px rgba(0, 112, 243, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 112, 243, 0.05);
    transition: all 0.2s ease;
}

.language-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.language-card:hover .language-icon {
    background: rgba(0, 112, 243, 0.12);
    border-color: var(--primary);
    box-shadow: 
        0 4px 12px rgba(0, 112, 243, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(0, 112, 243, 0.1);
    transform: translateY(-2px);
}

.language-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.language-card:hover .language-name {
    color: var(--primary);
}

.languages-note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: var(--space-lg);
    font-style: italic;
}

.skill-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-card:hover {
    border-color: var(--primary);
    box-shadow: 
        0 4px 20px rgba(0, 112, 243, 0.1),
        0 0 0 1px rgba(0, 112, 243, 0.1);
    transform: translateY(-2px);
}

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

.skill-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover .skill-icon {
    background: rgba(0, 112, 243, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.skill-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.skill-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.skill-period {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.skill-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 2;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 112, 243, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin-top: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-3);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-xs);
}

.progress-fill span:first-child {
    display: none;
}

.progress-fill span:last-child {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-inverse);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: absolute;
    right: var(--space-xs);
    white-space: nowrap;
}


/* ===== Projects Section ===== */
.projects-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(121, 40, 202, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 112, 243, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-xs) var(--space-lg);
    background: var(--bg-code);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bg-code);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 20px rgba(0, 217, 255, 0.1),
        0 0 20px rgba(0, 217, 255, 0.2);
    text-shadow: 0 0 10px var(--primary-glow);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 0.3;
}

.filter-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.project-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-code);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    isolation: isolate;
    cursor: pointer;
    font-family: 'Courier New', 'Fira Code', monospace;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--project-gradient, var(--gradient-3));
    border-radius: var(--radius-2xl);
    opacity: 0;
    filter: blur(30px);
    transition: opacity var(--transition-base);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 112, 243, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
    box-shadow: var(--glow-primary);
}

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

.project-card:hover::before {
    opacity: 0.2;
}

.project-card:active {
    transform: translateY(-4px) scale(1.01);
}


.project-image {
    width: 100%;
    height: 100%;
    background: var(--project-gradient, linear-gradient(135deg, rgba(0, 112, 243, 0.3), rgba(121, 40, 202, 0.3)));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.08);
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-image::before {
    opacity: 1;
}

/* Project number removed - cleaner look */

.project-number {
    display: none; /* Hidden for cleaner Dribbble-style look */
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 245, 255, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    z-index: 1;
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.2));
}

.project-card:hover .project-number {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--project-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    filter: blur(20px);
}

.project-card:hover::before {
    opacity: 0.3;
}

/* Overlay removed - projects show directly like Dribbble */

/* Video Play Icon */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.video-play-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.project-card:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.project-card:hover .video-play-icon svg {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

/* ===== Project Modal ===== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(10px, 2vw, 30px);
    padding-top: clamp(150px, 20vh, 250px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure modal stays centered on all screen sizes */
@media (min-width: 769px) and (max-width: 1399px) {
    .project-modal {
        align-items: flex-start;
        justify-content: center;
        padding: clamp(15px, 2vw, 40px);
        padding-top: clamp(150px, 20vh, 250px);
    }
    
    .modal-content {
        margin-top: 0;
    }
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.project-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: min(70vw, 800px);
    max-height: min(70vh, 600px);
    background: var(--bg-primary);
    border-radius: clamp(16px, 2vw, 24px);
    overflow: hidden;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 112, 243, 0.4),
        inset 0 0 80px rgba(0, 112, 243, 0.15),
        0 0 200px rgba(0, 112, 243, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 auto;
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Default for desktop screens - centered */
@media (min-width: 1025px) and (max-width: 1399px) {
    .modal-content {
        margin-top: 0; /* في المنتصف */
    }
}

.modal-close {
    position: absolute;
    top: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    width: clamp(36px, 5vw, 48px);
    height: clamp(36px, 5vw, 48px);
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 112, 243, 0.4);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-media-container {
    width: 100%;
    height: min(32vh, 320px);
    min-height: 180px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

.modal-image,
.modal-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
    margin: 0;
}

.modal-image {
    cursor: zoom-in;
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal-video {
    background: #000;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Ensure content fits properly */
.modal-media-container img,
.modal-media-container video {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Loading state for media */
.modal-media-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.modal-media-container.loading::before {
    opacity: 1;
}

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

.modal-info {
    padding: clamp(20px, 4vw, 40px);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-info h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 clamp(8px, 1.5vw, 16px) 0;
    font-family: 'Courier New', 'Fira Code', monospace;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    word-break: break-word;
}

.modal-info p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    word-break: break-word;
}

/* Modal Animation Improvements */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-modal.active .modal-content {
    animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Tablet Optimizations (iPad, etc.) */
@media (min-width: 481px) and (max-width: 1024px) {
    .project-modal {
        align-items: flex-start;
        justify-content: center;
        padding: 20px;
        padding-top: clamp(150px, 20vh, 250px);
    }
    
    .modal-content {
        max-width: 70vw;
        max-height: 60vh;
        margin: 0 auto;
    }
    
    .modal-media-container {
        height: min(26vh, 260px);
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .modal-content {
        max-width: 750px;
        max-height: 70vh;
        margin-top: 0; /* في المنتصف */
    }
    
    .modal-media-container {
        height: 340px;
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Extra Large Screens */
@media (min-width: 1920px) {
    .modal-content {
        max-width: 800px;
        max-height: 70vh;
        margin-top: 0; /* في المنتصف */
    }
    
    .modal-media-container {
        height: 360px;
    }
    
    .modal-image,
    .modal-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: var(--perspective);
    transform-origin: center center;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    box-shadow: var(--glow-primary);
    z-index: 2;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-5);
    opacity: 0;
    filter: blur(30px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover::after {
    opacity: 0.6;
}

.stat-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 112, 243, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-6px) scale(1.02);
    background: var(--glass-hover);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:active {
    transform: translateY(-2px) scale(1.01);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--primary);
    opacity: 0.8;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.1), rgba(121, 40, 202, 0.1));
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.stat-item:hover .stat-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.2), rgba(121, 40, 202, 0.2));
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    display: inline-block;
    transition: transform var(--transition-base);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-base);
    margin-top: var(--space-xs);
}

.stat-item:hover .stat-label {
    color: var(--primary);
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 112, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(121, 40, 202, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-card {
    padding: var(--space-md);
    background: var(--bg-code);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.05);
    display: block;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', 'Fira Code', monospace;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-3);
    border-radius: var(--radius-2xl);
    opacity: 0;
    filter: blur(25px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-3);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-primary);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 
        inset 0 0 30px rgba(0, 217, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    background: var(--bg-code);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover::before {
    opacity: 1;
    box-shadow: var(--glow-primary);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover::after {
    width: 80%;
}

.contact-card:active {
    transform: translateY(-2px) scale(1.01);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-code);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    box-shadow: 
        inset 0 0 20px rgba(0, 217, 255, 0.1),
        0 0 20px rgba(0, 217, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-3);
    border-radius: var(--radius-2xl);
    opacity: 0;
    filter: blur(20px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.contact-icon svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    transition: transform var(--transition-base);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 
        var(--shadow-lg),
        var(--glow-primary);
}

.contact-card:hover .contact-icon::before {
    opacity: 0.3;
}

.contact-card:hover .contact-icon svg {
    transform: scale(1.05);
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary);
    letter-spacing: 0.05em;
    font-family: 'Courier New', 'Fira Code', monospace;
    text-transform: uppercase;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.contact-card p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.social-link:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        var(--shadow-lg),
        var(--glow-primary);
}

.social-link:hover::before {
    opacity: 0.2;
}

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

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-light);
    padding: var(--space-2xl) 0 var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-xs);
    transition: var(--transition-base);
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-copyright {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

.main-footer p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

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

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

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

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-scale {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Stagger animation delays */



/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content-centered {
        gap: var(--space-lg);
    }

    .hero-image-frame-square {
        width: 260px;
        height: 260px;
    }

    .hero-stats-centered {
        gap: var(--space-lg);
        max-width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-text {
        text-align: center;
        align-items: center;
    }

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

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

    .hero-image-frame {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--gradient-3);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 112, 243, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===== Bottom Navigation Bar for Mobile ===== */
/* ===== Bottom Navigation Bar for Mobile ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: var(--space-xs) 0;
    margin: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
    opacity: 0.5;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 var(--space-sm);
    gap: var(--space-xs);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.625rem;
    font-weight: 500;
    font-family: 'Courier New', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    width: 100%;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    position: relative;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
}

.bottom-nav-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.bottom-nav-item.active .bottom-nav-link,
.bottom-nav-item:hover .bottom-nav-link {
    color: var(--primary);
    background: var(--bg-code);
    border: 1px solid var(--primary);
    box-shadow: 
        inset 0 0 15px rgba(0, 217, 255, 0.1),
        0 0 15px rgba(0, 217, 255, 0.2);
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item:hover .bottom-nav-icon {
    color: var(--primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 0 0 2px 2px;
}

.bottom-nav-label {
    font-size: 0.625rem;
    font-weight: 500;
    margin-top: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    /* Hide bottom nav */
    .bottom-nav {
        display: none !important;
    }

    /* Show header on mobile */
    .main-header {
        display: block;
    }

    /* Reduce header thickness on mobile */
    .navbar {
        padding: var(--space-xs) 0;
    }

    .nav-wrapper {
        gap: var(--space-md);
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Remove padding bottom from body */
    body {
        padding-bottom: 0 !important;
    }

    html {
        scroll-padding-bottom: 0;
    }

    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

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

    .section-divider.fancy {
        margin: var(--space-lg) 0;
    }

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

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        transition: left var(--transition-base);
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-link {
        font-size: 1.125rem;
        padding: var(--space-sm) 0;
        font-family: 'Courier New', 'Fira Code', monospace;
    }

    .nav-actions {
        display: none;
    }

    .hero-section {
        padding: 100px 0 var(--space-xl);
        min-height: auto;
    }

    .hero-content-centered {
        gap: var(--space-lg);
    }

    .hero-image-frame-square {
        width: 280px;
        height: 280px;
        border-radius: var(--radius-lg);
    }

    .code-corner {
        width: 18px;
        height: 18px;
    }

    .hero-image {
        border-radius: var(--radius-xl);
    }

    .hero-image-placeholder {
        border-radius: var(--radius-xl);
    }

    .hero-title-centered {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
    }

    .hero-description-centered {
        font-size: 1rem;
    }

    .hero-stats-centered,
    .hero-stats-tech {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding: var(--space-lg) 0;
        max-width: 100%;
    }

    .stat-card-tech {
        padding: var(--space-md) var(--space-sm);
    }

    .hero-stat-item .stat-number,
    .stat-value-tech .stat-number {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .stat-unit {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }

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

    .hero-name-tech {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .hero-role-tech {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .role-separator {
        display: none;
    }

    .hero-buttons-tech {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

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

    .stat-plus {
        font-size: 1.5rem;
    }

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

    .hero-buttons-centered {
        flex-direction: column;
        width: 100%;
    }

    .hero-content {
        gap: var(--space-xl);
    }

    .hero-image-frame {
        max-width: 280px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg) 0;
    }

    .hero-stat-item .stat-number {
        font-size: 1.5rem;
    }

    .stat-plus {
        font-size: 1.25rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

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

    .skills-grid,
    .projects-grid,
    .expertise-grid,
    .personal-info-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .skill-card {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .skill-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-md);
    }

    .skill-icon svg {
        width: 28px;
        height: 28px;
    }

    .skill-card h3 {
        font-size: 1.25rem;
    }

    .skill-description {
        font-size: 0.875rem;
        margin-bottom: var(--space-lg);
    }

    .expertise-item {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .expertise-icon {
        width: 40px;
        height: 40px;
    }

    .expertise-icon svg {
        width: 18px;
        height: 18px;
    }

    .expertise-item h3 {
        font-size: 0.9375rem;
    }

    .expertise-item p {
        font-size: 0.75rem;
    }

    .info-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .info-icon {
        width: 48px;
        height: 48px;
    }

    .info-content p {
        font-size: 0.8125rem;
    }

    .info-content strong {
        font-size: 1rem;
    }

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

    .languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--space-sm);
    }

    .language-card {
        padding: var(--space-sm);
    }

    .language-icon {
        width: 36px;
        height: 36px;
    }

    .language-name {
        font-size: 0.7rem;
    }

}

@media (max-width: 480px) {
    /* Further reduce header thickness on small mobile */
    .navbar {
        padding: var(--space-xs) 0;
    }

    .logo {
        font-size: 1.125rem;
    }

    .terminal-profile-img {
        width: 120px;
        height: 120px;
    }

    .terminal-profile-container {
        margin-bottom: var(--space-sm);
    }

    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }

    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-sm);
        width: 40px;
        height: 40px;
    }

    .hero-section {
        padding: 80px 0 var(--space-lg);
    }

    .hero-image-frame-square {
        width: 220px;
        height: 220px;
    }

    .hero-name-tech {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-description-tech {
        font-size: 0.9rem;
    }

    .hero-terminal-tech {
        max-width: 100%;
        margin: 0 auto var(--space-md);
    }

    .terminal-body {
        padding: var(--space-sm);
        font-size: 0.8125rem;
    }

    .stat-card-tech {
        padding: var(--space-lg) var(--space-md);
    }

    .stat-value-tech .stat-number {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .stat-unit {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    .stat-label-tech {
        font-size: 0.8125rem;
    }

    .hero-stats-tech {
        gap: var(--space-md);
        max-width: 100%;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-section {
        padding: 90px 0 var(--space-lg);
    }

    .hero-content-centered {
        gap: var(--space-md);
    }

    .hero-image-frame-square {
        width: 260px;
        height: 260px;
        border-radius: var(--radius-lg);
    }

    .hero-image {
        border-radius: var(--radius-lg);
    }

    .hero-image-placeholder {
        border-radius: var(--radius-lg);
    }

    .code-corner {
        width: 16px;
        height: 16px;
    }

    .hero-badge-top {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.75rem;
        gap: var(--space-xs);
    }

    .badge-icon {
        width: 18px;
        height: 18px;
        font-size: 0.875rem;
    }

    .hero-title-centered {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .hero-description-centered {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-stats-centered,
    .hero-stats-tech {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    .stat-card-tech {
        padding: var(--space-md) var(--space-sm);
    }

    .hero-stat-item .stat-number,
    .stat-value-tech .stat-number {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .stat-unit {
        font-size: clamp(0.875rem, 2vw, 1.25rem);
    }

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

    .stat-card-tech {
        padding: var(--space-md);
    }

    .hero-name-tech {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description-tech {
        font-size: 1rem;
    }

    .hero-terminal-tech {
        max-width: 100%;
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: var(--space-xs);
    }

    .terminal-line {
        margin-bottom: 2px;
    }

    .terminal-profile-img {
        width: 150px;
        height: 150px;
    }

    .terminal-profile-container {
        margin-bottom: var(--space-md);
    }

    .hero-buttons-tech {
        flex-direction: column;
        width: 100%;
    }

    .btn-tech {
        width: 100%;
    }

    .personal-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .info-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .info-icon {
        width: 44px;
        height: 44px;
    }

    .info-icon svg {
        width: 20px;
        height: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        max-width: 100%;
    }

    .stat-item {
        padding: var(--space-lg) var(--space-md);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-sm);
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

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

    .info-content p {
        font-size: 0.75rem;
    }

    .info-content strong {
        font-size: 0.9375rem;
    }

    .stat-plus {
        font-size: 1.25rem;
    }

    .hero-stat-item .stat-label {
        font-size: 0.7rem;
    }

    .hero-image-frame {
        max-width: 240px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-stat-item .stat-number {
        font-size: 1.75rem;
    }

    section {
        padding: var(--space-xl) 0;
    }

    .skills-grid,
    .expertise-grid,
    .personal-info-grid {
        grid-template-columns: 1fr;
    }

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

    .languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--space-md);
    }

    .language-card {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .language-icon {
        width: 56px;
        height: 56px;
        padding: var(--space-xs);
    }

    .language-name {
        font-size: 0.8125rem;
    }

    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8125rem;
    }

    .languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: var(--space-sm);
    }

    .language-card {
        padding: var(--space-sm);
        gap: var(--space-xs);
    }

    .language-icon {
        width: 40px;
        height: 40px;
        padding: var(--space-xs);
    }

    .language-name {
        font-size: 0.6875rem;
    }
}

/* ===== Loading Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: var(--radius-sm);
}

.skeleton-title {
    height: 2em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
}

.skeleton-card {
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth scrolling with offset for fixed header */
html {
    scroll-padding-top: 100px;
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-image-frame-square,
    .project-card,
    .expertise-item,
    .skill-card {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .hero-particles,
    .nav-actions,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
