/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevent drag */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    /* Prevent right-click context menu */
    -webkit-touch-callout: none;

    /* Disable highlighting */
    -webkit-tap-highlight-color: transparent;
}

body {
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background-color: var(--pmp-gray-50);

}

.container {
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles with Dynamic Effects */
#header {
  position: fixed;
  top: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(47, 128, 237, 0.1);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(47, 128, 237, 0.15);
  transform: translateY(0);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2F80ED;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* padding: 0.5rem 0; */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #2F80ED;
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #2F80ED;
  transition: transform 0.3s ease;
}

.mobile-menu:hover {
  transform: scale(1.1);
}

/* Dynamic Button Styles */
.cta-button {
  background: linear-gradient(135deg, #2F80ED, #1565C0, #0D47A1);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(47, 128, 237, 0.3);
  position: relative;
  overflow: hidden;
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(47, 128, 237, 0.3); }
  50% { box-shadow: 0 12px 35px rgba(47, 128, 237, 0.4); }
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  background-position: 100% 0;
  box-shadow: 0 15px 40px rgba(47, 128, 237, 0.4);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button.white {
  background: white;
  color: #2F80ED;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

/* Hero Section with Parallax Effect */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 50%, rgba(41, 128, 185, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 4px 8px rgba(0,0,0,0.5); }
  100% { text-shadow: 0 4px 20px rgba(255,255,255,0.3); }
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #ecf0f1;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 400;
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Dynamic Hero Images */
.hero-image {
  position: relative;
  height: 400px;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (min-width: 796px) {
  .hero-img {
    position: absolute; 
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }  
}
@media (max-width: 796px) {
  .hero-img {
    height: 150px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }  
}

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

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

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 35px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Animated Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  border-radius: 2px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  transition: width 0.8s ease;
}

.section-title.animate h2::after {
  width: 80px;
}

.section-title p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Dynamic Features Section */
.features {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8faff 0%, #e8f4f8 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(47,128,237,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(47,128,237,0.1)"/></svg>');
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 3rem 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(47, 128, 237, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2F80ED, #1565C0, #0D47A1);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card.animate {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(var(--delay, 0) * 0.2s);
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(47, 128, 237, 0.2);
}

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

.feature-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
  animation: iconPulse 3s ease-in-out infinite;
}

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

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #1565C0, #0D47A1);
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.3;
}

.feature-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: #2F80ED;
}

.feature-card p {
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Study Plan Section with Timeline */
.study-plan {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.study-plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M0,100 Q50,50 100,100 T200,100" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
  animation: waveMove 10s ease-in-out infinite;
}

@keyframes waveMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
}

.plan-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.plan-img {
  position: absolute;
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.plan-img-main {
  width: 500px !important;
  height: 500px !important;
  top: 0;
  left: 0;
  z-index: 2;
  animation: planFloat1 8s ease-in-out infinite;
}

.plan-img-bg {
  width: 65%;
  height: 75%;
  bottom: 0;
  right: 0;
  z-index: 1;
  opacity: 0.8;
  animation: planFloat2 6s ease-in-out infinite;
}

.plan-img,
.plan-img-main,
.plan-img-bg {
  filter: none !important;
  backdrop-filter: none !important; 
  opacity: 1 !important; 
  z-index: 10 !important; 
}

.design-half::before {
  opacity: 0 !important; 
}

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

@keyframes planFloat2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(1deg); }
}

.plan-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.plan-content > p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0.95;
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.plan-step.animate {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--delay, 0) * 0.3s);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  backdrop-filter: blur(20px);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: stepPulse 4s ease-in-out infinite;
}

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

