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

:root {
    /* Premium Color Palette */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #000000;
    --dark-surface: #0a0a14;
    --light-surface: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b7280;
    --glow-color: #00ffff;
    --neon-pink: #ff006e;
    --neon-blue: #00f0ff;
    --gold: #FFD700;
    --platinum: #E5E4E2;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-text: linear-gradient(135deg, var(--gold) 0%, var(--primary-color) 100%);
    --gradient-neon: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    --gradient-holographic: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06b6d4, #10b981, #f59e0b, #ff006e);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.4);
    --shadow-neon: 0 0 30px rgba(0, 255, 255, 0.5);
    
    /* Animation */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

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

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

.nav-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

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

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

/* Three.js canvas layering */
.three-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.65; /* ensure readability */
    mix-blend-mode: normal;
    z-index: -1;
}

/* Slight vignette over WebGL for text legibility */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.55) 100%);
    z-index: 0;
}

/* Left-side readability shield for hero text */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.0) 75%);
    z-index: 0;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -200px;
    left: 30%;
    animation-delay: 10s;
}

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

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-accent);
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

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

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.subtitle-highlight {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Achievements */
.hero-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.5s both;
    justify-content: center;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.achievement-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold, #FFD700), var(--platinum, #E5E4E2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.achievement-label {
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-bottom: var(--spacing-lg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: shimmer 3s infinite;
}

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

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--platinum) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    font-family: var(--font-accent);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    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-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    position: relative;
    width: 400px;
    height: 400px;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floatCard 6s infinite ease-in-out;
    transition: var(--transition-base);
}

.float-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.card-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 0;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    right: 0;
    animation-delay: 4s;
}

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

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

.float-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-accent);
}

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

/* Featured Projects */
.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.project-card {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer 3s infinite;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

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

.project-card.featured:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(255, 215, 0, 0.2),
        0 0 100px rgba(99, 102, 241, 0.1),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.project-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-color) 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.project-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-icon {
    margin-bottom: var(--spacing-md);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gradient-bg-1 {
    background: var(--gradient-primary);
}

.gradient-bg-2 {
    background: var(--gradient-secondary);
}

.gradient-bg-3 {
    background: var(--gradient-accent);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #ff9500 0%, #ff5722 100%);
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Allow raster icons inside project icon wrapper */
.icon-wrapper img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Remove background for selected icons */
.icon-no-bg {
    background: transparent !important;
    border-radius: 0;
}

/* Larger icon container */
.icon-large {
    width: 72px;
    height: 72px;
}

/* Animated, tasteful float + glow */
.icon-animate {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.25));
    animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.03); }
}

/* On hover, slightly intensify glow */
.project-card .icon-animate:hover {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.45));
    transform: translateY(-2px) scale(1.05);
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.project-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.feature strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-md);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

.project-link:hover {
    gap: 0.75rem;
}

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

.project-link:hover svg {
    transform: translate(2px, -2px);
}



/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.expertise-areas {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.expertise-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: var(--transition-base);
}

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

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

