:root {
  --bg: #0f172a;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #10b981;
  --primary-dark: #0ea66f;
  --accent: #60a5fa;
  --card: #1f2937;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1a2442 0%, #0f172a 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}
 .container { max-width: clamp(1000px, 92vw, 1200px); margin: 0 auto; padding: 0 20px }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(16,185,129,.8), rgba(96,165,250,.8), rgba(16,185,129,.8));
  background-size: 200% 100%;
  animation: barShift 6s linear infinite;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: clamp(64px, 7vh, 76px) }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text) }
.brand-logo { height: 30px; width: auto; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.25) }
.brand-logo { animation: logoPulse 6s ease-in-out infinite }
.brand-logo:hover { animation: logoSpin 0.8s linear }
.nav a {
  color: var(--muted); text-decoration: none; margin: 0 10px; font-weight: 600; transition: color .2s ease;
}

.student-login-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(16,185,129,.3) !important;
  transition: all 0.3s ease !important;
}

.student-login-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(16,185,129,.4) !important;
  color: white !important;
}
.nav { display: flex; align-items: center }
.nav a::after { content:""; display:block; height:2px; background: linear-gradient(90deg, var(--primary), transparent); transform: scaleX(0); transform-origin: right; transition: transform .25s ease }
.nav a:hover { color: var(--text) }
.nav a:hover::after { transform: scaleX(1); transform-origin: left }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10001;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.nav-toggle.active {
    color: var(--primary);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block !important;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.95);
        padding: 100px 30px 30px;
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        backdrop-filter: blur(25px);
        border-right: 1px solid rgba(16,185,129,0.3);
    }
    
    .nav.open {
        transform: translateX(0);
    }
    
    .nav a {
        display: block;
        color: var(--text);
        padding: 20px 30px;
        text-align: center;
        border: 2px solid transparent;
        border-radius: 15px;
        transition: all 0.3s ease;
        margin: 8px 0;
        font-size: 18px;
        font-weight: 600;
        width: 100%;
        max-width: 280px;
        background: rgba(15,23,42,0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    
    .nav a:hover {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16,185,129,0.3);
    }
}
.site-header.scrolled { background: rgba(17,24,39,0.85) }
.site-header.scrolled .header-inner { height: 58px; transition: height .2s ease }
.site-header.scrolled .brand-logo { transform: scale(.92); transition: transform .2s ease }
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(700px 200px at 10% -20%, rgba(96,165,250,.15), transparent 70%),
    radial-gradient(500px 200px at 80% 0%, rgba(16,185,129,.18), transparent 70%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -30px; height: 180px;
  background: radial-gradient(180px 90px at 30% 50%, rgba(96,165,250,.22), transparent 60%),
              radial-gradient(220px 120px at 70% 50%, rgba(16,185,129,.18), transparent 60%);
  filter: blur(20px);
  animation: waveMove 12s ease-in-out infinite;
}
.hero-content h1 { font-size: 40px; margin: 0 0 16px; line-height: 1.2 }
.hero-content h1 { font-size: clamp(28px, 6vw, 44px) }
.hero-content p { color: var(--muted); font-size: 18px }
.starfield { position: relative; height: 120px; margin: 10px 0 6px }
.star { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: .8; animation: twinkle 3s ease-in-out infinite }
.star.big { width: 3px; height: 3px; opacity: 1 }
@keyframes twinkle { 0% { transform: translateY(0); opacity: .6 } 50% { transform: translateY(-3px); opacity: 1 } 100% { transform: translateY(0); opacity: .6 } }
.hero-points { list-style: none; padding: 0; margin: 18px 0 24px }
.hero-points li { margin: 6px 0; position: relative; padding-right: 22px }
.hero-points li::before { content: "✔"; position: absolute; right: 0; color: var(--primary) }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary); color: #03170f }
.btn-primary:hover { background: var(--primary-dark) }
.btn-outline { border: 1px solid rgba(255,255,255,.15); color: var(--text) }
.btn { transition: transform .2s ease, box-shadow .2s ease }
.btn:hover { transform: translateY(-1px) }
.btn-primary, .btn-buy {
  background: linear-gradient(90deg, #10b981, #60a5fa, #10b981);
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
  color: #03170f;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}
.btn-buy { animation-duration: 3s }
.btn-outline:hover { border-color: rgba(255,255,255,.3) }
.section { padding: 56px 0 }
.section h2 { font-size: 28px; margin: 0 0 16px }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px }
.about-card { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.about-card h3 { margin: 0 0 8px; font-size: 20px }
.about-card p { margin: 0; color: var(--text) }
.about-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.25) }
.about-highlight { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; margin-top: 18px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 16px }
.about-photo { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(80px 60px at 50% 40%, rgba(96,165,250,.25), transparent 60%); border: 1px solid rgba(255,255,255,.12) }
.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.value-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 14px; color: var(--text);
  background-size: 200% 200%;
  animation: shine 8s ease-in-out infinite;
}
.value-card .icon { margin-left: 8px }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background: var(--card);
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.1);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  margin-bottom: 30px;
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .course-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .courses-grid {
    animation: none;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(16,185,129,.4);
}

