* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-dark: #11121A;
  --background-dark: #11121A;
  --background-card: #1A1C2D;
  --primary-purple: #7B34DD;
  --primary-purple-hover: #8A4EE5;
  --text-light: #FFFFFF;
  --text-muted: #A0AEC0;
  --text-dark: #11121A;
  --border-color: rgba(255, 255, 255, 0.1);
  --tag-beginner: #48BB78;
  /* Added for Beginner tag */
  --tag-intermediate: #38B2AC;
  --tag-advanced: #F56565;
  --star-color: #FBBF24;
  --primary: #00a8ff;
  --primary-light: #87cefa;
  --secondary: #00a8ff;
  --accent: #ff3366;
  --dark: #0d0d0d;
  --darker: #080808;
  --light: #f5f5f5;
  --gray: #bbb;
  --card-bg: #151515;
  --text-light: #bbb;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --background-dark: #11121A;
  --terminal-bg: #1A1C2D;
  --primary-purple: #7B34DD;
  --accent-cyan: #00D1FF;
  --text-light: #E5E7EB;
  --text-muted: #8E94A8;
  --glow-color: rgba(123, 52, 221, 0.25);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}


/* .................. NAVBAR......... */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 5%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.8), #000000);


  backdrop-filter: blur(10px);
  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;

  border-bottom: 2px solid rgba(135, 206, 250, 0.1);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.8), #000000);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: var(--primary);
  letter-spacing: 3px;
  /* animation: logoGlow 2s infinite alternate; */

  display: flex;
  position: relative;

  align-items: center;
  gap: 1.5rem;
  /* KEY: Pushes "STRIKE" to the right to make space for the fixed logo */
  padding-left: 70px;

}


/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

/* animation part
*/
.cssload-triangles {
  /* transform: translate(-50%, -50%); */
  height: 19px;
  width: 28px;
  /* position: relative; */
  position: fixed;
  /* Now, tell it WHERE to be fixed. Pick one from top/bottom and one from left/right */
  top: 6px;
  /* 20 pixels up from the bottom of the window */
  left: 30px;
  /* left: 30%; */
  transition: 5s;
  /* top: 30%; */
  /* margin-bottom: 12px; */
  display: flex;
}

.cssload-tri {
  position: absolute;
  animation: cssload-pulse 862.5ms ease-in infinite;
  border-top: 26px solid rgb(33, 90, 109);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 0px;
}

.cssload-tri.cssload-invert {
  border-top: 0px;
  border-bottom: 26px solid rgb(33, 90, 109);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
}

.cssload-tri:nth-child(1) {
  left: 29px;
}

.cssload-tri:nth-child(2) {
  left: 15px;
  top: 26px;
  animation-delay: -143.75ms;
}

.cssload-tri:nth-child(3) {
  left: 29px;
  top: 26px;
}

.cssload-tri:nth-child(4) {
  left: 44px;
  top: 26px;
  animation-delay: -718.75ms;
}

.cssload-tri:nth-child(5) {
  top: 53px;
  animation-delay: -287.5ms;
}

.cssload-tri:nth-child(6) {
  top: 53px;
  left: 15px;
  animation-delay: -287.5ms;
}

.cssload-tri:nth-child(7) {
  top: 53px;
  left: 29px;
  animation-delay: -431.25ms;
}

.cssload-tri:nth-child(8) {
  top: 53px;
  left: 44px;
  animation-delay: -575ms;
}

.cssload-tri:nth-child(9) {
  top: 53px;
  left: 58px;
  animation-delay: -575ms;
}

@keyframes cssload-pulse {
  0% {
    opacity: 1;
  }

  16.666% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}