.plan-step:hover .step-number {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.step-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-content p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Practice Exams with 3D Cards */
.practice-exams {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8faff 0%, #e8f4f8 100%);
  position: relative;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  perspective: 1000px;
}

.exam-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(47, 128, 237, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(47, 128, 237, 0.1);
  transform: translateY(20px);
  opacity: 0;
  position: relative;
}

.exam-card.animate {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(var(--delay, 0) * 0.2s);
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.exam-card:hover::before {
  left: 100%;
}

.exam-card:hover {
  transform: translateY(-20px) rotateY(5deg) rotateX(5deg);
  box-shadow: 0 35px 70px rgba(47, 128, 237, 0.2);
}

.exam-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.exam-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.exam-card:hover .exam-image img {
  transform: scale(1.1);
}

.exam-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(47, 128, 237, 0.3);
  animation: tagBounce 3s ease-in-out infinite;
}

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

.exam-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.exam-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.exam-card:hover .exam-content h3 {
  color: #2F80ED;
}

.exam-content p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.exam-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exam-questions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.exam-questions i {
  color: #2F80ED;
  font-size: 1.2rem;
}

/* Progress Tracking with Animated Charts */
.progress-tracking {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.progress-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.progress-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.progress-content > p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0.95;
}

.progress-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  transform: translateX(-30px);
  opacity: 0;
}

.stat-item.animate {
  transform: translateX(0);
  opacity: 1;
  transition-delay: calc(var(--delay, 0) * 0.3s);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-percent {
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B);
  border-radius: 6px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.progress-image {
  position: relative;
  height: 600px;
}

.progress-img {
  position: absolute;
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.progress-img-main {
  width: 75%;
  height: 85%;
  top: 0;
  right: 0;
  z-index: 2;
  animation: progressFloat1 7s ease-in-out infinite;
}

.progress-img-bg {
  width: 65%;
  height: 75%;
  bottom: 0;
  left: 0;
  z-index: 1;
  opacity: 0.8;
  animation: progressFloat2 9s ease-in-out infinite;
}

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

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

/* Testimonials with Carousel Effect */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8faff 0%, #e8f4f8 100%);
  position: relative;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(47, 128, 237, 0.15);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 8rem;
  color: rgba(47, 128, 237, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(47, 128, 237, 0.2);
}

.testimonial-content {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 2.5rem;
  font-style: italic;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: authorSlide 1s ease-out 0.5s both;
}

@keyframes authorSlide {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid rgba(47, 128, 237, 0.2);
  transition: all 0.3s ease;
}

.author-avatar:hover {
  border-color: #2F80ED;
  transform: scale(1.1);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.author-info p {
  color: #2F80ED;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Dynamic CTA Section */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 50%, rgba(41, 128, 185, 0.8) 100%);
 
}

.cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  animation: ctaTitle 1s ease-out;
  color: #ffffff;
}

@keyframes ctaTitle {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cta p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  animation: ctaText 1s ease-out 0.2s both;
  color: #ecf0f1;
  font-weight: 400;
}

@keyframes ctaText {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Modern Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2F80ED, #1565C0, #0D47A1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-links{
  margin: 0 auto;
}

/* RTL Support for Footer */
[dir="rtl"] .footer-links {
  text-align: right;
}

[dir="ltr"] .footer-links {
  text-align: left;
}

.footer-column h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2F80ED;
  position: relative;
  text-align: start;
  padding: 0px 28px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 30px;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
}
@media (min-width: 768px) {
  [dir="ltr"] .footer-column h3::after {
    right: auto;
    bottom: -5px;
    left: 32px;
  }
  /* RTL Support for heading underlines */
  [dir="rtl"] .footer-column h3::after {
    left: auto;
    bottom: -5px;
    right: 32px;
  } 
}
@media (max-width: 768px) {
  [dir="rtl"] .footer-column h3::after {
    right: auto;
    bottom: -5px;
    left: 0;
  }
  /* RTL Support for heading underlines */
  [dir="ltr"] .footer-column h3::after {
    left: auto;
    bottom: -5px;
    right: 0;
  }
  
  
}
.footer-column p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #2F80ED;
  transform: translateX(-5px);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #2F80ED;
  padding-left: 20px;
}

.footer-links a:hover::before {
  transform: translateX(0);
  opacity: 1;
}

/* RTL Support for footer links */
[dir="rtl"] .footer-links a {
  padding-left: 0;
  padding-right: 15px;
}

[dir="rtl"] .footer-links a::before {
  left: auto;
  right: 0;
  content: '←';
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 20px;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #333, #555);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a i {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 1rem;
}

