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

:root {
    --bg: #0a0a0f;
    --bg-elevated: #11121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #e8e8f0;
    --text-muted: #8a8a99;
    --text-dim: #5a5a6e;
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --accent-3: #ff5ca8;
    --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4ff 50%, #ff5ca8 100%);
    --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.15));
    --max-width: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* =============================
   Custom cursor (modern, discreet)
   ============================= */
.cursor, .cursor-follower {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor {
    width: 6px; height: 6px;
    background: var(--accent-2);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s;
}
.cursor-follower {
    width: 28px; height: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background 0.25s ease;
}
.cursor.hover { width: 0; height: 0; opacity: 0; }
.cursor-follower.hover {
    width: 40px; height: 40px;
    border-color: var(--accent-2);
    background: rgba(0, 212, 255, 0.08);
}
@media (max-width: 768px), (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
}

/* =============================
   Ambient effects
   ============================= */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-blob {
    position: fixed; border-radius: 50%; filter: blur(120px);
    pointer-events: none; z-index: 0; opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent); top: -200px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -100px; right: -100px; animation-delay: -7s; }
.blob-3 { width: 350px; height: 350px; background: var(--accent-3); top: 50%; left: 50%; opacity: 0.15; animation-delay: -14s; }

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

/* =============================
   Layout
   ============================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.section { padding: 120px 0; position: relative; }

/* =============================
   Navbar
   ============================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px 0;
    transition: padding 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 4px; }
.logo-bracket { color: var(--accent-2); transition: transform 0.3s; }
.logo:hover .logo-bracket:first-child { transform: translateX(-4px); }
.logo:hover .logo-bracket:last-child { transform: translateX(4px); }

.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
    position: relative; padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--text-muted);
    transition: color 0.3s; border-radius: 8px; overflow: hidden;
}
.nav-links a::before {
    content: ''; position: absolute; inset: 0; background: var(--gradient-soft);
    opacity: 0; transition: opacity 0.3s; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { opacity: 1; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
    display: inline-flex; gap: 2px; padding: 3px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 100px; backdrop-filter: blur(10px);
}
.lang-btn {
    padding: 6px 14px; font-size: 12px; font-weight: 600; font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em; border-radius: 100px; color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.lang-btn:not(.is-active):hover { color: var(--text); }
.lang-btn.is-active {
    background: var(--gradient); color: white;
    box-shadow: 0 2px 12px rgba(124, 92, 255, 0.4);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.open {
        display: flex; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; padding: 24px; gap: 16px;
        background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
    }
    .lang-btn { padding: 5px 10px; font-size: 11px; }
}

/* =============================
   Hero
   ============================= */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-grid {
    position: absolute; inset: 0; opacity: 0.4;
    background-image:
        linear-gradient(rgba(124, 92, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }

.hero-tagline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px; margin-bottom: 32px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px;
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    backdrop-filter: blur(10px);
}
.hero-tagline .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 12px #4ade80; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title { font-size: clamp(56px, 9vw, 120px); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 32px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
    display: inline-block; background: var(--gradient); -webkit-background-clip: text;
    background-clip: text; color: transparent;
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.15s; color: var(--text); background: none; -webkit-text-fill-color: var(--text); }
@keyframes revealUp { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hero-subtitle {
    font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; color: var(--text-muted);
    max-width: 600px; margin-bottom: 48px;
    animation: fadeIn 1s 0.5s both;
}
.highlight { color: var(--text); font-weight: 500; position: relative; }
.highlight::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--gradient); border-radius: 2px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; animation: fadeIn 1s 0.7s both; }
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
    font-size: 16px; font-weight: 500; border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn-primary { background: var(--gradient); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 80px rgba(124, 92, 255, 0.5); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--accent-2); }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); animation: fadeIn 1s 0.9s both; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(36px, 4.5vw, 48px); font-weight: 700; font-family: 'JetBrains Mono', monospace; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; line-height: 1; vertical-align: baseline; }
.stat-plus { font-size: clamp(36px, 4.5vw, 48px); font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--accent-2); margin-left: 2px; display: inline-block; line-height: 1; vertical-align: baseline; }
.stat-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

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

/* Hero photo */
.hero-visual { display: flex; justify-content: center; animation: fadeIn 1.2s 0.4s both; }
.photo-frame {
    position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/5;
    border-radius: 24px; overflow: visible;
}
.photo-glow {
    position: absolute; inset: -20px; border-radius: 32px;
    background: var(--gradient); filter: blur(40px); opacity: 0.5; z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }
