/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}



/* ================= HEADER ================= */
header {
  background: linear-gradient(to right, #1a1a1a, #0d0d0d);
  padding: 10px 20px;
  text-align: center;
  border-bottom: 3px solid #00bcd4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap:5px;
  flex-wrap: wrap;
  position: relative;
}

.header-top::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  /* animation: spin 5s linear infinite; */
  z-index: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000000;
}

header h1 {
  color: #a8adad;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
 
}

header p {
  color: #b5b5b5;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 12px;
   text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
  z-index: 1;
   animation: fadeInText 3s ease-in-out, floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ================= NAVIGATION ================= */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 5px 30px;
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);

  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: background 1.5s ease;
  
}

nav:hover {
  background: radial-gradient(circle at bottom right, #010303 0%, #2a3d3b 100%);
}


nav a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 5px 8px;
  border-radius: 6px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);
  transition: width 0.3s ease;
}

nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

nav a:hover::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 85vh;
  background: radial-gradient(circle at top, #0d0d0d 0%, #000 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  animation: spin 12s linear infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #e0e0e0;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero h2 span {
  background: radial-gradient(circle at bottom right, #010303 0%, #2a3d3b 100%);
  -webkit-background-clip: text;
  /* Safari */
  background-clip: text;
  color: #888b8b;
  ;

  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.hero h2 span:hover {
  color: transparent;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}




.hero p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 30px;
}

ul {
  display: flex;
  text-decoration: none;
  list-style: none;
  justify-content: space-around;
  align-items: center;

}

li {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 5px 8px;
  border-radius: 6px;
}

li::after {

  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);
  transition: width 0.3s ease;
}

li:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

li:hover::after {
  width: 100%;
}

.hero-btn {
  display: inline-block;
  background: radial-gradient(circle at bottom right, #010303 0%, #2a3d3b 100%);
  margin-top: 30px;
  color: #fff;
  /* better contrast for readability */
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.7s ease;
  box-shadow: 0 0 15px rgba(13, 26, 24, 0.4);
}

.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #06221f, 0 0 40px #0a1e20;
  background: conic-gradient(
    from 0deg,
    rgba(2, 22, 15, 0.705),
    rgba(0, 255, 255, 0.05),
    transparent,
    rgba(0, 255, 200, 0.1)
  );
}


/* ================= STATS ================= */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 60px 20px;
  background: radial-gradient(circle at bottom right, #2a3d3b 0%, #f9ffff 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #00ffe7, #00c8ff, #00ffe7, #00c8ff);
  background-size: 800% 800%;
  opacity: 0.15;
  animation: gradientMove 15s ease infinite;
  z-index: 0;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}



.stats img {
  width: 100px;
  height: auto;
  border-radius: 5px;
}

.stats img.side {
  position: absolute;
  top: 71%;
  /* adjust as needed */
  width: 80px;

  animation: slideSide 6s linear infinite;
}

.stats img.side:nth-child(1) {
  left: -120px;
  animation-delay: 0s;
}

.stats img.side:nth-child(2) {
  left: -120px;
  animation-delay: 0.5s;
}

.stats img.side:nth-child(3) {
  left: -120px;
  animation-delay: 1s;
}

.stats img.side:nth-child(4) {
  left: -120px;
  animation-delay: 1.5s;
}

.stats img.side:nth-child(5) {
  left: -120px;
  animation-delay: 2s;
}

.stats img.side:nth-child(6) {
  left: -120px;
  animation-delay: 2.5s;
}

.stats img.side:nth-child(7) {
  left: -120px;
  animation-delay: 0.5s;
}

.stats img.side:nth-child(8) {
  left: -120px;
  animation-delay: 1s;
}

.stats img.side:nth-child(9) {
  left: -120px;
  animation-delay: 1.5s;
}

.stats img.side:nth-child(10) {
  left: -120px;
  animation-delay: 2s;
}

.stats img.side:nth-child(11) {
  left: -120px;
  animation-delay: 2.5s;
}

@keyframes slideSide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(1200px);
  }
}


.stats .stat h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #113633;
  text-shadow: 0 0 15px rgba(0, 255, 231, 0.6);
  animation: pulseGlow 2s ease-in-out infinite, floatUpDown 3s ease-in-out infinite;
}


@keyframes pulseGlow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px #011311;
  }

  50% {
    transform: scale(1.05);
    text-shadow: 0 0 25px #070e0d;
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 10px #072522;
  }
}


@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Optional: Animate stat paragraphs too */
.stats .stat p {
  color: #021407;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.stats .stat:hover p {
  color: #021407;
  transform: translateY(-5px);
}






/* ================= COURSES ================= */
.courses {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 60px 20px;
  position: relative;
  text-align: center;
  min-height: 85vh;
  background: radial-gradient(circle at top, #0d0d0d 0%, #000 100%);
  overflow: hidden;

}

.courses::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  animation: spin 12s linear infinite;
  z-index: 0;
}

.course {
  perspective: 1000px;
  width: 100%;
  height: 220px;
  position: relative;
  z-index: 1;
}


.course .inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.course:hover .inner {
  transform: rotateY(180deg);
}

.cours {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  width: 525%;
  perspective: 1000px;
  position: relative;
  z-index: 1;
  overflow: hidden;
 
}

.cours .inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-right: 400px;
 
}

.cours .front {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: sans-serif;
  text-align: center;
  background: conic-gradient(from 0deg,
      rgba(156, 158, 158, 0.76),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  box-shadow: 0 0 15px rgba(0, 255, 230, 0.3);
}


/* Front & back faces */
.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: white;
  box-shadow: 0 5px 15px #00000055;
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid;
  border-image: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%) 1;
}

