/* ========================================
   Khaled Aboshteia Law Firm - Styles
   ======================================== */

/* CSS Variables - Light Theme */
:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0f2440;
  --accent: #c9a84c;
  --accent-light: #dfc06e;
  --accent-dark: #a88a30;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --bg: #f8f6f3;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.95);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aa0;
  --border: #e8e4df;
  --shadow: rgba(26,58,92,0.08);
  --shadow-lg: rgba(26,58,92,0.15);
  --hero-bg: linear-gradient(135deg, #0f2440 0%, #1a3a5c 50%, #2a5a8c 100%);
  --hero-overlay: rgba(15,36,64,0.85);
  --section-alt: #f0ede8;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb855;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --font-heading-en: 'Playfair Display', serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: #4a8abf;
  --primary-light: #6aacdf;
  --primary-dark: #2a6a9f;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1c2333;
  --bg-nav: rgba(13,17,23,0.95);
  --text: #e6edf3;
  --text-secondary: #b0bec5;
  --text-muted: #7a8a9a;
  --border: #2a3444;
  --shadow: rgba(0,0,0,0.3);
  --shadow-lg: rgba(0,0,0,0.5);
  --hero-bg: linear-gradient(135deg, #060a10 0%, #0d1a2d 50%, #152238 100%);
  --hero-overlay: rgba(6,10,16,0.9);
  --section-alt: #131920;
}

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

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

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

[lang="en"] body, html[lang="en"] {
  font-family: var(--font-en);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  height: 72px;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.nav-logo i {
  font-size: 1.5rem;
  color: var(--accent);
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(26,58,92,0.08);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(74,138,191,0.15);
}

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

.theme-toggle, .lang-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
}

.theme-toggle:hover, .lang-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
  padding-top: 72px;
}

.hero-overlay {
  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");
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  margin-bottom: 20px;
}

.hero-greeting {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero-name {
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[lang="en"] .hero-name {
  font-family: var(--font-heading-en);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Hero Image */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%);
  animation: frameRotate 8s linear infinite;
}

@keyframes frameRotate {
  0% { background: linear-gradient(0deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%); }
  25% { background: linear-gradient(90deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%); }
  50% { background: linear-gradient(180deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%); }
  75% { background: linear-gradient(270deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%); }
  100% { background: linear-gradient(360deg, var(--gold) 0%, var(--primary-light) 50%, var(--gold) 100%); }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(15,36,64,0.9);
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-image-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(15,36,64,0.9);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-scroll-indicator a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #1fa855 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ========================================
   Sections Common
   ======================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

[lang="en"] .section-title {
  font-family: var(--font-heading-en);
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: var(--bg);
}

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

.about-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

[data-theme="dark"] .about-name {
  color: var(--gold);
}

.about-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 30px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.about-highlight:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

.about-highlight i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 4px;
}

.about-highlight strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.about-highlight span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Counters */
.about-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition);
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--accent);
}

.counter-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(26,58,92,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--accent);
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-block;
}

[data-theme="dark"] .counter-number {
  color: var(--gold);
}

.counter-suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
}

[data-theme="dark"] .counter-suffix {
  color: var(--gold);
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========================================
   Stacking Card Scroll Animation System
   ======================================== */
.deck-scroll {
  position: relative;
}

.deck-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.deck-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: sticky;
  top: 100px;
  transform-origin: center top;
  will-change: transform, opacity;
  z-index: 1;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition: none;
}

.deck-card.stack-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.deck-card.stack-behind {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.4s ease;
}

/* Card number indicator */
.deck-card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
  line-height: 1;
}

[dir="ltr"] .deck-card-number {
  left: auto;
  right: 16px;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
  background: var(--section-alt);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card.stack-visible:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 50px var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(26,58,92,0.2);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-section {
  background: var(--bg);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

.why-card.stack-visible:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 50px var(--shadow-lg);
  border-color: var(--accent);
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(26,58,92,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--accent);
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  transform: scale(1.1);
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Articles Section
   ======================================== */
.articles-section {
  background: var(--section-alt);
}

.article-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

.article-card.stack-visible:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--accent);
}

.article-img {
  width: 140px;
  min-height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.article-content {
  padding: 24px;
  flex: 1;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,0.1);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

[dir="ltr"] .article-link i {
  transform: rotate(180deg);
}

.article-link:hover {
  color: var(--primary);
  gap: 10px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info h3, .contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

[dir="ltr"] .contact-item:hover {
  transform: translateX(4px);
}

[dir="rtl"] .contact-item:hover {
  transform: translateX(-4px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.whatsapp-icon {
  background: linear-gradient(135deg, var(--whatsapp), #1fa855) !important;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

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

.btn-submit {
  margin-top: 8px;
  padding: 16px;
  font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

[data-theme="dark"] .footer {
  background: #080c12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo i {
  font-size: 1.4rem;
  color: var(--gold);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a,
.footer-services a,
.footer-contact a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-links a:hover,
.footer-services a:hover,
.footer-contact a:hover {
  color: var(--gold);
  padding-right: 8px;
}

[dir="ltr"] .footer-links a:hover,
[dir="ltr"] .footer-services a:hover,
[dir="ltr"] .footer-contact a:hover {
  padding-left: 8px;
  padding-right: 0;
}

.footer-contact a i {
  margin-left: 8px;
  color: var(--gold);
}

[dir="ltr"] .footer-contact a i {
  margin-left: 0;
  margin-right: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   WhatsApp Float & Back to Top
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: whatsappPulse 2s infinite;
}

[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 30px rgba(37,211,102,0.6), 0 0 0 15px rgba(37,211,102,0.1); }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 998;
}

[dir="ltr"] .back-to-top {
  right: auto;
  left: 30px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ========================================
   Success Message
   ======================================== */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success i {
  font-size: 3rem;
  color: var(--whatsapp);
  margin-bottom: 16px;
}

.form-success h4 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
}

/* ========================================
   Animations
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin: 0 auto 32px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-image-frame {
    width: 300px;
    height: 300px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: 0 10px 30px var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  .hero-container {
    padding: 20px;
  }
  .hero-image-frame {
    width: 240px;
    height: 240px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }
  .section {
    padding: 60px 0;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .about-counters {
    grid-template-columns: 1fr 1fr;
  }

  .article-card {
    flex-direction: column;
  }
  .article-img {
    width: 100%;
    min-height: 120px;
  }
  .deck-card {
    max-width: 100%;
    top: 80px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }
  [dir="ltr"] .whatsapp-float {
    left: auto;
    right: 20px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  [dir="ltr"] .back-to-top {
    right: auto;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }
  .hero-image-frame {
    width: 200px;
    height: 200px;
  }
  .btn-lg {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .counter-card {
    padding: 20px 14px;
  }
  .counter-number {
    font-size: 1.8rem;
  }
}

/* Print Styles */
@media print {
  .navbar, .whatsapp-float, .back-to-top, .hero-scroll-indicator {
    display: none !important;
  }
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .section {
    padding: 30px 0;
  }
}
