html, body { overflow-x: hidden !important; max-width: 100vw; width: 100%; }
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-cyan: #06B6D4;
  --primary-green: #22C55E;
  --primary-blue: #0EA5E9;
  --primary-lime: #84CC16;
  --bg-color: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.5);
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --primary-gradient: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background-color: var(--bg-color); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; position: relative; }

/* Loading Screen */
#loader-wrapper {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-color); z-index: 9999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#loader-wrapper.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-size: 3rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulse 2s infinite; }

/* Scroll Progress */
#scroll-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--primary-gradient); width: 0%; z-index: 1001; transition: width 0.1s; }

/* Back to Top */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--card-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--card-border); box-shadow: var(--glass-shadow);
  display: flex; justify-content: center; align-items: center; font-size: 24px;
  color: var(--primary-cyan); cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-gradient); color: white; }

/* Background Shapes */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: blobAnim 20s infinite alternate; }
.shape-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: rgba(6, 182, 212, 0.3); }
.shape-2 { bottom: -10%; right: -10%; width: 700px; height: 700px; background: rgba(34, 197, 94, 0.2); }
.shape-3 { top: 40%; left: 60%; width: 500px; height: 500px; background: rgba(14, 165, 233, 0.25); animation-delay: 5s; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; } .mt-4 { margin-top: 2.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 30px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); position: relative; overflow: hidden; z-index: 1; font-size: 1.05rem; }
.btn-primary { background: var(--btn-gradient); color: white; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, #22C55E, #06B6D4); z-index: -1; transition: var(--transition); opacity: 0; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-outline { background: var(--card-bg); backdrop-filter: blur(5px); border: 2px solid #06B6D4; color: #06B6D4; }
.btn-outline:hover { background: #06B6D4; color: white; transform: translateY(-3px); }

/* Glassmorphism Cards */
.glass-card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--border-radius); padding: 2.5rem; box-shadow: var(--glass-shadow); transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border-color: rgba(6, 182, 212, 0.4); }

/* Layout */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
section { padding: 100px 0; }
section { padding-top: 100px; padding-bottom: 100px; position: relative; }

/* Header & Nav */
header { 
  position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0; z-index: 1000; transition: var(--transition);
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
header.scrolled { padding: 10px 0; background: rgba(255, 255, 255, 0.95); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 40px; }
.nav-links li a { font-weight: 600; color: #1e293b; font-size: 1.05rem; font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-cta { font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links li a:hover, .nav-links li a.active { color: #06B6D4; }
.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-primary); }

/* Footer */
footer { background: #0A0F1C; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 2fr; gap: 50px; margin-bottom: 50px; }
.footer-col h4 { margin-bottom: 25px; font-size: 1.3rem; color: #fff; }
.footer-col p { color: #94A3B8 !important; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94A3B8; }
.footer-col ul li a:hover { color: #06B6D4; padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #94A3B8; font-size: 1rem; }
footer .logo img { filter: none !important; mix-blend-mode: normal !important; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; transition: var(--transition); }
.social-icons a:hover { background: var(--primary-gradient); border-color: transparent; color: white; transform: translateY(-4px); }

/* Responsive */
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 992px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .container { padding: 0 20px; }
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* No Logo Filters */
/* Course Card UI Upgrades */
.course-img-wrapper { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 20px; }
.course-tag { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.9); color: var(--text-primary); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.course-link { display: inline-flex; align-items: center; gap: 8px; color: #06B6D4; font-weight: 600; text-decoration: none; transition: var(--transition); }
.course-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.3s; }
.course-link:hover svg { transform: translateX(5px); }
.course-card:hover .course-img { transform: scale(1.05); }
.course-img { transition: transform 0.5s ease; }

@media (max-width: 768px) {
  body { font-size: 1.15rem; }
  p, li, a { font-size: 1.15rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  body { font-size: 1.2rem; }
  p, li, a { font-size: 1.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
}