/* Front face */
.front {
  background: conic-gradient(from 0deg,
      rgba(156, 158, 158, 0.76),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
}


/* Back face */
.back {
  /* background: linear-gradient(135deg, #00bcd4, #009688); */
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  transform: rotateY(180deg);
}

/* Headings */

.cours h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  animation: pulseGlow 2s ease-in-out infinite, floatUpDown 3s ease-in-out infinite;
}

.course h4 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  animation: pulseGlow 2s ease-in-out infinite, floatUpDown 3s ease-in-out infinite;
}



.cours p {
  color: #d4d4d4;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin-top: 5px;
  
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 255, 230, 0.3);
  animation: fadeInText 3s ease-in-out, floatUpDown 3s ease-in-out infinite;
}

.aa {
  margin-top: 30px;
  text-decoration: none;
}

.author {
  position: relative;
  color: #d4d4d4;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;

  margin-left: 20px;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 255, 230, 0.3);
  animation: fadeInText 3s ease-in-out, floatUpDown 3s ease-in-out infinite;

}

.author::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);
  transition: width 0.3s ease;
}

.author:hover {
  color: white;
  /* background: rgba(255, 255, 255, 0.1); */
}

.author:hover::after {
  width: 100%;
}

.course p {
  color: #d4d4d4;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin-top: 5px;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 255, 230, 0.3);
  animation: fadeInText 3s ease-in-out, floatUpDown 3s ease-in-out infinite;
}


@keyframes pulseGlow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px #011311;
  }

  50% {
    transform: scale(1.05);
    text-shadow: 0 0 25px #070e0d;
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 10px #072522;
  }
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}


/* ================= JOIN SECTION ================= */
.join {
  position: relative;
  padding: 20px;
  background-color: #151515;
  overflow: hidden;
  z-index: 1;
}

.join::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  z-index: 0;
  pointer-events: none;
  animation: spin 12s linear infinite;

}
.join-div {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background-color: #151515;
  overflow: hidden;
  z-index: 1;
}

.join-div::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  z-index: 0;
  pointer-events: none;
}

.join h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
  z-index: 1;
      
}
.join h2:hover{
  transform: scale(1.03);
 
}

.join button {
  padding: 15px 40px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background: radial-gradient(circle at bottom right, #010303 0%, #2a3d3b 100%);
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 50px;
}

.join button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #06221f, 0 0 40px #0a1e20;
   background: conic-gradient(from 0deg,
      rgba(2, 22, 15, 0.705),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
}

/* Mentor styling */
.mentor {
  color: #948e8e;
  
}
.mentor h3 {
  font-size: 2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: all 0.5s ease;
  position: relative;
  display: inline-block;
   text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
  z-index: 1;
}

/* Hover Effect */
.mentor h3:hover {
  
  transform: scale(1.02);
}





.mentor .author {
  display: inline-block;

  margin-top: 30px;
  color:  rgba(2, 22, 15, 0.705),;
  font-size: 1rem;
  position: relative;
  text-decoration: none;
  animation: floatUpDown 3s ease-in-out infinite;
}

.mentor .author::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: radial-gradient(circle, #020024 0%, #090979 35%, #00d4ff 100%);
  transition: width 0.3s ease;
}

.mentor .author:hover::after {
  width: 100%;
}

.mentor p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Floating animation */
@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}


/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 25px;
  /* background-color: #101010; */
    background: conic-gradient(from 0deg,
      rgba(0, 255, 200, 0.15),
      rgba(0, 255, 255, 0.05),
      transparent,
      rgba(0, 255, 200, 0.1));
  font-size: 0.9rem;
  color: #777;
  border-top: 2px solid #1f1f1f;
}
.footer {
  background-color: #0c0c0c;
  color: #ccc;
  padding: 60px 20px 20px;
  text-align: center;
  
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
 
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
  margin-bottom: 15px;
  z-index: 1;
  justify-content: center;
  
}

.footer-logo img {

  height: 40px;
  width: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.6));
}


.footer-section h3, .footer-section h4 {
  font-size: 20px;
  color: white;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
    z-index: 1;
  margin-bottom: 15px;
}

.footer-section p {
    font-size: 1.1rem;
    color: #ccc;
    
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(0, 255, 230, 0.3);
    animation: fadeInText 3s ease-in-out, sway 3s ease-in-out infinite;
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: white;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
    z-index: 1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color:  rgba(0, 255, 200, 0.5);
}

.footer-section .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-section .social-icons img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-section .social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(0) invert(0.7) sepia(1) hue-rotate(160deg);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #777;
}

.contact a{
text-decoration: none;
color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
 
 .header-top{
    gap:2px;
    line-height: 0.9;
  }
  .header-top h1{
    font-size:2rem;
  }
   header p{
    font-size: 0.9rem;
   }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
.hero h2{
  margin-top:20px;
}
  .hero h2 {
    font-size: 2rem;
  }
  .hero p{
    max-width: fit-content;
  }
  .hero ul{
    display: flex;
    flex-direction: column;
     align-items: center;
    gap: 8px;
  }
  .hero-btn{
    margin-bottom:20px;
  }

  .stats {
    margin-top: 0;
    gap:0;
    flex-direction: column;
    align-items: center;
  }
   .stats h3,p{
    text-align: center;
   }
  .stats img.side{
    top:88%
  }

  .course {
    text-align: center;
  }
  .cours{
    text-align: center;
    width:230%;
    height: 120vh;
  }
  .cours 

  header h1 {
    font-size: 2rem;
  }
}
