/* ---------------- Root Variables ---------------- */
:root {
  --bg: #0b0c10;           /* Dark black background */
  --text: #e0e0e0;         /* Light gray text */
  --accent1: #1f8fff;      /* Electric blue */
  --accent2: #ff4d4d;      /* Neon red */
  --muted: rgba(224,224,224,0.6); /* Subtext / descriptions */
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(31,143,255,0.1);
  --transition: 0.3s ease;
}

/* ---------------- Global ---------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all var(--transition);
}

/* === Body with background image === */
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);             /* fallback color */
  background-image: url('background.jpg'); /* main background image */
  background-size: cover;                   /* cover whole page */
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;             /* stays fixed while scrolling */
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Optional dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 12, 16, 0.6); /* semi-transparent overlay */
  z-index: -1;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---------------- Floating Elements ---------------- */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element.el-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element.el-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element.el-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,15,20,0.95);
  backdrop-filter: blur(8px);
  padding: 16px 32px;
  border-bottom: 1px solid rgba(31,143,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Brand and logo */
.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 600; 
}

.logo-mark {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(100deg,var(--accent1),var(--accent2));
  border-radius: var(--radius);
  font-weight: 800; 
  font-size: 20px; 
  color: #fff;
  box-shadow: 0 0 10px var(--accent1), 0 0 32px var(--accent2);
}

/* Navigation menu */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.nav a {
  margin: 0 12px;
  padding: 8px 14px;
  border-radius: var(--radius);
  position: relative;
  font-weight: 500;
  color: var(--text);
}

.nav a::before {
  content: '';
  position: absolute; 
  top:0; left:0; 
  width:100%; height:100%;
  background: linear-gradient(120deg,var(--accent1),var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.nav a:hover::before { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: #000; }

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ---------------- Enhanced Hero Section ---------------- */
.hero {
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(31, 143, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 77, 77, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Optional hero background video */
.hero video.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover hero area */
  z-index: -2;
}

.hero-badge {
  display: inline-block;
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 143, 255, 0.3);
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.title-line {
  display: block;
  color: var(--text);
}

.title-highlight {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Orbitron', sans-serif;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent1);
  border-bottom: 2px solid var(--accent1);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

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

/* ---------------- Sections ---------------- */
.section {
  padding: 80px 20px;
  max-width: var(--container);
  margin: 0 auto;
  background-color: rgba(11,12,16,0.7); /* semi-transparent over bg image */
  border-radius: var(--radius);
}

/* ---------------- Modern Header ---------------- */
/* ---------------- Modern Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(31, 143, 255, 0.2);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 12, 16, 0.98);
  border-bottom-color: rgba(31, 143, 255, 0.3);
  box-shadow: 0 4px 30px rgba(31, 143, 255, 0.1);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Enhanced Brand Logo */
.brand {
  display: flex;
  align-items: center;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 16px;
  overflow: hidden;
  min-width: 100px;
  box-shadow: 0 4px 20px rgba(31, 143, 255, 0.3);
  transition: all 0.2s ease;
}

.logo-mark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 143, 255, 0.2);
}

.logo-main {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #000;
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  opacity: 0.8;
}

.logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  opacity: 0.7;
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border: 2px solid var(--accent1);
  border-radius: 20px;
  opacity: 0;
  animation: logoRing 2s ease-out infinite;
}

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

@keyframes logoRing {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    border-width: 1px;
  }
  100% {
    width: 140%;
    height: 140%;
    opacity: 0;
    border-width: 0;
  }
}

/* Modern Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(31, 143, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 25px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(31, 143, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(31, 143, 255, 0.1);
}

.nav-link.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(31, 143, 255, 0.2), rgba(255, 77, 77, 0.1));
  border: 1px solid rgba(31, 143, 255, 0.3);
}

.nav-link i {
  font-size: 16px;
  width: 16px;
  text-align: center;
}

.cart-badge {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 143, 255, 0.4);
}

.cta-button i {
  font-size: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  cursor: pointer;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(31, 143, 255, 0.1);
  border-color: rgba(31, 143, 255, 0.3);
}

.mobile-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 143, 255, 0.4);
}

/* Responsive Header */
@media (max-width: 1024px) {
  .nav-links {
    gap: 4px;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
    padding: 0 16px;
  }
  
  .nav,
  .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .logo-mark {
    min-width: 80px;
    padding: 10px 12px;
  }
  
  .logo-main {
    font-size: 20px;
  }
  
  .logo-subtitle {
    font-size: 9px;
  }
  
  .mobile-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
}

@media (max-width: 480px) {
  .logo-mark {
    min-width: 70px;
    padding: 8px 10px;
  }
  
  .logo-main {
    font-size: 18px;
  }
  
  .logo-subtitle {
    font-size: 8px;
  }
}

.section h2 {
  font-size: 40px;
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(31, 143, 255, 0.3);
}

/* ---------------- Enhanced Features Section ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 143, 255, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
  border-color: rgba(31, 143, 255, 0.3);
  box-shadow: 0 20px 40px rgba(31, 143, 255, 0.15);
}

.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
  position: relative;
}

.icon-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 50%;
  opacity: 0.1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-highlight {
  display: inline-block;
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(31, 143, 255, 0.2);
}

/* ---------------- Modern About Preview ---------------- */
/* ---------------- Modern About Preview ---------------- */
.about-preview .about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circular-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 32px rgba(31, 143, 255, 0.3);
  animation: rotateGradient 8s linear infinite;
}

