@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ============================================
   CSS Custom Properties — Brand Color System
   Extract from logo and update these values
   ============================================ */
:root {
  /* Logo Colors: Black + Red + White */
  --color-primary: #1a1a2e;
  --color-primary-light: #2d2d44;
  --color-primary-dark: #0e0e1a;
  --color-secondary: #e63946;
  --color-secondary-light: #ff4d5a;
  --color-secondary-dark: #c5212f;
  --color-accent: #ff6b6b;
  --color-dark: #0f0f17;
  --color-dark-lighter: #16161f;
  --color-dark-card: #1c1c28;
  --color-light: #f8f9fa;
  --color-light-dim: #e9ecef;
  --color-white: #ffffff;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dark: #1e293b;
  --color-text-dark-muted: #64748b;
  --color-success: #22c55e;
  --color-error: #ef4444;

  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.2);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.25);
  --shadow-glow: 0 0 20px rgba(230,57,70,.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  --transition-fast: .2s ease;
  --transition-base: .35s ease;
  --transition-slow: .6s ease;

  --header-height: 80px;
  --container-width: 1200px;
}

/* ============================================
   Light Theme
   ============================================ */
[data-theme="light"] {
  --color-dark: #ffffff;
  --color-dark-lighter: #f3f4f6;
  --color-dark-card: #ffffff;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
}

/* Header */
[data-theme="light"] .header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

[data-theme="light"] .header.scrolled .nav-links a {
  color: #334155;
}

[data-theme="light"] .header.scrolled .nav-links a:hover,
[data-theme="light"] .header.scrolled .nav-links a.active {
  color: var(--color-secondary);
  background: rgba(230,57,70,.06);
}

[data-theme="light"] .header.scrolled .logo span {
  color: #1a1a2e;
}

[data-theme="light"] .header.scrolled .hamburger span {
  background: #1a1a2e;
}

/* Transparent header (over dark hero) — keep white text */
[data-theme="light"] .header.transparent .nav-links a {
  color: #fff;
}

[data-theme="light"] .header.transparent .nav-links a:hover,
[data-theme="light"] .header.transparent .nav-links a.active {
  color: var(--color-secondary);
  background: rgba(255,255,255,.1);
}

[data-theme="light"] .header.transparent .logo span {
  color: #fff;
}

[data-theme="light"] .header.transparent .hamburger span {
  background: #fff;
}

