/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-darker: #000000;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-solid: #0a0a0a;
    --bg-card-hover: rgba(35, 35, 35, 0.7);
    --accent: #ffffff;
    --accent-light: #e5e5e5;
    --accent-pink: #ffffff;
    --accent-cyan: #cccccc;
    --accent-glow: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.4);
    --success: #ffffff;
    --gradient: linear-gradient(135deg, #ffffff 0%, #a3a3a3 50%, #525252 100%);
    --gradient-cyber: linear-gradient(135deg, #ffffff 0%, #d4d4d4 50%, #737373 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Animated grid */
.bg-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

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

/* Floating orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
    opacity: 0.25;
}

.bg-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 220, 220, 0.5), transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
    opacity: 0.2;
}

.bg-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(180, 180, 180, 0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 30s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-120px, -80px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.2); }
}

/* Particle canvas */
#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

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

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    mix-blend-mode: screen;
}

body:hover .cursor-glow { opacity: 1; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}

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

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.nav-logo:hover { transform: scale(1.05); }

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-num {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

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

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.nav-cta {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent-light) !important;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 10rem 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.line-wrap {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
}

.hero-line {
    display: inline-block;
    animation: slideUp 1s cubic-bezier(0.5, 0, 0.1, 1) backwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.line-wrap:nth-child(2) .hero-line { animation-delay: 0.4s; }

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

.highlight {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s cubic-bezier(0.5, 0, 0.1, 1) 0.4s backwards,
               gradientShift 4s ease infinite 1s;
}

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

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.25rem;
    min-height: 1.8em;
    font-family: 'Space Grotesk', sans-serif;
}

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

.cursor-blink {
    color: var(--text-primary);
    animation: blink 0.8s infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn {
    padding: 0.95rem 1.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    background: #f0f0f0;
}

.btn-secondary {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ==================== HERO CODE CARD ==================== */
.hero-visual {
    flex: 1;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

.floating-card {
    position: relative;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

.code-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 60px rgba(255, 255, 255, 0.08);
    position: relative;
}

.code-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 50%, rgba(255, 255, 255, 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.code-header {
    background: rgba(2, 3, 8, 0.7);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.dot.yellow { background: #a3a3a3; box-shadow: 0 0 8px rgba(163, 163, 163, 0.5); }
.dot.green { background: #525252; box-shadow: 0 0 8px rgba(82, 82, 82, 0.5); }

.code-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-body {
    padding: 1.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre;
    overflow-x: auto;
}

.code-comment { color: #6b6b6b; font-style: italic; }
.code-keyword { color: #ffffff; font-weight: 600; }
.code-string { color: #d4d4d4; }

/* Floating badges around code card */
.floating-badge {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 30px rgba(255, 255, 255, 0.08);
    filter: grayscale(100%);
}

.floating-badge-1 {
    top: -25px;
    right: -25px;
    animation: floatBadge1 5s ease-in-out infinite;
}

.floating-badge-2 {
    bottom: 30px;
    left: -30px;
    animation: floatBadge2 7s ease-in-out infinite;
}

.floating-badge-3 {
    top: 40%;
    right: -35px;
    animation: floatBadge3 6s ease-in-out infinite;
}

@keyframes floatBadge1 {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(8px, -12px) rotate(8deg); }
}

@keyframes floatBadge2 {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(-10px, -8px) rotate(-6deg); }
}

@keyframes floatBadge3 {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(12px, 10px) rotate(10deg); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeIn 1.5s ease 1.5s backwards;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 7rem 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
    max-width: 300px;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

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

.subsection-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 4rem 0 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subsection-deco {
    display: inline-block;
    width: 30px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero reveal */
.hero .reveal {
    opacity: 1;
    transform: none;
}

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.08);
    background: var(--bg-card-hover);
}

.info-card:hover::before { transform: scaleX(1); }

.info-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
    filter: grayscale(100%);
}

.info-card:hover .info-icon { transform: scale(1.15) rotate(-8deg); }

.info-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.info-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.4rem;
}

/* ==================== SKILLS ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.1);
    background: var(--bg-card-hover);
}

.skill-card:hover::before { transform: scaleX(1); }

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

.skill-icon {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.4s ease;
    filter: grayscale(100%) drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(-5deg);
}

.skill-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.skill-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--text-secondary);
    padding: 0.45rem 0 0.45rem 1.75rem;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
}

.skill-list li::before {
    content: '▸';
    color: var(--text-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-list li::before {
    transform: translateX(3px);
}

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

/* Softskills */
.softskills-section { margin-top: 4rem; }

.softskills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.softskill {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #ffffff, #525252) 1;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.4s ease;
    position: relative;
}

.softskill:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.08);
}

.softskill-icon { filter: grayscale(100%); }

.softskill-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.softskill strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.softskill span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==================== CERTIFICATIONS ==================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cert-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s;
    pointer-events: none;
}

.cert-card:hover .cert-shine { transform: translateX(100%); }

.cert-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1);
    background: var(--bg-card-hover);
}

.cert-badge-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #a3a3a3);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

.cert-status {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.cert-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-right: 3rem;
    line-height: 1.3;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cert-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cert-provider {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== PROJETS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
    gap: 1.75rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.07), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s;
    pointer-events: none;
}

.project-card:hover .project-shine { transform: translateX(100%); }

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.08);
    background: var(--bg-card-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    line-height: 1.65;
}

.project-desc code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    padding: 0.12em 0.4em;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
}

.project-meta {
    margin: 1.25rem 0 1.5rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.project-meta-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

.project-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-primary);
    font-weight: 700;
}

