* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 140, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(120, 60, 255, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050816,
            #080d1c 50%,
            #050816
        );
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050816;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        #00aaff,
        #7c3aed
    );

    border-radius: 20px;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    height: 80px;

    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;

    z-index: 999;

    background: rgba(5, 8, 22, 0.75);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.25);
}


/* =========================================
   LOGO
========================================= */

.h1 {
    color: white;

    font-size: 24px;

    font-weight: 900;

    letter-spacing: 3px;

    cursor: pointer;

    transition: 0.3s ease;

    text-shadow:
        0 0 20px rgba(0,170,255,0.15);
}

.h1 span {
    color: #00aaff;

    text-shadow:
        0 0 15px rgba(0,170,255,0.7);
}

.h1:hover {
    transform: scale(1.04);
}


/* =========================================
   NAVIGATION
========================================= */

.header nav {
    display: flex;

    align-items: center;

    gap: 35px;
}

.header nav a {
    position: relative;

    color: #aab4c8;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}

.header nav a:hover {
    color: white;

    text-shadow:
        0 0 15px rgba(0,170,255,0.5);
}

.header nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -9px;

    width: 0;
    height: 2px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        #00aaff,
        #7c3aed
    );

    border-radius: 20px;

    transition: 0.3s ease;
}

.header nav a:hover::after {
    width: 100%;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 570px;

    padding: 100px 10%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    background: #006eff;

    opacity: 0.12;

    filter: blur(130px);

    border-radius: 50%;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);
}

.hero::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background: #7c3aed;

    opacity: 0.10;

    filter: blur(100px);

    border-radius: 50%;

    right: -100px;
    bottom: -50px;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}


/* =========================================
   HERO SMALL TEXT
========================================= */

.hero .p:first-child {
    display: inline-block;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(0,170,255,0.08);

    border: 1px solid rgba(0,170,255,0.25);

    color: #00aaff;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 25px;

    box-shadow:
        0 0 30px rgba(0,170,255,0.08);
}


/* =========================================
   HERO TITLE
========================================= */

.h11 {
    font-size: clamp(
        45px,
        7vw,
        85px
    );

    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -4px;

    margin-bottom: 25px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #ffffff,
        #00aaff,
        #8b5cf6
    );

    background-size: 300%;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        gradientText 6s ease infinite;
}

@keyframes gradientText {

    0% {
        background-position: 0%;
    }

    50% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}


/* =========================================
   HERO DESCRIPTION
========================================= */

.hero-content .p:last-child {
    color: #8e9ab0;

    font-size: 16px;

    line-height: 1.8;

    max-width: 650px;

    margin: auto;
}


/* =========================================
   HR
========================================= */

hr {
    border: none;

    height: 1px;

    margin: 0 8%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,170,255,0.35),
        rgba(124,58,237,0.35),
        transparent
    );
}


/* =========================================
   MAIN
========================================= */

main {
    width: 100%;

    padding: 100px 10%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}


/* =========================================
   STUDING CARD
========================================= */

.studing {
    position: relative;

    min-height: 220px;

    padding: 30px;

    display: flex;

    align-items: center;

    gap: 25px;

    overflow: hidden;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.07),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.09);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.2);

    backdrop-filter: blur(15px);

    transition:
        transform 0.4s ease,
        border 0.4s ease,
        box-shadow 0.4s ease;
}


/* Glow */

.studing::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: #00aaff;

    opacity: 0.08;

    filter: blur(60px);

    right: -70px;
    top: -70px;

    transition: 0.4s;
}


/* Light effect */

.studing::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 30%,
            rgba(255,255,255,0.05),
            transparent 70%
        );

    transform: translateX(-100%);

    transition: 0.7s;
}


/* Hover */

.studing:hover {
    transform: translateY(-10px);

    border-color:
        rgba(0,170,255,0.35);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.4),
        0 0 35px rgba(0,170,255,0.08);
}

.studing:hover::after {
    transform: translateX(100%);
}

.studing:hover::before {
    opacity: 0.16;
}


/* =========================================
   IMAGES
========================================= */

.studing img {
    width: 100px;

    height: 100px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(0,170,255,0.18),
            rgba(124,58,237,0.18)
        );

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.3);

    transition: 0.4s;
}

.studing:hover img {
    transform:
        rotate(-5deg)
        scale(1.08);

    box-shadow:
        0 0 30px rgba(0,170,255,0.25);
}


