:root {
    --green: #39ff88;
    --green-light: #5cff9d;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --bg: #020817;
    --bg-2: #06111f;
    --bg-3: #081426;
    --card: rgba(8, 20, 38, .68);
    --border: rgba(57, 255, 136, .14);
    --text: #f4f8f6;
    --muted: #91a3b8;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 15%, rgba(57, 255, 136, .055), transparent 28%),
        radial-gradient(circle at 85% 35%, rgba(34, 211, 238, .045), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(57, 255, 136, .035), transparent 35%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

::selection {
    background: var(--green);
    color: #00140a;
}

.container-main {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.glass {
    background: rgba(8, 20, 38, .68);
    border: 1px solid rgba(255, 255, 255, .055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-green {
    background: linear-gradient(145deg, rgba(12, 35, 42, .72), rgba(5, 17, 31, .78));
    border: 1px solid rgba(57, 255, 136, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    height: 82px;
    transition: .35s ease;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(2, 8, 23, .86);
    box-shadow: 0 12px 50px rgba(0, 0, 0, .22);
    border-bottom-color: rgba(57, 255, 136, .10);
}

.nav-link {
    position: relative;
    color: #a8b7c9;
    transition: .25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(57, 255, 136, .6);
    transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #b8ffcf;
    background: rgba(57, 255, 136, .06);
    border: 1px solid rgba(57, 255, 136, .15);
    font-size: 13px;
    font-weight: 600;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(57, 255, 136, .8);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 999px;
    color: #02140a;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green-light), var(--green));
    /* box-shadow: 0 10px 35px rgba(57, 255, 136, .13); */
    transition: .3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(57, 255, 136, .25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    color: #e7f5ee;
    font-weight: 700;
    border: 1px solid rgba(57, 255, 136, .22);
    background: rgba(8, 20, 38, .52);
    transition: .3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--green);
    border-color: rgba(57, 255, 136, .55);
    background: rgba(57, 255, 136, .05);
}

.professor-wrap {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: .83;
    margin-inline: auto;
}

.professor-frame {
    position: absolute;
    inset: 20px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(57, 255, 136, .28);
    background: linear-gradient(145deg, rgba(57, 255, 136, .09), rgba(8, 20, 38, .92));
    box-shadow:
        0 35px 100px rgba(0, 0, 0, .45),
        0 0 80px rgba(57, 255, 136, .08);
}

.professor-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(2, 8, 23, .78), transparent 42%),
        linear-gradient(135deg, rgba(57, 255, 136, .08), transparent 40%);
    pointer-events: none;
}

.professor-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(.88) contrast(1.05);
}

.frame-corner {
    position: absolute;
    width: 65px;
    height: 65px;
    border-color: var(--green);
    z-index: 3;
    pointer-events: none;
}

.frame-corner.top {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
    border-radius: 0 22px 0 0;
}

.frame-corner.bottom {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
    border-radius: 0 0 0 22px;
}

.floating-card {
    position: absolute;
    z-index: 5;
    padding: 13px 16px;
    border-radius: 16px;
    min-width: 145px;
    background: rgba(4, 15, 27, .82);
    border: 1px solid rgba(57, 255, 136, .16);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.floating-card.card-1 {
    top: 70px;
    right: -45px;
}

.floating-card.card-2 {
    bottom: 115px;
    left: -48px;
}

.floating-card.card-3 {
    bottom: 28px;
    right: -30px;
}

.molecule {
    position: absolute;
    border: 1px solid rgba(57, 255, 136, .22);
    border-radius: 50%;
    pointer-events: none;
}

.molecule::before,
.molecule::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(34, 211, 238, .17);
    border-radius: 50%;
    inset: 18%;
    transform: rotate(60deg);
}

.molecule::after {
    transform: rotate(-60deg);
}

.molecule-1 {
    width: 150px;
    height: 150px;
    right: -75px;
    top: 30px;
}

.molecule-2 {
    width: 90px;
    height: 90px;
    left: -35px;
    top: 180px;
}

.stat-bar {
    position: relative;
    z-index: 10;
    margin-top: -10px;
}

.trust-grid>div:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, .07);
}

.icon-box {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--green);
    background: rgba(57, 255, 136, .07);
    border: 1px solid rgba(57, 255, 136, .13);
    transition: .3s ease;
}