.footer-bottom a {
  color: #2F80ED;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #1565C0;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .container {
      padding: 0 15px;
  }
  
  .hero-content,
  .plan-container,
  .progress-container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  
  .hero-text h1 {
      font-size: 3rem;
  }
  
  .section-title h2 {
      font-size: 2.5rem;
  }
  
  .plan-content h2,
  .progress-content h2,
  .cta h2 {
      font-size: 2.5rem;
  }
  
  .features-grid,
  .exams-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
  }
  
  /* Practice Exams Tablet */
  .practice-exams {
      padding: 80px 0;
  }
  
  .exam-card {
      max-width: 400px;
      margin: 0 auto;
  }
  
  .exam-image {
      height: 200px;
  }
  
  .exam-content {
      padding: 1.8rem;
  }
  
  .exam-content h3 {
      font-size: 1.4rem;
  }
  
  .exam-content p {
      font-size: 1rem;
  }
}

@media (max-width: 768px) {

  .container {
    width: 100% !important; /* Override 90% to ensure full width */
    padding: 0 15px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100vw; /* Use viewport width to prevent overflow */
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-x: hidden; /* Prevent horizontal overflow */
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    /* transition-delay: calc(var(--i, 0) * 0.05s); Faster item animation */
  }

  .nav-links.active li {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .mobile-menu {
    display: block;
    z-index: 1001;
  }

  .header-actions .cta-button {
    display: none;
  }
  
  /* Hero Mobile */
  .hero {
      padding: 120px 0 80px;
      text-align: center;
      background-attachment: scroll;
  }
  
  .hero-text h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
  }
  
  .hero-text p {
      font-size: 1.1rem;
      margin-bottom: 2rem;
  }
  
  .hero-image {
      margin-top: 2rem;
  }
  

  
  /* Sections Mobile */
  .features,
  .practice-exams,
  .testimonials {
      padding: 80px 0;
  }
  
  .study-plan,
  .progress-tracking,
  .cta {
      padding: 80px 0;
  }
  
  .section-title {
      margin-bottom: 3rem;
  }
  
  .section-title h2 {
      font-size: 2rem;
  }
  
  .features-grid,
  .exams-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 0 10px;
  }
  
  .feature-card,
  .exam-card {
      margin: 0;
      max-width: 100%;
  }
  
  /* Enhanced Practice Exams Mobile */
  .practice-exams {
      padding: 60px 0;
  }
  
  .exam-card {
      border-radius: 20px;
      overflow: hidden;
  }
  
  .exam-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 25px 50px rgba(47, 128, 237, 0.15);
  }
  
  .exam-image {
      height: 180px;
  }
  
  .exam-content {
      padding: 1.5rem;
  }
  
  .exam-content h3 {
      font-size: 1.3rem;
      margin-bottom: 0.8rem;
      line-height: 1.3;
  }
  
  .exam-content p {
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
      line-height: 1.5;
  }
  

  
  .plan-content h2,
  .progress-content h2 {
      font-size: 2rem;
  }
  
  .plan-steps {
      gap: 1.5rem;
  }
  
  .plan-step {
      flex-direction: row;
      text-align: left;
  }
  
  .step-number {
      width: 50px;
      height: 50px;
  }
  
  /* Exam Cards Mobile */
  .exam-meta {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
  }
  
  .exam-meta .cta-button {
      width: 100%;
      justify-content: center;
  }
  
  /* Progress Stats Mobile */
  .progress-stats {
      gap: 1.5rem;
  }
  
  .stat-item {
      padding: 1.5rem;
  }
  
  /* Testimonials Mobile */
  .testimonial-card {
      padding: 2.5rem 2rem;
      margin: 0 10px;
  }
  
  .testimonial-content {
      font-size: 1.1rem;
  }
  
  .testimonial-author {
      flex-direction: column;
      gap: 1rem;
  }
  
  .author-info {
      text-align: center;
  }
  
  /* CTA Mobile */
  .cta h2 {
      font-size: 2.2rem;
  }
  
  .cta p {
      font-size: 1.1rem;
  }
  
  /* Footer Mobile */
  .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }
  
  .footer-column h3::after {
      left: 50%;
      transform: translateX(-50%);
  }
  
  .footer-social {
      justify-content: center;
  }
}

