*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:white;
    overflow-x:hidden;
}

/* =========================
   ANIMATED BACKGROUND
========================= */

.bg-animation{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    overflow:hidden;

    z-index:-1;
}

.bg-animation span{

    position:absolute;

    width:320px;
    height:320px;

    border-radius:50%;

    background:rgba(56,189,248,0.12);

    animation:float 8s infinite alternate;

    filter:blur(10px);

    pointer-events:none;
}

.bg-animation span:nth-child(1){

    top:10%;
    left:10%;
}

.bg-animation span:nth-child(2){

    top:45%;
    right:10%;
}

.bg-animation span:nth-child(3){

    bottom:5%;
    left:40%;
}

/* FLOATING ANIMATION */

@keyframes float{

    from{
        transform:translateY(0px);
    }

    to{
        transform:translateY(-60px);
    }
}

/* =========================
   NAVBAR
========================= */

nav{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 10%;

    background:rgba(15,23,42,0.4);

    backdrop-filter:blur(12px);

    z-index:1000;
}

nav h1{

    font-size:2rem;

    color:#38bdf8;

    text-shadow:
        0 0 10px rgba(56,189,248,0.7);
}

nav ul{

    display:flex;

    list-style:none;

    gap:30px;
}

nav a{

    text-decoration:none;

    color:white;

    font-weight:500;

    transition:0.3s;
}

nav a:hover{

    color:#38bdf8;

    text-shadow:
        0 0 12px rgba(56,189,248,0.8);
}

/* =========================
   HERO SECTION
========================= */

.hero{

    min-height:100vh;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:60px;

    padding:140px 10% 80px;

    position:relative;

    z-index:2;
}

/* HERO TEXT */

.hero-text{

    flex:1;
}

.hero-text h2{

    font-size:4.5rem;

    margin-bottom:20px;

    line-height:1.2;
}

.hero-text span{

    color:#38bdf8;

    text-shadow:
        0 0 15px rgba(56,189,248,0.8);
}

.hero-text p{

    font-size:1.2rem;

    line-height:1.8;

    margin-bottom:35px;

    color:#cbd5e1;
}

/* BUTTON */

.explore-btn{

    display:inline-block;

    padding:15px 35px;

    border-radius:35px;

    background:#38bdf8;

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:0.4s;
}

.explore-btn:hover{

    transform:scale(1.08);

    box-shadow:
        0 0 25px rgba(56,189,248,0.9);
}

/* =========================
   HERO IMAGE
========================= */

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;
}

.hero-image img{

    width:360px;
    height:360px;

    object-fit:cover;

    border-radius:50%;

    border:5px solid #38bdf8;

    box-shadow:
        0 0 25px rgba(56,189,248,0.8),
        0 0 60px rgba(56,189,248,0.4);

    animation:floatImage 4s ease-in-out infinite;

    transition:0.4s;

    user-select:none;

    -webkit-user-drag:none;
}

.hero-image img:hover{

    transform:scale(1.05);

    box-shadow:
        0 0 40px rgba(56,189,248,1),
        0 0 80px rgba(56,189,248,0.7);
}

/* IMAGE FLOAT */

@keyframes floatImage{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-18px);
    }

    100%{
        transform:translateY(0px);
    }
}

/* =========================
   SUBJECT SECTION
========================= */

.subjects{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:30px;

    padding:40px 10% 80px;
}

/* CARD */

.card{

    width:280px;

    padding:30px;

    border-radius:25px;

    background:rgba(255,255,255,0.05);

    backdrop-filter:blur(10px);

    transition:0.4s;

    border:1px solid rgba(255,255,255,0.05);
}

.card:hover{

    transform:
        translateY(-12px)
        scale(1.02);

    box-shadow:
        0 0 25px rgba(56,189,248,0.5);
}

.card h3{

    margin-bottom:15px;

    color:#38bdf8;

    font-size:1.5rem;
}

.card p{

    color:#cbd5e1;

    line-height:1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    /* NAVBAR */

    nav{

        flex-direction:column;

        gap:15px;

        padding:18px 5%;
    }

    nav ul{

        gap:18px;

        flex-wrap:wrap;

        justify-content:center;
    }

    /* HERO SECTION */

    .hero{

        flex-direction:column;

        text-align:center;

        justify-content:center;

        padding:170px 7% 60px;

        gap:40px;
    }

    /* IMAGE FIRST */

    .hero-image{

        order:1;
    }

    /* TEXT SECOND */

    .hero-text{

        order:2;
    }

    /* HEADING */

    .hero-text h2{

        font-size:2.5rem;

        line-height:1.3;
    }

    /* PARAGRAPH */

    .hero-text p{

        font-size:1rem;

        line-height:1.7;
    }

    /* IMAGE */

    .hero-image img{

        width:240px;

        height:240px;
    }

    /* BUTTON */

    .explore-btn{

        padding:14px 30px;

        font-size:0.95rem;
    }

    /* SUBJECT CARDS */

    .subjects{

        padding:30px 7% 70px;
    }

    .card{

        width:100%;

        max-width:340px;
    }
}
