/* ============================================
   PORTFOLIO V3 - PREMIUM DESIGN SYSTEM
   A "WOW" Level Design by Creative Vision
   ============================================ */

/* === CSS Variables (Design Tokens) === */
:root {
    /* Premium Color Palette */
    --primary-h: 250;
    --primary-s: 84%;
    --primary-l: 54%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), 100%, 65%);
    --primary-dark: hsl(var(--primary-h), 70%, 35%);

    --accent-h: 340;
    --accent: hsl(var(--accent-h), 100%, 65%);
    --accent-light: hsl(var(--accent-h), 100%, 75%);

    --secondary: #10b981;
    --warning: #f59e0b;

    /* Gradient Mesh Colors */
    --gradient-1: #6366f1;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
    --gradient-4: #06b6d4;

    /* Surface Colors */
    --bg-primary: #000000;
    --bg-secondary: #161620;
    --bg-tertiary: #1e1e2a;
    --bg-card: rgba(30, 30, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Border & Glow */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(99, 102, 241, 0.3);
    --glow-primary: rgba(99, 102, 241, 0.4);
    --glow-accent: rgba(236, 72, 153, 0.4);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--glow-primary);

    /* Blur */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--primary);
    color: white;
}

/* === Custom Cursor === */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10001;
    transition: transform 0.1s;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

/* === Preloader === */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.preloader-logo .logo-v {
    color: white;
}

.preloader-logo .logo-g {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.1em;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-lg);
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: var(--radius-full);
    animation: loading-bar 2s var(--ease-out-expo) forwards;
}

@keyframes loading-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 20px var(--glow-primary));
    }

    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 30px var(--glow-primary));
    }
}

/* === Animated Background === */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-mesh::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, var(--gradient-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--gradient-2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, var(--gradient-3) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 70%, var(--gradient-4) 0%, transparent 50%);
    opacity: 0.15;
    animation: mesh-float 20s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes mesh-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 3%) rotate(1deg);
    }

    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }

    75% {
        transform: translate(-2%, -1%) rotate(0.5deg);
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-4);
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(10px, 40px) scale(1.02);
    }
}

/* === Scroll Progress === */
.scroll-progress-ring {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-progress-ring.visible {
    opacity: 1;
}

.scroll-progress-ring svg {
    transform: rotate(-90deg);
}

.scroll-progress-ring .progress-bg {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 3;
}

.scroll-progress-ring .progress-bar {
    fill: none;
    stroke: url(#progress-gradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.1s;
}

.scroll-progress-ring .percentage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) var(--space-2xl);
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md) var(--space-2xl);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    transition: all 0.3s var(--spring);
    position: relative;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.logo-v {
    color: white;
    position: relative;
    z-index: 1;
}

.logo-g {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-right: 0.1em;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
    margin-left: 80px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: var(--space-sm) 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out-expo);
}

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

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

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

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

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--spring), box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

/* Hamburger Animation - X when active */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: right 0.4s var(--ease-out-expo);
        z-index: 999;
        margin-left: 0;
    }

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

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-menu .nav-link {
        font-size: var(--text-2xl);
        font-weight: 600;
        padding: var(--space-md);
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav.scrolled {
        padding: var(--space-md) var(--space-lg);
    }
}

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

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(var(--blur-sm));
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal-text 1s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(2) span {
    animation-delay: 0.1s;
}

@keyframes reveal-text {
    to {
        transform: translateY(0);
    }
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-4));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out-expo) 0.4s forwards;
}

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

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

.hero-cta {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out-expo) 0.6s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--spring);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn i {
    font-size: 1rem;
}

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

