@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
    font-family:'Poppins', sans-serif;
}

/* THEME */
:root{
    --main:#6366f1;
    --accent:#22d3ee;
    --soft:#a855f7;
    --bg:#0b1220;
    --card:#0f172a;
    --text:#e5e7eb;
}

/* BODY */
body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

/* HEADINGS */
h1,h2,h3,h4,h5,h6{
    text-align:center;
    font-weight:800;
    letter-spacing:1px;
    background:linear-gradient(90deg,var(--main),var(--accent),var(--soft));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* SECTION HEADING */
section h2{
    font-size:42px;
    font-weight:900;
    padding:20px 0;
    margin-bottom:50px;
    text-transform:uppercase;
    letter-spacing:2px;
    position:relative;
}

/* UNDERLINE */
section h2::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:120px;
    height:4px;
    background:linear-gradient(90deg,var(--main),var(--accent),var(--soft));
    border-radius:10px;
    box-shadow:0 0 15px var(--accent);
}

/* SCROLLBAR */
::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:var(--main);
    border-radius:20px;
}

/* HEADER */
.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 10%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(10px);
    z-index:1000;
    background:rgba(11,18,32,0.85);
}

/* LOGO */
.logo{
    font-size:34px;
    font-weight:900;
    text-decoration:none;
    letter-spacing:2px;
    display:inline-block;
    position:relative;
    color:white;
    line-height:1.1;
    animation:logoFloat 3s ease-in-out infinite;
}

/* FATIMA DOT */
.logo span{
    background:linear-gradient(90deg,#14b8a6,#054292,#38bdf8);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    font-weight:900;
}

/* WEB DEVELOPER */
.logo small{
    display:block;
    font-size:16px;
    font-weight:500;
    margin-top:6px;
    letter-spacing:4px;
    text-transform:uppercase;
    color:#f7f9fc;
    animation:fadeText 3s ease-in-out infinite;
}

/* WEB DEVELOPER DOT */
.logo small span{
    background:linear-gradient(90deg,#14b8a6,#054292,#38bdf8);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* UNDERLINE EFFECT */
.logo::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-8px;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,#14b8a6,#1e035c,#38bdf8);
    border-radius:10px;
    animation:lineGlow 2s linear infinite;
}

/* FLOAT ANIMATION */
@keyframes logoFloat{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-4px);
    }
    100%{
        transform:translateY(0);
    }
}

/* UNDERLINE GLOW */
@keyframes lineGlow{
    0%{
        transform:scaleX(0.3);
        opacity:0.5;
    }
    50%{
        transform:scaleX(1);
        opacity:1;
    }
    100%{
        transform:scaleX(0.3);
        opacity:0.5;
    }
}

/* SMALL TEXT EFFECT */
@keyframes fadeText{
    0%{
        opacity:0.7;
    }
    50%{
        opacity:1;
    }
    100%{
        opacity:0.7;
    }
}

/* HOVER EFFECT */
.logo:hover{
    transform:scale(1.08);
    text-shadow:0 0 20px rgba(99,102,241,0.6);
}

/* NAVBAR */
.navbar a{
    color:white;
    text-decoration:none;
    margin-left:30px;
    transition:.3s;
}

.navbar a:hover{
    color:var(--accent);
}

/* SECTIONS */
section{
    min-height:100vh;
    padding:120px 10%;
    background:var(--bg);
}

/* HERO */
.home{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
    min-height:100vh;
}

/* HERO LEFT SIDE */
.home-content{
    flex:1;
    max-width:600px;
}

.home-content h1{
    font-size:65px;
    text-align:left;
    line-height:1.2;
    white-space:nowrap;
}

.home-content h3{
    font-size:32px;
    color:var(--main);
    text-align:left;
}

.home-content p{
    margin:20px 0;
    line-height:1.8;
    opacity:0.9;
    text-align:left;
}

/* HERO IMAGE */
.home-img{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.home-img img{
    width:320px;
    height:320px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid var(--main);
    box-shadow:0 0 25px var(--main);
    animation:float 4s ease-in-out infinite;
}

@keyframes float{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-20px);
    }
    100%{
        transform:translateY(0);
    }
}