.logo-span {
  .logo-span {
    color: #00aeff;
    font-family: sans-serif;
    font-size: 32px;
    font-weight: strong;
    text-shadow: 0 0 10px #00aeff;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/*
responsive navbar
*/
/* ================================================== */
/* ============= RESPONSIVE STYLES ADDED ============ */
/* ================================================== */

@media (max-width: 992px) {
  /* ... (all your other responsive styles for the menu go here) ... */

  .logo {
    gap: 0.75rem;
    padding-left: 45px;
    /* Reduces the space between the icon and text */
  }

  .cssload-triangles {
    left: 15px;
    /* Move it closer to the edge */
    transform: scale(0.6);
    /* Make it smaller */
  }

  /* We also have the rule for the text from before */
  .logo-span {
    font-size: 26px;
    /* Reduces the text size */
  }

  /* Show the hamburger menu icon on smaller screens */
  .nav-toggle-label {
    display: flex;
    z-index: 101;
    /* Ensure it's clickable above other content */
    margin-right: 25px;

    /* margin-left: 20px; */
  }


  /* ===>>> THE LOGIN BUTTON FIX STARTS HERE <<<=== */

  /* Style all buttons consistently inside the mobile menu */
  .nav-menu .btn,
  .nav-menu .btn-login {
    padding: 0.8rem 1rem;
    border-radius: 50px;
    font-weight: 600;
  }

  /* This is the key part: make the login button a centered flex container */
  .nav-menu .btn-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  /* Position the nav menu as a slide-out panel */
  .nav-menu {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 1000;
   height: 100vh;
   width: 70%;
   max-width: 300px;
   flex-direction: column;
   justify-content: flex-start;
   align-items: flex-start; /* MODIFIED: Aligns items to the left. */
   padding: 0rem 3rem; 
   background: #0d0d0d;
   transform: translateX(-100%);
   transition: transform 0.3s ease-in-out;
   margin: 0;
 }

  /* Make the links larger for better touch interaction */
  .nav-menu a {
    font-size: 1.2rem;
  }




  /* --- THE MAGIC PART --- */

  /* When the checkbox is checked, slide the nav menu into view */
  .nav-toggle:checked~.nav-menu {
    transform: translateX(0);
  }

  /* Animate the hamburger icon into an 'X' shape when the menu is open */
  .nav-toggle:checked~.nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle:checked~.nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked~.nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@keyframes logoGlow {
  from {
    text-shadow: 0 0 10px var(--primary);
  }

  to {
    text-shadow: 0 0 25px var(--primary-light);
  }
}


.btn-login {
  background: linear-gradient(90deg, #00D1FF 0%, #00A3FF 70%, #4F00FF 100%);

  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(50, 150, 255, 0.35);
  color: #000;
}

/* Login Button */
.btn {
  background: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  color: var(--light);
  font-weight: 600;
  transition: all 0.3s ease;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-login:hover {
  /* Replace your existing background property with this */
  background: rgba(10, 25, 47, 0.95);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ===== Navbar completed ===== */
.code-vibe {
  color: skyblue;
}




@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
    /* margin-left: 15px; */
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
     margin-top: auto
  }

  .nav-toggle:checked~.nav-menu {
    display: flex;
  }

  nav a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(135, 206, 250, 0.1);
  }

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

  
 
 
  
  .ai-chat-container {
    width: 300px;
    height: 450px;
    right: 20px;
    bottom: 90px;
  }

}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .ai-chat-container {
    width: 280px;
    height: 400px;
    right: 10px;
    bottom: 80px;
  }

}



/* --- Modal Styles --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);

  /* Hide by default */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Show modal when it's the target */
.modal:target {
  visibility: visible;
  opacity: 1;
}

.modal:target .modal-content {
  transform: scale(1);
}

.modal-content {
  position: relative;
  background-color: var(--background-card);
  padding: 2.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-light);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-light);
}

.modal-header p {
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.modal-tabs a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.modal-tabs a.active {
  color: var(--text-light);
  border-bottom-color: var(--primary-purple);
}

.modal-tabs a:hover {
  color: var(--text-light);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(123, 52, 221, 0.3);
}

.btn-submit {
  width: 100%;
  background-color: var(--primary-purple);
  color: var(--text-light);
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--primary-purple-hover);
}

.forgot-password {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--text-light);
}


