/* ============================================================
   ELKAYSR (مستر مصطفى ربيع) — Premium White & Royal Aesthetic
   ============================================================ */

:root {
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  
  --primary: #1E40AF;
  --primary-hover: #1E3A8A;
  --primary-light: #EFF6FF;
  --accent-gold: #D97706;
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --royal-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
  --shadow-glow: 0 10px 30px rgba(245, 158, 11, 0.25);
  
  --font-main: 'Cairo', 'Tajawal', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Background Subtle Gradients */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 246, 255, 1) 0%, rgba(219, 234, 254, 0.6) 100%);
}

.blob-2 {
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.8) 0%, rgba(253, 230, 138, 0.4) 100%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-top: 16px;
  margin-bottom: 24px;
}

.nav-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--accent-gold);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--royal-gradient);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero {
  padding: 40px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Portal Quick Action Cards */
.hero-portals {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-subtle);
}

.portal-card:hover {
  border-color: var(--primary);
  transform: translateX(-6px);
  box-shadow: var(--shadow-hover);
}

.portal-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.portal-icon-student {
  background: #EFF6FF;
  color: #2563EB;
}

.portal-icon-parent {
  background: #FEF3C7;
  color: #D97706;
}

.portal-icon-center {
  background: #F3E8FF;
  color: #9333EA;
}

.portal-title-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.portal-sub-text {
  font-size: 12px;
  color: var(--text-light);
}

.portal-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.portal-card:hover .portal-arrow {
  background: var(--primary);
  color: #fff;
}

/* Teacher Card Showcase */
.hero-image-wrap {
  position: relative;
  text-align: center;
}

.teacher-photo-container {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.teacher-photo {
  width: 360px;
  max-width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
}

.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.stat-top-right {
  top: 20px;
  right: -20px;
}

.stat-bottom-left {
  bottom: 30px;
  left: -20px;
  animation-delay: 2s;
}

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

.stat-num-bold {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.stat-label-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
}

/* Social Media Sticky Bar & Section */
.social-hub {
  padding: 50px 0;
  background: #fff;
  border-y: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-main);
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.social-btn {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.social-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

.soc-whatsapp { background: #25D366; }
.soc-facebook { background: #1877F2; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc-youtube { background: #FF0000; }
.soc-tiktok { background: #000000; }

.social-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-main);
}

.social-handle {
  font-size: 12px;
  color: var(--text-light);
}

/* Features Cards */
.features-sec {
  padding: 70px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.feat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.feat-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grades Showcase */
.grades-sec {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.grades-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grade-box {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}

.grade-box:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-hover);
}

.grade-head {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grade-list {
  list-style: none;
  margin-bottom: 20px;
}

.grade-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.grade-list li:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #334155;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
  padding-top: 20px;
}

/* Floating Action Button (WhatsApp Direct) */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 34px;
  }
  .teacher-photo {
    width: 280px;
    height: 350px;
  }
  .floating-stat {
    position: static;
    margin: 10px auto;
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
}