.section {
    padding: 80px 0;
}

.section-heading {
    max-width: 700px;
}

.section-label {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--muted);
    line-height: 2;
    margin-top: 16px;
}

.subject-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 28px;
    border-radius: 23px;
    background: linear-gradient(145deg, rgba(11, 29, 47, .78), rgba(4, 14, 28, .72));
    border: 1px solid rgba(255, 255, 255, .055);
    transition: .35s ease;
}

.subject-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    top: -80px;
    left: -70px;
    border-radius: 50%;
    background: rgba(57, 255, 136, .08);
    filter: blur(20px);
    transition: .4s ease;
}

.subject-card:hover {
    transform: translateY(-8px);
    border-color: rgba(57, 255, 136, .3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.subject-card:hover::before {
    background: rgba(57, 255, 136, .16);
}

.subject-number {
    position: absolute;
    left: 25px;
    top: 22px;
    font-size: 12px;
    color: #4c6075;
    font-weight: 800;
}

[dir='ltr'] .subject-number {
    left: unset;
    right: 25px;
}

.subject-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: var(--green);
    background: rgba(57, 255, 136, .065);
    border: 1px solid rgba(57, 255, 136, .14);
    font-size: 22px;
    transition: .35s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.08) rotate(-4deg);
    color: #00160b;
    background: var(--green);
    box-shadow: 0 0 35px rgba(57, 255, 136, .2);
}

.detail-link {
    color: #9baec2;
    transition: .25s ease;
}

.subject-card:hover .detail-link {
    color: var(--green);
}

.about-image {
    position: relative;
    min-height: 530px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 8, 23, .78), transparent 55%);
}

.about-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.about-overlay {
    position: absolute;
    bottom: 28px;
    right: 28px;
    left: 28px;
    z-index: 2;
    padding: 20px;
    border-radius: 19px;
    background: rgba(2, 8, 23, .68);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #b7c6d5;
    font-size: 13px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
}

.pill i {
    color: var(--green);
}

.achievement-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 50%, rgba(57, 255, 136, .065), transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, .045), transparent 30%);
    border-block: 1px solid rgba(255, 255, 255, .045);
}

.achievement-card {
    padding: 30px;
    text-align: center;
    border-radius: 22px;
    background: rgba(5, 16, 30, .58);
    border: 1px solid rgba(255, 255, 255, .055);
    transition: .3s ease;
}

.achievement-card:hover {
    border-color: rgba(57, 255, 136, .18);
    transform: translateY(-5px);
}

.achievement-number {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 900;
    color: #f5fff9;
}

.feature-card {
    padding: 28px;
    min-height: 220px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .055);
    background: rgba(8, 20, 38, .52);
    transition: .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(57, 255, 136, .18);
    background: rgba(10, 28, 47, .7);
}

.method-section {
    position: relative;
    overflow: hidden;
    background: #04101e;
    border-block: 1px solid rgba(255, 255, 255, .045);
}

.method-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 136, .45), transparent);
    top: 50%;
    right: 10%;
    left: 10%;
}

.method-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.method-number {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
    background: #04101e;
    border: 1px solid rgba(57, 255, 136, .4);
    box-shadow: 0 0 0 8px rgba(57, 255, 136, .025), 0 0 35px rgba(57, 255, 136, .08);
}

.testimonial-card {
    height: 100%;
    padding: 30px;
    border-radius: 23px;
    background: linear-gradient(145deg, rgba(10, 26, 45, .82), rgba(4, 14, 27, .72));
    border: 1px solid rgba(255, 255, 255, .06);
}

.avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: rgba(57, 255, 136, .08);
    border: 1px solid rgba(57, 255, 136, .15);
}

.stars {
    color: var(--green);
    font-size: 12px;
    letter-spacing: 2px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    background: rgba(57, 255, 136, .07);
    border: 1px solid rgba(57, 255, 136, .14);
    color: var(--green) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 900;
}

.swiper-pagination-bullet {
    background: #657589;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 20px;
    background: var(--green);
}

footer {
    background: #010610;
    border-top: 1px solid rgba(255, 255, 255, .045);
}

.social-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #91a3b8;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: .25s ease;
}

.social-link:hover {
    color: var(--green);
    border-color: rgba(57, 255, 136, .22);
    background: rgba(57, 255, 136, .06);
    transform: translateY(-3px);
}

.mobile-menu {
    display: none;
}

.mobile-menu.open {
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.back-top {
    position: fixed;
    z-index: 100;
    left: 25px;
    bottom: 25px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: rgba(5, 17, 31, .9);
    border: 1px solid rgba(57, 255, 136, .2);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(57, 255, 136, .8);
    opacity: .4;
    animation: floatParticle 7s ease-in-out infinite;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0);
        opacity: .2;
    }

    50% {
        transform: translateY(-25px);
        opacity: .7;
    }
}

@media (max-width: 1023px) {
    .container-main {
        width: min(100% - 32px, 900px);
    }

    .professor-wrap {
        max-width: 430px;
    }

    .floating-card.card-1 {
        right: -10px;
    }

    .floating-card.card-2 {
        left: -10px;
    }

    .method-line {
        right: 7%;
        left: 7%;
    }
}

@media (max-width: 767px) {
    .container-main {
        width: min(100% - 28px, 600px);
    }

    .navbar {
        height: 72px;
    }

    .navbar.scrolled {
        height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        padding: 15px;
        border-radius: 20px;
        background: rgba(3, 12, 24, .96);
        border: 1px solid rgba(57, 255, 136, .12);
        box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
    }

    .mobile-menu .nav-link {
        display: block;
        padding: 13px 14px;
        border-radius: 12px;
    }

    .mobile-menu .nav-link::after {
        display: none;
    }

    .mobile-menu .nav-link:hover {
        background: rgba(57, 255, 136, .05);
    }


    .professor-wrap {
        width: min(88vw, 390px);
        margin-bottom: 50px;
    }

    .professor-frame {
        inset: 13px;
        border-radius: 26px;
    }

    .floating-card {
        min-width: 125px;
        padding: 10px 12px;
    }

    .floating-card.card-1 {
        top: 30px;
        right: -8px;
    }

    .floating-card.card-2 {
        bottom: 75px;
        left: -8px;
    }

    .floating-card.card-3 {
        bottom: 10px;
        right: 0;
    }

    .molecule-1 {
        width: 100px;
        height: 100px;
        right: -35px;
        top: 10px;
    }

    .molecule-2 {
        width: 65px;
        height: 65px;
        left: -10px;
        top: 120px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid>div:nth-child(2) {
        border-left: 0;
    }

    .trust-grid>div:nth-child(1),
    .trust-grid>div:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    .section {
        padding: 60px 0;
    }

    .about-image {
        min-height: 420px;
    }

    .method-line {
        display: none;
    }

    .method-step::after {
        content: unset;
    }


    .method-step {
        padding-bottom: 30px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .cta {
        padding: 70px 0;
    }

    .cta-flask {
        left: -35px;
        font-size: 120px;
    }
}

@media (max-width: 420px) {
    .floating-card.card-1 {
        right: -3px;
    }

    .floating-card.card-2 {
        left: -3px;
    }

    .floating-card.card-3 {
        right: -3px;
    }

    .floating-card {
        min-width: 115px;
    }
}

[dir='ltr'] .fa-arrow-left {
    rotate: 180deg;
}