/* =====================================================================
   FARHAN - FULL STACK DEVELOPER
   Clean, Minimalist, High-Converting Web & Backend Portfolio
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #0f131a;
  --bg-card: rgba(18, 23, 33, 0.65);
  --bg-card-hover: rgba(24, 30, 44, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Subtle background accent */
.bg-ambient {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(16, 185, 129, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================================
   HEADER & MINIMAL NAVBAR
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero-section {
  padding: 5rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-bio strong {
  color: #ffffff;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

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

/* Hero Avatar Card */
.hero-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(16, 185, 129, 0.4) 100%);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.15);
  transition: var(--transition);
}

.avatar-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.25);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: #0f131a;
  transition: opacity 0.25s ease-in-out;
}

.avatar-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 23, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.photo-switcher {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.switch-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.switch-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  color: #ffffff;
}

/* Stats Row */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =====================================================================
   SECTION HEADINGS
   ===================================================================== */
.section-wrap {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

/* =====================================================================
   SERVICES SECTION (WHAT I DO)
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-icon-web {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  box-shadow: 0 0 20px -3px rgba(59, 130, 246, 0.25);
}

.service-icon-backend {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  box-shadow: 0 0 20px -3px rgba(168, 85, 247, 0.25);
}

.service-icon-database {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.25);
}

.service-card:hover .service-icon-box {
  transform: translateY(-2px) scale(1.08);
}

.service-card:hover .service-icon-web {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.service-card:hover .service-icon-backend {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.service-card:hover .service-icon-database {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.service-icon-emoji {
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

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

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  transition: var(--transition);
}

.tech-chip i {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

/* =====================================================================
   FEATURED PROJECTS
   ===================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.project-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 1rem;
}

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

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* =====================================================================
   WORK EXPERIENCE
   ===================================================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: var(--transition);
}

.exp-item:hover {
  border-color: var(--border-hover);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.exp-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.exp-company {
  color: #60a5fa;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.exp-bullets {
  list-style: none;
  margin-top: 0.75rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.exp-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
}

/* =====================================================================
   CLIENT RECOMMENDATION / TESTIMONIAL
   ===================================================================== */
.testimonial-card {
  background: linear-gradient(135deg, rgba(24, 32, 48, 0.7) 0%, rgba(15, 20, 30, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.08);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.testimonial-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.testimonial-quote {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #f1f5f9;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.45);
  background: #0f131a;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

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

.testimonial-company-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.testimonial-company-link:hover {
  text-decoration: underline;
}

/* =====================================================================
   SKILLS GRID
   ===================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.skill-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

/* =====================================================================
   CONTACT & HIRE SECTION
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

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

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-row a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.contact-row a:hover {
  color: #60a5fa;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #60a5fa;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.field-limit {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}

.field-error.active {
  display: block;
}

.form-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.925rem;
  outline: none;
  transition: var(--transition);
}

.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* =====================================================================
   IN-PLACE SUCCESS STATE CARD
   ===================================================================== */
.contact-success-card {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: successFadeIn 0.4s ease-out;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.success-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.success-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.success-summary-box {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.summary-label {
  color: var(--text-dim);
  font-weight: 500;
}

.summary-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.success-closing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.9rem 1.4rem;
  background: #111827;
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-align: center;
}

/* =====================================================================
   RESPONSIVE DESIGN (OPTIMIZED MOBILE SPACING)
   ===================================================================== */
@media (max-width: 900px) {
  .hero-layout { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-bottom: 2rem;
  }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Compact Header */
  .navbar { height: 58px; }
  .nav-menu { display: none; }
  .brand-logo { font-size: 1.15rem; }
  .btn-primary#btn-hire-nav { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

  /* Remove excessive gap between header and hero */
  .hero-section {
    padding: 1.25rem 0 1.5rem;
  }

  .hero-pill {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
  }

  .hero-title { 
    font-size: 2.15rem; 
    letter-spacing: -1px;
    margin-bottom: 0.35rem;
    line-height: 1.15;
  }

  .hero-subtitle { 
    font-size: 1.2rem; 
    margin-bottom: 0.85rem;
    line-height: 1.3;
  }

  .hero-bio { 
    font-size: 0.95rem; 
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  .hero-avatar-card {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .avatar-frame {
    max-width: 220px;
    border-radius: 20px;
  }

  .profile-photo {
    border-radius: 16px;
  }

  .avatar-badge {
    bottom: 8px;
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    max-width: calc(100% - 12px);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .stat-val { font-size: 1.45rem; }
  .stat-lbl { font-size: 0.8rem; }
  .stat-sub { font-size: 0.72rem; }

  /* Remove huge gaps between sections */
  .section-wrap {
    padding: 2rem 0;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-tag {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
  }

  .section-title {
    font-size: 1.55rem;
    letter-spacing: -0.3px;
  }

  /* Compact Card Paddings */
  .service-card,
  .project-card,
  .exp-item,
  .testimonial-card,
  .contact-info-panel,
  .contact-form-panel {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .testimonial-avatar {
    width: 46px;
    height: 46px;
  }

  .service-title,
  .project-title,
  .contact-title {
    font-size: 1.15rem;
  }

  .service-desc,
  .project-desc,
  .contact-text {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .exp-role {
    font-size: 1.05rem;
  }

  .exp-bullets li {
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 1.75rem 0;
    font-size: 0.8rem;
  }
}

