* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction:column;
}

/*header*/
/* Navigation Bar Styles */
.navbar {
  background: rgba(40, 54, 75, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  position:sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration:none ;
}

.logo-icon {
  background: var(--gradient);
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
}
.logo-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.nav-logo:hover .logo-icon {
  transform:rotate(10deg) scale(1.2);

}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  text-decoration: none;
}

/*menu fuction*/
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: left 0.5s ease;
  z-index: -1;
  border-radius: var(--radius);
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--gray);
  
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-signup {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.btn-signup:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
#m{
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: var(--transition);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.2);
  padding-left: 2rem;
}


.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--light);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  transform: rotate(30deg);
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--light);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: rgba(99, 102, 241, 0.2);
}

.mobile-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mobile-actions .btn {
  flex: 1;
  justify-content: center;
}

@media screen and (max-width: 968px) {

  .nav-menu,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .mobile-actions {
    flex-direction: column;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  animation: fadeIn 0.8s ease;
}



.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* Background image */
  background-image:
    linear-gradient(rgba(5, 15, 40, 0.7), rgba(5, 15, 40, 0.7));
}

.hero-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient);
  animation: mentor1;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-delay: 4s;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/*@keyframes mentor1{
  from{margin-left:100%}
    to{margin-right:50%;}
}*/
@keyframes mentor1{
  50%{transform: rotateX(360deg);}
}
.hero-content h2{
  background: red;
  display: inline-block;
  animation: opacity;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}
@keyframes opacity{
  50%{opacity:0;}
}
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 30px;
  animation: fadeIn 7s ease-in-out;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
}


