/* ===================================
   FUTURISTIC PORTFOLIO - DESIGN SYSTEM
   =================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette */
    --deep-space: #0A0F1F;
    --soft-navy: #111827;
    --neon-blue: #3B82F6;
    --neon-purple: #A855F7;
    --light-grey: #F3F4F6;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --gradient-radial: radial-gradient(circle at center, var(--neon-blue), var(--neon-purple));

    /* Glow Effects */
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.5);
    --glow-purple: 0 0 40px rgba(168, 85, 247, 0.5);
    --glow-mixed: 0 0 60px rgba(59, 130, 246, 0.3), 0 0 120px rgba(168, 85, 247, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions - Ultra Smooth */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 0.8s cubic-bezier(0.23, 1, 0.32, 1);

    /* Z-index layers */
    --z-background: -1;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 200;
    --z-cursor: 9999;
}

/* Light mode (optional toggle) */
[data-theme="light"] {
    --deep-space: #F3F4F6;
    --soft-navy: #E5E7EB;
    --light-grey: #111827;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

/* GPU Acceleration for smooth scrolling */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-primary);
    background-color: var(--deep-space);
    color: var(--light-grey);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hide default cursor on interactive elements */
a,
button,
input,
textarea,
[data-tilt] {
    cursor: none;
}

::selection {
    background: var(--neon-blue);
    color: var(--deep-space);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 1.125rem;
    font-weight: 500;
}

p {
    font-size: 1rem;
    color: rgba(243, 244, 246, 0.8);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */

.cursor {
    width: 12px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor.active {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* ===================================
   PARTICLES CANVAS
   =================================== */

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-blue);
    margin-bottom: var(--space-sm);
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gradient-primary);
}

.section-tag::before {
    right: calc(100% + 1rem);
}

.section-tag::after {
    left: calc(100% + 1rem);
}

.section-title {
    margin-bottom: var(--space-sm);
}

/* ===================================
   GLASSMORPHISM
   =================================== */

.glass-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 244, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.glass-card-dark {
    background: rgba(10, 15, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-mixed);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--light-grey);
    border: 1px solid rgba(243, 244, 246, 0.3);
}

.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-full {
    width: 100%;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    z-index: var(--z-nav);
    transition: all var(--transition-normal);
}

.nav.scrolled {
    background: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(243, 244, 246, 0.7);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-grey);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--light-grey);
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(243, 244, 246, 0.05);
    border: 1px solid rgba(243, 244, 246, 0.1);
    color: var(--light-grey);
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--deep-space);
}

.parallax-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    inset: -50px;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.layer-1 {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 30%);
}

.layer-2 {
    background:
        radial-gradient(circle at 40% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
}

.layer-3 {
    background:
        radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    padding-top: 80px;
    position: relative;
    z-index: var(--z-content);
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

#three-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(243, 244, 246, 0.5);
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(243, 244, 246, 0.3);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 2px;
    animation: scroll 1.5s ease infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--soft-navy);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.avatar-icon {
    width: 120px;
    height: 120px;
    color: white;
}

.avatar-icon svg {
    width: 100%;
    height: 100%;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    animation: glowPulse 4s ease infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.about-text {
    position: relative;
}

.about-text h3 {
    margin-bottom: var(--space-md);
}

.about-text p {
    margin-bottom: var(--space-md);
}

.holographic-divider {
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--neon-blue),
            var(--neon-purple),
            transparent);
    margin: var(--space-lg) 0;
    opacity: 0.5;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(243, 244, 246, 0.6);
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills {
    background: var(--deep-space);
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.skill-category {
    margin-bottom: var(--space-lg);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.frontend-icon {
    background: linear-gradient(135deg, var(--neon-blue), rgba(59, 130, 246, 0.5));
}

.backend-icon {
    background: linear-gradient(135deg, var(--neon-purple), rgba(168, 85, 247, 0.5));
}

.tools-icon {
    background: var(--gradient-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.skill-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: transform;
}

.skill-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.3);
    background: rgba(17, 24, 39, 0.95);
}

.skill-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, var(--neon-blue));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.7);
    animation: float 3s ease-in-out infinite;
}

.skill-orb.purple {
    background: radial-gradient(circle at 30% 30%, #c084fc, var(--neon-purple));
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
    animation-delay: 0.5s;
}

.skill-orb.mixed {
    background: radial-gradient(circle at 30% 30%, #60a5fa, #c084fc);
    box-shadow: 0 0 40px rgba(120, 100, 200, 0.7);
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-grey);
    text-align: center;
}

/* ===================================
   APPLE-STYLE SHOWCASE SECTION
   =================================== */

.showcase-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-space);
    position: relative;
    overflow: hidden;
}

.showcase-intro {
    text-align: center;
    padding: var(--space-xl);
}

.showcase-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.showcase-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
    margin-right: 0.3em;
}

.showcase-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(243, 244, 246, 0.6);
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================
   PROJECTS SECTION - HORIZONTAL SCROLL
   =================================== */