.project-list li:last-child { margin-bottom: 0; }

.project-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

.project-note-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.75;
}

.project-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

.project-note p strong {
    color: var(--text-primary);
    font-style: normal;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.project-card:hover .project-tag {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#projets .subsection-title {
    margin-top: 3.5rem;
}

#projets .subsection-title:first-of-type {
    margin-top: 2rem;
}

.project-status-academic {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border);
}

.status-dot-academic {
    background: var(--text-secondary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.project-status-wip {
    background: rgba(250, 204, 21, 0.08);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.status-dot-wip {
    background: #facc15;
    box-shadow: 0 0 10px #facc15;
}

.project-status-concept {
    background: rgba(167, 139, 250, 0.08);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

.status-dot-concept {
    background: #a78bfa;
    box-shadow: 0 0 10px #a78bfa;
}

/* ==================== BADGES ==================== */
.badges-showcase {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.badges-showcase:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.08);
}

.badges-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05), transparent 70%);
    transform: translateX(-100%);
    transition: transform 1s ease;
    pointer-events: none;
}

.badges-showcase:hover .badges-shine { transform: translateX(100%); }

.badges-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    filter: grayscale(100%) brightness(0.95);
    transition: filter 0.5s ease;
}

.badges-showcase:hover .badges-image {
    filter: grayscale(100%) brightness(1.1);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.875rem;
}

.badge-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    filter: grayscale(100%);
}

.badge-item:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* ==================== CV ==================== */
.cv-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cv-viewer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    position: relative;
}

.cv-embed {
    width: 100%;
    height: 820px;
    border: none;
    display: block;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1);
    background: var(--bg-card-hover);
}

.contact-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    filter: grayscale(100%);
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg);
}

.contact-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-card p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-cta {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 1;
    opacity: 0.7;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(2, 3, 8, 0.4);
    backdrop-filter: blur(10px);
}

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

.footer-sub {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero { gap: 3rem; }
    .floating-badge { width: 48px; height: 48px; font-size: 1.25rem; }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .nav-links { display: none; }
    .section-header { flex-wrap: wrap; }
    .section-line { display: none; }
    .floating-badge-1 { top: -15px; right: 10px; }
    .floating-badge-2 { bottom: 10px; left: 10px; }
    .floating-badge-3 { top: 50%; right: 0; }
}

@media (max-width: 600px) {
    .section { padding: 4.5rem 0; }
    .container { padding: 0 1.25rem; }
    .hero { padding: 7rem 1.25rem 3rem; }
    .about-cards { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .cv-embed { height: 500px; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .stat-num { font-size: 1.8rem; }
    .nav-container { padding: 0 1.25rem; }
    .bg-orb { filter: blur(60px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .bg-orb, .bg-grid, .floating-card, .floating-badge { animation: none; }
}
