:root {
  --pink:       #FF40A0;
  --pink-light: #FFB7E6;
  --yellow:     #F0FE72;
  --teal:       #60A3A6;
  --bg:         #0A0E27;
  --surface:    #1A203A;
  --border:     rgba(255, 255, 255, 0.08);
  --text-white: #FFFFFC;
  --text-muted: #BDC2C9;
  --text-body:  #C8D0E7;
  --font:       'Inter', sans-serif;
}
body{
   background-color:var(--bg)
}
.hero{
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  background:
    radial-gradient(ellipse 65% 55% at 15% 0%,   rgba(255, 64, 160, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 100%,  rgba(96, 163, 166, 0.16) 0%, transparent 70%),
    var(--bg);
  margin: 0;
  font-family: 'Inter' , sans-serif;
}
   
.hero-tagline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(64, 26, 66) 6%, rgba(69, 120, 100, 0.4) 100%);        color: #F0FE72;
  border: 0.5px solid var(--pink) ;
  border-radius: 999px;
  padding: 8px 20px;
}
    
.hero-title1{
  text-align: center;
  color:var(--text-white);
  font-family:'Inter', sans-serif;
  font-size: 60px;
  margin-bottom: 10px;
  line-height: 1.1;
        
}
    
.hero-title2 {
 text-align: center;
 background: linear-gradient(to bottom ,var(--pink) , #f4c3e1 ) ;
 font-family:'Inter', sans-serif;
 -webkit-background-clip: text;
 background-clip: text;
 -webkit-text-fill-color: transparent;
 font-size: 60px;
 margin-top: 8px;
       

}
    
.hero p{
  color:var(--text-muted);
  margin-bottom: 32px;
        
}
    
.buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
    
.hero-buttn1{
  background :linear-gradient(to bottom, var(--pink), var(--pink-light));
  border-radius: 10px;
  padding: 8px 20px;
  color: var(--text-white);
  box-shadow: 0 10px 20px rgb(225,71,182,0.5);
  border: 1px;
  min-width: 185px
 
}
  
     
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: transparent;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}
    
.browse-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
    
.hero-buttn2{
 background-color: transparent;
  border-radius: 10px;
  padding: 8px 20px;
  min-width: 130px;
  color:var(--teal) ;
  border: 1px solid var(--teal);

}
    
.hero-buttn1 a{
  color: var(--text-white);
  text-decoration: none;
  align-items: center;
  background-color: transparent;
  display: flex;
  justify-content: center;
  gap: 12px;
}
    
.hero-buttn2 a{
  text-decoration: none;
  color: var(--teal);
  display: flex;
  align-items: center;
}
    
.hero-buttn2:hover{
  background-color: #314444;
}
    
.arrow-icon{
  width: 18px;
  height: 18px;
  background-color: transparent;
}
    
.btn-icon{
 
 color:var(--teal) ;
    
}
    
.rocket-icon{
  width: 18px;
  height: 18px;
}
    
.cards-container{
  display:flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  color: var(--surface);
  padding: 50px 30px;
  gap: 24px;
  margin: 0 auto;
  background-color: var(--bg);
  border: 2px solid transparent;

}
    
.card-label{
  color: var(--text-muted);
  font-size: small;
  font-family: 'Inter' , sans-serif;

}
    
.card-item{
  background-color:  var(--surface); 
  color: var(--text-white);
  padding: 30px 30px ;
  border-radius: 15px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 border: 1px solid transparent;
}

.card-number {
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}
    
.card-item:hover{
   
   border-color: var(--pink);

}
 
.icon {
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
   font-size: 2rem;
}


.pink { color: rgb(192, 71, 139); }
.yellow { color: #ffd600; }
.light-pink { color: #FFB1D9; }
.green{color: teal;}
.purple{color:purple}
.lightsalmon{color:lightsalmon}
.featured-courses{
    text-align: center;
    padding: 50px 30px;
    color: var(--text-white);
}
.section-title{
    color: var(--text-white);
    font-family: 'Inter' , sans-serif;
    text-align: center;
}
.courses-title{
    color: var(--text-white);
    font-family: 'Inter' , sans-serif;
}
.courses-tagline{
     color: var(--text-muted);
    font-family: 'Inter' , sans-serif;
    text-align: center;
}
.courses-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 40px;
    margin: 0 auto 2.5rem;
   
}
.courses-card{
   background-color:var(--surface) ;
   border-radius: 16px;
   overflow: hidden;
   color: var(--text-white);
   text-align: left;
   display: flex;
   flex-direction: column;
   border: 1px solid var(--border);
   transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.courses-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 14, 39, 0.8);
    border-color: rgba(255, 64, 160, 0.6);
}
.courses-image{
  position: relative; 
    width: 100%;
    height: 200px;      
    overflow: hidden;
}
.courses-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.courses-card:hover .courses-image img { transform: scale(1.04); }
.badge {
    position: absolute;
    top: 14px;
     right: 14px;  
     z-index: 2;
    background-color: var(--pink); 
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
   
}
.content{
    padding: 22px 22px 24px;
    display: flex;
    flex-direction:column ;
    flex: 1;
}
.category{
    font-size: 0.82rem;
    color: var(--yellow);
    margin-bottom: 10px;
    font-weight: 500;
}
.card-title{
      font-family: 'Inter' , sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-white);
      line-height: 1.35;
      margin-bottom: 8px;
}
.description{
    font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 8px;  
      overflow: hidden;
}
.instructor {
      font-size: 0.85rem;
      color: var(--text-muted);;
      margin-bottom: 16px;
    }


    .rating {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      margin-bottom: 18px;
      flex-wrap: wrap;
      gap: 6px;
    }

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
}

