/* ===================================================
   Egyptian Coding Academy — Stylesheet
   =================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens — Colors extracted from logo ── */
:root {
  /* Backgrounds — deep navy from logo background */
  --bg: #08081a;
  --surface: #0e0e24;
  --card: #141432;
  --card-hover: #1a1a42;

  /* Primary — Egyptian Gold (pyramid borders & hieroglyphics) */
  --primary: #c9953c;
  --primary-light: #f0c97a;
  --primary-glow: rgba(201, 149, 60, .25);

  /* Secondary — Teal (circuit board patterns inside pyramid) */
  --secondary: #2a9d8f;
  --secondary-light: #3dbfae;
  --secondary-glow: rgba(42, 157, 143, .2);

  /* Accent — Warm Amber (glowing door in pyramid center) */
  --accent: #e8a030;
  --accent-light: #ffbe55;
  --accent-glow: rgba(232, 160, 48, .2);

  /* Supporting colors */
  --yellow: #f0c97a;
  --green: #2a9d8f;
  --teal: #1a7575;
  --text: #f0ece4;
  --text-secondary: #a8a0a8;
  --muted: #6b6575;
  --border: rgba(201, 149, 60, .1);

  /* Layout */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

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

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

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

/* ── LTR/RTL Switch ── */
[dir="rtl"] { font-family: var(--font-ar); }
[dir="ltr"] { font-family: var(--font-en); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Animated Grid Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 157, 143, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 157, 143, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 26, .72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(201, 149, 60, .12);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 26, .92);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.nav-brand .brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  transition: all var(--transition);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.nav-brand .brand-logo:hover {
  filter: drop-shadow(0 0 16px var(--primary-glow));
  transform: scale(1.05);
}
.nav-brand .brand-text {
  background: linear-gradient(135deg, #d4a44c, #f0c97a, #d4a44c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
  letter-spacing: .5px;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 600;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.lang-toggle {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  color: var(--primary-light);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all var(--transition);
  background: transparent;
}
.lang-toggle:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 26, .97);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color var(--transition);
  transform: translateY(20px);
  opacity: 0;
  transition: all .4s ease;
}
.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open a:nth-child(1) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .35s; }
.mobile-menu a:hover {
  color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: rgba(201,149,60,.15); top: -200px; right: -150px; }
