/* =============================================
   PORTFOLIO — PREMIUM DARK THEME
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #060912;
  --bg-secondary: #0d1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-2: #06b6d4;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #38bdf8);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── CURSOR ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform .15s ease;
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,102,241,.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform .35s cubic-bezier(.23,1,.32,1);
}

/* ── UTILS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s ease;
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-light);
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  padding: 6px 18px; border-radius: 99px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: none;
  cursor: pointer; transition: all .3s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.6); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent-light); background: rgba(99,102,241,.08); }
.btn-outline { background: transparent; color: var(--accent-light); border: 1px solid var(--accent-light); }
.btn-outline:hover { background: rgba(99,102,241,.1); }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(6, 9, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 18, 0.95);
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-code);
  font-size: 22px; font-weight: 700;
  text-decoration: none; color: var(--text-primary);
}
.logo-bracket { color: var(--accent); }
.logo-slash { color: var(--accent-3); }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-link {
  display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  border-radius: 8px; transition: all .25s;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(99,102,241,.1); }
.nav-cta {
  padding: 10px 22px; background: var(--gradient);
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  transition: all .3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,.5); }
/* nav-cta as button reset */
button.nav-cta { border: none; cursor: pointer; font-family: var(--font); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #6366f1, transparent); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #a855f7, transparent); top: 200px; right: -150px; animation-delay: -3s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4, transparent); bottom: -100px; left: 50%; animation-delay: -6s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero { justify-content: space-between; padding-inline: clamp(24px, 6vw, 120px); }

.hero-content {
  position: relative; z-index: 2;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 99px;
  font-size: 13px; font-weight: 600; color: #10b981;
  margin-bottom: 24px;
  animation: fadeInDown .8s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #10b981; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 12px;
  animation: fadeInUp .8s ease .1s both;
}
.title-line { display: block; }
.hero-subtitle {
  font-family: var(--font-code);
  font-size: 18px; color: var(--accent-2);
  margin-bottom: 20px; letter-spacing: 2px;
  animation: fadeInUp .8s ease .2s both;
}
.hero-desc {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px;
  animation: fadeInUp .8s ease .3s both;
}
.hero-code {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  font-family: var(--font-code); font-size: 13px;
  margin-bottom: 32px; display: flex; flex-direction: column; gap: 4px;
  animation: fadeInUp .8s ease .35s both;
}
.c-keyword { color: #f97316; }
.c-var { color: #60a5fa; }
.c-key { color: #a3e635; }
.c-str { color: #34d399; }
.c-num { color: #c084fc; }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp .8s ease .4s both;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  animation: fadeInUp .8s ease .5s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 400px; height: 400px; flex-shrink: 0;
}
.tech-orbit { position: relative; width: 100%; height: 100%; }
.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ring-1 { width: 320px; height: 320px; animation: spin 12s linear infinite; }
.ring-2 { width: 200px; height: 200px; animation: spin 8s linear infinite reverse; }
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.orbit-item {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle)));
}
.ring-2 .orbit-item {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
}
.tech-icon {
  width: 44px; height: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow);
  animation: counterSpin 12s linear infinite;
}
.ring-2 .tech-icon.sm { animation-duration: 8s; animation-direction: reverse; font-size: 16px; width: 36px; height: 36px; }
@keyframes counterSpin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-size: 22px; font-weight: 700; color: #fff;
  box-shadow: 0 0 40px rgba(99,102,241,.5);
}
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 12px; letter-spacing: 1px;
  animation: fadeIn 1s ease 1s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* =============================================
   ABOUT
   ============================================= */
.about { background: rgba(255,255,255,.015); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center;
}
.about-visual { position: relative; }
.about-card {
  padding: 40px; text-align: center;
  position: relative;
}
.profile-avatar {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  box-shadow: 0 0 0 6px rgba(99,102,241,.15), 0 8px 40px rgba(99,102,241,.4);
  position: relative;
}
.profile-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--bg-primary);
}
.avatar-inner { font-family: var(--font-code); font-size: 28px; font-weight: 700; color: #fff; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge {
  padding: 6px 14px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25);
  border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--accent-light);
}
.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(13, 17, 23, .9);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: floatCard 4s ease-in-out infinite;
}
.card-1 { top: 10px; right: -20px; }
.card-2 { bottom: 20px; left: -20px; animation-delay: -2s; }
.fc-icon { font-size: 24px; }
.floating-card strong { font-size: 18px; font-weight: 800; }
.floating-card small { color: var(--text-muted); }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.about-text {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 20px;
}
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0;
}
.highlight-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.hi-icon { font-size: 22px; flex-shrink: 0; }
.highlight-item strong { font-size: 14px; color: var(--text-primary); }
.highlight-item p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   SKILLS
   ============================================= */