.card-rating .fa-star {
    color: var(--pink);
    font-size: 0.85rem;
}

.rating-count {
    color: var(--text-muted);
}

.card-students {
    display: flex;
    align-items: center;
    gap: 6px;
    color:var(--text-muted);
    font-size: 0.875rem;
}

.card-students .fa-users {
    color: var(--text-muted);
    font-size: 0.85rem;
}    
    .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .price{
    font-size: 1.4rem;
        font-weight: 800;
        color:var(--pink);
        font-family: 'Inter' , sans-serif;
        white-space: nowrap;
       
    }
    .btn-details{
     background :linear-gradient(to right, var(--pink), var(--pink-light));
     border: none;
     border-radius: 8px;
     color: var(--text-white);
     padding: 11px 22px;
     box-shadow: 0 4px 16px rgba(255, 64, 160, 0.4);
     transition: opacity 0.2s ease, transform 0.15s ease;
    }
    .btn-details:hover { opacity: 0.88; transform: translateY(-1px); }
    .btn-details a{
        text-decoration: none;
        color: var(--text-white);
        font-size: 0.875rem;
        font-weight: 600;
    }
  .view-all-container{
   display: flex;
    justify-content: center; 
    margin-top: 1rem;      
    padding-bottom: 2rem;
   
  }
  .view-all {
  background-color: transparent; 
    color: var(--yellow);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--yellow); 
    transition: all 0.3s ease;
  }
  .view-all:hover{
    background: #21262E;
  }
  .challenges{
    display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 3rem;
  background-color: var(--bg);
   
  }
  .challenge{
    color: var(--yellow);
    border-radius: 50px;
    border: 1px solid var(--yellow);
    padding: 10px 20px;
    background-color:  #21262E;
  
   
  }
  .challenges-content{
 flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  }

  .challenges-content h1 {
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.challenges-content p {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.challenge-btn {
    background-color: var(--yellow);
    border-radius: 8px;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}


  .challenge-btn a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

  .challenges-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.challenges-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.challenges-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s;
  cursor: pointer;
  flex: 1;
}


.challenge-title {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Inter', sans-serif;
  flex: 1;
}
.challenge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.points {
   color: var(--yellow);
   font-size: 0.78rem; 
  }

.difficulty {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.easy   { background: rgba(96, 163, 166, 0.2);  color: var(--teal);   border: 1px solid rgba(96, 163, 166, 0.4); }
.medium { background: rgba(240, 254, 114, 0.15); color: var(--yellow); border: 1px solid rgba(240, 254, 114, 0.35); }
.hard   { background: rgba(255, 64, 160, 0.15);  color: var(--pink);   border: 1px solid rgba(255, 64, 160, 0.35); }

/* Challenge card link wrapper */
.challenges-card-link {
  text-decoration: none;
}

/* Difficulty accent dot at top of card */
.challenge-card-top {
  margin-bottom: 2px;
}
.challenge-category-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.diff-easy   { background: var(--teal);   box-shadow: 0 0 6px rgba(96, 163, 166, 0.6); }
.diff-medium { background: var(--yellow); box-shadow: 0 0 6px rgba(240, 254, 114, 0.6); }
.diff-hard   { background: var(--pink);   box-shadow: 0 0 6px rgba(255, 64, 160, 0.6); }
  .challenge-btn{
    background-color: var(--yellow);
    border-radius: 8px;
    border: 1px solid var(--yellow);
     padding: 8px 20px;
     box-shadow: 0 10px 20px #46493C;
  }
  .challenge-btn a{
    text-decoration: none;
    color: black;
  }

 .why-DevStudio {
  text-align: center;
  padding: 5rem 3rem;
  background-color: var(--bg);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.learning-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.learning-card:hover {
  border-color: var(--pink);
}
.learning-icon {
  font-size: 1.8rem;
}
.learning-title {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
   margin: 0;
}
.learning-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.start-learning{
   background: linear-gradient(to right, var(--pink), #a78cc0, var(--teal));
 border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  margin: 5rem 3rem;       
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-learning h1{
   color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.start-learning p{
  color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    margin-top: 1rem;
}
.learning-btn{
    border: none;
     border-radius: 999px;
    padding: 12px 32px;
    font-family: 'Inter' , sans-serif;
    background-color: var(--text-white);
    font-size: 1rem;
    margin-top: 1rem;

   
}

.learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.learning-btn a{
    text-decoration: none;
   color:var(--pink);
   font-weight: 700;
}
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 4rem;
    }

    .hero-title1,
    .hero-title2 {
        font-size: 40px;
    }

    .hero p br {
        display: none;
    }

    .cards-container {
        flex-wrap: wrap;
        padding: 30px 16px;
        gap: 16px;
    }

    .card-item {
        width: calc(50% - 8px);
    }

    .courses-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        margin: 0 auto 1rem;
    }

    .challenges {
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .challenges-content {
        align-items: center;
        text-align: center;
    }

    .challenges-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .start-learning {
        margin: 3rem 1.5rem;
        padding: 3rem 1.5rem;
    }

    .why-DevStudio {
        padding: 3rem 1.5rem;
    }

    .featured-courses {
        padding: 30px 16px;
    }

    .view-all-container {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 520px) {
  .challenges-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }
}