/* ── Variables ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #1a1f2e;
  --surface: #242b3d;
  --surface2: #2d3650;
  --accent: #64ffda;
  --accent-dim: #00bfa5;
  --text: #ffffff;
  --text-sec: #b0bec5;
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
  --nav-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 3px;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 80px);
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
  overflow-x: hidden;
}

.accent {
  color: var(--accent);
}

.section-label {
  font-family: "Poppins";
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.section-label::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 8px auto 0;
}

.section-sub {
  font-family: "Poppins";
  color: var(--text-sec);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-bottom: 40px;
  text-align: center;
}

/* Spinner inside button */

/* ── Navbar ────────────────────────────────────────────────────────────────── */

/* ── Source Code Pro for all navbar links ── */

/* Mobile nav drawer */

/* ── Hero ──────────────────────────────────────────────────────────────────── */

/* Badge row */

/* Available for Freelance badge */

.available-badge {
  font-family: "Mooli";
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e676;
  letter-spacing: 0.8px;
}

.pulse-dot-wrapper {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00e676;
  border-radius: 50%;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid #00e676;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  animation: pulse-grow 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulse-grow {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.avatar-ring {
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
  border-radius: 50%;
  padding: 4px;
  background: var(--accent);
  box-shadow: 0 0 60px rgba(100, 255, 218, 0.2);
  position: relative;
  animation: avatar-glow 3s ease-in-out infinite;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  padding: 4px;
}

/* ── About ─────────────────────────────────────────────────────────────────── */

/* chips */

/* ── Services ──────────────────────────────────────────────────────────────── */

.services-grid {
  font-family: "Poppins";
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

/* ── Works ─────────────────────────────────────────────────────────────────── */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  font-family: "Poppins";
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 20px;
}

/* ── Education ─────────────────────────────────────────────────────────────── */

/* ── Contact ───────────────────────────────────────────────────────────────── */

#contact {
  font-family: "Poppins";
  background: var(--surface);
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Send Message button — centered ─────────────────────────────────────── */

/* ── Toast ───────────────────────────────────────────────────────────────── */

/* ── Footer ────────────────────────────────────────────────────────────────── */

footer {
  font-family: "Poppins";
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.social-btn {
  font-family: "Poppins";
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(100, 255, 218, 0.08);
  transform: translateY(-2px);
}

.social-btn img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.social-btn svg {
  color: #fff;
}

/* ── Scroll to top ─────────────────────────────────────────────────────────── */

/* ── Section centering ───────────────────────────────────────────────────── */

/* ── Animations ────────────────────────────────────────────────────────────── */

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════
   PHONE POPUP MENU STYLES
═══════════════════════════════════════════════════ */

/* Backdrop */

/* Search */

/* List */

/* Items */

.pp-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent, #6c63ff);
  flex-shrink: 0;
}

/* Empty state */

/* Open flag button caret */

/* ── HERO TAGLINE ── */

/* ── STATS STRIP ── */

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent, #6c63ff);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted, #8892a4);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── CONTACT FORM ── */

.contact-form {
  position: relative;
  background: linear-gradient(135deg,
      rgba(108, 99, 255, 0.06) 0%,
      rgba(0, 0, 0, 0) 60%);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 48px rgba(108, 99, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: visible;
  margin-top: 2rem;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(108, 99, 255, 0.18) 0%,
      transparent 70%);
  pointer-events: none;
}

.contact-form::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(108, 99, 255, 0.1) 0%,
      transparent 70%);
  pointer-events: none;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* ── PHONE INPUT ── */

.flag-img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#phoneGroup {
  position: relative;
  z-index: 1000;
}

/* ══════════════════════════════════════════
         TESTIMONIALS — ANIMATED CAROUSEL
      ══════════════════════════════════════════ */

/* Section header */

/* Carousel wrapper */

/* Two rows that scroll in opposite directions */

/* Individual card */

/* Glow orb behind each card */

/* Avatar with animated ring */

/* Dots nav */

/* Pause-on-hover note */