.hero-image-container {
    position: relative;
    width: 325px;
    height: 450px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-4));
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.3),
        0 0 100px rgba(236, 72, 153, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 60px rgba(99, 102, 241, 0.3),
            0 0 100px rgba(236, 72, 153, 0.2);
    }

    50% {
        box-shadow:
            0 0 80px rgba(99, 102, 241, 0.4),
            0 0 120px rgba(236, 72, 153, 0.3);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

/* Floating Elements around image */
.floating-element {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -1s;
}

.floating-element:nth-child(3) {
    animation-delay: -2s;
}

.floating-element:nth-child(4) {
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-react {
    top: 10%;
    left: -20%;
}

.float-node {
    top: 60%;
    left: -15%;
}

.float-mongo {
    top: 20%;
    right: -20%;
}

.float-next {
    bottom: 10%;
    right: -10%;
}

.floating-element i {
    font-size: var(--text-2xl);
    color: var(--primary-light);
}

.floating-element span {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* === Section Styles === */
section {
    padding: var(--space-4xl) var(--space-2xl);
    position: relative;
}

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

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title .gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: var(--space-lg) auto 0;
    line-height: 1.7;
}

/* === About Section === */
.about {
    max-width: 1400px;
    margin: 0 auto;
}

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

.about-content {
    position: relative;
}

.about-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.about-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out-expo);
}

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* About Visual */
.about-visual {
    position: relative;
}

.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red {
    background: #ff5f56;
}

.window-dot.yellow {
    background: #ffbd2e;
}

.window-dot.green {
    background: #27ca40;
}

.code-window-content {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.code-line {
    display: block;
}

.code-keyword {
    color: #c792ea;
}

.code-function {
    color: #82aaff;
}

.code-string {
    color: #c3e88d;
}

.code-variable {
    color: #f78c6c;
}

.code-comment {
    color: var(--text-muted);
}

/* === Skills Section === */
.skills {
    max-width: 1400px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.skill-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    opacity: 0;
    transition: opacity 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

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

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

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: var(--text-2xl);
    color: white;
}

.skill-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* === Timeline Section === */
.timeline-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-2xl);
}

.spacer-top {
    margin-top: 4rem;
}

.timeline {
    position: relative;
    padding: var(--space-2xl) 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            var(--border-accent) 10%,
            var(--border-accent) 90%,
            transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-xl) var(--space-2xl);
}

.timeline-item.left {
    padding-right: calc(var(--space-2xl) + 40px);
    text-align: right;
}

.timeline-item.right {
    margin-left: 50%;
    padding-left: calc(var(--space-2xl) + 40px);
    text-align: left;
}