.profile-photo {
    position: relative; width: 100%; height: 100%; object-fit: cover;
    border-radius: 24px; border: 1px solid var(--border-strong); z-index: 1;
    background: var(--bg-elevated);
}

.floating-badge {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 100px;
    background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong); z-index: 2;
    font-size: 13px; font-weight: 500;
    animation: floatBadge 6s ease-in-out infinite;
}
.floating-badge svg { width: 16px; height: 16px; color: var(--accent-2); }
.floating-badge .badge-logo {
    width: 22px; height: 22px; padding: 3px;
    background: #fff; border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); display: block;
}
.badge-symbol { font-family: 'JetBrains Mono', monospace; color: var(--accent-3); font-weight: 600; }
.badge-1 { top: 10%; left: -10%; animation-delay: 0s; }
.badge-2 { top: 50%; right: -15%; animation-delay: -2s; }
.badge-3 { bottom: 10%; left: -5%; animation-delay: -4s; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-line {
    width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-dim), transparent);
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: var(--accent-2); animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { order: -1; }
    .photo-frame { max-width: 320px; }
    .hero-stats { gap: 32px; }
}

/* =============================
   Section header
   ============================= */
.section-header { display: flex; align-items: center; gap: 24px; margin-bottom: 64px; flex-wrap: wrap; }
.section-number {
    font-family: 'JetBrains Mono', monospace; font-size: 15px;
    color: var(--accent-2); font-weight: 500;
}
.section-title {
    font-size: clamp(36px, 5vw, 56px); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border-strong), transparent); }

/* =============================
   About
   ============================= */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.about-text .lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--text); margin-bottom: 24px; font-weight: 500; }
.about-text p { color: var(--text-muted); margin-bottom: 22px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag {
    padding: 9px 18px; border-radius: 100px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 14px; color: var(--text-muted); transition: all 0.3s;
}
.tag:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

.about-illustration { width: 100%; border-radius: var(--radius); }

/* --- Stack grid (about-visual) --- */
.stack-eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--accent-2); font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 20px; display: block;
}
.stack-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    padding: 24px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.stack-grid::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.08), transparent 60%);
}
.stack-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 8px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02); border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; z-index: 1;
}
.stack-item:hover {
    transform: translateY(-3px); border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}
.stack-icon {
    width: 40px; height: 40px; padding: 8px;
    background: #fff; border-radius: 10px;
    flex-shrink: 0; display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}
.stack-item:hover .stack-icon { transform: scale(1.06); }
.stack-item span {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    text-align: center; letter-spacing: 0.02em;
}
.stack-item-ai {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 212, 255, 0.04));
    border-color: rgba(124, 92, 255, 0.2);
}
.stack-item-ai span { color: var(--text); }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .stack-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .stack-grid { grid-template-columns: repeat(3, 1fr); padding: 18px; gap: 10px; }
    .stack-icon { width: 32px; height: 32px; }
    .stack-item span { font-size: 11px; }
}

/* =============================
   Skills
   ============================= */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card {
    padding: 40px 32px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.skill-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.15), transparent 50%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.skill-card:hover::before { opacity: 1; }
.skill-card.featured { border-color: rgba(124, 92, 255, 0.4); background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 212, 255, 0.04)); }

