/* ========================================================
   SECTIONS — Hero, About, Services, Portfolio,
              Skills, WhyMe, Testimonials, Contact, Footer
   ======================================================== */

/* ── HERO ── */
#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-hero), url('../assets/images/hero_bg.png');
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: overlay;
  opacity: 0.85;
  z-index: 0;
  transform: translateZ(0); /* Hardware acceleration */
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 40%, transparent 60%, var(--bg-primary) 100%),
              linear-gradient(to bottom, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-bg {
  background-blend-mode: soft-light;
  opacity: 0.15;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(79,142,247,0.15);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(201,168,76,0.1);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(79,142,247,0.08);
  top: 50%; right: 30%;
  animation-delay: -8s;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 99px;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4F8EF7;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #4F8EF7;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #F2F2F5;
}
[data-theme="light"] .hero-h1 { color: #0D0D15; }
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .accent {
  background: linear-gradient(135deg, #4F8EF7 0%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 460px;
}
[data-theme="light"] .hero-sub { color: rgba(13,13,21,0.55); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
}
[data-theme="light"] .hero-stats { border-top-color: rgba(0,0,0,0.07); }
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4F8EF7, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
[data-theme="light"] .hero-stat-label { color: rgba(13,13,21,0.4); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 560px;
}
.hero-img-wrap {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-img-wrap img {
  height: 620px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(79,142,247,0.25));
  margin-bottom: -50px; /* Offset for larger size */
}
.hero-img-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 80px;
  background: rgba(79,142,247,0.3);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 1;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79,142,247,0.15);
  pointer-events: none;
}
.hero-ring-1 { width: 360px; height: 360px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin-slow 20s linear infinite; }
.hero-ring-2 { width: 480px; height: 480px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-color: rgba(201,168,76,0.08); animation: spin-slow 30s linear infinite reverse; }
.hero-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(8,8,16,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
[data-theme="light"] .hero-tag { background: rgba(255,255,255,0.88); border-color: rgba(0,0,0,0.08); }
.hero-tag-icon { font-size: 1rem; }
.tag-dev { top: 60px; left: -20px; }
.tag-mech { bottom: 80px; right: -20px; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tag-dot.blue { background: #4F8EF7; }
.tag-dot.gold { background: #C9A84C; }

/* ── PREMIUM BG WRAPPER ── */
.premium-bg-wrap {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/section_bg.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Parallax effect */
  opacity: 0.15;
  mix-blend-mode: luminosity;
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] .premium-bg-wrap {
  mix-blend-mode: soft-light;
  opacity: 0.05;
}
.premium-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, transparent 15%, transparent 85%, var(--bg-secondary) 100%);
}

/* ── ABOUT ── */
#about { background: var(--bg-secondary); position: relative; overflow: hidden; }
.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.about-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.about-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-glow), var(--shadow-md); }
.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}
.about-card-badge.blue { background: rgba(79,142,247,0.1); color: #4F8EF7; border: 1px solid rgba(79,142,247,0.2); }
.about-card-badge.gold { background: rgba(201,168,76,0.1); color: #C9A84C; border: 1px solid rgba(201,168,76,0.2); }
.about-card-img {
  position: absolute;
  bottom: 0; right: 0;
  height: 240px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}
.about-card.dev .about-card-img { animation: float-slow 5s ease-in-out infinite; }
.about-card.mech .about-card-img { animation: float-slow 6s ease-in-out infinite reverse; }
.about-card-content { max-width: 55%; }
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.about-stat:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.about-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* ── SERVICES ── */
#services { position: relative; }
.services-header { text-align: center; max-width: 650px; margin: 0 auto 72px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,142,247,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover {
  border-color: rgba(79,142,247,0.25);
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(79,142,247,0.12), 0 20px 40px rgba(0,0,0,0.2);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.15);
  flex-shrink: 0;
}
.service-icon.gold { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.15); }
.service-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.service-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service-tag-pill {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
}
[data-theme="light"] .service-tag-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }

.services-mech-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(201,168,76,0.06));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 24px;
  padding: 40px 40px 0 40px;
  overflow: hidden;
}
.mech-banner-img { height: 240px; width: auto; object-fit: contain; display: block; animation: float-slow 5s ease-in-out infinite; }

