/* ============================================
   NITDIGITAL - Custom Styles
   Premium SEO Agency Website
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-text: #e2e8f0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
}

/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #1e293b;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .glass-light {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-logo img {
  height: 42px;
  width: auto;
  transition: var(--transition);
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: #334155;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: var(--transition);
}

body.dark-mode .nav-link {
  color: #cbd5e1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.25);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.35);
  background: linear-gradient(135deg, #2563eb, var(--primary));
}

.btn-cta-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.btn-cta-accent:hover {
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #334155;
  border-radius: 3px;
  transition: var(--transition);
  position: absolute;
  left: 0;
}

body.dark-mode .hamburger span {
  background: #e2e8f0;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Dark Mode Toggle */
.dark-toggle {
  width: 44px;
  height: 24px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 2px;
}

body.dark-mode .dark-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-toggle .toggle-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.dark-mode .dark-toggle .toggle-circle {
  transform: translateX(20px);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* ---------- Sidemenu ---------- */
.sidemenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidemenu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidemenu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 1600;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .sidemenu {
  background: var(--dark-bg);
}

.sidemenu.active {
  left: 0;
}

.sidemenu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748b;
  transition: var(--transition);
}

body.dark-mode .sidemenu-close {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.sidemenu-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: rotate(90deg);
}

.sidemenu-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

body.dark-mode .sidemenu-nav a {
  color: #cbd5e1;
}

.sidemenu-nav a:hover,
.sidemenu-nav a.active {
  background: rgba(26, 115, 232, 0.06);
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidemenu-nav a i {
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
}

.sidemenu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 12px 28px;
}

body.dark-mode .sidemenu-divider {
  background: linear-gradient(90deg, transparent, #334155, transparent);
}

.sidemenu-social {
  display: flex;
  gap: 12px;
  padding: 16px 28px;
  flex-wrap: wrap;
}

.sidemenu-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

body.dark-mode .sidemenu-social a {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.sidemenu-social a:hover {
  transform: translateY(-3px);
  color: #fff;
}

.sidemenu-social a.ig:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sidemenu-social a.fb:hover {
  background: #1877f2;
}

.sidemenu-social a.li:hover {
  background: #0a66c2;
}

.sidemenu-social a.wa:hover {
  background: #25d366;
}

.sidemenu-social a.yt:hover {
  background: #ff0000;
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #1a73e8 70%, #2563eb 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 180%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge i {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
  background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-text {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
  animation: fadeInUp 0.8s ease 0.8s both;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section Styles ---------- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  position: relative;
}

body.dark-mode .section-title {
  color: #f1f5f9;
}

.section-title-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  line-height: 1.8;
}

body.dark-mode .section-subtitle {
  color: #94a3b8;
}

/* ---------- Stats Cards ---------- */
.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .stat-card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 115, 232, 0.12);
  border-color: rgba(26, 115, 232, 0.2);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
}

body.dark-mode .stat-label {
  color: #94a3b8;
}

/* ---------- Auto Scroll Strip ---------- */
.scroll-strip-wrapper {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.scroll-strip-wrapper::before,
.scroll-strip-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.scroll-strip-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.scroll-strip-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

body.dark-mode .scroll-strip-wrapper::before {
  background: linear-gradient(to right, var(--dark-bg), transparent);
}

body.dark-mode .scroll-strip-wrapper::after {
  background: linear-gradient(to left, var(--dark-bg), transparent);
}

.scroll-strip {
  display: flex;
  gap: 1.5rem;
  animation: scrollStrip 20s linear infinite;
  width: max-content;
}

.scroll-strip:hover {
  animation-play-state: paused;
}

@keyframes scrollStrip {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.scroll-card {
  min-width: 280px;
  padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.06), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(26, 115, 232, 0.1);
  flex-shrink: 0;
  transition: var(--transition);
}

body.dark-mode .scroll-card {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.12), rgba(249, 115, 22, 0.06));
  border-color: rgba(255, 255, 255, 0.06);
}

.scroll-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.scroll-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.scroll-card h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

body.dark-mode .scroll-card h4 {
  color: #f1f5f9;
}

.scroll-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