/* Cards & Components */
[data-theme="light"] .service-card,
[data-theme="light"] .service-detail-card,
[data-theme="light"] .feature-item,
[data-theme="light"] .team-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-info-card {
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .service-detail-card .card-body h3,
[data-theme="light"] .feature-item h3,
[data-theme="light"] .team-card .info h3,
[data-theme="light"] .contact-form h3,
[data-theme="light"] .contact-info-card h4,
[data-theme="light"] .about-story .story-text h2 {
  color: #1a1a2e;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .service-detail-card .card-body p,
[data-theme="light"] .feature-item p,
[data-theme="light"] .about-story .story-text p,
[data-theme="light"] .service-detail-card .card-features li,
[data-theme="light"] .form-group label {
  color: #475569;
}

/* Section Headers */
[data-theme="light"] .section-header h2 {
  color: #1a1a2e;
}

[data-theme="light"] .section-header p {
  color: #64748b;
}

[data-theme="light"] .section-header .badge {
  background: rgba(230,57,70,.08);
  border-color: rgba(230,57,70,.15);
}

/* Page Hero — stays dark */
[data-theme="light"] .page-hero {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero p,
[data-theme="light"] .page-hero .breadcrumb a {
  color: #fff;
}

[data-theme="light"] .page-hero .breadcrumb span {
  color: var(--color-secondary);
}

/* Stats Section — stays dark */
[data-theme="light"] .stats-section {
  background: linear-gradient(135deg, #1a1a2e, #0e0e1a);
}

[data-theme="light"] .stats-section .stat-number {
  color: var(--color-secondary);
}

[data-theme="light"] .stats-section .stat-label {
  color: rgba(255,255,255,.7);
}

/* CTA Section */
[data-theme="light"] .cta-content h2 {
  color: #1a1a2e;
}

[data-theme="light"] .cta-content p {
  color: rgba(26,26,46,.65);
}

/* Hero Section — text stays white (over dark overlay) */
[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content .highlight {
  color: #fff;
}

[data-theme="light"] .hero-content .highlight {
  color: var(--color-secondary);
}

[data-theme="light"] .hero-content p {
  color: rgba(255,255,255,.75);
}

[data-theme="light"] .hero-content .badge {
  color: var(--color-secondary);
}

[data-theme="light"] .hero-stat h3 {
  color: var(--color-secondary);
}

[data-theme="light"] .hero-stat p {
  color: rgba(255,255,255,.6);
}

/* Form Inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #f8f9fa;
  border-color: #d1d5db;
  color: #1e293b;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

/* Contact Info */
[data-theme="light"] .contact-info-card p,
[data-theme="light"] .contact-info-card a {
  color: #64748b;
}

[data-theme="light"] .contact-info-card a:hover {
  color: var(--color-secondary);
}

/* Gallery Overlay */
[data-theme="light"] .gallery-item .overlay p {
  color: #fff;
}


/* Footer — stays dark */
[data-theme="light"] .footer {
  background: #1a1a2e;
  border-top-color: rgba(255,255,255,.06);
}

[data-theme="light"] .footer .logo span,
[data-theme="light"] .footer h4 {
  color: #fff;
}

[data-theme="light"] .footer-brand p {
  color: rgba(255,255,255,.65);
}

[data-theme="light"] .footer-col ul li a {
  color: rgba(255,255,255,.6);
}

[data-theme="light"] .footer-col ul li a:hover {
  color: var(--color-secondary);
}

[data-theme="light"] .footer-col h4::after {
  background: var(--color-secondary);
}

[data-theme="light"] .footer-bottom p {
  color: rgba(255,255,255,.4);
}

[data-theme="light"] .footer-social a {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}

[data-theme="light"] .footer-social a:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* Social links on contact page */
[data-theme="light"] .social-links-contact a {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #334155;
}

[data-theme="light"] .social-links-contact a:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* About page inline badge */
[data-theme="light"] .about-story .story-text .badge {
  color: var(--color-secondary);
}

/* Team card in light */
[data-theme="light"] .team-card .info p {
  color: var(--color-secondary);
}

/* Video section in light */
[data-theme="light"] .video-section {
  background: #f3f4f6;
}

/* About hero / Contact hero */
[data-theme="light"] .about-hero,
[data-theme="light"] .contact-hero {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

[data-theme="light"] .about-hero h1,
[data-theme="light"] .about-hero p,
[data-theme="light"] .contact-hero h1,
[data-theme="light"] .contact-hero p {
  color: #fff;
}

/* Logo span on light bg (non-hero pages always have scrolled header) */
[data-theme="light"] .header.scrolled .logo span {
  color: #1a1a2e;
}

/* Ensure hero stays white text (dark overlay bg) */
[data-theme="light"] .hero-content .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

/* Service icon bg in light */
[data-theme="light"] .service-icon {
  background: linear-gradient(135deg, rgba(230,57,70,.08), rgba(26,26,46,.06));
}

[data-theme="light"] .feature-item .icon {
  background: linear-gradient(135deg, rgba(230,57,70,.1), rgba(26,26,46,.06));
}

[data-theme="light"] .contact-info-card .icon-box {
  background: linear-gradient(135deg, rgba(230,57,70,.08), rgba(26,26,46,.06));
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-ar);
  background: var(--color-dark);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.en-text {
  font-family: var(--font-en);
  direction: ltr;
}

/* ============================================
   Page Transition
   ============================================ */
.page-transition {
  animation: pageFadeIn .6s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(230,57,70,.15), rgba(230,57,70,.05));
  color: var(--color-secondary);
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 30px;
  border: 1px solid rgba(230,57,70,.25);
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition-base);
}

.header.transparent {
  background: transparent;
}

.header.scrolled {
  background: rgba(15,15,23,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
  background: rgba(230,57,70,.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(15,15,23,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: calc(var(--header-height) + 24px) 24px 24px;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 36px;
  min-height: 48px;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  color: var(--color-secondary);
}

/* Dark mode: ensure links are visible (white on dark) */
html:not([data-theme="light"]) .mobile-menu a {
  color: #ffffff !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,15,23,.92) 0%,
    rgba(15,15,23,.75) 50%,
    rgba(15,15,23,.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: var(--header-height);
}

.hero-content .badge {
  display: inline-block;
  background: rgba(230,57,70,.12);
  color: var(--color-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid rgba(230,57,70,.2);
  margin-bottom: 20px;
  animation: fadeSlideUp .8s ease .2s both;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeSlideUp .8s ease .4s both;
}

.hero-content h1 .highlight {
  color: var(--color-secondary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeSlideUp .8s ease .6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp .8s ease .8s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
  animation: fadeSlideUp .8s ease 1s both;
}

.hero-stat {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  background: rgba(230, 57, 70, .1);
  border-color: rgba(230, 57, 70, .3);
}

.hero-stat-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.hero-stat p {
  font-size: .9rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.hero-stat h3 {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  direction: ltr;
  text-align: right;
}

/* Animated particles behind hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(230,57,70,.3);
  border-radius: 50%;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: .3; }
  50%      { transform: translateY(-60px) translateX(30px); opacity: .8; }
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
  background: var(--color-dark-lighter);
  overflow: hidden;
}

.video-section .container {
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/9;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  z-index: -1;
}

/* ============================================
   Services / Cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230,57,70,.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(230,57,70,.12), rgba(27,73,101,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card .card-link {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.service-card:hover .card-link {
  gap: 12px;
}

/* Service Detail Card (services page) */
.service-detail-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition-base);
}

.service-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-detail-card .card-image {
  height: 220px;
  overflow: hidden;
}

.service-detail-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail-card:hover .card-image img {
  transform: scale(1.08);
}

.service-detail-card .card-body {
  padding: 28px;
}

.service-detail-card .card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.service-detail-card .card-body p {
  font-size: .95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-detail-card .card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-detail-card .card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--color-text);
}

.service-detail-card .card-features li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: 700;
}

/* ============================================
   Gallery / Image Grid
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,23,.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  color: var(--color-white);
  font-weight: 600;
  font-size: .95rem;
}

/* ============================================
   Stats / Counters
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-dark));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-secondary);
  direction: ltr;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E");
}

.cta-content {
  text-align: center;
  position: relative;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(15,15,23,.7);
  margin-bottom: 30px;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

.cta-content .btn {
  background: var(--color-dark);
  color: var(--color-secondary);
}

.cta-content .btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary-dark));
  padding: 160px 0 80px;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story .story-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
}

.about-story .story-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-story .story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-story .story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card .avatar {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .avatar img {
  transform: scale(1.05);
}

.team-card .info {
  padding: 24px;
}

.team-card .info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.team-card .info p {
  font-size: .9rem;
  color: var(--color-secondary);
  font-weight: 500;
}

/* Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition-base);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230,57,70,.15);
}

.feature-item .icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(230,57,70,.15), rgba(27,73,101,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.feature-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-hero {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary-dark));
  padding: 160px 0 80px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(255,255,255,.06);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-success {
  display: none;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--color-success);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.form-success.show {
  display: block;
  animation: fadeSlideUp .4s ease;
}

.form-error {
  display: block;
  font-size: .85rem;
  color: var(--color-error);
  margin-top: 6px;
  min-height: 20px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--color-error);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  transform: translateX(-6px);
  border-color: rgba(230,57,70,.15);
}

.contact-info-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(230,57,70,.12), rgba(27,73,101,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: .9rem;
  color: var(--color-text-muted);
}

.contact-info-card a:hover {
  color: var(--color-secondary);
}

.social-links-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-links-contact a {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-links-contact a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-dark-lighter);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: .9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  padding-right: 6px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s cubic-bezier(.25,.46,.45,.94);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s cubic-bezier(.25,.46,.45,.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s cubic-bezier(.25,.46,.45,.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

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

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

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary-dark));
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,73,101,.1) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .9rem;
  position: relative;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb span {
  color: var(--color-secondary);
  font-weight: 600;
}

.breadcrumb .separator {
  color: var(--color-text-muted);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
  background: var(--color-dark-lighter);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-secondary);
  opacity: .35;
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--color-text);
  font-size: .95rem;
  line-height: 1.85;
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  padding: 7px;
}

.testimonial-avatar svg {
  width: 100%;
  height: 100%;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-white);
  font-size: .95rem;
}

.testimonial-role {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: .85rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

[data-theme="light"] .testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

[data-theme="light"] .testimonial-author {
  border-top-color: rgba(0,0,0,.08);
}

[data-theme="light"] .testimonial-name {
  color: var(--color-primary);
}

.testimonial-text-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .about-story { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 2.4rem; }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .section { padding: 70px 0; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 2rem; }
  .stat-number { font-size: 2.2rem; }

  .contact-form { padding: 28px 20px; }

  /* Video: responsive on mobile */
  .video-wrapper {
    border-radius: var(--radius-md);
  }
  .video-wrapper::before { border-radius: var(--radius-md); }

  /* Theme toggle: safe area on mobile */
  .theme-toggle {
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: calc(20px + env(safe-area-inset-left));
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  /* Header: prevent overflow on very small screens */
  .header .container { width: 95%; }
  .logo span { font-size: 1.1rem; }
  .logo img { height: 40px; }

  /* Video: slightly smaller padding on tiny screens */
  .video-section .container { width: 95%; }
}

/* ============================================
   Light mode — Mobile menu (must override base)
   ============================================ */
html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .mobile-menu.open {
  background: #ffffff !important;
}

html[data-theme="light"] .mobile-menu a {
  color: #1a1a2e !important;
}

html[data-theme="light"] .mobile-menu a:hover,
html[data-theme="light"] .mobile-menu a:active {
  color: #e63946 !important;
}

/* Hamburger X + Logo text — dark when menu open in light mode (white menu background) */
html[data-theme="light"].menu-open .hamburger span {
  background: #1a1a2e !important;
}

html[data-theme="light"].menu-open .header .logo span {
  color: #1a1a2e !important;
}