/* Extra Small Devices (320px and below) */
@media (max-width: 320px) {
  .container {
      padding: 0 8px;
  }
  
  /* Practice Exams Ultra Small */
  .practice-exams {
      padding: 40px 0;
  }
  
  .section-title h2 {
      font-size: 1.5rem;
      line-height: 1.2;
  }
  
  .exams-grid {
      gap: 0.8rem;
      padding: 0 2px;
  }
  
  .exam-card {
      border-radius: 12px;
  }
  
  .exam-image {
      height: 140px;
  }
  
  .exam-content {
      padding: 1rem;
  }
  
  .exam-content h3 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
  }
  
  .exam-content p {
      font-size: 0.85rem;
      margin-bottom: 1rem;
      line-height: 1.3;
  }
  
  .exam-meta .cta-button {
      padding: 8px 16px;
      font-size: 0.85rem;
      border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 10px;
  }
  
  /* Logo Mobile */
  .logo {
      font-size: 1.4rem;
  }
  
  .logo i {
      font-size: 1.8rem;
  }
  
  /* Hero Extra Small */
  .hero-text h1 {
      font-size: 2rem;
      line-height: 1.2;
  }
  
  .hero-text p {
      font-size: 1rem;
  }
  
  .cta-button {
      padding: 12px 24px;
      font-size: 0.95rem;
  }
  
  /* Section Titles */
  .section-title h2 {
      font-size: 1.8rem;
  }
  
  .section-title p {
      font-size: 1rem;
  }
  
  /* Feature Cards */
  .feature-card {
      padding: 2rem 1.5rem;
  }
  
  .feature-icon {
      width: 80px;
      height: 80px;
      font-size: 2rem;
  }
  
  .feature-card h3 {
      font-size: 1.3rem;
  }
  
  /* Plan Content */
  .plan-content h2,
  .progress-content h2 {
      font-size: 1.8rem;
  }
  
  .plan-content > p,
  .progress-content > p {
      font-size: 1rem;
  }
  
  /* Exam Cards Extra Small Mobile */
  .practice-exams {
      padding: 50px 0;
  }
  
  .exams-grid {
      gap: 1rem;
      padding: 0 5px;
  }
  
  .exam-card {
      border-radius: 15px;
      box-shadow: 0 10px 25px rgba(47, 128, 237, 0.08);
  }
  
  .exam-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(47, 128, 237, 0.12);
  }
  
  .exam-image {
      height: 160px;
  }
  
  .exam-image img {
      object-fit: cover;
      width: 100%;
      height: 100%;
  }
  
  .exam-content {
      padding: 1.2rem;
  }
  
  .exam-content h3 {
      font-size: 1.1rem;
      margin-bottom: 0.6rem;
      line-height: 1.2;
  }
  
  .exam-content p {
      font-size: 0.9rem;
      margin-bottom: 1.2rem;
      line-height: 1.4;
  }
  
  .exam-meta {
      flex-direction: column;
      gap: 0.8rem;
      align-items: stretch;
  }
  
  .exam-meta .cta-button {
      width: 100%;
      padding: 10px 20px;
      font-size: 0.9rem;
      justify-content: center;
      border-radius: 8px;
  }
  
  /* Testimonial */
  .testimonial-card {
      padding: 2rem 1.5rem;
  }
  
  .testimonial-content {
      font-size: 1rem;
  }
  
  .author-avatar {
      width: 60px;
      height: 60px;
  }
  
  /* CTA */
  .cta h2 {
      font-size: 1.8rem;
  }
  
  .cta p {
      font-size: 1rem;
  }
  
  /* Footer */
  footer {
      padding: 60px 0 20px;
  }
  
  .footer-column h3 {
      font-size: 1.2rem;
  }
  
  .footer-social a {
      width: 45px;
      height: 45px;
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-primary {
  color: #2F80ED !important;
}

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

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}




/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
}