@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header and Navigation */
header {
    background-color: black;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #3C096C;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    cursor: pointer;
    
}

nav .logo:hover{
  color: #ffa500;
  text-decoration-line: 0 0 10px #ffa500,
              0 0 20px #ffa500,
              0 0 40px #ffa500,
              0 0 60px #ff7300;
  transition: text 0.3s ease, color 0.3s ease;
}



nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #C77DFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in;
}

nav ul li a:hover {
    color: orange;
    text-decoration: underline;
}

.nav-buttons .btn-loginup {
    background: linear-gradient(90deg, #7B2CBF, #9D4EDD);
    color: #FFFFFF;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.btn-loginup:hover {
    transform: scale(1.05);
    color:orange;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* --- Log In Link --- */
.login-link {
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* General Button Styles */
.btn-primary {
    background: linear-gradient(90deg, #7B2CBF, #9D4EDD);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #9D4EDD; 
  color: black;
  text-decoration: none; 
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: scale(1.05);
}

section {
    padding: 6rem 5%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.subtitle {
    font-size: 1.1rem;
    color: #C77DFF;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #C77DFF;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 5rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: white;
}

.stat-item p {
    font-size: 1rem;
    color: #C77DFF;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: #1c0a3a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #3C096C;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.icon-container {
    font-size: 2.5rem;
    color:orange;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #C77DFF;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}
.courses-section h1
{
    font-size:45px;
}

.course-card {

    background-color: hsl(0, 0%, 7%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3C096C;
    display: flex;
    flex-direction: column;

    transition: 
        transform 0.3s ease-in-out, 
        box-shadow 0.3s ease-in-out; 
}

.course-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}

.course-card img {
    width: 100%;
    height: auto;
}

.course-card h3, .course-card p, .course-info, .course-footer {
    padding: 0 1.5rem;
}

.course-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.course-card p {
    color: #C77DFF;
    flex-grow: 1;
    margin: 0.5rem 0;
}

.course-info {
    display: flex;
    justify-content: space-between;
    color: #C77DFF;
    font-size: 0.9rem;
    padding-bottom: 1rem;
}

.course-info span i {
    margin-right: 5px;
    color: #9D4EDD;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    padding-top: 1rem;
}

.course-footer .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.btn-course {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    color: #FFFFFF;
}

.btn-course.btn-enroll { background-color: orange; font-weight: 50px; font-size:16px; }
.btn-course.btn-master { background-color: orange; font-weight: 50px; font-size:16px; }
.btn-course { background-color: orange; font-weight: 50px;}


.instructors-section {
    background-color: rgb(6,6,9);
}
.instructors-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.instructor-card {
    background-color: hsl(0, 0%, 7%);
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    max-width: 400px;
    border-radius: 15px;
    transition: 
        transform 0.3s ease-in-out, 
        box-shadow 0.3s ease-in-out;
}

.instructor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #9D4EDD;
    margin-bottom: 1rem;
}

.instructor-card h3 {
    font-size: 1.5rem;
}

.instructor-card .title {
    color: #9D4EDD;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}


.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span {
    background-color: #3C096C;
    color: #C77DFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.instructor-card .bio {
    color: #C77DFF;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.instructor-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size:16px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    
}


/* Contact Section */
.contact-section {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background-color: rgb(6, 6, 9);
}
.contact-info {
    flex: 1;
    text-align: left;
}
.contact-info h2 { text-align: left; }
.contact-info p { color: #C77DFF; margin-bottom: 2rem; }
.contact-info ul { list-style: none; }
.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contact-info ul li i {
    color: #9D4EDD;
    font-size: 1.5rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: #1c0a3a;
    border: 1px solid #3C096C;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #C77DFF;
}
.contact-form button {
    align-self: flex-start;
}

.gradient-line {
 
  width: 100%; 
  height: 3px;
  

  background: linear-gradient(
    to right, 
    #6A0DAD 0%,      
    #FF4500 45%,      
    #FF4500 55%,      
    #6A0DAD 100%   
  );

  background-size: 90% 100%; 
  background-position: center; 
  background-repeat: no-repeat;

}

.companies-container {
    width: 100%;
    max-width: 1400px; 
    overflow: hidden; 
    background-color: black;
    padding: 20px 0;
    padding-left:20px;
    
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-track {
    display: flex;
    width: fit-content; 
    animation: scroll-left 30s linear infinite;
}

.logo-track img {
    height: 70px; 
    width: auto;
    margin: 0 50px; 
    /* filter: General(100%);  */
    transition: all 0.3s ease;
    cursor: pointer
    ;
}

.logo-track img:hover{
     box-shadow: 0 0 15px 5px #7F00FF;

    transform: scale(1.1) translateY(-5px); 
}



@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
       
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background-color: rgb(6,6,9);
    padding: 4rem 5% 1rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-about h4 {

    font-size: 2.5rem; 
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px #7F00FF, 
                 0 0 20px #7F00FF,
                 0 0 30px #7F00FF,
                 0 0 40px #7F00FF,
                 0 0 50px #7F00FF,
                 0 0 60px #7F00FF,
                 0 0 70px #7F00FF;
    animation: pulse-glow 2s infinite alternate;

    display: inline-block;
    position: relative;
    padding: 10px 20px; 
    cursor: pointer;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.5s ease-out; 
    border-radius: 5px;
}


.footer-about p {
    color: #C77DFF;
    margin-bottom: 1.5rem;
}
.social-icons a {
    color: #C77DFF;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #9D4EDD;
}
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;

    display: inline-block; 
    color: white; 
    text-decoration: none;
    font-size: 25px;
    padding: 10px 15px;
    transition: color 0.3s ease, transform 0.3s ease; 
}
.footer-links ul { list-style: none; }
.footer-links ul li a {
    color: #C77DFF;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease-out, transform 0.4s ease-out; 
}
.footer-links ul li a:hover {
    color: #ff5100;
    transform: translateX(5px); 
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #3C096C;
    padding-top: 1.5rem;
    color: #C77DFF;
}
section {
  padding: 2.5rem 5%;
}

nav ul {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  display: none;
}

nav.active ul {
  display: flex;
}

.hero-section {
  flex-direction: column;
  text-align: center;
}

.hero-content {
  max-width: 100%;
}

/* Code Animations */

.code-animation-container {
    width: 600px;
    padding: 2rem;
    background-color: rgb(6, 6, 11); 
    border-radius: 8px;
    box-shadow: 0 5px 25px #7F00FF;
}

.line {
    color: #a9a9a9; 
    font-size: 1.2rem;
    white-space: nowrap; 
    overflow: hidden; 
    margin-bottom: 0.5rem;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    width: 0; 
}


.comment { color: #5c6370; }
.keyword { color: #c678dd; } 
.variable { color: #61afef; } 
.string { color: #98c379; }  
.function { color: #e5c07b; } 


@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}


@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #61afef; }
}

.line-1 {
    animation: 
        typing 2s steps(22) forwards,
        blink-caret .75s step-end 3;
    animation-delay: 0s;
}

.line-2 {
    animation: 
        typing 2.5s steps(32) forwards,
        blink-caret .75s step-end 4;
    animation-delay: 2.2s; 
}

.line-3 {
    animation: 
        typing 2.5s steps(31) forwards,
        blink-caret .75s step-end 4;
    animation-delay: 4.9s;
}

.line-4 {
    animation: 
        typing 2s steps(21) forwards;
    animation-delay: 7.6s; 
}

.line-4 .cursor {
    display: inline-block;
    width: 10px;
    height: 1.5rem;
    background-color: #61afef;
    vertical-align: middle;
    animation: blink-caret .75s step-end infinite;
    animation-delay: 9.6s;
}

.code-animation-container:hover{
    transition-duration: 0.3s;
    box-shadow: 0 5px 25px rgb(255, 255, 255);
}

/* RESPONSIVE From MOBILE First Approach */
.features-grid,
.courses-grid {
  grid-template-columns: 1fr;
}

.instructors-container {
  flex-direction: column;
  align-items: center;
}

.code-animation-container {
    width: 90%;
    padding: 1.2rem;
    font-size: 1rem;
    margin: 1.5rem auto;
}

 .line {
    white-space: normal;
    overflow: visible;
    border-right: none;
    width: auto;
    font-size: 1rem;
}

.contact-section {
  flex-direction: column;
}

.footer-container {
  grid-template-columns: 1fr;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.8rem;
}

.hero-content p,
.subtitle {
  font-size: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-course {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

/* FOR TABLET */
@media (min-width: 600px) {
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .code-animation-container {
        width: 80%;
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
    }

    .line {
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid rgba(255,255,255,0.75);
        width: 0;            
        box-sizing: content-box; 
    }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructors-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .contact-section {
    flex-direction: column;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FOR PC-LAPTOP */
@media (min-width: 1024px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }

  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-content {
    max-width: 50%;
    padding-left:20px;
  }

  .code-animation-container {
        width: 600px;
        padding: 2rem;
        font-size: 1.2rem;
    }

    .line {
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid rgba(255,255,255,0.75);
        width: 0;
    }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .instructors-container {
    flex-direction: row;
    gap: 3rem;
  }

  .contact-section {
    flex-direction: row;
    gap: 4rem;
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
/* FOR MOBILE HERO SECTION */
@media (max-width: 599px) {
  .stats {
    flex-direction: column;     
    align-items: center;        
    gap: 1rem;                  
    margin-top: 2rem;
  }

  .stat-item {
    text-align: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;            
    text-align: center;
  }

  .hero-content p {
    font-size: 1rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

}