.orb-2 { width: 500px; height: 500px; background: rgba(42,157,143,.12); bottom: -150px; left: -100px; animation-delay: 2s; }
.orb-3 { width: 350px; height: 350px; background: rgba(232,160,48,.1); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

@keyframes orbPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Floating code snippets */
.floating-code {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid;
  animation: floatCode 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.fc-1 { top: 22%; left: 6%; background: rgba(201,149,60,.1); border-color: rgba(201,149,60,.25); color: var(--primary-light); animation-delay: 0s; }
.fc-2 { top: 30%; right: 6%; background: rgba(42,157,143,.08); border-color: rgba(42,157,143,.2); color: var(--secondary-light); animation-delay: 1.5s; }
.fc-3 { bottom: 22%; left: 10%; background: rgba(232,160,48,.08); border-color: rgba(232,160,48,.2); color: var(--accent-light); animation-delay: 3s; }
.fc-4 { bottom: 30%; right: 10%; background: rgba(42,157,143,.08); border-color: rgba(42,157,143,.2); color: var(--secondary); animation-delay: 2s; }

@keyframes floatCode {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.hero-content {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 149, 60, .08);
  border: 1px solid rgba(201, 149, 60, .25);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  letter-spacing: 1.5px;
  animation: fadeUp .7s ease both;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeUp .8s .1s ease both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.9;
  animation: fadeUp .8s .2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s .3s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 25px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201, 149, 60, .45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 4px 25px var(--primary-glow);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 56px 48px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 40, .5);
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}
.stat-label {
  color: var(--text-secondary);
  font-size: .88rem;
  margin-top: 4px;
}

/* ============================================
   SECTIONS — Common
   ============================================ */
.section {
  padding: 100px 48px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 600px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header .section-description {
  margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.code-display {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  line-height: 2;
  position: relative;
  z-index: 1;
  direction: ltr;
  text-align: left;
}
.code-display .keyword { color: var(--accent); }
.code-display .function { color: var(--secondary-light); }
.code-display .string { color: var(--primary-light); }
.code-display .comment { color: var(--muted); }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.about-feature:hover {
  border-color: rgba(201, 149, 60, .2);
  background: rgba(201, 149, 60, .04);
}
.about-feature .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature .feature-text {
  font-weight: 600;
  font-size: .95rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
[dir="rtl"] .service-card::before {
  transform-origin: right;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 149, 60, .3);
  box-shadow: 0 20px 60px rgba(201, 149, 60, .08);
  background: var(--card-hover);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.si-web { background: linear-gradient(135deg, rgba(42,157,143,.18), rgba(42,157,143,.05)); }
.si-game { background: linear-gradient(135deg, rgba(232,160,48,.18), rgba(232,160,48,.05)); }
.si-scratch { background: linear-gradient(135deg, rgba(201,149,60,.18), rgba(201,149,60,.05)); }
.si-python { background: linear-gradient(135deg, rgba(42,157,143,.18), rgba(42,157,143,.05)); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.service-tag {
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.05);
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ============================================
   DEPARTMENTS SECTION
   ============================================ */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.dept-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dept-card:hover {
  border-color: rgba(201, 149, 60, .25);
  box-shadow: 0 12px 40px rgba(201, 149, 60, .06);
  transform: translateY(-4px);
}

.dept-level {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.level-beginner { background: linear-gradient(135deg, rgba(42,157,143,.2), rgba(42,157,143,.05)); }
.level-intermediate { background: linear-gradient(135deg, rgba(201,149,60,.2), rgba(201,149,60,.05)); }
.level-advanced { background: linear-gradient(135deg, rgba(232,160,48,.2), rgba(232,160,48,.05)); }

.dept-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.dept-age {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(201, 149, 60, .12);
  color: var(--primary-light);
  margin-bottom: 10px;
}
.dept-info p {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.7;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-wrapper {
  background: var(--surface);
  border-radius: 32px;
  padding: 80px 60px;
  margin: 0 48px 80px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.why-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.why-wrapper::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(201, 149, 60, .05);
  border-color: rgba(201, 149, 60, .2);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: rgba(201, 149, 60, .2);
  transform: translateX(4px);
}
[dir="rtl"] .contact-item:hover {
  transform: translateX(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42, 157, 143, .15), rgba(201, 149, 60, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-item p {
  color: var(--text-secondary);
  font-size: .88rem;
  direction: ltr;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(201, 149, 60, .04);
  box-shadow: 0 0 0 3px rgba(201, 149, 60, .08);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.social-card:hover {
  transform: translateY(-6px);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-card .social-name {
  font-weight: 700;
  font-size: .95rem;
}
.social-card .social-handle {
  color: var(--muted);
  font-size: .78rem;
  font-family: 'Courier New', monospace;
}

/* Social card hover colors */
.social-facebook .social-icon { background: rgba(24,119,242,.15); color: #1877f2; }
.social-facebook:hover { border-color: #1877f2; box-shadow: 0 16px 40px rgba(24,119,242,.12); }

.social-instagram .social-icon { background: rgba(225,48,108,.15); color: #e1306c; }
.social-instagram:hover { border-color: #e1306c; box-shadow: 0 16px 40px rgba(225,48,108,.12); }

.social-linkedin .social-icon { background: rgba(10,102,194,.15); color: #0a66c2; }
.social-linkedin:hover { border-color: #0a66c2; box-shadow: 0 16px 40px rgba(10,102,194,.12); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 48px;
  position: relative;
  z-index: 2;
}
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}
.cta-banner::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%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") repeat;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 36px;
  position: relative;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 300px;
}
.footer-brand .nav-brand {
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: .88rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p {
  color: var(--muted);
  font-size: .82rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }
  .floating-code { display: none; }

  .section {
    padding: 60px 20px;
  }

  .stats-bar {
    gap: 24px;
    padding: 40px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .departments-grid {
    grid-template-columns: 1fr;
  }

  .why-wrapper {
    margin: 0 16px 60px;
    padding: 48px 24px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    gap: 12px;
  }
  .social-card {
    min-width: 130px;
    padding: 20px 24px;
  }

  .cta-section {
    padding: 60px 20px;
  }
  .cta-banner {
    padding: 48px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }
  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .stat-number {
    font-size: 2rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px;
  }
}