.course-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(96,165,250,.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-image::before {
  opacity: 1;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-placeholder {
  font-size: 4em;
  color: rgba(255,255,255,.8);
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.course-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.1);
}

.course-content h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3;
}

.course-content p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 14px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 13px;
}

.course-duration,
.course-level {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 600;
  color: var(--muted);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-weight: 600;
}

.course-students {
  color: var(--muted);
  font-size: 12px;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.course-features li {
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  padding-right: 20px;
}

.course-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: bold;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 2px solid rgba(255,255,255,.15);
  margin-top: auto;
  background: rgba(0,0,0,0.1);
}

.course-price {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.course-price .currency {
  font-size: 0.6em;
  color: var(--muted);
}

.course-actions {
  display: flex;
  gap: 10px;
}

.btn-course {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-course-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.2);
}

.btn-course-secondary:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: rgba(255,255,255,.3);
}

.btn-course-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(16,185,129,.3);
}

.btn-course-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16,185,129,.4);
}

.btn-course-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-course-outline:hover {
  background: var(--primary);
  color: white;
}

/* Course Detail Page */
.course-detail {
  padding: 80px 0;
  background: var(--bg);
}

.course-header {
  text-align: center;
  margin-bottom: 60px;
}

.course-header h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.course-description {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 40px;
}

.course-description h2 {
  margin-bottom: 25px;
  color: var(--text);
  font-size: 1.8em;
}

.course-enroll {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: sticky;
  top: 100px;
  backdrop-filter: blur(10px);
}

.course-enroll h3 {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 1.5em;
}

.course-enroll p {
  margin-bottom: 25px;
  color: var(--muted);
}