.projects {
    background: var(--soft-navy);
    position: relative;
    /* Height = viewport + extra scroll distance for horizontal animation */
    height: 300vh;
    overflow: visible;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.projects>.container {
    padding-top: var(--space-3xl);
}

.projects-header {
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

/* Sticky wrapper for horizontal scroll */
.horizontal-wrapper {
    position: sticky;
    top: 100px;
    width: 100%;
    overflow: hidden;
    padding: var(--space-lg) 0;
}

.horizontal-track {
    display: flex;
    gap: var(--space-lg);
    padding: 0 var(--space-xl);
    width: max-content;
    will-change: transform;
}

/* Compact Project Cards */
.project-card-h {
    width: 320px;
    background: rgba(10, 15, 31, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(243, 244, 246, 0.1);
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.project-card-h:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.card-mockup {
    height: 180px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-mockup.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.1));
}

.card-mockup span {
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-info {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.card-desc {
    font-size: 0.875rem;
    color: rgba(243, 244, 246, 0.6);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.card-tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    color: var(--neon-blue);
}

.card-btn {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--light-grey);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    color: rgba(243, 244, 246, 0.5);
    font-size: 0.875rem;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
    animation: bounce-x 1.5s ease-in-out infinite;
}

@keyframes bounce-x {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

/* Project Number */
.project-number {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-md);
}

.project-slide-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.project-slide-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(243, 244, 246, 0.7);
    margin-bottom: var(--space-lg);
}

.project-slide-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-mockup {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(59, 130, 246, 0.2);
}

.project-mockup.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.1));
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2);
}

.project-mockup span {
    font-size: 6rem;
    font-weight: 900;
    opacity: 0.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.05) 100%);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: relative;
    width: 200px;
    height: 4px;
    background: rgba(243, 244, 246, 0.1);
    border-radius: 2px;
    margin: var(--space-xl) auto var(--space-3xl);
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

.project-card {
    background: rgba(10, 15, 31, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-normal);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    -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 var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder span {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.project-placeholder.large {
    height: 300px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--neon-blue);
    border-radius: var(--radius-full);
    color: var(--neon-blue);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.view-project:hover {
    background: var(--neon-blue);
    color: var(--deep-space);
}

.project-content {
    padding: var(--space-lg);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.project-description {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--neon-blue);
}

/* ===================================
   PROJECT MODAL
   =================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-grey);
    background: rgba(243, 244, 246, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    z-index: 10;
}

.modal-close:hover {
    background: var(--neon-blue);
    color: var(--deep-space);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.modal-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-info h2 {
    margin-bottom: var(--space-md);
}

.modal-info p {
    margin-bottom: var(--space-lg);
}

.modal-tech {
    margin-bottom: var(--space-lg);
}

.modal-tech h4 {
    margin-bottom: var(--space-sm);
    color: var(--neon-blue);
}

.modal-links {
    display: flex;
    gap: var(--space-md);
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience {
    background: var(--deep-space);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-item {
    position: relative;
    display: flex;
    padding: var(--space-lg) 0;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + var(--space-xl));
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + var(--space-xl));
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: var(--space-xl);
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: pulse 2s ease infinite;
}

.timeline-content {
    width: 100%;
}

.timeline-date {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neon-blue);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    margin-bottom: var(--space-xs);
}

.timeline-company {
    color: var(--neon-purple);
    margin-bottom: var(--space-sm);
}

.timeline-description {
    font-size: 0.9rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: var(--deep-space);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    position: relative;
}

.contact-description {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    color: var(--neon-blue);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 244, 246, 0.05);
    border: 1px solid rgba(243, 244, 246, 0.1);
    border-radius: 50%;
    color: var(--light-grey);
    transition: all var(--transition-normal);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}

.contact-form {
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: rgba(243, 244, 246, 0.8);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--light-grey);
    background: rgba(10, 15, 31, 0.6);
    border: 1px solid rgba(243, 244, 246, 0.1);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(243, 244, 246, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.form-group input:focus~.input-glow,
.form-group textarea:focus~.input-glow {
    width: 100%;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--deep-space);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(243, 244, 246, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(243, 244, 246, 0.6);
    transition: all var(--transition-normal);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.footer-nav a:hover {
    color: var(--neon-blue);
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(243, 244, 246, 0.4);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--soft-navy);
        padding: var(--space-xl);
        gap: var(--space-lg);
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-visual {
        order: 1;
        height: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-visual {
        height: 250px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hide custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button,
    input,
    textarea,
    [data-tilt] {
        cursor: pointer;
    }

    /* Responsive showcase and horizontal scroll */
    .showcase-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .project-slide {
        flex-direction: column;
        width: 85vw;
        min-height: auto;
        padding: var(--space-lg);
    }

    .project-slide-content,
    .project-slide-visual {
        max-width: 100%;
    }

    .project-number {
        font-size: 3rem;
    }

    .project-mockup {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .image-frame {
        width: 200px;
        height: 200px;
    }

    .modal-links {
        flex-direction: column;
    }
}

/* ===================================
   ANIMATION CLASSES
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}