/* SOCIAL */
.social-icons a{
    display:inline-flex;
    width:45px;
    height:45px;
    border-radius:50%;
    border:2px solid var(--main);
    color:var(--main);
    justify-content:center;
    align-items:center;
    margin-right:10px;
    transition:.3s;
}

.social-icons a:hover{
    background:var(--main);
    color:white;
    box-shadow:0 0 15px var(--main);
}

/* BUTTON */
.btn{
    display:inline-block;
    padding:12px 28px;
    background:var(--main);
    color:white;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    margin-top:20px;
    transition:.3s;
}

.btn:hover{
    box-shadow:0 0 20px var(--accent);
    transform:scale(1.05);
}

/* ABOUT */
.about{
    display:flex;
    align-items:center;
    gap:60px;
    background:var(--bg);
}

.about-img img{
    width:350px;
    border-radius:20px;
    box-shadow:0 0 20px rgba(34,211,238,0.2);
    animation:slideInLeft 1s ease forwards;
}

.about-content{
    max-width:600px;
    animation:slideInRight 1s ease forwards;
}

@keyframes slideInLeft{
    from{
        transform:translateX(-100px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

@keyframes slideInRight{
    from{
        transform:translateX(100px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

/* GRID */
.skills-container,
.services-container,
.projects-container,
.education-container,
.blog-container,
.contact-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

/* CARDS */
.skill-box,
.service-box,
.project-box,
.edu-box,
.blog-card{
    background:var(--card);
    padding:30px;
    border-radius:15px;
    transition:.3s;
    border:1px solid rgba(99,102,241,0.15);
}

/* HOVER */
.skill-box:hover,
.service-box:hover,
.project-box:hover,
.edu-box:hover,
.blog-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 30px rgba(34,211,238,0.25);
    border-color:var(--accent);
}

/* BLOG IMAGE */
.blog-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}

/* PROJECT IMAGE */
.project-box img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
    display:block;
}

/* CONTACT */
.contact-info .info-box{
    background:var(--card);
    padding:20px;
    border-radius:12px;
    margin-bottom:15px;
    text-align:center;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:none;
    outline:none;
    border-radius:10px;
    background:#1f2937;
    color:white;
}

.contact-form textarea{
    height:140px;
    resize:none;
}

/* FOOTER */
.footer{
    text-align:center;
    padding:20px;
    background:var(--card);
}

.footer-social a{
    color:var(--accent);
    margin:0 8px;
    font-size:18px;
}

/* RESPONSIVE */
@media (max-width:768px){

    .home{
        flex-direction:column-reverse;
        text-align:center;
        gap:40px;
    }

    .about{
        flex-direction:column;
        text-align:center;
    }

    .home-content h1,
    .home-content h3,
    .home-content p{
        text-align:center;
        white-space:normal;
    }

    .home-img img,
    .about-img img{
        width:250px;
        height:250px;
    }

    .home-content h1{
        font-size:40px;
    }

    .home-content h3{
        font-size:24px;
    }

    .logo{
        font-size:28px;
    }

    .logo small{
        font-size:13px;
        letter-spacing:2px;
    }
}
/* =========================
   RESPONSIVE DESIGN
========================= */

/* LARGE LAPTOPS */
@media (max-width:1200px){

    .header{
        padding:20px 5%;
    }

    section{
        padding:120px 5%;
    }

    .home-content h1{
        font-size:55px;
    }
}

/* TABLETS */
@media (max-width:992px){

    .home{
        flex-direction:column-reverse;
        text-align:center;
        gap:50px;
    }

    .about{
        flex-direction:column;
        text-align:center;
    }

    .home-content,
    .about-content{
        max-width:100%;
    }

    .home-content h1{
        font-size:48px;
        text-align:center;
        white-space:normal;
    }

    .home-content h3{
        font-size:28px;
        text-align:center;
    }

    .home-content p{
        text-align:center;
    }

    .social-icons{
        justify-content:center;
    }

    .home-img img,
    .about-img img{
        width:280px;
        height:280px;
    }

    .navbar a{
        margin-left:20px;
    }
}

/* MOBILE DEVICES */
@media (max-width:768px){

    .header{
        padding:15px 5%;
        flex-direction:column;
        gap:15px;
    }

    .navbar{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .navbar a{
        margin-left:0;
        font-size:15px;
    }

    section{
        padding:100px 5%;
    }

    section h2{
        font-size:32px;
    }

    .home-content h1{
        font-size:38px;
        line-height:1.3;
    }

    .home-content h3{
        font-size:22px;
    }

    .home-content p{
        font-size:15px;
        line-height:1.7;
    }

    .home-img img,
    .about-img img{
        width:220px;
        height:220px;
    }

    .skills-container,
    .services-container,
    .projects-container,
    .education-container,
    .blog-container,
    .contact-container{
        grid-template-columns:1fr;
    }

    .btn{
        padding:10px 24px;
        font-size:14px;
    }

    .logo{
        font-size:24px;
        text-align:center;
    }

    .logo small{
        font-size:12px;
        letter-spacing:2px;
    }
}

/* SMALL MOBILE */
@media (max-width:480px){

    .home-content h1{
        font-size:30px;
    }

    .home-content h3{
        font-size:20px;
    }

    section h2{
        font-size:26px;
    }

    .home-img img,
    .about-img img{
        width:180px;
        height:180px;
    }

    .skill-box,
    .service-box,
    .project-box,
    .edu-box,
    .blog-card{
        padding:20px;
    }

    .contact-form input,
    .contact-form textarea{
        font-size:14px;
    }

    .footer{
        font-size:14px;
    }
}

/* SMOOTH PERFORMANCE */
html{
    scroll-behavior:smooth;
}

body{
    position:relative;
}

/* =========================================================
   AURORA BACKGROUND
========================================================= */

body::before{
    content:'';
    position:fixed;
    inset:0;

    background:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,.18), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(34,211,238,.15), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(168,85,247,.15), transparent 25%);

    filter:blur(80px);

    animation:auroraMove 15s linear infinite;

    z-index:-2;
}

@keyframes auroraMove{

    0%{
        transform:rotate(0deg) scale(1);
    }

    50%{
        transform:rotate(180deg) scale(1.2);
    }

    100%{
        transform:rotate(360deg) scale(1);
    }
}

/* =========================================================
   HEADER ENHANCEMENT
========================================================= */

.header{

    background:rgba(11,18,32,.55);

    backdrop-filter:blur(18px);

    border-bottom:
    1px solid rgba(255,255,255,.05);

    box-shadow:
    0 10px 30px rgba(0,0,0,.25);
}

/* =========================================================
   NAVBAR ANIMATION
========================================================= */

.navbar a{
    position:relative;
    overflow:hidden;
}

.navbar a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-6px;

    width:0%;
    height:2px;

    background:
    linear-gradient(
        90deg,
        var(--main),
        var(--accent)
    );

    transition:.4s ease;
}

.navbar a:hover::after{
    width:100%;
}

.navbar a:hover{
    text-shadow:
    0 0 10px rgba(34,211,238,.6);
}

/* =========================================================
   HERO TEXT EFFECT
========================================================= */

.home-content h1{

    background:
    linear-gradient(
        90deg,
        #fff,
        #22d3ee,
        #a855f7,
        #fff
    );

    background-size:300%;

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    animation:textGlow 6s linear infinite;
}

@keyframes textGlow{

    0%{
        background-position:0%;
    }

    100%{
        background-position:300%;
    }
}

/* =========================================================
   PROFILE IMAGE ENHANCEMENT
========================================================= */

.home-img{
    position:relative;
}

.home-img::before,
.home-img::after{

    content:'';

    position:absolute;

    border-radius:50%;

    border:
    2px dashed rgba(34,211,238,.25);

    animation:ringRotate 12s linear infinite;
}

.home-img::before{
    width:380px;
    height:380px;
}

.home-img::after{

    width:430px;
    height:430px;

    animation-direction:reverse;
}

@keyframes ringRotate{

    100%{
        transform:rotate(360deg);
    }
}

.home-img img{

    box-shadow:
    0 0 40px rgba(99,102,241,.35),
    0 0 80px rgba(34,211,238,.15);

    transition:.5s ease;
}

.home-img img:hover{

    transform:scale(1.05);

    box-shadow:
    0 0 60px rgba(99,102,241,.5),
    0 0 100px rgba(34,211,238,.25);
}

/* =========================================================
   GLASSMORPHISM CARDS
========================================================= */

.skill-box,
.service-box,
.project-box,
.edu-box,
.blog-card{

    background:
    rgba(255,255,255,.04);

    backdrop-filter:blur(16px);

    border:
    1px solid rgba(255,255,255,.08);

    box-shadow:
    0 10px 40px rgba(0,0,0,.25);

    overflow:hidden;

    position:relative;

    transition:
    transform .5s ease,
    box-shadow .5s ease;
}

/* =========================================================
   ANIMATED BORDER GLOW
========================================================= */

.skill-box::before,
.service-box::before,
.project-box::before,
.edu-box::before,
.blog-card::before{

    content:'';

    position:absolute;

    inset:-2px;

    border-radius:20px;

    /* background:
    linear-gradient(
        45deg,
        #797aa1,
        #8caaaf,
        #ae90ca,
        #9394be
    ); */

    background-size:400%;

    z-index:-1;

    opacity:0;

    transition:.5s ease;

    animation:borderAnimation 8s linear infinite;
}

.skill-box:hover::before,
.service-box:hover::before,
.project-box:hover::before,
.edu-box:hover::before,
.blog-card:hover::before{
    opacity:1;
}

@keyframes borderAnimation{

    0%{
        background-position:0 0;
    }

    100%{
        background-position:400% 0;
    }
}

/* =========================================================
   CARD HOVER EFFECT
========================================================= */

.skill-box:hover,
.service-box:hover,
.project-box:hover,
.edu-box:hover,
.blog-card:hover{

    transform:
    translateY(-15px)
    rotateX(4deg)
    rotateY(-4deg);

    box-shadow:
    0 25px 50px rgba(0,0,0,.4),
    0 0 30px rgba(34,211,238,.15);
}

/* =========================================================
   PROJECT IMAGE ZOOM
========================================================= */

.project-box{
    overflow:hidden;
}

.project-box img{
    transition:transform .7s ease;
}

.project-box:hover img{
    transform:scale(1.12);
}

/* =========================================================
   BUTTON PREMIUM EFFECT
========================================================= */

.btn{

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        135deg,
        var(--main),
        var(--soft)
    );

    box-shadow:
    0 15px 35px rgba(99,102,241,.35);

    transition:.5s ease;
}