/* =========================================
   TITLE
========================================= */

.title {
    position: relative;

    z-index: 2;
}

.title h2 {
    color: white;

    font-size: 22px;

    margin-bottom: 12px;

    text-transform: capitalize;

    transition: 0.3s;
}

.studing:hover .title h2 {
    color: #00aaff;

    text-shadow:
        0 0 20px rgba(0,170,255,0.3);
}

.title p {
    color: #8793a8;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   IMPORTANT:
   MATH CARD LINK
========================================= */

.studing > a {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 25px;

    color: inherit;

    text-decoration: none;
}


/* باش النص داخل الرابط يبقى صحيح */

.studing > a .title {
    flex: 1;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 45px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

    background:
        rgba(0,0,0,0.15);

    border-top: 1px solid rgba(255,255,255,0.06);
}

.looogo {
    color: white;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 3px;
}

.pp {
    color: #667287;

    font-size: 13px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .header {
        padding: 0 5%;
    }

    .hero {
        padding:
            90px 5%
            80px;
    }

    main {
        padding: 80px 5%;
    }

    .studing {
        padding: 25px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .header {
        height: 70px;

        padding: 0 5%;
    }

    .h1 {
        font-size: 17px;

        letter-spacing: 2px;
    }

    .header nav {
        gap: 12px;
    }

    .header nav a {
        font-size: 10px;
    }


    /* HERO */

    .hero {
        min-height: 520px;

        padding:
            80px 5%
            70px;
    }

    .hero .p:first-child {
        font-size: 9px;

        letter-spacing: 1px;
    }

    .h11 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .hero-content .p:last-child {
        font-size: 14px;
    }


    /* SUBJECTS */

    main {
        grid-template-columns: 1fr;

        padding:
            60px 5%;
    }

    .studing {
        min-height: 180px;

        padding: 20px;

        gap: 18px;
    }

    .studing > a {
        gap: 18px;
    }

    .studing img {
        width: 75px;

        height: 75px;

        border-radius: 17px;
    }

    .title h2 {
        font-size: 18px;
    }

    .title p {
        font-size: 12px;
    }


    /* FOOTER */

    footer {
        flex-direction: column;

        text-align: center;

        padding: 40px 5%;
    }
}


/* =========================================
   SMALL PHONE
========================================= */

@media (max-width: 420px) {

    .h1 {
        font-size: 15px;

        letter-spacing: 1px;
    }

    .header nav {
        gap: 7px;
    }

    .header nav a {
        font-size: 8px;
    }

    .h11 {
        font-size: 36px;
    }

    .studing {
        flex-direction: column;

        text-align: center;
    }

    .studing > a {
        flex-direction: column;

        text-align: center;
    }

    .studing img {
        width: 90px;

        height: 90px;
    }
}

/* ================================
   INFORMATION
================================ */

.information {
    width: 80%;
    max-width: 1100px;

    margin: auto;

    padding: 80px 0;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.info-card {
    padding: 35px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(15px);

    transition: 0.35s ease;
}

.info-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(0, 170, 255, 0.35);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 170, 255, 0.08);
}

.info-card h2 {
    margin-bottom: 15px;

    color: #00aaff;

    font-size: 21px;
}

.info-card p {
    color: #8995a8;

    line-height: 1.8;

    font-size: 15px;
}


/* MOBILE */

@media (max-width: 700px) {

    .information {
        width: 90%;

        grid-template-columns: 1fr;

        padding: 60px 0;
    }

    .info-card {
        padding: 25px;
    }
}

footer {
    width: 100%;

    margin-top: 80px;
    padding: 40px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    flex-wrap: wrap;

    background: rgba(5, 8, 22, 0.9);

    border-top: 1px solid rgba(0, 170, 255, 0.2);
}

.footer-logo {
    color: white;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: 3px;
}

.footer-contact {
    display: flex;
    align-items: center;

    gap: 20px;
}

.footer-contact a {
    color: #8e9ab0;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

.footer-contact a:hover {
    color: #00aaff;

    text-shadow:
        0 0 15px rgba(0, 170, 255, 0.5);
}

.pp {
    color: #778399;

    font-size: 13px;
}


/* TELEPHONE */

@media (max-width: 700px) {

    footer {
        flex-direction: column;

        text-align: center;

        padding: 35px 5%;
    }

    .footer-contact {
        flex-direction: column;

        gap: 12px;
    }
}