@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 200% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f2ecfd;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #d3beff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 220px;
    height: 55px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* Desktop Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #d3beff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 220px;
    height: 55px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.navbar-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center; 
    flex-grow: 1;
}

.navbar-item {
    margin: 0 15px;
}

.navbar-link {
    text-decoration: none;
    color: #000;
    font-size: 17px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-link:hover {
    background-color: #9f75f8;
    color: #fff;
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons a {
    color: #333;
    font-size: 1.35em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icons a:hover {
    color: #a883f9;
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    display: flex;
    width: 100%;
    padding: 50px 0px 100px 0px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.textnbutton {
    flex: 1;
    padding-right: 20px;
    animation: slideInLeft 1s ease-out;
}

.courseButton {
    padding: 12px;
    font-size: 16px;
    background-color: #c0a3ff;
    border: 1px solid black;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.courseButton:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 56px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1;
}

.titlename {
    font-size: larger;
    background: linear-gradient(45deg, #9f75f8, #d3beff);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    background-clip: text;
    color: transparent;
}

.textnbutton h2 {
    font-size: 32px;
}

h2 {
    font-size: 40px;
}

.textnbutton p {
    font-size: 20px;
    color: #555;
    line-height: 1.6;
}

.mainImg {
    flex: 1;
    width: 100%;
    max-width: 500px;
    animation: slideInRight 1s ease-out;
}

.mainImg img {
    width: 100%;
    height: auto;
}

.introSection {
    gap: 10px;
}

.introContent {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.introContent img {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.introContent p {
    flex: 1;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.progSection h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.progCard {
    flex: 1 1 350px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progCard h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.progCard p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.progCard span {
    font-size: 18px;
    font-weight: bold;
    color: #9f75f8;
}

.progCard:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gridlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
}

.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.courseCards {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.courseCards:hover {
    transform: translateY(-5px);
}

.courseCards figure {
    margin: 0;
    padding: 0;
}

.courseCards img {
    width: 100%;
    height: 240px;
    display: block;
}

.cardContent {
    padding: 20px;
}

.badge {
    display: inline-block;
    background-color: #f8c202;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cardContent .h3 {
    font-size: 1.25rem;
    margin: 10px 0;
}

.cardContent .card-title {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.card-description {
    font-size: 14px;
    font-weight: 100;
    padding-right: 35px;
    color: #666;
}

.cardContent .card-title:hover {
    color: #9f75f8;
}

.rating {
    display: flex;
    align-items: center;
}

.star-icon {
    margin-right: 5px;
}

.rating-star {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.rating-reviews {
    font-size: 0.875rem;
    color: #777;
    margin-left: 5px;
}

.price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 5px;
}

.contentOverview {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #666;
}

.contentOverview li {
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.contentOverview li:first-child {
    border-top: none;
}

.overview {
    border-right: 1px solid black;
    padding: 0 5px;
}

.overview a {
    text-decoration: none;
    color: #9f75f8;
}

footer {
    background-color: rgb(0, 0, 0);
    color: #fff;
    padding: 40px 0 5px 0;
}

.footergrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.footer-list {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-list h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #9f75f8;
    text-transform: uppercase;
}

.logo1 {
    max-width: 220px;
    height: auto;
    filter: invert(100%);
}

.compBrief {
    font-size: 16px;
    line-height: 1.6;
    padding-right: 12px;
}

.footer-list a {
    font-size: 16px;
    line-height: 1.6;
}

.add {
    line-height: 1.1;
}

.footer-list ul {
    list-style: none;
    padding: 0;
}

.footer-list ul li {
    margin-bottom: 10px;
}

.footer-list ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list ul li a:hover {
    color: #9f75f8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.input-field {
    padding: 10px;
    margin: 10px 0px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.subButton {
    background-color: #a883f9;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.subButton:hover {
    background-color: #9f75f8;
}

.social-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-list li {
    list-style: none;
}

.social-list li a {
    font-size: 20px;
    transition: color 0.3s ease;
}

hr {
    border: 0;
    height: 1px;
    background: #444;
    margin: 20px 0;
}

.copyright {
    text-align: center;
    font-size: 14px;
}

/* About Section Styles */
.about-section {
    background-color: #f7f7fb;
    padding: 30px 30px;
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.about-section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-container h2 {
    color: #9f75f8;
    font-size: 40px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.about-container h3 {
    color: #444;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 3px solid #9f75f8;
    display: inline-block;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-container p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.8;
}

.achievements-list,
.offerings-list {
    list-style-type: none;
    max-width: 1100px;
}

.achievements-list li,
.offerings-list li {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
    padding-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.achievements-list li::before,
.offerings-list li::before {
    content: "\2713";
    color: #9f75f8;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    font-size: 1.5em;
}

/* Contact Section */
.contact-section {
    background-color: #f7f7fb;
    padding: 20px;
    margin: 20px auto;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.contact-section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.contact-container {
    max-width: 100%;
    margin: 0 auto;
}

.contact-container h1 {
    color: #9f75f8;
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
}

.contact-container p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

textarea {
    resize: none;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a883f9;
    outline: none;
    box-shadow: 0 0 4px rgba(168, 131, 249, 0.5);
}

.sendButton {
    padding: 12px;
    background-color: #a883f9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.sendButton:hover {
    background-color: #9f75f8;
}



@media (max-width: 1024px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .menu {
        display: none; 
        flex-direction: column;
        align-items: flex-start;
        background-color: #d3beff;
        width: 100%;
        position: absolute;
        top: 85px;
        right: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .hamburger {
        display: block;
        order: 2; 
    }

    .logo {
        order: 1;
    }

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

    .navbar-list {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .navbar-item {
        text-align: left;
        border-bottom: 1px solid #9f75f8;
    }

    .navbar-link {
        padding: 10px 7px;
        display: block;
    }

    .icons {
        justify-content: flex-start;
        padding: 10px 20px;
    }

    .textnbutton h1 {
        font-size: 48px;
    }

    .textnbutton p {
        font-size: 18px;
    }

    .progCard {
        flex: 1 1 45%;
    }

    .about-section {
        padding: 25px 20px;
    }

    .about-container h1 {
        font-size: 2.5em;
    }

    .about-container h2 {
        font-size: 35px;
    }

    .about-container p {
        font-size: 1.1em;
    }

    .achievements-list li,
    .offerings-list li {
        font-size: 1.1em;
    }

}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

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

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

    .textnbutton {
        max-width: 100%;
        padding: 0 10px;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 30px;
    }

    .mainImg {
        width: 90%;
        max-width: 100%;
        margin-top: 20px;
    }

    .introContent {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .introContent img {
        max-width: 90%;
        margin-bottom: 15px;
    }

    .introContent p {
        font-size: 16px;
        padding: 0 20px;
    }

    .progSection h2 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .cards {
        margin-bottom: 15px;
        padding: 30px 10px;
    }

    .progCard h3 {
        font-size: 18px;
    }

    .progCard p {
        font-size: 14px;
    }

    .progCard span {
        font-size: 16px;
    }

    .gridlist {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .courseCards img {
        height: 210px;
    }

    .badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .cardContent .h3 {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }

    .contentOverview li {
        padding: 5px 0;
    }

    .rating-star {
        font-size: 0.9rem;
    }

    .rating-reviews {
        font-size: 0.8rem;
    }

    .footergrid {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .footer-list {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-list h3 {
        font-size: 16px;
    }

    .compBrief,
    .footer-list a {
        font-size: 14px;
    }

    .logo1 {
        max-width: 150px;
    }

    .footer-list ul {
        align-items: center;
    }

    .social-list {
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .input-field {
        padding: 8px;
        font-size: 14px;
    }

    .subButton {
        padding: 8px;
        font-size: 14px;
    }

    hr {
        margin: 15px 0;
    }

    .copyright {
        font-size: 12px;
    }

    .about-container h1 {
        font-size: 2em;
    }

    .about-container h2 {
        font-size: 30px;
    }
    .about-container h3 {
        font-size: 24px;
    }
    .about-container p {
        font-size: 1em;
    }

    .achievements-list li,
    .offerings-list li {
        font-size: 1em;
    }

    .about-section {
        padding: 20px 10px;
        max-width: 350px;
    }
    .contact-section {
        padding: 12px;
        max-width: 90%;
    }

    .contact-container h1 {
        font-size: 30px;
    }

    .contact-container p {
        font-size: 0.9em;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    button {
        font-size: 1em;
    }

}