/* ================= 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: 6px 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%;
}


/* ================= COURSES ================= */
.courses {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(450px, 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: 300px;
  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: 307%;
  perspective: 1000px;
  position: relative;
  z-index: 1;
  overflow: hidden;
 
}

.cours .inner {
  position: relative;
  width: 150%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-right: 750px;
 
}

.cours .front {
  width: 100%;
  height: 101%;
  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;
  overflow: hidden;
  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: 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;
}

ul {
  margin-top: 20px;
  text-decoration: none;
  padding: 0;
}

ul li {
  list-style: none;
  margin-bottom: 5px;
  color: #8f8c8c;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeSlideIn 0.8s ease forwards;
}

/* delay each item slightly for a staggered entrance */
ul li:nth-child(1) { animation-delay: 0.1s; }
ul li:nth-child(2) { animation-delay: 0.25s; }
ul li:nth-child(3) { animation-delay: 0.4s; }
ul li:nth-child(4) { animation-delay: 0.55s; }

strong {
  color: #cabcbc;
}

/* animation keyframes */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}





.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;
}

.course .back iframe {
  border-radius: 10px;
  width: 100%;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course .back iframe:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
}
@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);
  }
}

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-top: 30px;
}

 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));
}

img.side {
  position: absolute;
  bottom: -6%;
  width: 80px;
  opacity: 0;
  transform: scale(0.9);
  animation: marchForward 6s linear infinite;
}


img.side:nth-child(1) { left: -100px; animation-delay: 0s; }
img.side:nth-child(2) { left: -110px; animation-delay: 0.5s; }
img.side:nth-child(3) { left: -120px; animation-delay: 1s; }
img.side:nth-child(4) { left: -130px; animation-delay: 1.5s; }
img.side:nth-child(5) { left: -140px; animation-delay: 2s; }
img.side:nth-child(6) { left: -150px; animation-delay: 2.5s; }

@keyframes marchForward {
  0% {
    transform: translateX(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(250px) scale(1.05); 
    opacity: 1;
  }
  90% {
    transform: translateX(500px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(600px) scale(0.9);
    opacity: 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;
}

@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;
  font-size: 2rem;
}
  .hero p{
    max-width: fit-content;
  }
  .hero ul{
    display: flex;
    flex-direction: column;
     align-items: center;
    gap: 10px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
  .stats img.side{
    top:91%
  }

  .course {
    text-align: center;
  }
  .cours{
    text-align: center;
    width:100%;
    height: 96vh;
  }
}
