/* common css */
:root{
    --primary-color:#7b5fff;
    --secondary-color:#ff7b00;
    --bg-light:#f8f8f8;
    --text-dark:#222;
    --text-light:#7c7878;
    --gradient:linear-gradient(349deg,#715cee,#b1a5f8);
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body{
    background: linear-gradient(180deg,#a196ef1f,#9e92f50f);
    color: var(--text-dark);
    overflow-x: hidden;
}
body::-webkit-scrollbar{widows:10px;}
body::-webkit-scrollbar-thumb{
    background: var(--primary-color);
    border-radius: 10px;
}
.commonBtn{
    padding: 15px 30px;
    font-size: 16px;
    background: var(--gradient);
    border-radius: 23px;
    color: white;
    letter-spacing: 1px;
    font-weight: 600;
    filter: drop-shadow(2px 5px 8px #b1a5f8);
    border: none;
    transition: 0.4s ease-in-out;
    text-decoration: none;
}
.commonBtn:hover{
    background: linear-gradient(349deg, #9383f5, #b1a5f8);
    color: white;
}
/*header*/
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
#mainHeader.fixed{
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.9);
    width: 100%;
    z-index: 9999;
    padding: 10px 100px;
}
#mainHeader{transition: all 0.3s ease;}
.logo{font-size: 20px;font-weight: bold;}
.logo i{
    color: var(--primary-color);
}
nav ul{
    display: flex;
    gap:20px;
    list-style: none;
}
nav ul li a{
    text-decoration: none;
    color:var (var(--text-dark));
    padding: 8px 12px;
}
nav li a:hover{
    color:var(--primary-color);
}
.menu-toggle{
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span{
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
}
/*hero*/
.heading{
    font-size:42px;
    font-weight:900;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}
.hero-text{max-width: 600px;}
.heroHeading{font-size:4rem;}
.heading span{color:var(--secondary-color);}
#courseCount,
#studentCount{
    font-size: 2rem;
    font-weight: bold;
}
.counterText{
    font-size: 14px;
    color:var(--text-light);
}
.hero-text p{
    margin: 20px 0;
    color: var(--text-light);
}
.hero-image{
    max-width: 400px;
    position: relative;
}
.userImage{
    z-index:99;
    position:relative;
    width: 100%;
    display: block;
}
.heroIcon1,
.heroIcon2{
    position: absolute;
    z-index: 99;
    border-radius: 0px!important;
    filter: drop-shadow(5px 4px 10px #333);
}
.heroIcon1{
    left: -15px;
    bottom: -15px;
    animation: slideDown 1s ease-in-out infinite alternate;
}
.heroIcon2{
    right: -15px;
    top: -15px;
    width: 200px;
    animation: slideRight 1s ease-in-out infinite alternate;
}
@keyframes slideDown {
    from{left:0px;}
    to{left:20px;}
}
@keyframes slideRight {
    from{right:-20px;}
    to{right: 0px;}
}
.circle-container{
    position: absolute;
    inset:0;
    display: grid;
    place-items: center;
    z-index: 1;
}
.circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle,#907fea 30%,#b2a6f8 100%);
    opacity: 0.6;
    animation: breathe 3s ease-in-out infinite;
}
.circle:nth-child(2){
    width: 360px;
    height: 360px;
    top: -15px;
    left: -15px;
    background: radial-gradient(circle,#907fea 30%,#b2a6f8 100%);
    animation-delay: 0.5s;
}
.circle:nth-child(3){
    width: 400px;
    height: 400px;
    top: -30px;
    left: -30px;
    background: radial-gradient(circle,#907fea 30%,#b2a6f8 100%);
    animation-delay: 1s;
}
@keyframes breathe {
    0%, 100%{
        transform: scale(1);
        opacity: 0.2;
    }
    50%{
        transform: scale(1.1);
        opacity: 0.7;
    }   
}
.stats{display: flex;gap:40px; margin-top:20px;}
/* course category */
.courseSection{
    max-width: 1200px;
    margin: auto;
}
.courses{
    display: flex;
    justify-content: space-between;
    margin: 40px 0px;
    gap: 20px;
    flex-wrap: wrap;
}
.course{
    background: linear-gradient(45deg, #ed88aa,#e76e94);
    padding: 25px;
    border-radius: 25px;
    flex: 1 1 200px;
    text-align: left;
    color: white;
    filter: drop-shadow(5px 4px 10px #ed88aa);
    transition: 0.4s ease-in-out;
}
.course:hover{transform:scale(1.05);}
.course i{
    font-size: 3.2rem;
    display: block;
    margin-bottom: 30px;
}
.course span{
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.course hr{
    margin-top: 10px;
    border: none;
    height: 1px;
    background: #ffffff75;
}
.course:nth-child(2){
    background: linear-gradient(45deg,#9d8ef7,#9686f4);
    filter: drop-shadow(5px 5px 10px #9d8ef7);    
}
.course:nth-child(3){
    background: linear-gradient(45deg, #94dcf5, #76caea);
    filter: drop-shadow(5px 4px 10px #94dcf5);
}
.course:nth-child(4){
    background: linear-gradient(45deg, #ffd200, #f7971e);
    filter: drop-shadow(5px 4px 10px #ffd200);
}
.browseAll{margin-top: 10px;}
/*about section*/
.aboutSection{
    display: flex;
    justify-content: space-around;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 100px auto;
}
.image-box{
    flex: 1 1 500px;
    position: relative;
}
.image-box img{
    width: 100%;
    border-radius: 10px;
    display: block;
}
.purple-corner{
    width: 100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: -1;
    border-radius: 10px;
}
.text-box{flex: 1 1 500px;}
small{
    color:var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
}
.text-box p{
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-break: 1.6;
}
/*course card section*/
.courses-section{
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.desc{
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 30px;
}
.courses{
    display: flex;
    justify-content: center;
    gap:20px;
    flex-wrap: wrap;
}
.course-card{
    background: white;
    border-radius: 10px;
    margin-top:20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    width: 350px;
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease-in-out;
}
.course-card:hover{transform: scale(1.05);}
.course-card img{width: 100%; border: 10px;}
.lesson{
    font-size: 12px;
    color: var(--secondary-color);
    margin: 10px 0 5px;
}
.course-card h3{
    font-size: 16px;
    margin: 5px 0 10px;
}
.price{margin-top: 5px 0; }
.price .new{
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 5px;
}
.price .old{
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 15px;
}
.rating{
    font-size: 14px;
    color: #fbbf24;
    margin: 5px 0;
}
.bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
/*cta section*/
.cta-section{
    background: url('../images/pattern.png'),var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-text{flex: 1 1 300px;}
.cta-text h2{
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}
.cta-text p{
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}
.cta-button{
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.cta-button:hover{
    background: var(--secondary-color);
    color: white;
}
/*price section*/
.priceSection{padding: 70px;
text-align: center;}
.priceSection .container{
    max-width: 1000px;
    margin: auto;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}
.pricing-card{
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(47, 17, 17, 0.08);
    padding: 30px 20px;
    width: 320px;
    transition: trasform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(128,0,255,0.3);
}
.pricing-card.featured{
    color: white;
    background: var(--gradient);
}
.plan-title{
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-description{
    font-size: 0.9rem;
    width: 200px;
    color: var(--text-light);
    margin: 20px auto;
    border-bottom: 1px solid #b2b2b2a6;
    padding-bottom: 20px;
}
.pricing-card.featured .plan-description{color: #e0dfff;}
ul.plan-features{
    list-style: none;
    padding: 0;
    margin: 20px 55px;
}
ul.plan-features li{
    margin: 10px 0;
    display: flex;
    align-items: center;
    color: inherit;
}
ul.plan-features li::before{
    content: "\2713";
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 10px;
}
.pricing-card.featured ul.plan-features li::before{color: white;}
.price{font-size: 2rem; font-weight: bold; margin-bottom: 10px;}
.pricing-card.featured .commonBtn{
    background: white;
    color: #7a4aff;
    border: none;
}
/*testimonial section */
.testimonialSection{
    text-align: center;
    padding: 50px;
}
.testimonial-container{
    max-width: 1000px;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.testimonial-wrapper{
    display: flex;
    transition: transform 0.6s ease;
}
.testimonial{
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin: 10px;
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.top-section{
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.image{flex-shrink: 0;}
.image img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.info{
    margin-left: 15px;
    text-align: left;
    flex-grow: 1;
    position: relative;
}
.info h3{
    font-size: 16px;
    font-weight: 600;
}
.info .position{
    font-size: 14px;
    margin: 2px 0 8px;
}
.stars{
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary-color);
    font-size: 16px;
    flex-wrap: nowrap;
}
.stars span{
    margin-left: 6px;
}
.quote-icon1{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 4rem;
    color: var(--secondary-color);
}
.bottom-text{
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.dots{
    text-align: center;
    margin-top: 20px;
}
.dot{
    display:inline-block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}
.dot.active{
    background: var(--secondary-color);
}
/* instructor */
.instructor-section{
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.instructor-container{
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.instructor-image img{
    max-width: 100%;
    height: auto;
    width: 500px;
}
.instructor-content{max-width: 600px;}
.instructor-content p{
    font-size: 16px;
    color: #555;
    line-break: 1.6;
    margin-bottom: 30px;
}
#backToTop{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary-color);
    color: white;
    border: 3px solid var(--primary-color);
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#backToTop:hover{
    background: white;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}
footer{
    background: url('../images/pattern.png'),#513be8;
    padding: 60px 20px 30px;
    text-align: center;
    color: white;
}
.newsletter{
    max-width: 800px;
    margin: 0 auto 40px;
}
.newsletter h2{
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}
.newsletter p{
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}
.form-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.form-container input{
    padding: 15px 20px;
    border-radius: 40px;
    border: none;
    outline: none;
    width: 500px;
    font-size: 16px;
}
.footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: white;
}
.footer-logo i{
    color: var(--secondary-color);
}
.footer-links{
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}
.footer-links a{
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover{
    color: var(--secondary-color);
}
.social-icons{
    display: flex;
    gap: 15px;
}
.social-icons a{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    background: white;
    font-size: 16px;
    transition: background 0.3s;
}
.copyright{
    margin-top: 20px;
    font-size: 13px;
    color: #bbb;
}
/* responsive screen */
@media(max-width:768px){
    html,body{
        overflow-x: hidden;
    }
    #mainHeader.fixed{padding: 10px 22px;}
    nav{position: relative;}
    nav ul{
        display: none;
        flex-direction: column;
        gap: 18px;
        background: white;
        position: absolute;
        top: 60px;
        width: 130px;
        right: 0;
        background: #fff;
        padding: 16px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        border-radius: 8px;
    }
    nav ul li{padding:0;}
    nav ul.active{display:flex;z-index: 9999;}
    
    .menu-toggle{display: flex;flex-direction: column;cursor:pointer;gap:0.1px;}
    .hero{flex-direction: column-reverse;text-align: center;}
    .heroHeading{font-size: 2rem;}
    .hero-image{overflow: hidden;}
    .courseSection{padding: 20px;}
    .stats{flex-direction: column;}
    .circle-container{display: none;}
    .course-card:hover{
        transform: none;
    }
    .course-card{
        width: 100%;
        max-width: 350px;
    }
    .courses{flex-direction: column;align-items: center;}
    .course{width: 100%;}
    .aboutSection{padding: 20px;}
    .cta-section{flex-direction: column;align-items: flex-start;padding: 30px 20px;}
    .cta-text{flex: auto;}
    .priceSection .container{flex-direction: column;}
    .pricing-card{
    width: 100%;
    max-width: 360px;
  }
    .testimonialSection{padding: 20px;}
    .testimonial{flex: 0 0 calc(100% - 20px);}
    .quote-icon1{display: none;}
    .instructor-content{flex-direction: column; text-align: center;}
    .instructor-image img{width: 100%;max-width: 300px;}
    .footer-bottom{flex-direction: column; text-align: center;gap: 20px;}
    .form-container{padding: 20px; flex: 1 1 343px;flex-direction: column;align-items: center;}
    .form-container input,
    .form-container button{
        width: 100%;max-width: 350px;
    }
    .text-box{
    max-width: 100%;
    text-align: center;
  }
  .text-box small{
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
}