.btn::before{

    content:'';

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:100%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.3),
        transparent
    );

    transition:.8s ease;
}

.btn:hover::before{
    left:100%;
}

.btn:hover{

    transform:
    translateY(-5px)
    scale(1.03);

    box-shadow:
    0 25px 45px rgba(99,102,241,.45),
    0 0 25px rgba(34,211,238,.2);
}

/* =========================================================
   SOCIAL ICON PREMIUM
========================================================= */

.social-icons a{

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    transition:.4s ease;
}

.social-icons a:hover{

    transform:
    translateY(-8px)
    scale(1.1);

    background:
    linear-gradient(
        135deg,
        var(--main),
        var(--accent)
    );

    color:white;

    box-shadow:
    0 0 20px rgba(34,211,238,.5);
}

/* =========================================================
   SECTION DIVIDER
========================================================= */

section{
    position:relative;
}

section::after{

    content:'';

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:1px;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );
}

/* =========================================================
   FORM ENHANCEMENT
========================================================= */

.contact-form input,
.contact-form textarea{

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    transition:.4s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:var(--accent);

    box-shadow:
    0 0 15px rgba(34,211,238,.2);

    background:
    rgba(255,255,255,.06);
}

/* =========================================================
   FOOTER ENHANCEMENT
========================================================= */

.footer{

    border-top:
    1px solid rgba(255,255,255,.06);

    background:
    rgba(255,255,255,.03);

    backdrop-filter:blur(12px);
}

/* =========================================================
   SCROLLBAR PREMIUM
========================================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#050816;
}

::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
        #6366f1,
        #22d3ee
    );

    border-radius:20px;
}

/* =========================================================
   TEXT SELECTION
========================================================= */

::selection{
    background:var(--accent);
    color:#000;
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal{

    opacity:0;

    transform:
    translateY(100px)
    scale(.95);

    transition:1s ease;
}

.reveal.active{

    opacity:1;

    transform:
    translateY(0)
    scale(1);
}