/* Timeline Node - Circular icon */
.timeline-node {
    position: absolute;
    top: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px var(--glow-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.timeline-item.left .timeline-node {
    right: -25px;
}

.timeline-item.right .timeline-node {
    left: -25px;
}

.timeline-node i {
    font-size: var(--text-lg);
    color: var(--primary);
    transition: color 0.3s;
}

.timeline-item:hover .timeline-node {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
    transform: scale(1.1);
}

.timeline-item:hover .timeline-node i {
    color: white;
}

/* Timeline Card */
.timeline-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.timeline-item:hover .timeline-card {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* Card Arrow */
.timeline-item.left .timeline-card::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.timeline-item.right .timeline-card::after {
    content: '';
    position: absolute;
    top: 25px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-top: none;
    transform: rotate(45deg);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.timeline-date i {
    font-size: var(--text-xs);
}

.timeline-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.timeline-company {
    display: block;
    font-size: var(--text-sm);
    color: var(--accent);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.timeline-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.timeline-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-highlights li {
    position: relative;
    padding-left: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.timeline-item.left .timeline-highlights li {
    padding-left: 0;
    padding-right: var(--space-lg);
}

.timeline-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.timeline-item.left .timeline-highlights li::before {
    left: auto;
    right: 0;
    content: '←';
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.timeline-item.left .timeline-tags {
    justify-content: flex-end;
}

/* Responsive Timeline */
@media (max-width: 900px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: var(--space-lg) !important;
        text-align: left !important;
    }

    .timeline-item.right {
        margin-left: 0;
    }

    .timeline-item.left .timeline-node,
    .timeline-item.right .timeline-node {
        left: 5px;
        right: auto;
    }

    .timeline-item.left .timeline-card::after,
    .timeline-item.right .timeline-card::after {
        left: -10px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
    }

    .timeline-item.left .timeline-highlights li {
        padding-left: var(--space-lg);
        padding-right: 0;
    }

    .timeline-item.left .timeline-highlights li::before {
        left: 0;
        right: auto;
        content: '→';
    }
}

/* === Projects Section === */
.projects {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    transition: all 0.5s var(--ease-out-expo);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.project-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    display: none;
}

/* Expandable Card Styles */
.project-card {
    cursor: pointer;
}

.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.expand-toggle i {
    transition: transform 0.3s ease;
}

.project-card.expanded .expand-toggle i {
    transform: rotate(180deg);
}

.project-card.expanded .expand-toggle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Project Details Section */
.project-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid transparent;
}

.project-card.expanded .project-details {
    max-height: 800px;
    opacity: 1;
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-section {
    margin-bottom: var(--space-lg);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.detail-section p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.detail-section ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.detail-section ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

.detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.detail-tech .tech-tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.detail-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: var(--space-lg);
}

.project-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.ongoing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.project-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tech-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

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

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

/* Featured Project - same styling as regular cards */

/* === Contact Section === */
.contact {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    backdrop-filter: blur(var(--blur-md));
}

.contact-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.contact-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.contact-email {
    font-size: var(--text-2xl);
    font-weight: 600;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--space-2xl);
    transition: transform 0.3s var(--spring);
}

.contact-email:hover {
    transform: scale(1.05);
}

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

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-lg);
    transition: all 0.3s var(--spring);
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

/* === Footer === */
.footer {
    padding: var(--space-2xl);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-children.active>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(n+5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image-container {
        width: 300px;
        height: 300px;
    }

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

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

    .project-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
    }

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

    .hero {
        padding: var(--space-3xl) var(--space-lg);
        min-height: auto;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

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

    .cursor,
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }

    .contact-title {
        font-size: var(--text-3xl);
    }

    .contact-email {
        font-size: var(--text-lg);
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .timeline-tags {
        justify-content: flex-start !important;
    }

    .timeline-item.left .timeline-tags {
        justify-content: flex-start;
    }

    .scroll-progress-ring {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-orbs {
        display: none;
    }

    .code-window-content {
        font-size: var(--text-xs);
        padding: var(--space-md);
    }

    .projects-filter {
        bottom: 20px;
        padding: var(--space-sm) var(--space-md);
        max-width: 90%;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    :root {
        --space-2xl: 2rem;
    }

    .hero {
        padding: var(--space-2xl) var(--space-md);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

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

    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .floating-element {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

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

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

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

    .stat-number {
        font-size: var(--text-3xl);
    }

    .contact-card {
        padding: var(--space-lg);
    }

    .contact-title {
        font-size: var(--text-2xl);
    }

    .social-links {
        gap: var(--space-sm);
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: var(--text-base);
    }

    .timeline-card {
        padding: var(--space-lg);
    }

    .timeline-title {
        font-size: var(--text-lg);
    }

    .timeline-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-description {
        font-size: var(--text-base);
    }

    .project-content {
        padding: var(--space-md);
    }

    .project-title {
        font-size: var(--text-xl);
    }

    .project-description {
        font-size: var(--text-sm);
    }

    .nav-menu .nav-link {
        font-size: var(--text-xl);
    }

    .footer {
        padding: var(--space-lg);
        font-size: var(--text-xs);
    }

    .scroll-progress-ring {
        display: none;
    }

    .back-link {
        font-size: var(--text-xs);
    }

    .projects-hero {
        padding: 120px var(--space-md) 40px;
    }

    .projects-page {
        padding: 0 var(--space-md) var(--space-2xl);
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* === Projects Page Review === */
.projects-hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.projects-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-4xl);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.scroll-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 100;
    padding: var(--space-md);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-filter.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.all-projects-grid .project-card {
    grid-column: span 1;
}

.all-projects-grid .project-card.featured {
    grid-column: span 2;
}

.section-divider {
    margin: var(--space-4xl) 0;
    text-align: center;
}

.section-divider h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
}

.section-divider h3::before,
.section-divider h3::after {
    content: '';
    width: 100px;
    height: 1px;
    background: var(--border-subtle);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    transition: all 0.3s;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.back-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
    border-color: var(--border-subtle);
    transform: translateX(-5px);
}

@media (max-width: 1200px) {
    .all-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-projects-grid .project-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 140px 0 60px;
    }

    .all-projects-grid {
        grid-template-columns: 1fr;
    }

    .all-projects-grid .project-card.featured {
        grid-column: span 1;
    }
}