.skill-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--gradient-soft); border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.skill-icon svg { width: 28px; height: 28px; color: var(--accent-2); }
.skill-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
.skill-card p { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
.skill-list { list-style: none; }
.skill-list li {
    padding: 12px 0; font-size: 15px; color: var(--text-muted);
    border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}
.skill-logo {
    width: 26px; height: 26px; padding: 4px;
    background: #fff; border-radius: 6px;
    flex-shrink: 0; display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.skill-list li span { flex: 1; }

@media (max-width: 900px) { .skills-grid { grid-template-columns: 1fr; } }

/* =============================
   Timeline / Experience
   ============================= */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item { position: relative; padding-bottom: 56px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute; left: -32px; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}
.timeline-marker.formation { border-color: var(--accent-3); box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.15); }
.timeline-date {
    font-family: 'JetBrains Mono', monospace; font-size: 14px;
    color: var(--accent-2); margin-bottom: 8px; font-weight: 500;
}
.timeline-content h3 { font-size: 24px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.timeline-content h4 { font-size: 16px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.company-name { display: inline-flex; align-items: center; gap: 10px; }
.company-logo { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; }
.timeline-content .location { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.timeline-content p:not(.location) { font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 620px; }

/* =============================
   Projects
   ============================= */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.project-card {
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.project-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-elevated); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-image img { transform: scale(1.08); }
.project-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-action { font-size: 15px; font-weight: 500; color: var(--accent-2); }
.project-info { padding: 32px; }
.project-tag {
    display: inline-block; padding: 5px 14px; margin-bottom: 16px;
    border-radius: 100px; font-size: 13px; font-weight: 500;
    background: var(--gradient-soft); color: var(--accent-2);
    border: 1px solid var(--border);
}
.project-info h3 { font-size: 26px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.project-info p { font-size: 16px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.project-stack { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.stack-mini {
    width: 28px; height: 28px; padding: 4px;
    background: #fff; border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s; display: block;
}
.stack-mini:hover { transform: scale(1.15) translateY(-2px); }

@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* =============================
   Contact
   ============================= */
.contact-intro { text-align: center; margin-bottom: 64px; }
.contact-intro h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-intro p { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.6; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 28px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent-2); background: rgba(0, 212, 255, 0.05); }
.contact-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--gradient-soft); display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s;
}
.contact-card:hover .contact-icon { transform: rotate(-5deg) scale(1.1); }
.contact-icon svg { width: 22px; height: 22px; color: var(--accent-2); }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 500; }
.contact-value { font-size: 17px; font-weight: 500; color: var(--text); word-break: break-word; line-height: 1.4; }

@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .contact-cards { grid-template-columns: 1fr; } }

/* =============================
   Contact form
   ============================= */
.contact-form {
    margin: 80px auto 0; max-width: 720px; padding: 48px;
    border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.contact-form::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 60%);
}
.form-header { margin-bottom: 32px; position: relative; }
.form-header h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.form-header p { color: var(--text-muted); font-size: 15px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; position: relative; }
.form-field span {
    font-size: 14px; color: var(--text-muted); font-weight: 500;
    letter-spacing: 0.02em; display: flex; align-items: center; gap: 6px;
}
.form-field span em { color: var(--text-dim); font-style: normal; font-size: 13px; }

.form-field input,
.form-field textarea {
    width: 100%; padding: 15px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: inherit; font-size: 16px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent-2);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) { border-color: rgba(255, 92, 168, 0.4); }
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 12px; width: 100%; justify-content: center; cursor: pointer; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.form-submit.loading .btn-label::after {
    content: '...'; display: inline-block; width: 18px; text-align: left;
    animation: dots 1.4s infinite;
}
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

.form-status {
    margin-top: 18px; font-size: 15px; min-height: 22px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    opacity: 0; transition: opacity 0.3s;
}
.form-status:not(:empty) { opacity: 1; }
.form-status.success { color: #4ade80; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.2); }
.form-status.error { color: #ff5ca8; background: rgba(255, 92, 168, 0.08); border: 1px solid rgba(255, 92, 168, 0.2); }
.form-status.loading { color: var(--text-muted); }

.form-legal { margin-top: 16px; font-size: 13px; color: var(--text-dim); text-align: center; line-height: 1.5; }

@media (max-width: 600px) {
    .contact-form { padding: 28px 20px; margin-top: 56px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =============================
   Footer
   ============================= */
.footer { padding: 48px 0; border-top: 1px solid var(--border); margin-top: 60px; text-align: center; }
.footer p { font-size: 15px; color: var(--text-muted); }
.footer-meta { font-size: 13px; color: var(--text-dim); margin-top: 8px; font-family: 'JetBrains Mono', monospace; }
.heart-emoji { display: inline-block; font-size: 14px; vertical-align: middle; animation: heartBeat 1.8s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.15); } 50% { transform: scale(1); } 70% { transform: scale(1.08); } }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =============================
   Mobile spacing & sizes
   ============================= */
@media (max-width: 768px) {
    .container { padding: 0 22px; }
    .section { padding: 90px 0; }
    .hero { padding: 110px 0 70px; }
    .section-header { gap: 16px; margin-bottom: 48px; }
    .hero-cta { width: 100%; }
    .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
}
@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .section { padding: 72px 0; }
    .hero { padding: 100px 0 60px; }
    .floating-badge { font-size: 12px; padding: 8px 12px; }
    .floating-badge svg { width: 14px; height: 14px; }
    .skill-card { padding: 32px 24px; }
    .project-info { padding: 24px; }
    .contact-form { padding: 24px 18px !important; }
}