body.dark-mode .scroll-card p {
  color: #94a3b8;
}

/* ---------- Service Cards ---------- */
.service-card {
  padding: 2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.dark-mode .service-card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.12);
  border-color: rgba(26, 115, 232, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(37, 99, 235, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

body.dark-mode .service-card h3 {
  color: #f1f5f9;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

body.dark-mode .service-card p {
  color: #94a3b8;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: testimonialScroll 25s linear infinite;
  width: max-content;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  min-width: 340px;
  max-width: 340px;
  padding: 1.75rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .testimonial-card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

body.dark-mode .testimonial-text {
  color: #94a3b8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-mode .testimonial-name {
  color: #f1f5f9;
}

.testimonial-name:hover {
  color: var(--primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---------- Testimonial Modal (Responsive) ---------- */
.testimonial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.testimonial-modal-overlay.hidden {
  display: none !important;
}

.testimonial-modal-overlay.flex {
  display: flex !important;
}

.testimonial-modal {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: testimonialModalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .testimonial-modal {
  background: var(--dark-card);
}

@keyframes testimonialModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.testimonial-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  transition: var(--transition);
  z-index: 10;
}

body.dark-mode .testimonial-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.testimonial-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Mobile responsive for testimonial modal */
@media (max-width: 480px) {
  .testimonial-modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .testimonial-modal {
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    max-height: 92vh;
    max-width: 100%;
    animation: testimonialModalSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes testimonialModalSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .testimonial-modal {
    max-width: 420px;
    padding: 1.75rem;
  }
}

/* ---------- Founder Section ---------- */
.founder-img {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.founder-img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.founder-label {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(26, 115, 232, 0.15);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.founder-info-card {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
}

body.dark-mode .founder-info-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.founder-info-card:hover {
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateY(-2px);
}

/* ---------- Contact Form ---------- */
.contact-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #1e293b;
  transition: var(--transition);
  outline: none;
}

body.dark-mode .contact-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.contact-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
  background: #fff;
}

body.dark-mode .contact-input:focus {
  background: rgba(255, 255, 255, 0.08);
}

.contact-input::placeholder {
  color: #94a3b8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  transform: translateY(-4px);
  color: #fff;
}

.footer-social a:nth-child(1):hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:nth-child(2):hover {
  background: #1877f2;
}

.footer-social a:nth-child(3):hover {
  background: #0a66c2;
}

.footer-social a:nth-child(4):hover {
  background: #25d366;
}

.footer-social a:nth-child(5):hover {
  background: #ff0000;
}

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1400;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

body.dark-mode .mobile-bottom-nav {
  background: var(--dark-bg);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 0;
}

body.dark-mode .mobile-bottom-nav a {
  color: #94a3b8;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--primary);
}

.mobile-bottom-nav a i {
  font-size: 1.15rem;
}

.mobile-bottom-nav a.wa-btn {
  color: #25d366;
}

.mobile-bottom-nav a.wa-btn:hover {
  color: #128c7e;
}

/* ---------- Page Hero Banner ---------- */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(26, 115, 232, 0.7));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

/* ---------- Error Page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.error-code {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: errorPulse 3s ease-in-out infinite;
}

@keyframes errorPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.error-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.error-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-top: 2rem;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ---------- Map ---------- */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.dark-mode .map-container {
  border-color: rgba(255, 255, 255, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .desktop-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .site-footer .footer-main {
    display: none;
  }

  .site-footer {
    padding-bottom: 70px;
  }

  .testimonial-card {
    min-width: 290px;
    max-width: 290px;
  }

  .scroll-card {
    min-width: 240px;
  }

  .hero-section {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 260px;
    max-width: 260px;
  }
}

/* ---------- Utility Animations ---------- */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rating stars form */
.star-rating {
  display: flex;
  gap: 4px;
  direction: rtl;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #d1d5db;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #fbbf24;
}

/* Services page detail card */
.service-detail-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

body.dark-mode .service-detail-card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.service-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.1);
}

/* Contact info card */
.contact-info-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

body.dark-mode .contact-info-card {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.06);
}

.contact-info-card:hover {
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateY(-3px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(37, 99, 235, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}