/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    /* Colors - Clean Minimal Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(15, 15, 20, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-primary: rgba(255, 255, 255, 0.9);
    --accent-secondary: rgba(255, 255, 255, 0.7);
    --accent-tertiary: rgba(255, 255, 255, 0.9);
    --gradient-1: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-2: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
    --gradient-3: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-4: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9));
    --gradient-bg: linear-gradient(180deg, #000000 0%, #0a0a0f 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    
    /* Effects */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(255, 255, 255, 0.1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-family);
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Animated Geometric Background
======================================== */
#geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Chrome Ribbon 3D Background */
.spline-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spline-bg-container iframe,
.spline-bg-container spline-viewer {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Main Content Wrapper */
.main-content {
    position: relative;
    z-index: 1;
}
/* ========================================
   Container
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    background: rgba(0, 0, 0, 0.85);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    position: relative;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    transition: var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition-fast);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative Geometric Shapes */
.hero-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hero Constellation Canvas */
#hero-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Static SVG Constellation */
.constellation-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.constellation-line {
    stroke: rgba(192, 132, 252, 0.3);
    stroke-width: 1;
    fill: none;
}

.node-bright {
    fill: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.8)) drop-shadow(0 0 25px rgba(255, 107, 157, 0.5));
}

.node-medium {
    fill: rgba(150, 210, 255, 0.8);
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6)) drop-shadow(0 0 15px rgba(255, 107, 157, 0.4));
}

.node-small {
    fill: rgba(100, 180, 255, 0.6);
    filter: drop-shadow(0 0 5px rgba(192, 132, 252, 0.5));
}

/* Pulse animation for bright nodes */
.node-bright {
    animation: nodePulse 3s ease-in-out infinite;
}

.node-medium {
    animation: nodePulse 4s ease-in-out infinite 1s;
}

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

.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    z-index: 1;
    padding: 0 var(--space-md);
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
    max-width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(0, 0, 0, 0.65);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-greeting {
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    animation: fadeIn 0.6s ease;
}

.greeting-line {
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
    animation: expandLine 0.8s ease 0.2s both;
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 30px; opacity: 1; }
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title .title-line {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title .slide-in-1 {
    animation: slideUp 0.6s ease 0.1s forwards;
}

.hero-title .slide-in-2 {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.6s ease 0.2s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Tagline */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease 0.3s both;
}

.tagline-text {
    font-size: var(--font-size-base);
    font-weight: 500;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.01em;
}

.tagline-icon {
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.hero-skills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease 0.4s both;
}

.hero-skill {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-skill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-skill .skill-icon {
    color: var(--accent-primary);
    font-size: 8px;
}

.skill-icon-svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.6s ease 0.5s both;
}

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

.hero-cta .btn-primary svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-base);
}

.hero-cta .btn-primary:hover svg {
    transform: translateX(4px);
}

/* Hero Visual / Image */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.4) 0%, rgba(255, 107, 157, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-image-frame {
    position: relative;
    padding: 4px;
    background: var(--gradient-1);
    border-radius: 20px;
    z-index: 1;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-1);
    border-radius: 23px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.hero-image {
    width: 300px;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    display: block;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 10px 18px;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    z-index: 2;
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20px;
    right: -10px;
    animation-delay: 2s;
}

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

/* Hero Responsive */
@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-skills {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        width: 250px;
        height: 320px;
    }
    
    .hero-image-glow {
        width: 280px;
        height: 280px;
    }
    
    .floating-badge {
        display: none;
    }
    
    .constellation-static {
        display: none;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: var(--space-xl) 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xs);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
}

/* ========================================
   About Section
======================================== */
.about {
    background: rgba(5, 5, 8, 0.95);
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    padding: 3px;
    background: var(--gradient-1);
    border-radius: var(--border-radius);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent-primary);
    border-radius: calc(var(--border-radius) + 4px);
    opacity: 0.4;
}

.image-placeholder {
    width: 280px;
    height: 280px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: calc(var(--border-radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--accent-primary);
}

.profile-image {
    width: 280px;
    height: 350px;
    object-fit: cover;
    object-position: top center;
    border-radius: calc(var(--border-radius) - 2px);
}

.about-text h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ========================================
   Skills Section
======================================== */
.skills {
    position: relative;
    overflow: hidden;
    background: rgba(5, 5, 8, 0.95);
}

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

.skills-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}

.skill-panel {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.skill-panel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-panel:hover .skill-panel-glow {
    opacity: 1;
}

.skill-panel.featured .skill-panel-glow {
    opacity: 0.5;
    width: 200px;
    height: 200px;
}

.skill-panel.featured:hover .skill-panel-glow {
    opacity: 1;
}

.skill-panel-content {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    padding: var(--space-md);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
}

.skill-panel.featured {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-panel.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.skill-panel-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-panel:hover .skill-panel-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.skill-panel-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent-primary);
}

.skill-panel-content h3 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.skill-panel-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 var(--space-md) 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}

.skill-list span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-list span:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   Work Section
======================================== */
.work {
    background: rgba(5, 5, 8, 0.95);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.work-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
}

.work-card.featured {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.25);
}

.work-card.featured:hover {
    box-shadow: 0 10px 50px rgba(255, 255, 255, 0.15);
}

.work-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: var(--space-lg) var(--space-md) var(--space-md) var(--space-md);
}

.project-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-browser {
    background: #0a0a0a;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-bar {
    background: rgba(30, 30, 35, 0.9);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.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(255, 255, 255, 0.08);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.browser-content {
    padding: 0;
    display: block;
    background: #f5f5f5;
    overflow: hidden;
    line-height: 0;
    max-height: 280px;
}

.browser-content.construction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
    min-height: 240px;
    max-height: 280px;
    gap: var(--space-sm);
    line-height: 1.5;
}

.construction-content .construction-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.construction-content .construction-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.mockup-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    object-fit: cover;
    object-position: top left;
}

.project-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.browser-content p {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-base);
}

.work-card:hover .project-screenshot {
    transform: scale(1.05);
}

.project-preview {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transform: scale(1);
    transition: transform var(--transition-base);
}

.work-card:hover .project-preview {
    transform: scale(1.05);
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    gap: var(--space-sm);
}

.work-placeholder.construction {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.95) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.construction-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;
}

.construction-text {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
}

.project-number {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    font-size: var(--font-size-xl);
    opacity: 0.3;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

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

.work-link {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-1);
    border-radius: var(--border-radius);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.work-link svg {
    width: 18px;
    height: 18px;
}

.work-card:hover .work-link {
    transform: translateY(0);
}

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

.work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.work-info h3 {
    font-size: var(--font-size-lg);
    margin: 0;
}

.featured-badge {
    padding: 4px 12px;
    background: var(--gradient-1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-info p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.work-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.work-tags span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-primary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.project-link:hover {
    gap: 10px;
}

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

/* ========================================
   Contact Section
======================================== */
.contact {
    background: rgba(5, 5, 8, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

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

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.contact-details a,
.contact-details span:not(.contact-label) {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--accent-primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

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

/* Contact Form */
.contact-form {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    left: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    background: transparent;
}

.form-group textarea ~ label {
    top: var(--space-sm);
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    background: var(--bg-card);
    padding: 0 4px;
    color: var(--accent-primary);
}

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

.btn-submit svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: rgba(5, 5, 8, 0.98);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-content p:first-child {
    margin-bottom: var(--space-xs);
}

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

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .skills-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .skill-panel.featured {
        transform: none;
    }
    
    .skill-panel.featured:hover {
        transform: translateY(-8px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .skills-showcase {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 4rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}
