/* =========================================
   FATEH ALI AAMIR — PORTFOLIO 2025
   ========================================= */

:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --bg3: #111124;
  --card: rgba(255,255,255,0.025);
  --card-hover: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,102,241,0.5);
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-glow: rgba(99,102,241,0.15);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

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

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  background: #818cf8;
  box-shadow: 0 0 36px rgba(99,102,241,0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}
#nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: #818cf8 !important; color: #fff !important; }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-mobile-btn:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
}
.nav-mobile-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--accent); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 12s ease-in-out infinite;
}
.aurora-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.aurora-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: -4s;
}
.aurora-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -8s;
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #a5b4fc;
  font-family: var(--mono);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  min-height: 2em;
}
#typed-text { color: var(--accent-2); }
#cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-2);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drawDown 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform: translateX(-50%) translateY(0);} 50%{transform: translateX(-50%) translateY(-6px);} }
@keyframes drawDown { 0%,100%{scaleY:1;} 50%{transform:scaleY(0.6);} }

/* ---- ABOUT ---- */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  max-width: 420px;
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(10%);
}
.about-img-bg {
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.12;
  z-index: 0;
}
.about-img-border {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(34,211,238,0.2));
  z-index: 0;
}

.about-content { }
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  line-height: 1.85;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s;
}
.stat:hover { border-color: var(--accent); background: var(--card-hover); }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- SKILLS ---- */
#skills { }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.2);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.skill-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Skill icon color variants */
.ic-ai { background: rgba(168,85,247,0.15); color: #c084fc; }
.ic-backend { background: rgba(34,197,94,0.12); color: #4ade80; }
.ic-python { background: rgba(59,130,246,0.15); color: #60a5fa; }
.ic-js { background: rgba(234,179,8,0.12); color: #facc15; }
.ic-node { background: rgba(34,197,94,0.15); color: #4ade80; }
.ic-design { background: rgba(99,102,241,0.15); color: #818cf8; }

/* ---- PROJECTS ---- */
#projects { background: var(--bg2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.project-card:hover::after { opacity: 1; }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.project-links {
  display: flex;
  gap: 0.5rem;
}
.project-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.project-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

/* ---- ARTICLES ---- */
#articles { }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.articles-grid .article-featured {
  grid-column: span 2;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  color: var(--text);
}
.article-card:hover {
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.3s;
  transform-origin: center;
}
.article-featured .article-img { aspect-ratio: 21/9; }
.article-card:hover .article-img { filter: grayscale(0%); transform: scale(1.03); }

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.article-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  transition: color 0.2s;
}
.article-card:hover h3 { color: var(--accent-2); }
.article-read {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.article-read::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.article-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.article-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(99,102,241,0.15) 50%, rgba(34,211,238,0.1) 100%);
}
.article-placeholder::after {
  content: '';
  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: 30px 30px;
}
.article-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.4));
}
.article-featured .article-placeholder { aspect-ratio: 21/9; }

/* ---- CONTACT ---- */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateX(4px);
}
.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ic-email { background: rgba(99,102,241,0.15); color: var(--accent); }
.ic-wa { background: rgba(34,197,94,0.15); color: #4ade80; }
.ic-cal { background: rgba(34,211,238,0.12); color: var(--accent-2); }

.contact-card-text { flex: 1; }
.contact-card-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.1rem;
}
.contact-card-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
}
.contact-card:hover .contact-arrow { color: var(--accent); transform: translateX(3px); }

.calendly-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.calendly-inline-widget {
  min-width: 280px !important;
  height: 660px !important;
}

/* ---- FOOTER ---- */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { gap: 3.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid .article-featured { grid-column: span 2; }
  .contact-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  /* spacing */
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* nav */
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  #nav { padding: 1rem 0; }

  /* hero */
  #hero { padding: 5rem 0 5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }
  .hero-name { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .hero-title { font-size: 1rem; }
  .hero-bio { font-size: 0.95rem; }
  .hero-scroll { display: none; }

  /* about */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { max-width: 300px; margin: 0 auto; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .stat { padding: 1rem 0.75rem; }
  .stat-number { font-size: 1.6rem; }
  .about-content p { font-size: 0.95rem; }

  /* skills */
  .skills-grid { grid-template-columns: 1fr; gap: 1rem; }
  .skill-card { padding: 1.5rem; }

  /* projects */
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { padding: 1.5rem; }

  /* articles */
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .articles-grid .article-featured { grid-column: span 1; }
  .article-featured .article-img { aspect-ratio: 16/9; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .calendly-inline-widget { height: 580px !important; }

  /* footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* hero */
  .hero-name { font-size: clamp(2rem, 13vw, 3rem); letter-spacing: -0.03em; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }

  /* about */
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-img-wrap { max-width: 260px; }

  /* skills */
  .skill-tags { gap: 0.3rem; }
  .skill-tag { font-size: 0.65rem; }

  /* projects */
  .project-tech { gap: 0.3rem; }
  .tech-tag { font-size: 0.65rem; }

  /* contact */
  .contact-card { padding: 0.9rem 1rem; }
  .contact-card-val { font-size: 0.82rem; }
  .calendly-inline-widget { height: 520px !important; min-width: 0 !important; width: 100% !important; }
  .calendly-wrap { overflow: hidden; }

  /* section labels */
  .section-title { font-size: 1.75rem; }

  /* nav mobile menu */
  .nav-mobile-menu a { font-size: 1.25rem; }
}
