/* style.css */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08080d;
    color: #ffffff;
    overflow-x: hidden;
}

header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    border-bottom: 1px solid #22222b;
    background: rgba(8, 8, 13, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: #9b5cff;
}

nav {
    display: flex;
    gap: 35px;
}

nav a,
.footer-links a {
    color: #a8a8b3;
    text-decoration: none;
    transition: .3s;
}

nav a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    gap: 12px;
}

button {
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.login {
    background: transparent;
    color: white;
    padding: 12px 20px;
}

.signup,
.start,
.cta button {
    background: linear-gradient(135deg, #7c3cff, #b65cff);
    color: white;
    padding: 13px 22px;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(139, 72, 255, .25);
}

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 9%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #6d28d9;
    filter: blur(180px);
    opacity: .18;
    right: 10%;
    top: 50px;
}

.hero-content {
    width: 52%;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #35265a;
    border-radius: 50px;
    background: #161020;
    color: #bd8cff;
    font-size: 13px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(90deg, #a855f7, #ec72ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    color: #a8a8b3;
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
}

.search {
    margin-top: 35px;
    width: 600px;
    max-width: 100%;
    display: flex;
    background: #15151d;
    border: 1px solid #30303b;
    border-radius: 12px;
    padding: 6px;
}

.search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px;
    color: white;
    font-size: 15px;
}

.search button {
    background: #914bff;
    color: white;
    padding: 0 25px;
    border-radius: 8px;
}

.popular {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
}

.popular span {
    color: #777783;
}

.popular a {
    color: #b7b7c2;
}

.hero-card {
    width: 390px;
    height: 390px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-card {
    width: 330px;
    padding: 30px;
    background: linear-gradient(145deg, #19151f, #0e0e14);
    border: 1px solid #393040;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    transform: rotate(4deg);
    animation: floating 4s ease-in-out infinite;
}

.play {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: #934fff;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px #7134b955;
}

.learning-card h3 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.learning-card p,
.learning-card small {
    color: #888894;
}

.progress {
    height: 7px;
    background: #292631;
    border-radius: 20px;
    margin: 25px 0 10px;
}

.progress div {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #873cff, #d568ff);
    border-radius: inherit;
}

.floating-card {
    position: absolute;
    background: #191820;
    border: 1px solid #35323e;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px #00000055;
    z-index: 5;
    font-size: 13px;
}

.floating-card.top {
    top: 20px;
    right: 0;
    animation: float2 3s ease-in-out infinite;
}

.floating-card.bottom {
    bottom: 25px;
    left: 0;
    animation: float2 3.5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: rotate(4deg) translateY(0);
    }
    50% {
        transform: rotate(4deg) translateY(-12px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stats {
    margin: 0 7%;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #111117;
    border: 1px solid #25252e;
    border-radius: 18px;
}

.stats div {
    text-align: center;
    border-right: 1px solid #2a2a32;
}

.stats div:last-child {
    border: none;
}

.stats strong {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.stats span {
    color: #777783;
    font-size: 13px;
}

.section {
    padding: 110px 7%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
}

.small-title {
    color: #a85cff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
    margin-top: 8px;
}

.section-heading > a {
    color: #a968ff;
    text-decoration: none;
}

.categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category {
    padding: 28px 20px;
    border: 1px solid #292932;
    border-radius: 16px;
    background: #111117;
    transition: .3s;
}

.category:hover {
    transform: translateY(-8px);
    border-color: #7844ba;
}

.icon {
    font-size: 30px;
    margin-bottom: 25px;
}

.category h3 {
    margin-bottom: 8px;
}

.category p {
    color: #74747f;
    font-size: 13px;
}

.purple {
    background: linear-gradient(145deg, #191226, #111117);
}

.blue {
    background: linear-gradient(145deg, #101b2b, #111117);
}

.orange {
    background: linear-gradient(145deg, #281b12, #111117);
}

.green {
    background: linear-gradient(145deg, #10251b, #111117);
}

.pink {
    background: linear-gradient(145deg, #29121f, #111117);
}

.courses-section {
    background: #0b0b10;
}

.courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course {
    background: #121219;
    border: 1px solid #292932;
    border-radius: 17px;
    overflow: hidden;
    transition: .35s;
}

.course:hover {
    transform: translateY(-8px);
    border-color: #7541b8;
    box-shadow: 0 25px 60px #00000055;
}

.course-image {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.course-image span {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: bold;
    background: #00000055;
    padding: 7px 10px;
    border-radius: 5px;
}

.web {
    background: linear-gradient(135deg, #32165c, #711d71);
}

.python {
    background: linear-gradient(135deg, #163c59, #176b66);
}

.uiux {
    background: linear-gradient(135deg, #4b1c52, #982b54);
}

.code,
.python-icon,
.design-icon {
    font-size: 65px;
    font-weight: bold;
}

.design-icon {
    color: #ff9be9;
}

.course-body {
    padding: 24px;
}

.level {
    color: #a867ff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.course h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 10px 0;
}

.course-body > p {
    color: #7f7f89;
    font-size: 13px;
    line-height: 1.6;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    font-size: 13px;
}

.avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #282032;
    color: #c18aff;
    font-size: 10px;
    font-weight: bold;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #272730;
    padding-top: 18px;
}

.course-footer strong {
    font-size: 20px;
}

.course-footer span {
    color: #9999a3;
    font-size: 12px;
}

.learning {
    padding: 110px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.learning-text {
    max-width: 500px;
}

.learning-text h2 {
    font-size: 50px;
    line-height: 1.05;
    margin: 15px 0 25px;
}

.learning-text > p {
    color: #898993;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
    color: #c4c4cc;
    font-size: 14px;
}

.features div::first-letter {
    color: #a55aff;
}

.learning-visual {
    width: 500px;
    max-width: 100%;
}

.dashboard {
    background: #121219;
    border: 1px solid #302d38;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 30px 80px #00000055;
    transform: rotate(-2deg);
}

.dash-top {
    display: flex;
    justify-content: space-between;
    color: #aaaab4;
    margin-bottom: 30px;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid #292932;
}

.mini-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: #211b2c;
    border-radius: 10px;
}

.course-progress > div:nth-child(2) {
    flex: 1;
}

.course-progress h4 {
    margin-bottom: 5px;
}

.course-progress p {
    color: #70707b;
    font-size: 11px;
    margin-bottom: 9px;
}

.course-progress > strong {
    font-size: 12px;
    color: #ae72ff;
}

.line {
    height: 5px;
    background: #292932;
    border-radius: 20px;
}

.line div {
    height: 100%;
    width: 75%;
    background: #914bff;
    border-radius: inherit;
}

.course-progress:nth-child(3) .line div {
    width: 40%;
}

.course-progress:nth-child(4) .line div {
    width: 100%;
}

.cta {
    margin: 0 7% 100px;
    padding: 80px 20px;
    text-align: center;
    border: 1px solid #3a2850;
    border-radius: 25px;
    background: radial-gradient(circle at center, #241334, #111117 70%);
}

.cta h2 {
    font-size: 45px;
    margin-bottom: 15px;
}

.cta p {
    color: #85858f;
    margin-bottom: 30px;
}

.cta button {
    font-size: 15px;
    padding: 15px 28px;
}

footer {
    border-top: 1px solid #25252e;
    padding: 50px 7%;
    text-align: center;
    color: #777783;
}

.footer-logo {
    font-size: 25px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    font-size: 13px;
}

footer small {
    color: #55555f;
}

/* Responsive */

@media (max-width: 1000px) {
    nav {
        display: none;
    }

    .hero {
        padding: 70px 6%;
    }

    .hero-card {
        transform: scale(.8);
    }

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

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

@media (max-width: 700px) {
    header {
        padding: 0 5%;
    }

    .hero {
        flex-direction: column;
        padding: 60px 6%;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .popular {
        justify-content: center;
    }

    .hero-card {
        margin-top: 40px;
        width: 100%;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .stats div {
        border: none;
    }

    .categories,
    .courses {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        gap: 20px;
        flex-direction: column;
    }

    .learning {
        flex-direction: column;
        padding: 80px 6%;
    }

    .learning-text h2 {
        font-size: 40px;
    }

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

    .cta {
        margin: 0 5% 70px;
    }

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

    .footer-links {
        flex-wrap: wrap;
    }
}