/* --- CORRECTED AND COMBINED RULE --- */
.gradient-text {
  font-weight: bold;

  /* Gradient Text Properties */
  background: linear-gradient(90deg, #f43f5e, #6366f1, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  /* Background Animation Properties */
  background-size: 200% 100%;
  background-position: left;

  /* Add animation here */
  animation: bounce 2s infinite ease-in-out;

  /* General properties */
  transition: all 0.5s ease;
  cursor: pointer;
}

.gradient-text:hover {
  background-position: right;
  /* On hover, stop the animation to prevent conflict and apply scale */
  animation-play-state: paused;
  transform: scale(1.05);
}


/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  /* display: none; */
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}



nav a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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



.logo-animation {
  position: relative;
  display: flex;
}

/* li {
        list-style: none;
    }

    label {
        position: relative;
    } */

input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 80px;
  width: 80px;
  z-index: 100;
}

.glow {
  position: relative;
  height: 80px;
  width: 80px;
  background: #18191f;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 46px;
  cursor: pointer;
  margin: 0 4px;
  border-radius: 20px;
  box-shadow: -1px -1px 4px rgba(255, 255, 255, 0.05),
    4px 4px 6px rgba(0, 0, 0, 0.2),
    inset -1px -1px 4px rgba(255, 255, 255, 0.05),
    inset 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.glow:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 75px;
  height: 38px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.input-logo[type="checkbox"]:checked~.glow {
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05),
    inset 4px 4px 6px rgba(0, 0, 0, 0.2);
  color: yellow;
  text-shadow: 0 0 15px yellow, 0 0 25px yellow;
  animation: glow 1.5s linear infinite;
}

@keyframes glow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}





.courses-section {
  max-width: 1200px;
  margin: 20px auto;
}

/*
        heading premiun
        */
/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-top: 110px;
}

.section-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}


.section-header p {
  font-size: 1.125rem;
  color: white;
  max-width: 600px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

/* --- CORRECTED AND COMBINED RULE --- */
.gradient-text {
  font-weight: bold;

  /* Gradient Text Properties */
  background: linear-gradient(90deg, #f43f5e, #6366f1, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  /* Background Animation Properties */
  background-size: 200% 100%;
  background-position: left;

  /* Add animation here */
  animation: bounce 2s infinite ease-in-out;

  /* General properties */
  transition: all 0.5s ease;
  cursor: pointer;
}

.gradient-text:hover {
  background-position: right;
  /* On hover, stop the animation to prevent conflict and apply scale */
  animation-play-state: paused;
  transform: scale(1.05);
}

/*         
        .header-accent {
            width: 40px;
            height: 3px;
            background-color: var(--primary-purple);
            border-radius: 2px;
            margin: 0 auto;
        } */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}


.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;

  /* --- ADD THIS LINE --- */
  margin-top: 50px;
  /* Adjust this value to the height of your navbar */
}

.filter-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;

  color: var(--primary);
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
  /* smooth text color and scale */
  z-index: 1;
  /* make text above pseudo-element */
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #001c55, #003566, #004b8d);
  border: 1px solid transparent;
  transition: left 0.3s ease;
  /* smooth pseudo-element movement */
  z-index: -1;
  /* behind the text */
}

.filter-btn:hover::before {
  left: 0;
}

.filter-btn:hover {
  color: white;
  /* text color changes */
  transform: scale(1.05);
  /* optional hover scale */
}