/* ── PORTFOLIO ── */
#portfolio { background: var(--bg-secondary); }
.portfolio-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: #4F8EF7;
  border-color: #4F8EF7;
  color: #fff;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-glow), var(--shadow-md); }
.project-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,16,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-thumb-overlay { opacity: 1; }
.project-body { padding: 24px; }
.project-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4F8EF7;
  margin-bottom: 8px;
}
.project-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tech-pill {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(79,142,247,0.1);
  color: #4F8EF7;
  border: 1px solid rgba(79,142,247,0.15);
}

.skills-header { text-align: center; max-width: 600px; margin: 0 auto 72px; }
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.skills-column h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skills-list { display: flex; flex-direction: column; gap: 22px; }
.skill-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.skill-name { font-size: 0.9rem; font-weight: 600; }
.skill-pct { font-size: 0.78rem; font-weight: 700; color: #4F8EF7; }
.skill-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
[data-theme="light"] .skill-bar-bg { background: rgba(0,0,0,0.07); }
.skill-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4F8EF7, #C9A84C);
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.skill-bar-fill.gold { background: linear-gradient(90deg, #C9A84C, #f0c055); }
.skill-bar-fill.animated { width: var(--target-width); }
.skills-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.3s ease;
}
.skill-badge:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-3px); }
.skill-badge-icon { font-size: 1.5rem; }

/* ── WHY WORK WITH ME ── */
#whyme { background: var(--bg-secondary); }
.whyme-header { text-align: center; max-width: 600px; margin: 0 auto 72px; }
.whyme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.whyme-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.whyme-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow), var(--shadow-md); }
.whyme-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.15);
}
.whyme-icon.gold { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.15); }
.whyme-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.whyme-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

.testimonials-header { text-align: center; max-width: 600px; margin: 0 auto 72px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.testimonial-quote {
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(135deg, #4F8EF7, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Georgia, serif;
}
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F8EF7, #C9A84C);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-secondary); }
.testimonial-stars { color: #f0c055; font-size: 0.8rem; margin-top: 2px; }
.availability-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(79,142,247,0.06), rgba(201,168,76,0.04));
  border: 1px solid rgba(79,142,247,0.12);
  border-radius: 20px;
}
.avail-item { text-align: center; }
.avail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 8px;
  animation: pulse-dot 2s ease-in-out infinite;
}
.avail-label { font-size: 0.85rem; font-weight: 600; }
.avail-sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.avail-divider { width: 1px; height: 40px; background: var(--border); }

/* ── CONTACT ── */
#contact { background: var(--bg-secondary); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.contact-info-value { font-size: 0.95rem; font-weight: 500; }
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; position: relative; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
  appearance: none;
}
[data-theme="light"] .form-control { background: rgba(0,0,0,0.03); }
.form-control:focus { border-color: #4F8EF7; box-shadow: 0 0 0 3px rgba(79,142,247,0.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239898B0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 8px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px;
  margin-top: 20px;
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h3 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 8px; }
.form-success p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── FOOTER ── */
#footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer-logo span {
  background: linear-gradient(135deg, #4F8EF7, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text-secondary);
}
.social-btn:hover { border-color: var(--border-hover); color: #4F8EF7; transform: translateY(-3px); }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s ease; }
.footer-link:hover { color: #4F8EF7; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-made { font-size: 0.8rem; color: var(--text-muted); }
.footer-made a { color: #4F8EF7; }

/* ── 404 PAGE ── */
.page-404 {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.page-404-inner { max-width: 500px; }
.page-404-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #4F8EF7, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ── THANK YOU PAGE ── */
.page-thankyou {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

/* ── Responsive Overrides ── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-img-wrap img { height: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 320px; }
  .hero-img-wrap img { height: 300px; }
  .tag-dev, .tag-mech { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card-img { height: 160px; opacity: 0.5; }
  .about-card-content { max-width: 100%; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .services-mech-banner { grid-template-columns: 1fr; }
  .mech-banner-img { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .skills-badges { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whyme-grid { grid-template-columns: 1fr; }
  .availability-bar { flex-direction: column; gap: 20px; }
  .avail-divider { width: 40px; height: 1px; }
}
