/* =========================
   Global Foundation
   ========================= */

/* ----- Color System ----- */
:root {
  --bg: #0a0f1a;
  --bg-elev: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);

  --primary: #60a5fa;
  --primary-2: #a78bfa;

  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1100px;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
          Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Light mode */
:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);

  --primary: #3b82f6;
  --primary-2: #8b5cf6;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1.125rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ----- Base Elements ----- */
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* ----- Layout Helper ----- */
.container {
  width: min(var(--max-width), calc(100% - var(--space-xl) * 2));
  margin-inline: auto;
}

/* ----- Utility ----- */
.muted {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* =========================
   Navbar
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-md);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(96, 165, 250, 0.3),
    0 0 20px rgba(167, 139, 250, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animated gradient shine effect */
.brand-mark::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.brand:hover .brand-mark::before {
  transform: translateX(100%) rotate(45deg);
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 
    0 6px 20px rgba(96, 165, 250, 0.4),
    0 0 30px rgba(167, 139, 250, 0.3);
}

/* Decorative corner accents */
.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 4px 0 0;
}

:root[data-theme="light"] .brand-mark {
  color: #ffffff;
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.25),
    0 0 20px rgba(139, 92, 246, 0.15);
}

:root[data-theme="light"] .brand:hover .brand-mark {
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.35),
    0 0 30px rgba(139, 92, 246, 0.25);
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .nav-link[aria-current="page"] {
  background: rgba(0, 0, 0, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.icon-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.burger {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: var(--space-sm) var(--space-md);
    width: 100%;
  }
}
/* =========================
   Hero Section
   ========================= */

.hero {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  margin-bottom: var(--space-xl);
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  border: none;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.35);
}

:root[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* Hero card */
.hero-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image-wrapper {
  padding: var(--space-md);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    rgba(167, 139, 250, 0.08)
  );
}

.hero-image {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .hero-card {
    max-width: 320px;
    margin: 0 auto;
  }
}
/* Section head (shared) */
.section-head {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 50ch;
  margin-inline: auto;
}
/* =========================
   Projects Section
   ========================= */

.projects {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.projects-page {
  padding: var(--space-4xl) 0;
}

.projects-cta {
  text-align: center;
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    rgba(167, 139, 250, 0.08)
  );
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
}

.projects-cta h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.projects-cta p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .project-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.project-top h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-tag {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.75rem;
}

.project-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-meta {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
}

.project-meta li {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  position: relative;
}

.project-meta li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.project-meta li strong {
  color: var(--text);
  font-weight: 600;
}