.filter-btn {
  background-color: var(--background-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* You are missing this variable in your root, I've added a guess */


.filter-btn:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
  border-color: var(--text-light);
  color: white;
  font-weight: bold;
}

/* ------------------------------ */
/* --- 3. Courses Grid --- */
/* ------------------------------ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
  margin: 20px;
}

/* ------------------------------ */
/* --- 4. Individual Course Card --- */
/* ------------------------------ */
.course-card {
  background-color: var(--background-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background-color: rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  color: var(--primary-purple);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.difficulty-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.difficulty-tag.beginner {
  background-color: var(--tag-beginner);
}

.difficulty-tag.intermediate {
  background-color: var(--tag-intermediate);
}

.difficulty-tag.advanced {
  background-color: var(--tag-advanced);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.rating .star {
  color: var(--star-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-light);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 50px;
  /* Ensures consistent card height */
}

.card-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.enroll-btn {
  display: block;
  width: 100%;
  background-color: var(--primary-purple);
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.enroll-btn:hover {
  background-color: var(--primary-purple-hover);
}

/*
        button
        */

.btn-glow {
  display: inline-block;
  background: linear-gradient(90deg, #00D1FF, #00A3FF, #4F00FF);

  color: #000;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 2px var(--primary);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  color: white;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  transform: scale(1.1);
  box-shadow: 0 0 3px var(--primary-light);
}

/*
potiential 
*/


.container-potiential {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;
  margin-bottom: 50px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* --- Left Content --- */
.guidance-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.guidance-content>p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 2.5rem;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.feature-checklist .icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(39, 201, 63, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.feature-checklist .icon-wrapper svg {
  color: var(--success-green);
}

/*
        frequemnly asked que
        */


/* --- Right Content (Logo Wall) --- */
.logo-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.logo-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(159, 85, 255, 0.15), transparent 60%);
  z-index: 0;
}

.logo-item {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 60px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.logo-item svg {
  width: 100%;
  height: auto;
  fill: #a0aec0;
  /* Default color for logos */
}

/* Specific logo colors can be added here if needed */
.logo-item.google svg {
  fill: #4285F4;
}

.logo-item.apple svg {
  fill: #A3AAAE;
}

.logo-item.js svg {
  fill: #F7DF1E;
}

.logo-item.react svg {
  fill: #61DAFB;
}

.logo-item.python svg {
  fill: #3776AB;
}


/* Responsive */
@media (max-width: 1024px) {
  .guidance-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
  }

  .guidance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-checklist li {
    text-align: left;
  }

  .logo-wall {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 2rem 1rem;
  }

  .guidance-content h1 {
    font-size: 2.2rem;
  }

  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  margin-top: 2rem;
  /* margin-left: 110px; */
}

.feature-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.feature-item .icon {
  flex-shrink: 0;
  /* Prevents icon from shrinking */
}

.feature-item span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  body {
    padding: 1rem;
  }

  .strike-section h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 1rem;
  }
}



/* ======================================================= */
/* ===== COMPLETE & RESPONSIVE FOOTER (COPY ALL THIS) ===== */
/* ======================================================= */

/* --- 1. Main Footer & Container Styles --- */
footer {
    background: var(--darker, #0d0d0d);
    color: var(--text-light, #f0f0f0);
    padding: 1.75rem 0 0.5rem 0; /* Generous top padding */
    /* width: 100%; */
    box-sizing: border-box; 
    
      background: var(--darker);
  color: var(--text-light);
  /* padding: 1rem 0 1rem; */
  width: 100vw;

  align-items: center;
  /* justify-content: space-between; */
  /* padding: 0 10%; */
  position: relative;
  top:0;
left: 50%;
  right: 0;
  transform: translateX(-50%);
  overflow: hidden;/* Ensures padding is included in width */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Side padding for content */
}

/* --- 2. Desktop Layout (4 Columns) --- */
.footer-content {
    display: grid;
    /* Explicitly create 4 columns for desktop */
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--primary, #00D1FF);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}


.footer-section pre {
    /* color: var(--text-secondary, #ccc); */
    line-height: 2;
    margin: 0;
    font-size: medium;
}

.footer-section a {
    display: block;
    color: var(--text-light, #f0f0f0);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary, #00D1FF);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a i {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.2);
    color: var(--primary, #00D1FF);
}

/* --- 3. Email Form --- */
.email-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light, #f0f0f0);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-purple, #4F00FF);
    box-shadow: 0 0 0 3px rgba(79, 0, 255, 0.3);
}

.email-container button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00D1FF, #00A3FF, #4F00FF);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.email-container button:hover {
    transform: scale(1.03);
}

/* --- 4. Footer Bottom (Copyright) --- */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #333);
    color: var(--text-secondary, #ccc);
}



.email-input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 102, 0, 0.3);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.email-input::placeholder {
  color: var(--text-light);
}


/* --- Base Styles (Mobile First Approach) --- */
.email-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* A slightly smaller gap for mobile */
  width: 100%;
  /* Take up all available horizontal space */
  max-width: 400px;
  /* Set a max-width for larger screens */
  margin-top: 2px;
  /* Use auto for left/right margins to center it within its parent */
  margin-left: auto;
  margin-right: auto;
  border: 1px solid transparent;
  border-radius: 12px;
  background-color: transparent;
  font-size: 1.1rem;
  /* Slightly adjusted base font size for readability */
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  /* Ensures padding doesn't add to the width */
}

.email-container label {
  font-weight: 600;
  color: var(--primary);
}

.email-container input {
  padding: 12px;
  /* A bit more padding for easier tapping on mobile */
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  /* Using rem for better scalability */
  outline: none;
  transition: border-color 0.3s ease;
  background: var(--input-bg);
}

.email-container input:focus {
  border-color: #4F00FF;
}

.email-container button {
  padding: 12px;
  /* Match the input padding */
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00D1FF 0%, #00A3FF 70%, #4F00FF 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  /* Consistent font size */
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.email-container button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 80px;
  width: 80px;
  z-index: 100;
}


/* ================================= */
/* ===== RESPONSIVE BREAKPOINTS ===== */
/* ================================= */

/* --- 5. Tablet Layout (2x2 Grid) --- */
@media (max-width: 992px) {
    footer {
        padding: 4rem 0 2rem 0; /* Slightly less padding */
    }

    .footer-content {
        /* Switch to a balanced 2-column grid */
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 6. Mobile Layout (Single Column) --- */
@media (max-width: 640px) {
    footer {
        padding: 3rem 0 1.5rem 0; /* Even less padding to reduce space */
    }

    .footer-content {
        /* Stack everything into a single, centered column */
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem; /* Reduce gap for a more compact look */
        margin-bottom: 2.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }

    .social-links {
        /* Center the icons within their container */
        justify-content: center;
    }
    
    .email-container {
        /* Center the form */
        margin: 0 auto;
        max-width: 350px;
    }
}


/* ================================= */
/* ===== RESPONSIVE BREAKPOINTS ===== */
/* ================================= */

/* --- 3. TABLET LAYOUT (Switches to 2x2 Grid) --- */
@media (min-width: 641px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* Create a 2x2 grid */
        text-align: left; /* Align text to the left */
    }

    /* We no longer need the flexbox grouping, so we reset it */
    .footer-links-group {
        display: contents; /* This makes the wrapper "disappear" and its children become direct grid items */
    }

    .email-container {
        margin: 0; /* Un-center the form */
    }

    .social-links {
        justify-content: flex-start; /* Align icons left */
    }
}

/* --- 4. DESKTOP LAYOUT (Switches to 4-Column) --- */
@media (min-width: 993px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Your original desktop layout */
    }
}


/* ===== AI CHAT FEATURE ===== */
.ai-chat-toggle {
  display: none;
}

.ai-chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(to right, #6D55F6, #00D4FF);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(138, 77, 255, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ai-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 30px rgba(138, 77, 255, 0.5);

}

.ai-chat-button i {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.ai-chat-button span {
  font-size: 0.7rem;
  font-weight: 600;
}

.ai-chat-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  /* background: rgba(30, 30, 30, 0.95); */

  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: flex;
  flex-direction: column;
  transform: translateX(400px);
  transition: transform 0.4s ease;

  border-bottom: 2px solid rgba(135, 206, 250, 0.1);

  overflow: hidden;
}

.ai-chat-toggle:checked~.ai-chat-container {
  transform: translateX(0);
}

.ai-chat-header {
  padding: 1.2rem;
  background: linear-gradient(to right, #1A1C2D, #1C3A4A);
  border-bottom: 2px solid rgba(135, 206, 250, 0.1);

  display: flex;
  align-items: center;
  gap: 1rem;
}

.ai-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(to right, #6D55F6, #00D4FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ai-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.ai-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.ai-close-btn {
  margin-left: auto;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.ai-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
ai-chat-messages{
  overflow: auto; /* scrolling works */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* For Chrome, Safari, Edge */
.ai-chat-messages::-webkit-scrollbar {
  display: none;
}
.ai-message,
.user-message {
  display: flex;
}

.ai-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  position: relative;
}

.ai-message .message-bubble {
  background: #2A2D3A;
  border-top-left-radius: 5px;
}

.user-message .message-bubble {
  background: #7B34DD;
  border-top-right-radius: 5px;
}

.message-bubble p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.7;
}

.ai-chat-input {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  /* background: linear-gradient(to right, #00D1FF, #00A3FF); */

  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  font-size: 0.9rem;
}

.ai-chat-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.ai-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(to right, #6D55F6, #00D4FF);
  /* background: linear-gradient(45deg, #00D1FF, #00A3FF); */

  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.ai-send-btn:hover {
  transform: scale(1.1);
}

.code-vibe {
  color: skyblue;
}



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



  .ai-chat-container {
    width: 300px;
    height: 450px;
    right: 20px;
    bottom: 90px;
  }

  .animated-cube {
    width: 180px;
    height: 180px;
  }



@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .ai-chat-container {
    width: 280px;
    height: 400px;
    right: 10px;
    bottom: 80px;
  }
}



/* ===================================================== */
/* ===== REFINEMENTS FOR VERY NARROW SCREENS (350px) ===== */
/* ===================================================== */


/* ==================================================================== */
/* ===== RESPONSIVE FIX FOR COURSES & FEATURES GRID (ADD THIS) ===== */
/* ==================================================================== */

@media (max-width: 768px) {
  
    .features-grid {
        margin-left: 0;
    }

    
    .courses-grid {
        margin-left: 0;
        margin-right: 0;
    }
}


/* ======================================================= */
/* ===== 6. RESPONSIVE BREAKPOINTS (Tablet & Desktop)  ===== */
/* ======================================================= */

/* --- TABLET --- */
@media (min-width: 768px) {
    .hero {
        padding: 8rem 2rem 4rem 2rem;
    }

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

    .hero-buttons {
        flex-direction: row; /* Buttons side-by-side */
        justify-content: center;
    }

    .btn {
        width: auto;
        padding: 0.8rem 2rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    /* ... (Add other tablet-specific overrides) ... */
}


/* --- DESKTOP --- */
@media (min-width: 1024px) {
    /* --- NAVBAR --- */
    .nav-toggle-label {
        display: none; /* Hide hamburger */
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        transform: none;
        padding: 0;
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 1rem;
        width: auto;
    }
    
    .nav-menu li:last-child {
        align-self: initial;
        width: auto;
        margin-top: 0;
    }

    /* --- HERO --- */
    .hero {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 0 5%;
        min-height: 100vh;
    }

    .hero-content {
        align-items: flex-start;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .code-snippet {
        transform: rotateY(-15deg) rotateX(5deg); /* Re-apply 3D tilt */
    }

    /* --- OTHER SECTIONS --- */
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    /* ... (Add other desktop-specific overrides) ... */
}

/* ======================================================= */
/* ===== RESPONSIVE FEATURES GRID (2x2 on Mobile)     ===== */
/* ======================================================= */

/* --- 1. Base Styles (Mobile First: 2x2 Grid) --- */
/* This is the default layout for mobile screens */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* THE KEY FIX: Creates 2 columns */
    gap: 1rem; /* A smaller gap for a tight mobile layout */
    width: 100%;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--card-bg, #151515);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color, #2D3748);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.feature-item .icon {
    flex-shrink: 0; /* Prevents the checkmark icon from shrinking */
}

.feature-item span {
    font-size: 0.9rem; /* Slightly smaller font for better fit on mobile */
    font-weight: 600;
    line-height: 1.4;
}

/* ================================= */
/* ===== RESPONSIVE BREAKPOINTS ===== */
/* ================================= */

/* --- 2. Tablet & Desktop Styles --- */
/* On larger screens, we increase the spacing and font size */
@media (min-width: 768px) {
    .features-grid {
        gap: 2rem; /* A larger gap for tablet and desktop */
    }

    .feature-item {
        padding: 2rem; /* More internal padding */
    }

    .feature-item span {
        font-size: 1rem; /* Restore original font size */
    }
}


