* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container so theme-toggle is relative to top area */
.page-shell {
  position: relative;
}

/* Theme Toggle Button – pill style */
/* Light theme version: light background, dark text/icons */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #cbd5f5;
  color: #0f172a;
  min-width: 110px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
  font-size: 0.8rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

/* Hidden state when scrolled down */
.theme-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.theme-toggle:hover {
  background: #e2e8f0;
}

/* Icons in light mode: dark so they are visible */
.theme-toggle i {
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #0f172a;
}

.theme-label {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Base = light theme */
body {
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Light background grid */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  z-index: -1;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 40px 40px, 40px 40px; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

/* Avatar */
.avatar-wrapper {
  margin: 0 auto 1rem;
  width: 140px;
  height: 140px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.6);
}

.hello {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.name {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

/* Typing text */
.typing {
  font-size: 1.3rem;
  color: #0ea5e9;
  height: 1.8rem;
  margin-bottom: 0.8rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  background: #0ea5e9;
  margin-left: 4px;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1.02rem;
  color: #64748b;
}

/* Badges */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  text-align: left;
  backdrop-filter: blur(6px);
}

.badge-title {
  display: block;
  font-size: 0.85rem;
  color: #0ea5e9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}

.badge-body {
  font-size: 0.95rem;
  color: #1e293b;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.card h3 i {
  margin-right: 8px;
  color: #0ea5e9;
}

.card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(148, 163, 184, 0.4);
  border-color: #0ea5e9;
}

/* Links with icons */
.links {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.98rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.link-item i {
  font-size: 1rem;
  width: 18px;
  color: #0ea5e9;
}

.link-item:hover {
  color: #0ea5e9;
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

/* DARK THEME (when body.dark-theme) */
body.dark-theme {
  background: #020617;
  color: #e5e7eb;
}

body.dark-theme .grid-bg {
  background-image: linear-gradient(#1f2937 1px, transparent 1px),
    linear-gradient(90deg, #1f2937 1px, transparent 1px);
  opacity: 0.3;
}

body.dark-theme .hello,
body.dark-theme .subtitle {
  color: #9ca3af;
}

body.dark-theme .name {
  color: #f9fafb;
}

body.dark-theme .typing,
body.dark-theme .cursor,
body.dark-theme .badge-title,
body.dark-theme .link-item i {
  color: #38bdf8;
}

body.dark-theme .badge,
body.dark-theme .card,
body.dark-theme .link-item {
  background: rgba(15, 23, 42, 0.9);
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-theme .badge-body,
body.dark-theme .card p {
  color: #e5e7eb;
}

body.dark-theme .card h3 {
  color: #f9fafb;
}

body.dark-theme .card:hover {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
}

body.dark-theme .link-item:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* Dark version of the toggle: dark background, light icon/text */
body.dark-theme .theme-toggle {
  background: rgba(15, 23, 42, 0.95);
  border-color: #38bdf8;
  color: #e5e7eb;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.8);
}

body.dark-theme .theme-toggle i {
  color: #e5e7eb;
}

body.dark-theme .theme-toggle:hover {
  background: rgba(15, 23, 42, 1);
}

/* Tablet tweaks */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* Small phones */
@media (max-width: 600px) {
  .hero-content {
    text-align: left;
  }

  .name,
  .typing {
    text-align: left;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .link-item {
    width: 220px;
    justify-content: center;
  }

  .theme-toggle {
    top: 15px;
    right: 15px;
    min-width: 100px;
    height: 36px;
    font-size: 0.75rem;
  }

  .avatar-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .name {
    font-size: 2.2rem;
  }

  .typing {
    font-size: 1.05rem;
  }
}

/* Primary button on hero */
.primary-actions {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  background: #0ea5e9;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn i {
  font-size: 0.98rem;
}

.primary-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.45);
}

/* Offer page layout */

.offer-page {
  min-height: 100vh;
  padding: 5rem 1.5rem 4rem;
  max-width: 1040px;
  margin: 0 auto;
}

.offer-header-bar {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: left;
}

.offer-header-bar h1 {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.offer-header-bar p {
  color: #64748b;
  font-size: 0.98rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  text-decoration: none;
  color: #0ea5e9;
  margin-bottom: 0.7rem;
}

.back-link i {
  font-size: 0.8rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Shared offer form styles (same as previous answer) */

.offer-inner {
  width: 100%;
  max-width: 960px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  padding: 2.5rem 2rem 2.2rem;
  box-shadow: 0 18px 45px rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(14px);
  margin: 0 auto;
}

.offer-form {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.offer-step h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.field.full-width {
  grid-column: 1 / -1;
}

.field label {
  color: #475569;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
  background: rgba(248, 250, 252, 0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.28);
  background: #ffffff;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.4rem 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #0ea5e9;
}

/* Footer */

.offer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.offer-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1.5rem;
  background: #0ea5e9;
  color: #f9fafb;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-submit i {
  font-size: 0.95rem;
}

.offer-submit:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.45);
}

.offer-note {
  font-size: 0.78rem;
  color: #64748b;
}

/* Dark theme for offer page */

body.dark-theme .offer-inner {
  background: rgba(15, 23, 42, 0.96);
  border-color: #1f2937;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
}

body.dark-theme .offer-header-bar h1 {
  color: #f9fafb;
}

body.dark-theme .offer-header-bar p,
body.dark-theme .field label,
body.dark-theme .checkbox-group label,
body.dark-theme .offer-note {
  color: #e5e7eb;
}

body.dark-theme .field input,
body.dark-theme .field select,
body.dark-theme .field textarea {
  background: rgba(15, 23, 42, 0.98);
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-theme .field input::placeholder,
body.dark-theme .field textarea::placeholder {
  color: #9ca3af;
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .offer-page {
    padding: 4rem 1.2rem 3.5rem;
  }

  .offer-inner {
    padding: 2.1rem 1.5rem 2rem;
  }
}

@media (max-width: 600px) {
  .offer-page {
    padding: 3.5rem 1rem 3.2rem;
  }

  .offer-submit {
    width: 100%;
    justify-content: center;
  }

  .primary-actions {
    justify-content: flex-start;
  }

  .hero-content {
    text-align: left;
  }
}

/* NEW Testimonials Card on Index */
/*.testimonials-card {
  border-left: 4px solid #f59e0b !important;
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.1), transparent) !important;
}

.testimonials-card h3 i {
  color: #f59e0b !important;
}



/* Testimonials Page Styles */
.testimonials-page {
  min-height: 100vh;
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.testimonials-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #64748b;
  font-size: 0.95rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border-color: #f59e0b;
}

.featured-testimonial {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.1), transparent);
  border-left: 5px solid #f59e0b;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f3f4f6;
}

.testimonial-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.role {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.rating {
  margin-left: auto;
  color: #f59e0b;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #1e293b;
}

blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 1rem 0;
  color: #0f172a;
}

.date {
  color: #9ca3af;
  font-size: 0.85rem;
}

.testimonials-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255,255,255,0.8);
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.testimonials-cta h3 {
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(14,165,233,0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(14,165,233,0.5);
}

/* Dark theme */
body.dark-theme .testimonial-card,
body.dark-theme .testimonials-cta {
  background: rgba(15,23,42,0.9);
  border-color: #1f2937;
}

body.dark-theme .testimonial-card p,
body.dark-theme .testimonials-cta h3 {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* NEW Review Form Styles */
.review-form-section {
  margin: 4rem 0;
}

.review-form-container {
  background: rgba(255,255,255,0.95);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
}

.review-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-header p {
  color: #64748b;
  margin-bottom: 2rem;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.review-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.9);
}

.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.rating-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-select label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  font-weight: 400;
}

.rating-select input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  margin: 0;
}

.rating-select label:hover {
  background: rgba(245, 158, 11, 0.05);
}

.submit-review-btn {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.submit-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.submit-review-btn:active {
  transform: translateY(0);
}

/* Dark theme */
body.dark-theme .review-form-container {
  background: rgba(15,23,42,0.95);
  border-color: #1f2937;
}

body.dark-theme .review-form input,
body.dark-theme .review-form textarea,
body.dark-theme .review-form select {
  background: rgba(30,41,59,0.8);
  border-color: #374151;
  color: #e5e7eb;
}

body.dark-theme .review-form label {
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .review-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .review-form-container {
    padding: 2rem 1.5rem;
  }
}
