/* ==========================================================================
   DevStudio Portfolio â€” plain HTML / CSS / JS (no framework, no Tailwind)
   ========================================================================== */

:root {
  --background: 240 10% 4%;
  --foreground: 0 0% 98%;
  --card: 240 10% 6%;
  --border: 240 10% 15%;
  --muted: 240 10% 12%;
  --muted-foreground: 240 5% 65%;
  --primary: 243 75% 59%;      /* #4F46E5 */
  --primary-foreground: 0 0% 100%;
  --secondary: 262 83% 58%;    /* #7C3AED */
  --accent: 188 94% 43%;       /* #06B6D4 */

  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

body.light {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --border: 240 5.9% 90%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 40%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  background-image:
    radial-gradient(at 0% 0%, hsla(243, 75%, 59%, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(262, 83%, 58%, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(188, 94%, 43%, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(243, 75%, 59%, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon, .icon-sm, .icon-md {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon { width: 18px; height: 18px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 26px; height: 26px; }
.hidden { display: none !important; }

.text-gradient {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-inline {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-card {
  background: hsla(var(--card), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(var(--border), 0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(79,70,229,0.4); transform: translateY(-2px); }
.btn-glass {
  background: hsla(var(--background), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid hsla(var(--border), 0.6);
}
.btn-glass:hover { background: hsla(var(--muted), 0.6); }
.btn-light { background: #fff; color: hsl(var(--primary)); }
.btn-light:hover { background: #f3f3f3; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; padding: 1rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: hsla(var(--secondary), 0.1);
  color: hsl(var(--secondary));
  transition: background 0.2s ease;
}
.icon-btn:hover { background: hsla(var(--secondary), 0.2); }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Scroll progress + Navbar ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
  z-index: 200;
  transition: width 0.1s ease-out;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 0.75rem 0;
  background: hsla(var(--background), 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid hsla(var(--border), 0.5);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo span { color: hsl(var(--foreground)); -webkit-text-fill-color: hsl(var(--foreground)); }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: hsl(var(--primary)); }
.nav-links a.active { color: hsl(var(--primary)); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: hsl(var(--primary));
}
.nav-divider {
  width: 1px;
  height: 24px;
  background: hsl(var(--border));
  margin: 0 0.25rem;
}
.mobile-controls { display: flex; align-items: center; gap: 0.6rem; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: hsla(var(--background), 0.85);
  backdrop-filter: blur(14px);
  border-top: 1px solid hsla(var(--border), 0.5);
  border-bottom: 1px solid hsla(var(--border), 0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.mobile-menu a.active { background: hsla(var(--primary), 0.1); color: hsl(var(--primary)); }
.mobile-hire { text-align: center; margin-top: 0.5rem; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-controls { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 { top: 25%; left: 25%; width: 24rem; height: 24rem; background: hsla(var(--primary), 0.2); }
.hero-glow-2 { bottom: 25%; right: 25%; width: 30rem; height: 30rem; background: hsla(var(--secondary), 0.2); }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: hsla(var(--secondary), 0.1);
  border: 1px solid hsla(var(--secondary), 0.2);
  color: hsl(var(--secondary));
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.ping-dot { position: relative; display: inline-flex; height: 10px; width: 10px; }
.ping-dot .ping {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: hsl(var(--secondary));
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
.ping-dot .dot { position: relative; display: inline-flex; height: 100%; width: 100%; border-radius: 999px; background: hsl(var(--secondary)); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; width: auto; }
  .hero-actions .btn { width: auto; }
}
.hero-actions .btn { width: 100%; }
.icon-sm { width: 18px; height: 18px; }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: bounce 2s infinite;
}
.scroll-cue-track {
  width: 32px; height: 54px;
  border: 2px solid hsla(var(--muted-foreground), 0.3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.scroll-cue-dot {
  width: 6px; height: 12px;
  background: hsl(var(--muted-foreground));
  border-radius: 999px;
  animation: pulse 1.6s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------------- Sections ---------------- */
.section {
  position: relative;
  padding: 6rem 0;
}
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.alt-bg { background: hsla(var(--muted), 0.3); }

.section-head { text-align: center; margin-bottom: 4rem; }
.eyebrow {
  color: hsl(var(--primary));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.title-underline {
  width: 6rem; height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
}

/* ---------------- About ---------------- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image { position: relative; }
.about-image-glow {
  position: absolute; inset: -4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 1.25rem;
  filter: blur(16px);
  opacity: 0.3;
}
.about-image-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 1.25rem;
  overflow: hidden;
}
.about-image-card img { width: 100%; height: 100%; object-fit: cover; }
.about-image-caption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(var(--background), 0.95), hsla(var(--background), 0.1) 60%, transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
  color: #fff;
}
.about-image-caption p { color: #d1d5db; }
.about-copy h3 { font-size: 1.9rem; line-height: 1.3; margin-bottom: 1.25rem; }
.about-copy p { color: hsl(var(--muted-foreground)); line-height: 1.75; margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.about-card {
  padding: 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid hsla(var(--border), 0.5);
  background: hsla(var(--card), 0.4);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.25s ease;
}
.about-card:hover { transform: translateY(-4px); }
.about-card-icon {
  width: 40px; height: 40px;
  border-radius: 0.6rem;
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.about-card h4 { font-size: 0.95rem; font-weight: 700; }

/* ---------------- Stats ---------------- */
.stats-section { padding-top: 3rem; padding-bottom: 0; }
.stats-card { position: relative; border-radius: 1.5rem; padding: 2.5rem 2rem; overflow: hidden; }
.stats-glow {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, hsla(var(--primary),0.1), hsla(var(--secondary),0.1), hsla(var(--accent),0.1));
  filter: blur(60px);
  pointer-events: none;
}
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.4rem; }

/* ---------------- Skills ---------------- */
.skills-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.skill-group { padding: 2rem; border-radius: 1.25rem; }
.skill-group h3 { font-size: 1.2rem; font-weight: 700; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid hsla(var(--border), 0.5); }
.skill-list { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-row-head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.95rem; }
.skill-pct { color: hsl(var(--muted-foreground)); font-size: 0.85rem; }
.skill-bar { height: 8px; width: 100%; background: hsla(var(--secondary), 0.2); border-radius: 999px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee { margin-top: 4rem; overflow: hidden; position: relative; }
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 5rem; z-index: 2; pointer-events: none; }
.marquee-fade-left { left: 0; background: linear-gradient(90deg, hsl(var(--background)), transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(270deg, hsl(var(--background)), transparent); }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 25s linear infinite; }
.marquee-track span {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid hsla(var(--border), 0.5);
  background: hsla(var(--background), 0.5);
  backdrop-filter: blur(8px);
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Services ---------------- */
.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; padding: 2px; border-radius: 1.25rem; }
.service-inner {
  position: relative;
  height: 100%;
  padding: 2rem;
  border-radius: calc(1.25rem - 2px);
  transition: all 0.3s ease;
}
.service-card:hover .service-inner { background: hsla(var(--card), 0.7); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 0.85rem;
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon { background: hsl(var(--primary)); color: #fff; transform: scale(1.08); }
.service-inner h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.85rem; }
.service-inner p { color: hsl(var(--muted-foreground)); line-height: 1.65; }

/* ---------------- Projects ---------------- */
.projects-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { border-radius: 1.15rem; overflow: hidden; display: flex; flex-direction: column; }
.project-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-media img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0;
  background: hsla(var(--background), 0.85);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay button {
  width: 46px; height: 46px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.project-overlay button:hover { transform: scale(1.1); }
.project-overlay .live-btn { background: hsl(var(--primary)); color: #fff; }
.project-overlay .src-btn { background: hsl(var(--secondary)); color: #fff; }
.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-category { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--secondary)); margin-bottom: 0.5rem; }
.project-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.project-body p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.project-tags span {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.3rem 0.6rem; border-radius: 0.4rem;
  background: hsla(var(--secondary), 0.1);
  color: hsl(var(--secondary));
  border: 1px solid hsla(var(--secondary), 0.2);
}
.projects-more { text-align: center; margin-top: 3.5rem; }

/* ---------------- Experience timeline ---------------- */
.timeline { max-width: 850px; margin: 0 auto; position: relative; display: flex; flex-direction: column; gap: 2.5rem; }
.timeline-item { position: relative; padding-left: 1.5rem; border-left: 2px solid hsla(var(--primary), 0.3); }
.timeline-dot {
  position: absolute; left: -6px; top: 4px;
  width: 11px; height: 11px; border-radius: 999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 10px hsla(var(--primary), 0.8);
}
.timeline-card { padding: 1.5rem; border-radius: 1.15rem; }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.timeline-role { font-size: 1.2rem; font-weight: 700; }
.timeline-company { display: flex; align-items: center; gap: 0.5rem; color: hsl(var(--primary)); font-weight: 500; margin-top: 0.25rem; }
.timeline-period {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: hsla(var(--secondary), 0.1); color: hsl(var(--secondary));
  height: fit-content;
}
.timeline-desc { color: hsl(var(--muted-foreground)); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.timeline-tags span { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.55rem; border-radius: 0.35rem; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

@media (min-width: 768px) {
  .timeline { padding: 0; }
  .timeline-item { border-left: none; padding-left: 0; }
}

/* ---------------- Process ---------------- */
.process-grid { position: relative; display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-line { display: none; }
@media (min-width: 1024px) {
  .process-line { display: block; position: absolute; top: 45px; left: 12%; right: 12%; height: 2px; background: hsl(var(--border)); z-index: 0; }
}
.process-step {
  position: relative; z-index: 1;
  padding: 1.75rem;
  border-radius: 1.15rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid hsla(var(--border), 0.5);
  background: hsla(var(--card), 0.4);
  transition: border-color 0.2s ease;
}
.process-step:hover { border-color: hsla(var(--primary), 0.4); }
.process-icon-wrap {
  width: 78px; height: 78px; border-radius: 999px;
  background: hsla(var(--background), 0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  position: relative;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  box-shadow: 0 0 15px hsla(var(--primary), 0.2);
}
.process-number {
  position: absolute; top: -8px; right: -8px;
  width: 30px; height: 30px; border-radius: 999px;
  background: hsl(var(--secondary)); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid hsl(var(--background));
}
.process-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.process-step p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; line-height: 1.6; }

/* ---------------- Testimonials ---------------- */
.testimonials-wrap { position: relative; max-width: 900px; margin: 0 auto; padding: 0 3rem; }
.quote-mark { position: absolute; top: 0; left: 0; width: 100px; height: 100px; color: hsla(var(--primary), 0.1); fill: currentColor; stroke: none; }
.testimonial-viewport { overflow: hidden; padding: 2.5rem 0; }
.testimonial-track { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.testimonial-slide { flex: 0 0 100%; min-width: 0; padding: 0 0.5rem; }
.testimonial-card { padding: 2.5rem; border-radius: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; color: hsl(var(--secondary)); }
.stars svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.testimonial-content { font-size: 1.2rem; font-weight: 500; margin-bottom: 2rem; line-height: 1.65; }
.testimonial-person { display: flex; align-items: center; gap: 1rem; }
.testimonial-person img { width: 54px; height: 54px; border-radius: 999px; border: 2px solid hsl(var(--primary)); object-fit: cover; }
.testimonial-person h4 { font-weight: 700; }
.testimonial-person p { color: hsl(var(--muted-foreground)); font-size: 0.85rem; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: hsla(var(--background), 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(var(--border), 0.5);
  transition: all 0.2s ease;
}
.carousel-btn:hover { color: hsl(var(--primary)); transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 999px; background: hsla(var(--muted-foreground), 0.3); transition: all 0.25s ease; }
.carousel-dots button.active { width: 28px; background: hsl(var(--primary)); }

/* ---------------- Why hire me ---------------- */
.why-hire {
  background: hsl(var(--primary));
  color: #fff;
  overflow: hidden;
}
.why-hire-glow { position: absolute; width: 500px; height: 500px; border-radius: 999px; filter: blur(80px); pointer-events: none; }
.why-hire-glow-1 { top: 0; right: 0; background: rgba(255,255,255,0.06); transform: translate(33%, -50%); }
.why-hire-glow-2 { bottom: 0; left: 0; background: rgba(0,0,0,0.12); transform: translate(-33%, 50%); }
.why-hire-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .why-hire-grid { grid-template-columns: 1fr 1fr; } }
.why-hire h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; color: #fff; }
.why-hire > .container > div > p { opacity: 0.85; font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.reasons-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .reasons-grid { grid-template-columns: 1fr 1fr; } }
.reason { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; }
.reason-check { color: hsl(var(--secondary)); flex-shrink: 0; margin-top: 2px; }
.why-hire-card {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.why-hire-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff; }
.why-hire-card p { opacity: 0.7; margin-bottom: 2rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-info > p { color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 999px;
  background: hsla(var(--card), 0.4);
  border: 1px solid hsla(var(--border), 0.6);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-size: 0.8rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.contact-method a, .contact-static { font-size: 1.05rem; font-weight: 500; }
.contact-method a:hover { color: hsl(var(--primary)); }
.social-block .contact-label { margin-bottom: 1rem; }
.social-links { display: flex; gap: 1rem; }
.social-btn {
  width: 42px; height: 42px; border-radius: 999px;
  background: hsl(var(--muted));
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-btn:hover { background: hsl(var(--primary)); color: #fff; }

.contact-form { padding: 2rem; border-radius: 1.5rem; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea, .form-row .field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: hsl(var(--primary)); }
.field textarea { resize: none; }

/* ---------------- Footer ---------------- */
.footer { position: relative; border-top: 1px solid hsla(var(--border), 0.5); background: hsla(var(--background), 0.5); overflow: hidden; }
.footer-glow {
  position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  background-image: radial-gradient(at 0% 0%, hsla(243,75%,59%,0.4) 0px, transparent 50%), radial-gradient(at 100% 100%, hsla(188,94%,43%,0.4) 0px, transparent 50%);
}
.footer-inner { position: relative; z-index: 1; padding: 3rem 0; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.footer-links a:hover { color: hsl(var(--primary)); }
.footer-top-btn { border: 1px solid hsl(var(--border)); background: hsla(var(--card), 0.4); color: hsl(var(--foreground)); }
.footer-top-btn:hover { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsla(var(--border), 0.5);
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center;
  font-size: 0.85rem; color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.accent-strong { color: hsl(var(--secondary)); font-weight: 700; }
.accent-strong-2 { color: hsl(var(--accent)); font-weight: 700; }
.accent-strong-3 { color: hsl(var(--primary)); font-weight: 700; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 300;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  color: hsl(var(--foreground));
  max-width: 340px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast svg { color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.toast-title { font-weight: 700; margin-bottom: 0.15rem; }
.toast-desc { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