.course-enroll .course-price {
  font-size: 2.5em;
  margin-bottom: 25px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .course-detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .course-enroll {
    position: static;
  }
  
  .course-header h1 {
    font-size: 2em;
  }
  
  .course-actions {
    flex-direction: column;
  }
}
.instructor-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center;
  background:
    radial-gradient(300px 100px at 20% 0%, rgba(96,165,250,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 18px; position: relative;
  animation: float 6s ease-in-out infinite;
}
.instructor-photo {
  width: 140px; height: 140px; border-radius: 50%;
  background:
    radial-gradient(80px 60px at 50% 40%, rgba(16,185,129,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  animation: kenburns 14s ease-in-out infinite;
}
.instructor-info h3 { margin: 0 0 8px; font-size: 22px }
.instructor-info p { margin: 0 0 10px; color: var(--muted) }
.instructor-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px }
.instructor-actions { margin-top: 12px }
.audience-list { list-style: none; padding: 0; margin: 0 }
.audience-list li { margin: 8px 0; position: relative; padding-right: 22px }
.audience-list li::before { content: "✔"; position: absolute; right: 0; color: var(--accent) }
.cta-inner { background: rgba(2,6,23,.4); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 18px }
.pay-card {
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
.pay-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(16,185,129,.35), rgba(96,165,250,.35), rgba(16,185,129,.35));
  filter: blur(20px); opacity: .35; animation: waveMove 10s ease-in-out infinite;
}
.card-fields { max-height: 0; opacity: 0; pointer-events: none; transition: max-height .35s ease, opacity .35s ease }
.card-fields.open { max-height: 200px; opacity: 1; pointer-events: auto }
.enroll-form input, .enroll-form select, .enroll-form textarea { transition: box-shadow .25s ease, border-color .25s ease }
.enroll-form input:focus, .enroll-form select:focus, .enroll-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(96,165,250,.3); border-color: rgba(96,165,250,.6);
}
.enroll-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.enroll-form .form-row { display: flex; flex-direction: column }
.enroll-form label { font-weight: 700; margin-bottom: 6px }
.enroll-form input, .enroll-form select, .enroll-form textarea {
  background: #0b1226; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text);
  padding: 10px 12px; outline: none;
}
.enroll-form textarea { grid-column: span 2 }
.form-status { margin-top: 8px; color: var(--muted) }
.site-footer { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.06) }
.footer-inner { 
    display: flex; 
    flex-direction: column;
    gap: 15px;
    text-align: center;
    color: var(--muted);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-inner {
        gap: 10px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-contact span {
        font-size: 14px;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .footer-social a {
        font-size: 14px;
        padding: 8px 12px;
        background: rgba(255,255,255,.05);
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .footer-social a:hover {
        background: rgba(16,185,129,.2);
    }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple .6s ease-out; background: rgba(255,255,255,.35); pointer-events: none }
@keyframes float {
  0% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
  100% { transform: translateY(0) }
}
@keyframes logoPulse {
  0% { transform: scale(1) }
  50% { transform: scale(1.04) }
  100% { transform: scale(1) }
}
@keyframes logoSpin {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
@keyframes gradientShift {
  0% { background-position: 0% 0% }
  50% { background-position: 100% 0% }
  100% { background-position: 0% 0% }
}
@keyframes barShift {
  0% { background-position: 0% 0% }
  100% { background-position: 200% 0% }
}
@keyframes waveMove {
  0% { transform: translateX(0) }
  50% { transform: translateX(-3%) }
  100% { transform: translateX(0) }
}
@keyframes shine {
  0% { background-position: 0% 0% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 0% }
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 rgba(16,185,129,0.0) }
  50% { box-shadow: 0 0 18px rgba(16,185,129,0.45) }
  100% { box-shadow: 0 0 0 rgba(16,185,129,0.0) }
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0,0) }
  50% { transform: scale(1.06) translate(-2px,-2px) }
  100% { transform: scale(1) translate(0,0) }
}
@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(17,24,39,0.98);
    padding: 80px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  
  .nav.open {
    display: block;
    transform: translateY(0);
  }
  
  .nav a {
    display: block;
    margin: 15px 0;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .nav a:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(10px);
  }
  
  .nav-toggle {
    display: inline-block;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .instructor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .enroll-form {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .courses-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    padding: 0 10px;
  }
  .hero-content h1 { font-size: clamp(24px, 8vw, 32px); }
  .hero-content p { font-size: 16px; }
  .course-card { 
    margin: 0 auto;
    background: var(--card);
    border: 2px solid rgba(255,255,255,.15);
    min-height: 400px;
    max-width: 100%;
    width: 100%;
  }
  .course-actions { flex-direction: column; gap: 8px; }
  .btn-course { width: 100%; justify-content: center; }
  .container { padding: 0 15px; }
  .section { padding: 40px 0; }
  
  /* إصلاح الكروت المكررة */
  .course-card.reveal {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 30px; }
  .hero-content h1 { font-size: 28px; line-height: 1.1; }
  .course-content { padding: 20px; }
  .course-card {
    background: var(--card);
    border: 2px solid rgba(16,185,129,.3);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .course-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .course-duration, .course-level { font-size: 12px; padding: 4px 8px; }
  .course-price { font-size: 1.5em; }
  .btn-course { padding: 12px 16px; font-size: 13px; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0 }
}
/* Mobile Navigation Toggle */
.nav-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Menu Improvements */
@media (max-width: 900px) {
    .nav {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav.open {
        transform: translateY(0);
    }
    
    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s ease;
    }
    
    .nav a:hover {
        background: rgba(255,255,255,0.05);
        padding-left: 10px;
    }
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
    .btn, .btn-course {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .course-card {
        touch-action: manipulation;
    }
    
    .course-card:hover {
        transform: none;
    }
    
    .course-card:active {
        transform: scale(0.98);
    }
}

/* Improved scrollbars for mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
}

/* Loading states for mobile */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Testimonials Section */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
    border-color: var(--primary);
}

.testimonial-content {
    margin-bottom: 20px;
}

.stars {
    font-size: 16px;
    margin-bottom: 10px;
}

.testimonial-content p {
    color: var(--text);
    font-style: italic;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.author-info h4 {
    margin: 0 0 3px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.author-info span {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        max-width: 100%;
        min-width: auto;
    }
}