:root {
  --primary-color: #5b58ff;
  --primary-hover: #4542d9;
  --secondary-color: #0b1120;
  --text-light: #ffffff;
  --text-gray: #a1a1aa;
  --bg-dark: #040814;
  --bg-card: #111827;
  --gradient-btn: linear-gradient(90deg, #6c5ce7, #a29bfe);
  --gradient-course-1: linear-gradient(135deg, #4c1d95, #6d28d9);
  --gradient-course-2: linear-gradient(135deg, #1e3a8a, #2563eb);
  --gradient-course-3: linear-gradient(135deg, #064e3b, #059669);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(90deg, #a29bfe, #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-primary-gradient {
  background: var(--gradient-btn);
  color: white;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
  color: white;
}
.btn-outline-light-custom {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}
.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Navbar */
.navbar {
  background-color: var(--bg-dark);
  padding: 1rem 0;
}
.navbar-brand {
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
}
.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-link:hover {
  color: white !important;
}

/* Hero Section */
.hero-section {
  background: url('../images/bannermain.png') no-repeat center top;
  background-size: cover;
  color: white;
  padding: 120px 0 160px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(4,8,20,0.95) 0%, rgba(4,8,20,0.6) 50%, rgba(4,8,20,0.1) 100%);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-image-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.hero-image-wrapper img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
}

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

/* Features Bar */
.features-bar {
  background: var(--secondary-color);
  border-radius: 50px;
  padding: 20px 40px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.feature-item {
  display: flex;
  align-items: center;
  color: white;
  gap: 15px;
}
.feature-icon {
  font-size: 2rem;
  color: #a29bfe;
}
.feature-text h5 {
  font-size: 1rem;
  margin: 0;
}
.feature-text p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-gray);
}

/* Course Cards */
.course-card {
  border-radius: 20px;
  color: white;
  padding: 30px;
  height: 100%;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}
.course-card:hover {
  transform: translateY(-10px);
}
.card-purple { background: var(--gradient-course-1); }
.card-blue { background: var(--gradient-course-2); }
.card-green { background: var(--gradient-course-3); }

.course-number {
  background: white;
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.course-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.course-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.course-list li::before {
  content: '•';
  margin-right: 10px;
}
.course-image {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  opacity: 0.8;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid #f1f5f9;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.product-img {
  width: calc(100% + 40px);
  height: 200px;
  object-fit: contain;
  margin-top: -20px;
  margin-left: -20px;
  margin-bottom: 20px;
  mix-blend-mode: multiply;
}
.product-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Statistics Banner */
.stats-banner {
  background: radial-gradient(circle, #1e3a8a 0%, var(--bg-dark) 100%);
  color: white;
  padding: 60px 0;
  border-radius: 20px;
  margin: 60px 0;
}
.stat-item h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* News Cards */
.news-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.news-img {
  height: 200px;
  object-fit: cover;
}
.news-date {
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* Partners */
.partner-logo {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
.partner-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.partner-microsoft { color: #00a4ef; }
.partner-google { color: #4285F4; }
.partner-nvidia { color: #76B900; }
.partner-openai { color: #10A37F; }
.partner-aws { color: #FF9900; }
.partner-meta { color: #0668E1; }
.partner-huawei { color: #CF0A2C; }
.partner-zte { color: #005CB9; }

/* Footer */
.footer {
  background-color: #0d1326;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 20px;
}
.footer h5, .footer h6 {
  color: white;
  margin-bottom: 20px;
}
.footer p, .footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}
.footer a.text-muted:hover {
  color: white !important;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  margin-right: 10px;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}
.social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}
.social-fb { background-color: #1877f2; }
.social-yt { background-color: #ff0000; }
.social-tt { background-color: #ffffff; color: #000000 !important; }
.social-em { background-color: #0068ff; }
