@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* CSS VARIABLES / THEME */
:root {
  --bg: #000;
  --text: #fff;
  --primary: #3b82f6; 
  --primary-dark: #2563eb; 
  --primary-light: #93c5fd; 
  --nav-bg: #121217;
  --card-bg: #1a1a24;
  --border-color: #333;
  --cl-yellow: #f1c40f;
  --shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  --shadow-lg: 0 20px 40px rgba(59, 130, 246, 0.3);
  --transition: all 0.3s ease;
}

body.light {
  --bg: #e5e5c6;
  --text: #222;
  --nav-bg: #e5e5c6;
  --card-bg: #ffffff;
  --border-color: #ddd;
  --primary: #1e64d4;
  --primary-dark: #154d9e;
  --primary-light: #6fa3f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* GLOBAL RESET & BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* to Prevent header from covering content */
}

body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  padding-top: 80px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1rem 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--nav-bg);
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow);
  transition: background-color 0.3s ease;
}

.logo {
  font-size: 3rem;
  text-decoration: none;
  font-weight: 900;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: 0.3s ease;
  border-radius: 50%;
}

.logo img:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .logo img {
    height: 35px;
  }
}

#theme-toggle {
  font-size: 2.5rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin: 0 2rem;
}

#theme-toggle:hover {
  color: var(--primary);
  transform: rotate(20deg) scale(1.1);
}

/* Desktop Navigation */
.navbar ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3rem;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #000 !important;
  padding: 1rem 2rem !important;
  border-radius: 3rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu Button */
#menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

#menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--transition);
}

#menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#menu-btn.open span:nth-child(2) {
  opacity: 0;
}

#menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* MOBILE RESPONSIVE NAV*/
@media (max-width: 990px) {
  .header {
    padding: 1rem 5%;
  }

  #menu-btn {
    display: flex;
  }

  #theme-toggle {
    margin: 0 1rem;
  }

  .navbar {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 61px);
    background: var(--nav-bg);
    padding: 2rem;
    transition: 0.4s ease;
    border-left: 2px solid var(--primary);
    border-bottom: 1px dashed var(--primary);
    box-shadow: -5px 0 30px var(--shadow);
  }

  .navbar.active {
    right: 0;
  }

  .navbar ul {
    flex-direction: column;
    gap: 2rem;
    align-items: start;
  }

  .navbar li {
    width: 100%;
  }

  .navbar a {
    display: block;
    padding: 1rem;
    font-size: 1.8rem;
  }

  .navbar a::after {
    bottom: 0;
  }

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*SECTION HEADERS*/
section {
  padding: 8rem 10%;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--primary);
  opacity: 0.2;
  z-index: -1;
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

/* HERO SECTION */
.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

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

.hero-text h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-description {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  margin: 4rem 0;
}

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

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 1.4rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  transition: all 1s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover,
.btn-outline:active {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
  transition: all 1s ease;
}
.btn-outline:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

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

.hero-logo {
  width: 100%;
  max-width: 350px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary);
  transition: var(--transition);
}

.hero-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 50px var(--primary);
}

.social-handle {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

/* COURSES SECTION*/
.courses-section {
  background: var(--nav-bg);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.course-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary);
  transition: var(--transition);
}

.course-card:hover,
.course-card:focus-within {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.course-card:hover::before,
.course-card:focus::before {
  height: 100%;
}

.course-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.course-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.credit-hours {
  font-size: 1.4rem;
  color: var(--text);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(22, 224, 22, 0.1);
  border-radius: 2rem;
}

.course-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.course-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-meta i {
  color: var(--primary);
}

.course-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.course-link:hover {
  gap: 1.5rem;
}

/* RESOURCES SECTION */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.resource-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.resource-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.resource-card i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.resource-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.resource-card p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.resource-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.resource-link:hover {
  gap: 1rem;
}

/* Video Showcase */
.video-showcase {
  margin-top: 5rem;
}

.video-showcase h3 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.video-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.video-card p {
  padding: 1.5rem;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 500;
}

/* ABOUT SECTION */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  justify-content: center;
}

.founder-card,
.mission-card {
  font-size: 1.3rem;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.founder-card:hover,
.mission-card:hover {
  border-color: var(--primary);
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.founder-card h3,
.mission-card h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.founder-card h3 i,
.mission-card h3 i {
  margin-right: 1rem;
}

.stats-mini {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-mini-item {
  text-align: center;
  flex: 1;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.stat-mini-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-mini-label {
  font-size: 1.2rem;
  opacity: 0.8;
}

.about-image {
  position: sticky;
  top: 100px;
  contain: layout paint;
}
.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;

  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px var(--primary);
}

/* REGISTRATION SECTION */
.registration-section {
  background: var(--bg);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.5rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  opacity: 0.7;
}

.radio-group {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 1rem 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

textarea {
  resize: vertical;
}

.button-group {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.success-message {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 2rem;
}
/* CONTACT / SOCIAL SECTION */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  transform: translateX(-100%);
  transition: var(--transition);
}

.social-card:hover::before {
  transform: translateX(100%);
}

.social-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.social-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.social-card span {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.social-card small {
  font-size: 1.2rem;
  opacity: 0.9;
}

.social-card.youtube {
  background: #ff0000;
}
.social-card.telegram {
  background: #0088cc;
}
.social-card.tiktok {
  background: #000000;
  position: relative;
}
.social-card.tiktok::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ee1d52, #69c9d0);
  opacity: 0.5;
  z-index: 0;
}
.social-card.tiktok i,
.social-card.tiktok span,
.social-card.tiktok small {
  position: relative;
  z-index: 1;
}
.social-card.instagram {
  background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}

.quick-contact {
  text-align: center;
  margin-top: 5rem;
}

.quick-contact h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 5rem;
  font-size: 1.6rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary);
}

/* FOOTER*/
footer {
  background: var(--nav-bg);
  padding: 3rem 10%;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

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

.footer-logo h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 1.4rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  text-align: center;
  font-size: 1.3rem;
  opacity: 0.7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 990px) {
  html {
    font-size: 55%;
  }

  section {
    padding: 6rem 5%;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    position: static;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button-group {
    flex-direction: column;
  }

  .stats-mini {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  html {
    font-size: 50%;
  }

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

  .courses-grid,
  .resources-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

  .stats-mini {
    flex-direction: column;
  }

  .contact-links {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 5rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* SELECTION COLOR */
::selection {
  background: var(--primary);
  color: #000;
}