.expertise-item h4 {
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.expertise-item p {
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    line-height: 1.6;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-cloud {
    position: relative;
    width: 400px;
    height: 400px;
}

.skill {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    animation: float calc(10s + var(--delay) * 1s) infinite ease-in-out;
    animation-delay: calc(var(--delay) * 0.5s);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill:hover {
    background: rgba(0, 0, 0, 0.95);
    color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.skill:nth-child(1) { top: 10%; left: 20%; }
.skill:nth-child(2) { top: 20%; right: 10%; }
.skill:nth-child(3) { top: 40%; left: 5%; }
.skill:nth-child(4) { top: 60%; right: 20%; }
.skill:nth-child(5) { bottom: 30%; left: 30%; }
.skill:nth-child(6) { bottom: 10%; right: 30%; }
.skill:nth-child(7) { top: 35%; right: 40%; }
.skill:nth-child(8) { bottom: 40%; left: 10%; }
.skill:nth-child(9) { top: 50%; left: 40%; }
.skill:nth-child(10) { bottom: 20%; right: 10%; }

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    line-height: 1.6;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
}

.contact-card.solo {
    max-width: 400px;
    margin: 0 auto;
    grid-column: 1 / -1;
    padding: 3rem 2rem;
}

.contact-card.solo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.contact-card.solo p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.email-address {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    margin-top: 1rem !important;
    letter-spacing: 0.5px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin: 0;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
}

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

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.legal-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition-base);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.legal-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

@media (max-width: 768px) {
    .legal-info {
        gap: 0.75rem;
    }
    
    .legal-links {
        gap: 1rem;
    }
    
    .legal-links a {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .featured-projects {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skill-cloud {
        width: 100%;
        height: 300px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .contact-card.solo {
        padding: 2rem 1.5rem;
        max-width: 350px;
    }
    
    .contact-card.solo h3 {
        font-size: 1.3rem;
    }
    
    .contact-card.solo p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* Loading Animation */
@keyframes shimmer-bg {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer-bg 2s infinite;
}

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

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

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

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

/* ========================================= */
/* NEW ENHANCED STYLES FOR STUNNING VISUALS */
/* ========================================= */

/* Advanced Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0a0a0f 0%, #1a1a2e 40%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    overflow: hidden;
}
.loading-swirl {
    position: absolute;
    inset: -20% -20% -20% -20%;
    z-index: 0;
    background: conic-gradient(from 0deg, rgba(255,215,0,0.0), rgba(99,102,241,0.15), rgba(139,92,246,0.15), rgba(236,72,153,0.15), rgba(255,215,0,0.0));
    filter: blur(30px) saturate(140%);
    animation: swirlRotate 16s linear infinite;
}

@keyframes swirlRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.8), inset 0 0 400px rgba(0,0,0,0.4);
}

.scanline-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 2px,
        transparent 4px
    );
    animation: scanShift 6s linear infinite;
    mix-blend-mode: soft-light;
}

@keyframes scanShift {
    0% { background-position-y: 0; }
    100% { background-position-y: 100%; }
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Neural Network Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#neural-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Loading Container */
.loading-container {
    position: relative;
    z-index: 3;
    max-width: 600px;
    width: 90%;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: containerPulse 4s infinite;
    transform-style: preserve-3d;
}

@keyframes containerPulse {
    0%, 100% { 
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 rgba(255, 215, 0, 0);
    }
    50% { 
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.loading-container.tilted {
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.1s ease-out;
}

/* System Status */
.system-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

.status-icon {
    font-size: 2rem;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px #FFD700);
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #FFD700);
    }
}

.status-title {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    letter-spacing: 3px;
    animation: titleGlow 3s infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        opacity: 1; 
        background-position: 0% 50%;
    }
    50% { 
        opacity: 0.8; 
        background-position: 100% 50%;
    }
}

/* Loading Modules */
.loading-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 2rem 0;
}

.module {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.module.active {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.module-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 140px;
    flex-shrink: 0;
}

.module-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88 0%, #00aaff 100%);
    border-radius: 2px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.module-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 80px;
    text-align: right;
    font-family: 'Fira Code', monospace;
}

.module.completed .module-status {
    color: #00ff88;
}

.module.completed .progress-bar {
    background: linear-gradient(90deg, #00ff88 0%, #00ff88 100%);
}

/* Code Stream */
.code-stream {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-line {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    opacity: 0;
    animation: typeWriter 0.5s ease forwards;
    will-change: transform, opacity;
}

.code-line:nth-child(1) { animation-delay: 1.2s; }
.code-line:nth-child(2) { animation-delay: 1.8s; }
.code-line:nth-child(3) { animation-delay: 2.4s; }
.code-line:nth-child(4) { animation-delay: 3.0s; }

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

/* Loading Progress */
.loading-progress {
    width: 100%;
}

.progress-container {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 4px;
    animation: progressGlow 2s infinite;
    opacity: 0;
}

.progress-fill.active + .progress-glow {
    opacity: 1;
}

@keyframes progressGlow {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(600px); }
}

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

.progress-percentage {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

/* Enhanced Hero Section */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: var(--gradient-holographic);
    bottom: 50%;
    right: 30%;
    animation-delay: 15s;
    opacity: 0.2;
}

/* Clean Modern Animations */

.title-accent {
    display: block;
    font-size: 1rem;
    font-family: var(--font-display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

/* Holographic Display */
.holographic-display {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.holo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-image: var(--gradient-holographic);
    border-image-slice: 1;
    border-radius: 50%;
    opacity: 0.3;
    animation: holoRotate 10s linear infinite;
}

.holo-ring:nth-child(1) {
    animation-duration: 10s;
    transform: rotateX(60deg) rotateZ(0deg);
}

.holo-ring:nth-child(2) {
    animation-duration: 15s;
    transform: rotateX(60deg) rotateY(60deg) rotateZ(0deg);
}

.holo-ring:nth-child(3) {
    animation-duration: 20s;
    transform: rotateX(60deg) rotateY(-60deg) rotateZ(0deg);
}

@keyframes holoRotate {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

/* Section Enhancements */
.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding: 0.25rem 1rem;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 20px;
}

.section-decoration {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.section-decoration span {
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: decorationPulse 2s infinite;
}

.section-decoration span:nth-child(2) {
    animation-delay: 0.2s;
}

.section-decoration span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes decorationPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.5; }
    50% { transform: scaleX(1.5); opacity: 1; }
}

/* Project Preview Section */
.project-preview-section {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.preview-toggle {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.preview-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.preview-toggle.active {
    background: var(--gradient-secondary);
}

.preview-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-bottom: 1rem;
}

.preview-container.active {
    max-height: 600px;
}

.browser-mockup {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-header {
    background: linear-gradient(90deg, rgba(26, 26, 46, 1) 0%, rgba(22, 33, 62, 1) 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #28ca42;
}

.browser-url {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    font-family: monospace;
}

.browser-content {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
}

.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 15, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
}

.preview-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    pointer-events: all;
}

.preview-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Enhanced Project Cards */
.project-card.featured {
    position: relative;
    overflow: visible;
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-holographic);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: holographicAnimation 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes holographicAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-card.featured:hover::before {
    opacity: 0.5;
}

/* Parallax Scrolling Effects */
.parallax-element {
    transition: transform 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* Additional Visual Enhancements */
.float-card {
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.float-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-holographic);
    opacity: 0.1;
    border-radius: 20px;
    animation: holographicAnimation 5s linear infinite;
}

/* Improved Stat Values with Counting Animation */
.stat-value {
    position: relative;
    display: inline-block;
    min-width: 60px;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover .stat-value::after {
    transform: scaleX(1);
}

/* Browser Actions */
.browser-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.refresh-btn svg {
    color: var(--text-secondary);
}

/* Iframe Styles */
.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
}

/* Iframe Loader */
.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    z-index: 10;
}

.iframe-loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.iframe-loader p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Iframe Fallback */
.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    z-index: 5;
}

.fallback-content {
    text-align: center;
    padding: 2rem;
}

.fallback-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.fallback-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

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

.fallback-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.fallback-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Static Image Preview Styles */
.static-preview-content {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.static-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
}

.preview-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.static-image-container:hover .preview-screenshot {
    transform: scale(1.05);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 70%, 
        rgba(10, 10, 15, 0.3) 90%, 
        rgba(10, 10, 15, 0.5) 100%);
    pointer-events: none;
}

.preview-overlay.enhanced {
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
}

.preview-overlay.minimal {
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1.5rem;
}

.preview-link-minimal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    font-weight: 600;
}

.preview-link-minimal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.preview-info {
    text-align: center;
    z-index: 2;
}

.preview-info h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.preview-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.preview-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-link.primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 600;
    padding: 0.875rem 2rem;
}

.preview-link.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.external-link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.external-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.external-link-btn svg {
    color: var(--text-secondary);
}



/* New Hero Section Styles */
.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    padding: 0 2rem;
}

/* Hero Main Content */
.hero-main {
    animation: fadeIn 1s ease;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

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

.badge-text {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: var(--font-accent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-intro {
    font-size: 0.5em;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease;
}

.name-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    font-weight: 700;
    animation: gradientShift 4s ease infinite;
}

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

.title-role {
    font-size: 1em;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-tagline {
    font-size: 0.4em;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Hero Tech Stack */
.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-badge:hover::before {
    width: 100px;
    height: 100px;
}

/* Enhanced CTA Buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.btn-glow:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Code Window */
.code-window {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 45, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
    margin-bottom: 2rem;
}

.code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.code-content pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-content code {
    background: none;
    padding: 0;
}

.code-comment { color: #a0a0b8; }
.code-keyword { color: #ff79c6; }
.code-variable { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-string { color: #ffffff; }
.code-function { color: #bd93f9; }

/* Hero Metrics */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    animation: fadeInUp 1s ease 0.5s both;
}

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

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

/* Premium Metrics */
.metric-card.premium-metric {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.metric-card.premium-metric:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 255, 255, 0.06));
    border-color: var(--gold, #FFD700);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.metric-label {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.counting-text {
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.8;
    animation: pulse 2s infinite;
    display: inline-block;
}

/* Gradient Mesh Background */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #feca57 75%, #ff6b6b 100%);
    opacity: 0.03;
    filter: blur(100px);
    animation: meshShift 20s ease infinite;
}

@keyframes meshShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Responsive Adjustments for New Features */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 2rem;
    }
    
    .hero-achievements {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .achievement-badge {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .code-window {
        display: none;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .preview-container.active {
        max-height: 500px;
    }
    
    .browser-content {
        height: 400px;
    }
    
    .holographic-display {
        display: none;
    }
    
    .loading-screen {
        padding: 1rem;
    }
    
    .loading-container {
        padding: 2rem 1.5rem;
        max-width: 500px;
    }
    
    .status-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .module {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .module-name {
        width: 100px;
        font-size: 0.8rem;
    }
    
    .code-stream {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .preview-features {
        grid-template-columns: 1fr;
    }
    
    .preview-stats-row {
        gap: 1.5rem;
    }
    
    .preview-metrics {
        flex-direction: column;
    }
    
    .preview-title {
        font-size: 1.8rem;
    }
    
    .preview-tagline {
        font-size: 1rem;
    }
    
    .preview-info h3 {
        font-size: 1.2rem;
    }
    
    .preview-info p {
        font-size: 0.9rem;
    }
    
    .preview-badges {
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .preview-overlay.enhanced {
        padding: 1rem;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        animation: none !important;
        transition: none !important;
    }
    .parallax-element {
        transform: none !important;
    }
}
