/* ============================================
   AppMeddy IT Solution - Premium Stylesheet
   Glassmorphism + Neumorphism | Royal Blue Theme
   ============================================ */

/* ---------- CSS Variables (Theme) ---------- */
:root {
  /* Primary palette - Royal Blue / Navy / Electric */
  --royal-blue: #1e3a8a;
  --deep-navy: #0f172a;
  --electric-blue: #3b82f6;
  --accent-blue: #60a5fa;
  --light-blue: #93c5fd;
  --gradient-start: #0f172a;
  --gradient-mid: #1e3a8a;
  --gradient-end: #2563eb;
  --gradient-accent: #3b82f6;

  /* Glass & surfaces */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --neumorphism-light: rgba(255, 255, 255, 0.1);
  --neumorphism-dark: rgba(0, 0, 0, 0.2);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Background */
  --bg-body: #0f172a;
  --bg-section: rgba(15, 23, 42, 0.6);

  /* Spacing system (8px base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Light theme overrides */
[data-theme="light"] {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 32px rgba(30, 58, 138, 0.15);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg-body: #f1f5f9;
  --bg-section: rgba(241, 245, 249, 0.8);
  --neumorphism-light: rgba(255, 255, 255, 0.9);
  --neumorphism-dark: rgba(30, 58, 138, 0.08);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-out-expo),
              color var(--duration-slow) var(--ease-out-expo);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-navy);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--electric-blue), var(--royal-blue));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--duration-fast), opacity var(--duration-fast);
}

a:hover {
  color: var(--light-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Utility: Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--electric-blue), var(--accent-blue));
  border-radius: 4px;
  animation: preloaderProgress 1.5s var(--ease-out-expo) forwards;
}

@keyframes preloaderProgress {
  to {
    width: 100%;
  }
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background-color var(--duration-normal),
              backdrop-filter var(--duration-normal),
              box-shadow var(--duration-normal);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(30, 58, 138, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.logo-tag {
  font-size: 0.7rem;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--accent-blue));
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.theme-icon {
  font-size: 1.25rem;
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity var(--duration-normal), transform var(--duration-normal);
}

.theme-icon.sun {
  opacity: 0;
}

[data-theme="light"] .theme-icon.sun {
  opacity: 1;
  transform: rotate(0);
}

.theme-icon.moon {
  opacity: 1;
  transform: rotate(0);
}

[data-theme="light"] .theme-icon.moon {
  opacity: 0;
  transform: rotate(90deg);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  transition: background var(--duration-fast);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-2xl);
    transition: right var(--duration-normal) var(--ease-out-expo);
    display: flex;
  }

  .nav-menu.active {
    right: 0;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* ---------- Glass Card (shared) ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--duration-normal),
              box-shadow var(--duration-normal),
              border-color var(--duration-normal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast),
              box-shadow var(--duration-normal),
              background var(--duration-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--royal-blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--accent-blue);
  border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-full {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 40%,
    var(--gradient-end) 70%,
    var(--gradient-accent) 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--electric-blue);
  top: -100px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: 20%;
  left: -80px;
  animation: float 18s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--light-blue);
  bottom: -50px;
  right: 30%;
  animation: float 12s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-title-line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--light-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  min-height: 1.75em;
}

.typing-cursor {
  animation: blink 1s step-end infinite;
  color: var(--electric-blue);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-card {
  padding: var(--space-xl);
  max-width: 400px;
  margin: 0 auto;
}

.hero-card-inner {
  text-align: center;
}

.hero-card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.hero-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.hero-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--electric-blue);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(12px); }
}

/* ---------- Section common ---------- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-title .accent {
  color: var(--accent-blue);
}

/* Reveal animation (triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: var(--space-xl);
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.values-list {
  text-align: left;
  margin-top: var(--space-sm);
}

.values-list li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.25rem;
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--electric-blue);
  font-weight: 700;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.service-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, transparent, var(--electric-blue), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Why Choose / Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: var(--space-xl);
  text-align: center;
}

.stat-card:hover {
  transform: scale(1.03);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent-blue);
  display: inline;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: inherit;
  color: var(--accent-blue);
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.features-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: var(--space-xl);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Portfolio ---------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--electric-blue);
  color: var(--accent-blue);
}

.portfolio-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  transition: opacity var(--duration-normal), transform var(--duration-normal);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: scale(1.03);
}

.portfolio-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--royal-blue), var(--electric-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Testimonials Slider ---------- */
.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: var(--space-2xl);
  min-width: 100%;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
}

.testimonial-author span:last-of-type {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.slider-btn:hover {
  border-color: var(--electric-blue);
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  padding: var(--space-xl);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  opacity: 0.7;
}

.team-card:hover .team-social a {
  opacity: 1;
}

.team-social a:hover {
  background: var(--electric-blue);
  color: #fff;
  border-color: var(--electric-blue);
  transform: translateY(-3px);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: var(--space-2xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--electric-blue);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.35);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--electric-blue), var(--accent-blue));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.price {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.price .currency {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.price .amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent-blue);
}

.price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.price-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  padding-left: 1.5rem;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--electric-blue);
  font-weight: 700;
}

.pricing-card .btn {
  margin-top: auto;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.08);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-blue);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq-answer p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-wrapper {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact-form-wrap {
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep-navy);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: #f87171;
  margin-top: var(--space-xs);
}

.form-success {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--radius-md);
  color: #86efac;
  text-align: center;
}

.contact-info-card {
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-md);
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.map-placeholder {
  padding: var(--space-2xl);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  }
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand .logo-tag {
  font-size: 0.65rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-newsletter {
  padding: var(--space-lg);
}

.footer-newsletter h4,
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: var(--space-md);
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.social-icons a:hover {
  background: var(--electric-blue);
  color: #fff;
  border-color: var(--electric-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--duration-normal), visibility var(--duration-normal),
              transform var(--duration-normal), box-shadow var(--duration-fast);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 99;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 1.5rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats-row {
    gap: var(--space-md);
  }
}
