/* ============================================
   MUJTABA SAQIB — PORTFOLIO
   Design System & Styles
   Blue + Glassmorphic + 3D Edition
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Dark Theme (Default) — BLUE accent */
    --bg-primary: #060a12;
    --bg-secondary: #0c1220;
    --bg-tertiary: #121a2e;
    --bg-card: rgba(12, 18, 32, 0.6);
    --bg-card-hover: rgba(18, 26, 46, 0.8);
    --bg-glass: rgba(12, 18, 32, 0.45);

    --text-primary: #e4e8f0;
    --text-secondary: #8892a8;
    --text-tertiary: #586580;
    --text-accent: #7dd3fc;

    --accent: #38bdf8;
    --accent-bright: #7dd3fc;
    --accent-dim: #0284c7;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
    --accent-glow: rgba(56, 189, 248, 0.12);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-glass: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(56, 189, 248, 0.08);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);

    --glass-blur: blur(20px) saturate(180%);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-display: 'Sora', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --nav-height: 72px;
    --container-max: 1120px;
    --section-padding: 120px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Theme — BLACK accent --- */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ebebeb;
    --bg-tertiary: #e0e0e0;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.5);

    --text-primary: #0a0a0a;
    --text-secondary: #404040;
    --text-tertiary: #737373;
    --text-accent: #0a0a0a;

    --accent: #171717;
    --accent-bright: #000000;
    --accent-dim: #404040;
    --accent-secondary: #262626;
    --accent-gradient: linear-gradient(135deg, #262626 0%, #0a0a0a 50%, #000000 100%);
    --accent-glow: rgba(0, 0, 0, 0.06);

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-glass: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo);
    perspective: 1200px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

[data-theme="light"] ::selection {
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

[data-theme="light"] .noise-overlay {
    opacity: 0.03;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

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

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) translateZ(-30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* ============================================
   GLASS MIXIN (reusable glassmorphism)
   ============================================ */
.glass {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

/* ============================================
   3D TILT EFFECT (applied via JS)
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.35s var(--ease-out-expo);
    will-change: transform;
}

.tilt-card__inner {
    transform: translateZ(30px);
}

.tilt-card:hover {
    box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   NAVIGATION (Updated to Pill Design)
   ============================================ */
.nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 95vw;
}

.nav__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
}

.nav__home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav__home:hover, .nav__home.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

[data-theme="light"] .nav__home:hover, [data-theme="light"] .nav__home.active {
    background: rgba(0, 0, 0, 0.05);
}

.nav__divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.nav__links-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}

.nav__link svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.nav__link:hover svg {
    opacity: 1;
    color: var(--accent);
}

[data-theme="light"] .nav__link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav__link.active {
    background: var(--bg-secondary);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--border-hover);
}

.nav__link.active svg {
    opacity: 1;
    color: var(--accent);
}

.nav__theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(15deg);
}

[data-theme="light"] .nav__theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive Pill */
@media (max-width: 900px) {
    .nav__link span {
        display: none; /* Icons only on tablet/mobile to keep it a pill */
    }
    .nav__link {
        padding: 8px;
    }
    .nav__pill {
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .nav {
        top: 16px;
    }
    .nav__divider {
        display: none;
    }
    .nav__pill {
        gap: 0;
        padding: 4px;
    }
}

/* --- Mobile Menu Removed --- */

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--nav-height) 24px 0;
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

[data-theme="light"] .hero__grid-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero__title {
    font-size: clamp(3.2rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero__tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    margin-top: 64px;
}

.hero__scroll-line {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 0 auto;
    animation: scroll-line 2.5s var(--ease-out-expo) infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    70% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Hero Orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.5;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
    top: 10%;
    right: -10%;
    animation: float-orb 12s ease-in-out infinite;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    bottom: 10%;
    left: -8%;
    animation: float-orb 15s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-orb 18s ease-in-out infinite;
}

[data-theme="light"] .hero__orb--1 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), transparent 70%);
}
[data-theme="light"] .hero__orb--2 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04), transparent 70%);
}
[data-theme="light"] .hero__orb--3 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03), transparent 70%);
}

[data-theme="light"] .hero__orb {
    opacity: 0.4;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .btn--primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn--primary:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.3);
}

.btn--ghost {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--lg {
    padding: 18px 42px;
    font-size: 1rem;
}

/* ============================================
   SECTIONS (Shared)
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.section__number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.section__title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

.about__paragraph {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__paragraph strong {
    color: var(--text-primary);
    font-weight: 600;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

.about__stats {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.35s var(--ease-out-expo);
    box-shadow: var(--shadow-glass);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px) rotateX(4deg);
    box-shadow: var(--shadow-glow), var(--shadow-glass);
}

.stat-card__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-card__plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card__label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience__timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 32px;
}

.experience__timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

.exp-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-glass);
    transform-style: preserve-3d;
}

.exp-card:hover {
    border-color: var(--accent);
    transform: translateX(8px) rotateY(-2deg);
    box-shadow: var(--shadow-glow), var(--shadow-glass);
}

.exp-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.exp-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    position: relative;
}

.exp-card__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0.3;
    animation: pulse-ring 3s ease infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.1; }
}

.exp-card__date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.exp-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.exp-card__company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 16px;
}

.exp-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.exp-card__list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.exp-card__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.exp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- Tags --- */
.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.03em;
    border: 1px solid rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s;
}

[data-theme="light"] .tag {
    border-color: rgba(0, 0, 0, 0.1);
}

.tag:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

[data-theme="light"] .tag:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.tag--sm {
    font-size: 0.68rem;
    padding: 3px 10px;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.projects__tab {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out-expo);
}

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

.projects__tab--active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.projects__tab--active:hover {
    color: #fff;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-glass);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, transparent 30%, var(--accent-glow) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .project-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

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

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

.project-card.hidden {
    display: none;
}

.project-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-card__icon {
    color: var(--accent);
}

.project-card__link {
    color: var(--text-tertiary);
    transition: color 0.3s, transform 0.3s;
}

.project-card__link:hover {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.project-card__desc {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

/* ============================================
   SKILLS
   ============================================ */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-group {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s var(--ease-out-expo);
    box-shadow: var(--shadow-glass);
    transform-style: preserve-3d;
}

.skill-group:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow), var(--shadow-glass);
    transform: translateY(-4px) rotateX(2deg);
}

.skill-group__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.skill-group__title svg {
    color: var(--accent);
    flex-shrink: 0;
}

.skill-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    transition: all 0.3s var(--ease-out-expo);
}

.skill-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 16px var(--accent-glow);
}

/* ============================================
   CONTACT
   ============================================ */
.contact__content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.contact__social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease-out-expo);
}

.contact__social:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-6px) rotateZ(5deg) scale(1.1);
    box-shadow: 0 12px 32px var(--accent-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer__text {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.footer__text strong {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    :root {
        --section-padding: 80px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
    }

    .section__header {
        margin-bottom: 40px;
    }

    .experience__timeline {
        padding-left: 0;
    }

    .experience__timeline::before {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 64px;
    }

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

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

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

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

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