:root {
  --brand-color: #2c3e50;
  --accent-color: #e67e22;
  --accent-dark: #d35400;
  --text-dark: #1f2a35;
  --text-muted: #6c7a89;
  --light-bg: #f6f8fb;
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

a {
  text-decoration: none;
}

.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(15, 26, 44, 0.06);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  color: var(--accent-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-color);
}

.navbar .btn {
  margin-left: 1rem;
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 40%, #eef4ff 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.25) 0%, rgba(230, 126, 34, 0) 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual img {
  display: block;
  width: clamp(240px, 32vw, 360px);
  max-width: 100%;
  height: auto;
  margin-left: auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
}

.hero-actions .btn {
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  justify-content: center;
}

.btn-brand {
  background: var(--accent-color);
  border: none;
  color: #fff;
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.25);
}

.btn-brand:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline-brand {
  border: 2px solid rgba(44, 62, 80, 0.18);
  color: var(--brand-color);
  background: transparent;
}

.btn-outline-brand:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.feature-section {
  padding: 5rem 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 26, 44, 0.12);
}

.feature-card i {
  font-size: 2.6rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  display: inline-flex;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(230, 126, 34, 0.12);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.testimonial-section {
  background: var(--light-bg);
  padding: 5rem 0;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.testimonial-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-card .client {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card .client img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.feedback-form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.feedback-form-card .form-label {
  font-weight: 500;
  color: var(--text-dark);
}

.feedback-form-card .form-control {
  border-radius: 12px;
  border-color: rgba(44, 62, 80, 0.12);
  padding: 0.65rem 0.9rem;
}

.feedback-form-card .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.1rem rgba(230, 126, 34, 0.25);
}

.feedback-form-card .btn-brand {
  font-weight: 600;
}

.feedback-list .testimonial-card {
  height: 100%;
}

.feedback-empty {
  border: 1px dashed rgba(44, 62, 80, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.feedback-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.08);
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

.feedback-card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  margin-right: 0.5rem;
  animation: feedback-spin 0.8s linear infinite;
}

@keyframes feedback-spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter-form .form-control {
  border-radius: 12px 0 0 12px;
  border-color: rgba(44, 62, 80, 0.18);
  padding: 0.65rem 0.9rem;
}

.newsletter-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.1rem rgba(230, 126, 34, 0.25);
}

.newsletter-form .btn {
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.newsletter-form .btn .spinner {
  border-color: rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
}

.newsletter-form + .form-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.newsletter-alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.25);
  color: #1d7c4a;
}

.alert-danger,
.alert-error {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.2);
  color: #a93226;
}

.cta-section {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1600&q=80') center / cover;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

footer {
  background: #1b242f;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 2rem;
}

footer h6 {
  color: #fff;
  margin-bottom: 1rem;
}

footer a {
  color: inherit;
  display: inline-block;
  margin-bottom: 0.4rem;
}

footer a:hover {
  color: var(--accent-color);
}

footer .social a {
  font-size: 1.2rem;
  margin-right: 0.8rem;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero-visual {
    margin-top: 2.5rem;
    text-align: center;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-visual img {
    width: min(280px, 70vw);
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .navbar .btn {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .feedback-form-card {
    padding: 1.5rem;
  }
}

/* Screen-level loading overlay */
.screen-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screen-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.screen-loading-overlay .loading-content {
  text-align: center;
}

.screen-loading-overlay .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(230, 126, 34, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.screen-loading-overlay .loading-text {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

[data-theme="dark"] .screen-loading-overlay {
  background: rgba(17, 24, 39, 0.95);
}

[data-theme="dark"] .screen-loading-overlay .loading-text {
  color: #f9fafb;
}