.skills-categories {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px;
}
.skill-category { padding: 32px; }
.skill-cat-icon { font-size: 32px; margin-bottom: 12px; }
.skill-category h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.skill-list { display: flex; flex-direction: column; gap: 12px; }
.skill-item { display: flex; align-items: center; gap: 10px; }
.skill-name { font-size: 13px; color: var(--text-secondary); width: 150px; flex-shrink: 0; }
.skill-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: var(--gradient); border-radius: 99px;
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.skill-pct { font-size: 12px; color: var(--text-muted); width: 36px; text-align: right; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-tag {
  padding: 8px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all .25s; cursor: default;
}
.tech-tag:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(99,102,241,.08); }

/* =============================================
   EXPERIENCE
   ============================================= */
.experience { background: rgba(255,255,255,.015); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-3), transparent);
}
.timeline-item {
  position: relative; padding-left: 72px; margin-bottom: 40px;
}
.timeline-dot {
  position: absolute; left: 16px; top: 28px;
  width: 18px; height: 18px;
  background: var(--gradient); border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.2), 0 0 20px rgba(99,102,241,.4);
}
.timeline-card { padding: 28px 32px; }
.tc-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.tc-company { display: flex; align-items: center; gap: 14px; }
.company-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}
.company-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.company-loc { font-size: 13px; color: var(--text-muted); }
.tc-meta { text-align: right; }
.tc-role {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--accent-light);
  margin-bottom: 4px;
}
.tc-period {
  display: block; font-size: 13px; color: var(--text-muted);
  font-family: var(--font-code);
}
.tc-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.tc-achievements { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.achievement { font-size: 13px; color: var(--text-secondary); padding-left: 4px; }
.achievement::first-letter { color: var(--accent-light); }
.tc-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-tech span {
  padding: 4px 12px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  border-radius: 99px; font-size: 12px; color: var(--accent-light);
}

/* =============================================
   PROJECTS
   ============================================= */
.project-filters {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: all .25s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient); border-color: transparent;
  color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.project-card.hidden { display: none; }
.project-header {
  padding: 32px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.project-icon { font-size: 36px; }
.project-type {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 6px;
}
.project-body { padding: 24px; flex: 1; }
.project-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.project-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech span {
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.06); font-size: 11px; color: var(--text-muted);
}
.project-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.project-metrics { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }

/* =============================================
   SERVICES
   ============================================= */
.services { background: rgba(255,255,255,.015); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card { padding: 32px 24px; position: relative; }
.featured-service {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.06);
}
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  padding: 4px 16px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap;
}
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li { font-size: 13px; color: var(--text-muted); padding-left: 16px; position: relative; }
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* =============================================
   CONTACT
   ============================================= */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
.contact-intro { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; text-decoration: none; color: inherit;
}
.cc-icon { font-size: 24px; }
.contact-card strong { font-size: 14px; color: var(--text-primary); }
.contact-card p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  padding: 10px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
  transition: all .25s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(99,102,241,.08); }
.contact-form { padding: 36px; }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 16px;
  font-size: 14px; color: var(--text-primary);
  font-family: var(--font); transition: border-color .25s;
  outline: none; resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 16px;
  font-size: 14px; color: var(--text-primary);
  font-family: var(--font); transition: border-color .25s;
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-group select:focus { border-color: var(--accent); }
.form-group select option { background: #0d1117; color: var(--text-primary); }
.form-note {
  margin-top: 12px; font-size: 14px; text-align: center; line-height: 1.5;
}
.form-success { color: #10b981; }
.form-error   { color: #f87171; }
.req { color: var(--accent-light); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: rgba(0,0,0,.3); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero { flex-direction: column; text-align: center; padding-top: 140px; }
  .hero-content { max-width: 100%; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { width: 300px; height: 300px; margin-top: 40px; }
  .ring-1 { width: 260px; height: 260px; }
  .orbit-item { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle))); }
  .ring-2 { width: 160px; height: 160px; }
  .ring-2 .orbit-item { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(80px) rotate(calc(-1 * var(--angle))); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(6,9,18,.98); backdrop-filter: blur(20px);
    padding: 24px; gap: 4px; border-bottom: 1px solid var(--border);
  }
  .about-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .skills-categories { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
  .tc-header { flex-direction: column; }
  .tc-meta { text-align: left; }
  .about-highlights { grid-template-columns: 1fr; }
  .modal-box { margin: 16px; max-height: calc(100vh - 32px); }
}

/* =============================================
   HIRE ME MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-box {
  position: relative;
  width: 100%; max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  border-radius: 20px;
  transform: translateY(24px);
  transition: transform .35s cubic-bezier(.23,1,.32,1);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-secondary);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(255,255,255,.12); color: var(--text-primary); }
.modal-header {
  text-align: center; margin-bottom: 36px;
}
.modal-icon {
  font-size: 48px; margin-bottom: 12px;
  animation: bounceIn .6s cubic-bezier(.68,-.55,.27,1.55) both;
}
@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.modal-header h2 {
  font-size: 28px; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.modal-header p { font-size: 14px; color: var(--text-secondary); }
.hire-form .form-group { margin-bottom: 16px; }