.btn-outline:hover {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.hero-image {
  width: 700px;
  height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;

  /* 2 animations together */
  animation: changeImage1 20s infinite,float 5s ease-in-out infinite;
}

@keyframes changeImage1 {
  0%, 24% {
    background-image: url("/Frontend//image/even1.jpg");
  }

  25%, 49% {
    background-image: url("/Frontend//image/even2.jpg");
  }

  50%, 74% {
    background-image: url("/Frontend//image/even3.jpg");
  }

  75%, 100% {
    background-image: url("/Frontend//image/pull1.jpg");
  }
}



@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}
.explore{
  padding: 80px 20px;
  color: var(--light);
  text-align: center;
  transition: var(--transition);
}
.ligh-mode .explore{
  background: var(--dark);
}
.explore-title{
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


 

.explore-subtitle{
  color:var(--gray) ;
  font-size: 1.1rem;
  margin-bottom: 50px;
}
.explore-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
  max-width: 1200px;
  margin: auto;
}
.explore-card{
  padding: 30px;
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: left;
  border: 2px solid transparent;
}
.ligh-mode .explore-card{
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.ligh-mode .explore-card:hover{
  background:linear-gradient(#ffffff,#ffffff)padding-box,var(--gradient) border-box;
}
.explore-card .icon{
  font-size: 2rem;
  margin-bottom: 15px;
}
.explore-card h3{
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.ligh-mode .explore-card h3{
  color: var(--secondary);
}
.explore-card p{
  font-size: 1rem;
  color: var(--gray);
  margin-bottom:20px;
  line-height: 1.5;
}
.explore-btn{
  display: inline-block;
  font-size: 600;
  color:var(--secondary);
  transition: var(--transition);
  text-decoration: none;
}
.explore-btn:hover{
  color: var(--primary);
  text-decoration: underline;
}
.course {
  padding: 80px 20px;
  /* background: var(--dark); */
  color: var(--light);
  text-align: center;
  transition: var(--transition);
}

.light-mode .course {
  background: var(--light);
  color: var(--dark);
}

.course-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.course-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.course-card {
  /* background: #0f172a; */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: left;
  cursor: pointer;
}


.course-card img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
  border-radius: 8px; 
  display: block;
  transition: transform 0.4s ease;
}

.course-card img:hover {
  transform: scale(1.05);
}

.course-card:hover img {
  transform: scale(1.05);
}

.course-content {
  padding: 20px;
}

.course-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.light-mode .course-card h3 {
  color: var(--secondary);
}

.course-card p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 15px;
}

.course-btn {
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.course-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}
.community{
  padding:80px 20px;
  color:var(--light);
  text-align: center;
  transition: var(--transition);
}
.ligh-mode .community{
  background: var(--light);
  color: var(--dark);
}
.community-title{
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.community-subtitle{
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 50px;
}
.community-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
  max-width: 1200px;
  margin: auto;
}
.community-card{
  padding:30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}
.ligh-mode .community-card{
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.community-card:hover{
  transform: translateY(-8px);
  border:2px solid transparent;
}
.ligh-mode .community-card:hover{
  background: linear-gradient(#ffffff,#ffffff) padding-box,var(--gradient) border-box;
}
.community-card .icon{
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.community-card .icon-1{
  color: red;
}
.community-card .icon-2{
  color: #0066FF;
}
.community-card .icon-3{
  color:#29ACFF;
}
.community-card .icon-4{
  color: #005FC9;
}
.community-card h3{
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.ligh-mode .community-card h3{
  color: var(--secondary);
}
.community-card p{
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}
.community-btn{
  display: inline-block;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}
.community-btn:hover{
  color: var(--primary);
  text-decoration: underline;
}


.aboutme{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 6rem;
}
.ligh-mode .aboutme{
  background: var(--light);
  color: var(--dark);
}
.about-img{
  position: relative;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-img img{
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border:var(--dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
span{
  color: var(--secondary);
}

.heading{
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
.about-content{
  text-align: center;
}
.about-content p{
  font-size: 1rem;
  margin: 1rem 0 2rem;
}
.about-content h3{
  font-size: 2rem;
  font-family: "Roboto Mono", monospace;
}
.btn-box .btns{
  display: inline-block;
  width: 10rem;
  font-size: 1    rem;
  border: 0.1rem solid var(--dark);
  background: var(--gradient);
  text-decoration: none;
  color: blanchedalmond;
}
.bnts a{
  align-items: center;
  font-size: ;
}
.btn-box .btns a::before{
  background: var(--primary);
  
}
.about-content strong{
  font-size: 1.7rem;
  margin-top: 10px;
  display: inline-block;   /* important */
  width: 0;
  overflow: hidden;        /* hide text */
  white-space: nowrap;     /* keep text on one line */
  border-right: 2px solid white; /* cursor */
  animation: student 10s steps(30) infinite,
             blink 0.7s step-end infinite;
          
}
@keyframes student{
   0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

.blue{
  display: flex;
  font-size: 0.2rem;
}
.about-content i{
  color: rgb(0, 102, 255);
}

/* CERTIFICATE SECTION */

.certificate-section{
    width: 50%;
    margin: 100px auto;
    text-align: center;
}

.section-title{
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0c4aaf;
}

.certificate-slider{
    width: 100%;
    height: 600px; /* change height */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background:#0f172a;
}

.certificate-track{
    width: 100%;
    height: 100%;
    animation: certificateSlide 60s infinite;

    background-size: contain; /* important */
    background-repeat: no-repeat;
    background-position: center;
}

/* AUTO IMAGE CHANGE */

@keyframes certificateSlide{

    0%{
        background-image: url("/Frontend/image/cert1.png");
    }

    20%{
        background-image: url("/Frontend/image/cert2.PNG");
    }

    40%{
        background-image: url("/Frontend/image/cert3.png");
    }

    60%{
        background-image: url("/Frontend/image/cert4.JPG");
    }

    80%{
        background-image: url("/Frontend/image/cert5.JPG");
    }

    100%{
        background-image: url("/Frontend/image/cert1.png");
    }
}

/* MOBILE */

@media(max-width:768px){

    .certificate-slider{
        height: 250px;
    }

    .section-title{
        font-size: 2rem;
    }
}



/*footer*/
.footer{
    width: 100%;
    background: #0f172a;
    padding: 40px 20px;
    text-align: center;
    margin-top: 100px;
}

.footer-content h3{
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-content p{
    color: #cbd5e1;
    font-size: 1rem;
    margin: 8px 0;
    letter-spacing: 0.5px;
}

/* HOVER EFFECT */

.footer-content h3:hover{
    color: #38bdf8;
    transition: 0.4s;
}



/* =========================
   TABLET (max-width: 1024px)
========================= */
@media screen and (max-width: 1024px) {

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: auto;
  }

  .certificate-slider {
    width: 90%;
    height: 300px;
  }

  .aboutme {
    padding: 3rem;
  }

  .about-img img {
    width: 250px;
    height: 250px;
  }
}


/* =========================
   PHONE (max-width: 768px)
========================= */
@media screen and (max-width: 768px) {

  /* Navbar */
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    padding: 30px 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    width: 100%;
    height: 220px;
  }

  /* Grid sections */
  .explore-grid,
  .course-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .aboutme {
    padding: 2rem 1rem;
  }

  .about-img img {
    width: 180px;
    height: 180px;
  }

  .about-content h3 {
    font-size: 1.4rem;
  }

  .about-content strong {
    font-size: 1rem;
  }

  /* Certificate */
  .certificate-slider {
    width: 100%;
    height: 220px;
  }

  /* Titles */
  .section-title,
  .course-title,
  .community-title,
  .explore-title,
  .heading {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem;
  }
}


/* =========================
   SMALL PHONE (max-width: 480px)
========================= */
@media screen and (max-width: 480px) {

  .navbar {
    padding: 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-image {
    height: 180px;
  }

  .certificate-slider {
    height: 180px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}