@keyframes rotateGradient {
  0% {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
  }
  25% {
    background: linear-gradient(225deg, var(--accent1), var(--accent2));
  }
  50% {
    background: linear-gradient(315deg, var(--accent1), var(--accent2));
  }
  75% {
    background: linear-gradient(45deg, var(--accent1), var(--accent2));
  }
  100% {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
  }
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 4px solid var(--bg);
}

.frame-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  opacity: 0.6;
  z-index: 1;
  animation: pulseGlow 2s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.floating-tech {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tech-item {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(11, 12, 16, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(31, 143, 255, 0.3);
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.2);
  animation: float-tech 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: scale(1.1);
  border-color: var(--accent1);
  box-shadow: 0 6px 20px rgba(31, 143, 255, 0.4);
}

.tech-item i {
  font-size: 20px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-item:nth-child(1) {
  top: 10%;
  right: 15%;
  animation-delay: 0s;
}

.tech-item:nth-child(2) {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.tech-item:nth-child(3) {
  bottom: 10%;
  right: 25%;
  animation-delay: 4s;
}

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

.about-text h2 {
  text-align: left;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.skills-showcase {
  margin-bottom: 30px;
}

.skill {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s ease-in-out;
}

/* Responsive Design for Circular Frame */
@media (max-width: 980px) {
  .about-preview .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-text h2 {
    text-align: center;
  }
  
  .circular-frame {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .circular-frame {
    width: 220px;
    height: 220px;
  }
  
  .tech-item {
    width: 40px;
    height: 40px;
  }
  
  .tech-item i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .circular-frame {
    width: 200px;
    height: 200px;
  }
  
  .tech-item {
    width: 35px;
    height: 35px;
  }
  
  .tech-item i {
    font-size: 14px;
  }
}
/* ---------------- Enhanced Courses Section ---------------- */
.courses {
  position: relative;
  overflow: hidden;
}

.courses::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(31, 143, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 77, 77, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Enhanced Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Modern Course Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(31, 143, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 143, 255, 0.1), rgba(255, 77, 77, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(31, 143, 255, 0.3),
              0 0 0 1px rgba(31, 143, 255, 0.2);
  border-color: rgba(31, 143, 255, 0.3);
}

/* Course Image Container */
.card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Course Icon Overlay */
.course-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.4);
  z-index: 2;
}

/* Course Level Badge */
.course-level {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(11, 12, 16, 0.8);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--accent1);
  z-index: 2;
}

/* Card Content */
.card-content {
  padding: 25px;
  position: relative;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Course Features */
.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.course-feature {
  background: rgba(31, 143, 255, 0.1);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: var(--accent1);
  border: 1px solid rgba(31, 143, 255, 0.2);
}

/* Enhanced Button */
.btn-course {
  width: 100%;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-course::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 ease;
}

.btn-course:hover::before {
  left: 100%;
}

.btn-course:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 143, 255, 0.4);
}

/* Popular Course Highlight */
.card.popular {
  border: 2px solid var(--accent1);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.4);
}

/* ---------------- Enhanced Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.gallery-overlay p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ---------------- Testimonials ---------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 143, 255, 0.1);
}

.testimonial-content {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}

.author-info h4 {
  color: var(--text);
  margin-bottom: 4px;
}

.author-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------- Enhanced Video Section ---------------- */
.video-section .video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-content h2 {
  text-align: left;
  margin-bottom: 16px;
}

.video-content p {
  color: var(--muted);
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  border-radius: var(--radius);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
  color: #000;
  font-size: 1.5rem;
  margin-left: 4px;
}

/* ---------------- CTA Section ---------------- */
.cta-section {
  background: linear-gradient(135deg, rgba(31, 143, 255, 0.1), rgba(255, 77, 77, 0.1));
  padding: 80px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin: 80px auto;
  max-width: var(--container);
  border: 1px solid rgba(31, 143, 255, 0.2);
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  color: #000;
  box-shadow: 0 6px 20px rgba(31,143,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31,143,255,0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent1);
}

.btn-outline:hover {
  background: rgba(31, 143, 255, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ---------------- Enhanced Footer ---------------- */
.site-footer {
  background: rgba(15,15,20,0.95);
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(31,143,255,0.2);
  border-radius: var(--radius);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-text h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.footer-text p {
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.link-group a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: var(--accent1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--accent1);
  transform: translateY(-2px);
}

/* ---------------- Responsive ---------------- */

/* Tablets */
@media (max-width: 980px) {
  .hero h1 { font-size: 48px; }
  .section h2 { font-size: 32px; }
  .section { padding: 60px 16px; }
  
  .about-preview .about-container,
  .video-section .video-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav a { 
    margin: 4px 0;
    font-size: 15px;
  }

  .hero {
    padding: 100px 12px 60px;
  }

  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 20px;
  }

  .section {
    padding: 50px 12px;
  }

  .section h2 {
    font-size: 28px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .course-features {
    justify-content: center;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-img-container {
    height: 180px;
  }
  
  .course-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .btn {
    width: 100%;
    font-size: 16px;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  body {
    background-color: var(--bg);
    color: var(--text);
  }
}
