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

:root {
    --bg: #0a0a0f;
    --bg-2: #11111a;
    --bg-3: #161622;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-muted: #a0a0b0;
    --text-dim: #6a6a7a;
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #06b6d4;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.15) 50%, rgba(6,182,212,0.15) 100%);
    --shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --container: 1200px;
    --nav-bg: rgba(10, 10, 15, 0.7);
    --nav-bg-scrolled: rgba(10, 10, 15, 0.92);
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg-2: #ffffff;
    --bg-3: #f1f3f9;
    --surface: rgba(15, 23, 42, 0.03);
    --surface-hover: rgba(15, 23, 42, 0.06);
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.18);
    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-right: 12px;
}
.theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: rotate(15deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 768px) {
    .theme-toggle { width: 32px; height: 32px; margin-right: 8px; }
    .theme-toggle svg { width: 14px; height: 14px; }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ========== Cursor Glow ========== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

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

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-logo:hover::before {
    opacity: 0.12;
}

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

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover { color: var(--text); }
.nav-link.active {
    color: var(--text);
    background: var(--surface);
}

.nav-cta {
    padding: 10px 22px;
    background: var(--gradient);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta { display: inline-flex; align-items: center; cursor: pointer; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Hire Me Dropdown */
.hire-wrapper {
    position: relative;
}

.hire-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 320px;
    background: rgba(17, 17, 26, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.hire-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hire-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: rgba(17, 17, 26, 0.96);
    border-left: 1px solid var(--border-strong);
    border-top: 1px solid var(--border-strong);
    transform: rotate(45deg);
}

.hire-dropdown-title {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 10px 12px;
    font-weight: 600;
}

.hire-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    color: var(--text);
}

.hire-option:hover {
    background: var(--surface-hover);
    transform: translateX(2px);
}

.hire-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.hire-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.hire-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.blob-1 {
    width: 500px; height: 500px;
    background: #6366f1;
    top: -100px; left: -100px;
    animation: float 12s ease-in-out infinite;
}

.blob-2 {
    width: 400px; height: 400px;
    background: #8b5cf6;
    bottom: -100px; right: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}

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

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.profile-ring {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 4px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--bg-2);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    background-image: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: var(--bg-2);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
}

.orbit-1 {
    width: 380px; height: 380px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 460px; height: 460px;
    animation: rotate 30s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent);
}

.orbit-2 .orbit-dot {
    background: var(--accent-3);
    box-shadow: 0 0 20px var(--accent-3);
    top: auto;
    bottom: -6px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-card {
    position: absolute;
    background: rgba(22, 22, 34, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

.card-figma {
    top: 30px;
    left: -20px;
}

.card-photoshop {
    bottom: 60px;
    right: -10px;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f24e1e, #a259ff);
    flex-shrink: 0;
}

.card-icon.ps { background: linear-gradient(135deg, #001e36, #31a8ff); }

.card-title { font-weight: 600; font-size: 0.9rem; }
.card-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-strong);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-down span {
    width: 4px;
    height: 8px;
    background: var(--text);
    border-radius: 2px;
    animation: scrollDown 1.6s ease-in-out infinite;
}

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

/* ========== Sections ========== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-alt {
    background: var(--bg-2);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 70px;
}

.section-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.15rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.trait:hover {
    background: var(--gradient-soft);
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-2px);
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.info-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: var(--surface-hover);
}

.info-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-label { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 2px; }
.info-value { font-weight: 600; font-size: 0.92rem; }

/* ========== Skills ========== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skills-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.mt-40 { margin-top: 40px; }

.skill { margin-bottom: 18px; }

.skill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.skill-pct { color: var(--text-muted); font-weight: 500; }

.skill-bar {
    height: 6px;
    background: var(--surface);
    border-radius: 999px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 999px;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tool-card {
    padding: 20px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

.tool-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f24e1e, #a259ff);
    font-size: 1rem;
}

.tool-icon.ps { background: linear-gradient(135deg, #001e36, #31a8ff); }
.tool-icon.ai { background: linear-gradient(135deg, #330000, #ff9a00); }
.tool-icon.gif { background: linear-gradient(135deg, #ec4899, #f59e0b); font-size: 0.75rem; }
.tool-icon.office { background: linear-gradient(135deg, #d83b01, #ffba08); font-size: 0.85rem; }
.tool-icon.dm { background: linear-gradient(135deg, #10b981, #06b6d4); font-size: 0.85rem; }

.tool-card span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.lang-list { display: flex; flex-direction: column; gap: 14px; }

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.lang-dots { display: flex; gap: 6px; }

.lang-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--surface-hover);
}

.lang-dots .dot.active { background: var(--gradient); background-size: 200% 200%; }

.markets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.market {
    padding: 10px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== Timeline ========== */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.1);
}

.timeline-item:first-child .timeline-dot {
    background: var(--gradient);
    border-color: transparent;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.25s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.job-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-freelance {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    background: var(--gradient-soft);
    color: var(--accent);
    border-radius: 999px;
    border: 1px solid var(--border);
}

.company {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.period {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 4px 12px;
    background: var(--surface);
    border-radius: 999px;
    border: 1px solid var(--border);
    height: fit-content;
    white-space: nowrap;
}

.period.current {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== Projects ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text);
}

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

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--bg-3);
}

.project-image.no-img img { display: none; }

.project-image-fallback {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

.project-body {
    padding: 22px;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: var(--gradient-soft);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 500;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: middle;
    transition: all 0.25s ease;
}

.admin-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.footer-bottom-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========== Education ========== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.edu-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edu-card.featured {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.edu-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.edu-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--gradient-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.edu-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.edu-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.edu-loc {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ========== Testimonials ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    opacity: 0.6;
}

.testimonial-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.testimonial-quote-icon {
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 14px;
}

.testimonial-quote {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    background: var(--surface-hover);
}

.contact-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.contact-value { font-weight: 600; font-size: 0.95rem; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-3);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea { min-height: 120px; }

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    height: fit-content;
}

.social-link {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========== Reveal Animations ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========== Responsive ========== */
@media (max-width: 980px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-visual { min-height: 380px; }
    .profile-ring { transform: scale(0.85); }

    .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        background: rgba(17, 17, 26, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-link { display: block; padding: 12px 16px; border-radius: var(--radius-sm); }
    .nav-toggle { display: flex; }
    .nav-cta, .hire-wrapper { display: none; }
    .hire-dropdown { right: -8px; min-width: 280px; }

    .section { padding: 70px 0; }
    .section-header { margin-bottom: 50px; }

    .hero { padding: 110px 0 60px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 1.8rem; }

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

    .timeline-header { flex-direction: column; align-items: flex-start; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 18px; }
    .floating-card { display: none; }
}