.project-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Project Image */
.project-image-wrapper {
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

/* Small button variation */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Footer */
.projects-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* =========================
   About Section
   ========================= */

.about {
  padding: var(--space-4xl) 0;
  background: rgba(17, 24, 39, 0.4);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .about {
  background: rgba(241, 245, 249, 0.5);
}

.about-grid {
  max-width: 720px;
}

.about-text p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
/* =========================
   Reviews Section
   ========================= */

.reviews {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.review-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-name {
  font-weight: 600;
  font-size: 1rem;
}

.review-date {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.review-stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--primary);
}

.review-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 980px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Contact Section
   ========================= */

.contact {
  padding: var(--space-4xl) 0;
  background: rgba(17, 24, 39, 0.4);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .contact {
  background: rgba(241, 245, 249, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: var(--space-lg);
}

/* Form */
.contact-form {
  padding: var(--space-xl);
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.contact-submit {
  width: 100%;
  margin-top: var(--space-sm);
  border: none;
  border-radius: 10px;
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #0a0f1a;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

:root[data-theme="light"] .contact-submit {
  color: #ffffff;
}

.contact-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Right side cards */
.contact-side {
  display: grid;
  gap: var(--space-md);
}

.contact-info h3,
.contact-availability h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Info list */
.info-list {
  display: grid;
  gap: var(--space-md);
}

.info-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(96, 165, 250, 0.1);
  color: var(--primary);
}

.info-icon svg {
  width: 18px;
  height: 18px;
}

.info-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.info-text p {
  font-size: 0.875rem;
}

/* Availability card */
.contact-availability {
  background: var(--bg);
}

.availability-list {
  display: grid;
  gap: var(--space-sm);
}

.availability-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.9rem;
}

.availability-list li span:first-child {
  font-weight: 500;
  color: var(--text);
}

.availability-list li span:last-child {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Footer
   ========================= */

.footer {
  padding: var(--space-3xl) 0 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .social-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.social-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Columns */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-copy,
.footer-made {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
/* =========================
   Scroll-to-top button
   ========================= */

.to-top {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1200;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.1);
}

.to-top:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}
/* =========================
   Services Section
   ========================= */

.services {
  padding: var(--space-4xl) 0;
  background: rgba(17, 24, 39, 0.4);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .services {
  background: rgba(241, 245, 249, 0.5);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 45ch;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.package-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"] .package-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.package-card.featured {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    rgba(167, 139, 250, 0.08)
  );
  position: relative;
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  font-size: 0.7rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

:root[data-theme="light"] .package-badge {
  color: #ffffff;
}

.package-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.package-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.package-desc {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.6;
}

.package-features {
  display: grid;
  gap: var(--space-sm);
  flex: 1;
  margin-bottom: var(--space-lg);
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1.025rem;
  color: var(--muted);
}

.package-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =========================
   Help Pages Styles
   ========================= */

.page-content {
  padding: var(--space-3xl) 0 var(--space-4xl);
  min-height: 100vh;
}

/* Back Link - Prominent at top */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-2xl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--primary);
}

.back-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.back-link:hover .back-arrow {
  transform: translateX(-3px);
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section intro text */
.section-intro {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* FAQ Page */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-sm);
}

.support-section .faq-list {
  max-width: 100%;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: background 0.2s ease;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

:root[data-theme="light"] .faq-item summary:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Process Steps (Work with me page) */
.process-section {
  margin-bottom: var(--space-3xl);
}

.process-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.process-step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
}

:root[data-theme="light"] .step-number {
  color: #ffffff;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.process-step p {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.6;
}

/* Collaboration Page */
.collab-section {
  margin-bottom: var(--space-3xl);
}

.collab-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

.collab-section > .section-intro {
  margin-bottom: var(--space-xl);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.collab-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.collab-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.collab-card p {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.7;
}

/* Info Section - Used in Work With Me and Collaboration */
.info-section {
  margin-bottom: var(--space-3xl);
}

.info-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.info-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-item strong {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.info-item span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Check List */
.check-list {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-sm);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 600;
}

/* Support Page */
.support-section {
  margin-bottom: var(--space-3xl);
}

.support-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

.support-section > .section-intro {
  margin-bottom: var(--space-xl);
}

.support-options,
.support-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.support-card,
.tier-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.support-card h3,
.tier-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.support-card p,
.tier-card p {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.7;
}

.support-card .contact-link {
  display: block;
  color: var(--primary);
  font-weight: 500;
  margin: var(--space-sm) 0;
}

.support-card .contact-link:hover {
  text-decoration: underline;
}

.response-time {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  margin-top: var(--space-xs);
}

/* Tier Cards */
.tier-card.featured {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    rgba(167, 139, 250, 0.08)
  );
}

.tier-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(96, 165, 250, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.tier-features {
  display: grid;
  gap: var(--space-xs);
  padding-left: var(--space-md);
}

.tier-features li {
  font-size: 0.875rem;
  color: var(--text);
  position: relative;
}

.tier-features li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: var(--primary);
}

/* Resource List */
.resource-list {
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-sm);
}

.resource-list li {
  font-size: 0.9rem;
}

.resource-list li a {
  color: var(--text);
  transition: color 0.2s ease;
}

.resource-list li a:hover {
  color: var(--primary);
}

.resource-list li::before {
  content: "→ ";
  color: var(--primary);
}

/* Page CTA */
.page-cta {
  text-align: center;
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    rgba(167, 139, 250, 0.08)
  );
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
}

.page-cta h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.page-cta p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.page-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

:root[data-theme="light"] .page-cta .btn {
  color: #ffffff;
}

/* =========================
   Animations
   ========================= */

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reveal on scroll - initial state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.25s; }

/* Hero entrance animation */
.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-card {
  animation: scaleIn 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Card hover lift effect */
.project-card,
.package-card,
.review-card,
.contact-card,
.collab-card,
.process-step,
.info-item,
.support-card,
.tier-card,
.faq-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover,
.package-card:hover,
.review-card:hover,
.collab-card:hover,
.process-step:hover,
.support-card:hover,
.tier-card:hover {
  transform: translateY(-4px);
}

/* Smooth link underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* Button press effect */
.btn:active {
  transform: scale(0.98);
}

/* Icon button spin on hover */
.icon-btn:hover .icon {
  transition: transform 0.3s ease;
}

#themeToggle:hover .icon {
  transform: rotate(180deg);
}

/* Form input focus animation */
.field input:focus,
.field textarea:focus {
  transform: translateY(-1px);
}

/* Social link hover */
.social-link {
  transition: transform 0.3s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-content,
  .hero-card {
    animation: none;
    opacity: 1;
  }
}

/* =========================
   Service Request Form
   ========================= */

.service-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.service-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-section {
  margin-bottom: var(--space-xl);
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* Service Selection Radio Cards */
.service-options {
  display: grid;
  gap: var(--space-md);
}

.service-option {
  display: block;
  cursor: pointer;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-option-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.service-option:hover .service-option-content {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.05);
}

.service-option input[type="radio"]:checked + .service-option-content {
  border-color: var(--primary);
  background: rgba(96, 165, 250, 0.1);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.service-option input[type="radio"]:focus + .service-option-content {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.service-option-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.service-option-desc {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Form select styling */
.field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.field select option {
  background: var(--bg-elev);
  color: var(--text);
}

/* Service submit button */
.service-submit {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
}

.form-note {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .service-form {
    padding: var(--space-lg);
  }
}

/* =========================
   Services Page
   ========================= */

.services-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* Button with arrow animation */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn-arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-arrow:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-arrow.btn-secondary:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--primary);
}

:root[data-theme="light"] .btn-arrow.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.services-category {
  margin-bottom: var(--space-3xl);
}

.services-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.category-desc {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.15);
}

.service-badge {
  position: absolute;
  top: -10px;
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0f1a;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}

:root[data-theme="light"] .service-badge {
  color: #ffffff;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.service-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.service-features {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
}

.service-features li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: -1.2rem;
  color: var(--primary);
  font-weight: 600;
}

.custom-service-cta {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.custom-service-cta p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Service Select Dropdown
   ========================= */

.service-select-wrapper {
  position: relative;
}

.service-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-select-trigger:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

.service-select-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.service-select-trigger.is-open {
  border-color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.service-select-value {
  color: var(--muted);
}

.service-select-trigger.has-value .service-select-value {
  color: var(--text);
  font-weight: 500;
}

.service-select-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.service-select-trigger.is-open .service-select-arrow {
  transform: rotate(180deg);
}

.service-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 100;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.service-select-dropdown.is-open {
  max-height: 400px;
  overflow-y: auto;
  opacity: 1;
}

.service-select-option {
  display: block;
  cursor: pointer;
}

.service-select-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-select-option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) var(--space-lg);
  transition: background 0.2s ease;
}

.service-select-option:hover .service-select-option-content {
  background: rgba(96, 165, 250, 0.1);
}

.service-select-option input[type="radio"]:checked + .service-select-option-content {
  background: rgba(96, 165, 250, 0.15);
}

.service-select-option-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.service-select-option-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.service-select-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

/* Light mode */
:root[data-theme="light"] .service-select-trigger:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

:root[data-theme="light"] .service-select-option:hover .service-select-option-content {
  background: rgba(59, 130, 246, 0.08);
}

:root[data-theme="light"] .service-select-option input[type="radio"]:checked + .service-select-option-content {
  background: rgba(59, 130, 246, 0.12);
}

/* =========================
   End of CSS
   ========================= */