/* ==========================================
   MAHIM ANSAR AI PORTFOLIO
   STYLE.CSS - PART 1
   Reset | Variables | Navbar | Hero
========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===============================
   ROOT COLORS
================================ */

:root{

    --bg:#07111f;
    --bg2:#0d1728;

    --primary:#00d4ff;
    --secondary:#7c4dff;

    --white:#ffffff;
    --text:#c9d6e3;

    --glass:rgba(255,255,255,.06);
    --glass-border:rgba(255,255,255,.10);

    --shadow:0 15px 35px rgba(0,212,255,.18);

    --radius:18px;

    --transition:.35s ease;

}

/* ===============================
   RESET
================================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

html{
    overflow-x:hidden;
}

body{

    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--white);
    line-height:1.7;
    overflow-x:hidden;

}

/* ===============================
   SCROLLBAR
================================ */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg);
}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#33e0ff;

}

/* ===============================
   LINKS
================================ */

a{

    text-decoration:none;
    color:var(--white);
    transition:var(--transition);

}

ul{

    list-style:none;

}

img{

    display:block;
    width:100%;

}

/* ===============================
   PARTICLE BACKGROUND
================================ */

#particles-js{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    z-index:-1;

}

/* ===============================
   HEADER
================================ */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:999;

    backdrop-filter:blur(18px);

    background:rgba(7,17,31,.65);

    transition:.4s;

}

header.sticky{

    background:rgba(7,17,31,.95);

    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

/* ===============================
   NAVBAR
================================ */

.navbar{

    width:90%;
    max-width:1200px;

    margin:auto;

    display:flex;

    align-items:center;
    justify-content:space-between;

    padding:20px 0;

}

.logo{

    font-size:30px;

    font-weight:700;

    letter-spacing:1px;

}

.logo span{

    color:var(--primary);

}

/* ===============================
   NAV LINKS
================================ */

.nav-links{

    display:flex;

    align-items:center;

    gap:35px;

}

.nav-links li a{

    font-size:16px;

    font-weight:500;

    position:relative;

}

.nav-links li a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0%;

    height:2px;

    background:var(--primary);

    transition:.35s;

}

.nav-links li a:hover{

    color:var(--primary);

}

.nav-links li a:hover::after{

    width:100%;

}

.nav-links a.active{

    color:var(--primary);

}

/* ===============================
   MENU BUTTON
================================ */

.menu-btn{

    display:none;

    font-size:30px;

    cursor:pointer;

}

/* ===============================
   HERO
================================ */

.hero{

    width:90%;

    max-width:1200px;

    margin:auto;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:70px;

    padding-top:120px;

}

/* ===============================
   HERO CONTENT
================================ */

.hero-content{

    flex:1;

}

.hero-content h3{

    color:var(--primary);

    font-size:22px;

    margin-bottom:15px;

}

.hero-content h1{

    font-size:68px;

    font-weight:800;

    margin-bottom:15px;

    line-height:1.1;

}

.hero-content h2{

    font-size:32px;

    color:#cfefff;

    min-height:50px;

    margin-bottom:25px;

}

.hero-content p{

    color:var(--text);

    max-width:620px;

    margin-bottom:35px;

}

/* ===============================
   BUTTONS
================================ */

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    padding:15px 35px;

    border-radius:50px;

    background:var(--primary);

    color:var(--bg);

    font-weight:600;

    transition:var(--transition);

    box-shadow:0 8px 25px rgba(0,212,255,.30);

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(0,212,255,.45);

}

.btn-outline{

    background:transparent;

    color:var(--white);

    border:2px solid var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:var(--bg);

}

/* ===============================
   HERO IMAGE
================================ */

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:380px;

    border-radius:50%;

    border:5px solid var(--primary);

    box-shadow:

    0 0 20px rgba(0,212,255,.25),

    0 0 50px rgba(0,212,255,.35),

    0 0 90px rgba(0,212,255,.18);

    transition:.4s;

}

.hero-image img:hover{

    transform:scale(1.05) rotate(2deg);

}

/* ===============================
   SECTION TITLE
================================ */

section{

    padding:110px 0;

}

.section-title{

    text-align:center;

    font-size:42px;

    color:var(--primary);

    margin-bottom:70px;

    position:relative;

}

.section-title::after{

    content:"";

    width:90px;

    height:4px;

    background:var(--primary);

    display:block;

    margin:15px auto 0;

    border-radius:20px;

}
/* ==========================================
   MAHIM ANSAR AI PORTFOLIO
   STYLE.CSS - PART 2
   About | Skills | Counter | Services
========================================== */

/* ===============================
   ABOUT SECTION
================================ */

.about{
    background:transparent;
}

.about-container{

    width:90%;
    max-width:1200px;

    margin:auto;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:70px;

    flex-wrap:wrap;

}

.about-image{

    flex:1;
    display:flex;
    justify-content:center;

}

.about-image img{

    width:380px;
    max-width:100%;

    border-radius:25px;

    border:3px solid var(--primary);

    box-shadow:0 15px 40px rgba(0,212,255,.20);

    transition:.4s;

}

.about-image img:hover{

    transform:scale(1.04);

    box-shadow:0 20px 45px rgba(0,212,255,.35);

}

.about-text{

    flex:1;

}

.about-text h3{

    font-size:36px;

    color:var(--primary);

    margin-bottom:20px;

}

.about-text p{

    color:var(--text);

    margin-bottom:20px;

    font-size:16px;

}

/* ===============================
   SKILLS SECTION
================================ */

.skills{

    position:relative;

}

.skills-grid{

    width:90%;
    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

/* ===============================
   SKILL CARD
================================ */

.skill-card{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:var(--radius);

    padding:40px 30px;

    text-align:center;

    transition:.35s;

    cursor:pointer;

}

.skill-card:hover{

    transform:translateY(-12px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.skill-card i{

    font-size:50px;

    color:var(--primary);

    margin-bottom:20px;

}

.skill-card h3{

    font-size:24px;

    margin-bottom:15px;

}

.skill-card p{

    color:var(--text);

    font-size:15px;

}

/* ===============================
   EXPERIENCE COUNTER
================================ */

.counter-section{

    padding:70px 0;

}

.counter-grid{

    width:90%;
    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.counter{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:20px;

    padding:40px 25px;

    text-align:center;

    transition:.35s;

}

.counter:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.counter h2{

    font-size:48px;

    color:var(--primary);

    margin-bottom:10px;

}

.counter p{

    color:var(--text);

    font-size:17px;

}

/* ===============================
   SERVICES SECTION
================================ */

.services{

    position:relative;

}

.services-grid{

    width:90%;
    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

/* ===============================
   SERVICE CARD
================================ */

.service-card{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:var(--radius);

    padding:40px 30px;

    text-align:center;

    transition:.35s;

    cursor:pointer;

}

.service-card:hover{

    transform:translateY(-12px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.service-card i{

    font-size:55px;

    color:var(--primary);

    margin-bottom:20px;

}

.service-card h3{

    font-size:24px;

    margin-bottom:15px;

}

.service-card p{

    color:var(--text);

    font-size:15px;

    line-height:1.8;

}

/* ===============================
   GLASS EFFECT
================================ */

.glass{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.10);

}

/* ===============================
   CARD ANIMATION
================================ */

.skill-card,
.service-card,
.counter{

    animation:fadeUp .8s ease forwards;

}

/* ===============================
   HOVER GLOW
================================ */

.skill-card:hover i,
.service-card:hover i{

    transform:scale(1.15);

    transition:.35s;

    text-shadow:0 0 25px rgba(0,212,255,.70);

}

.skill-card:hover h3,
.service-card:hover h3{

    color:var(--primary);

}

/* ===============================
   SECTION SPACING
================================ */

.about,
.skills,
.services,
.counter-section{

    position:relative;

    z-index:2;

}
/* ==========================================
   MAHIM ANSAR AI PORTFOLIO
   STYLE.CSS - PART 3
   Projects | Contact | Footer | Scroll Top
========================================== */

/* ===============================
   PROJECTS SECTION
================================ */

.projects{
    position:relative;
}

.project-grid{
    width:90%;
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.project-card{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:20px;

    overflow:hidden;

    transition:.4s ease;

}

.project-card:hover{

    transform:translateY(-12px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.project-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:.4s;

}

.project-card:hover img{

    transform:scale(1.08);

}

.project-card h3{

    padding:20px 20px 10px;

    color:var(--primary);

    font-size:24px;

}

.project-card p{

    padding:0 20px 25px;

    color:var(--text);

}

.project-card .btn{

    margin:0 20px 25px;

}

/* ===============================
   CONTACT SECTION
================================ */

.contact{

    position:relative;

}

.contact-container{

    width:90%;

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:1fr 1.3fr;

    gap:40px;

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.contact-box{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:18px;

    padding:30px;

    transition:.35s;

}

.contact-box:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.contact-box i{

    font-size:38px;

    color:var(--primary);

    margin-bottom:15px;

}

.contact-box h3{

    margin-bottom:10px;

}

.contact-box p,
.contact-box a{

    color:var(--text);

}

.contact-box a:hover{

    color:var(--primary);

}

/* ===============================
   CONTACT FORM
================================ */

.contact-form{

    background:var(--glass);

    backdrop-filter:blur(18px);

    border:1px solid var(--glass-border);

    border-radius:20px;

    padding:35px;

}

.contact-form form{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:16px;

    border:none;

    outline:none;

    border-radius:12px;

    background:#122238;

    color:#fff;

    font-size:16px;

}

.contact-form input::placeholder,
.contact-form textarea::placeholder{

    color:#9db0c5;

}

.contact-form textarea{

    resize:vertical;

    min-height:180px;

}

.contact-form button{

    border:none;

    cursor:pointer;

}

/* ===============================
   FOOTER
================================ */

footer{

    margin-top:100px;

    background:#050b15;

    text-align:center;

    padding:60px 20px;

}

footer h2{

    font-size:34px;

    margin-bottom:10px;

}

footer span{

    color:var(--primary);

}

footer p{

    color:var(--text);

    margin:12px 0;

}

/* ===============================
   SOCIAL ICONS
================================ */

.social-links{

    margin:30px 0;

}

.social-links a{

    width:50px;

    height:50px;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    margin:0 8px;

    border-radius:50%;

    background:#122238;

    color:var(--primary);

    font-size:20px;

    transition:.35s;

}

.social-links a:hover{

    background:var(--primary);

    color:var(--bg);

    transform:translateY(-6px);

    box-shadow:0 10px 25px rgba(0,212,255,.35);

}

/* ===============================
   SCROLL TO TOP
================================ */

.scrollTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:var(--primary);

    color:var(--bg);

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(30px);

    transition:.35s;

    z-index:999;

}

.scrollTop.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.scrollTop:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 30px rgba(0,212,255,.45);

}

/* ===============================
   FORM FOCUS EFFECT
================================ */

.contact-form input:focus,
.contact-form textarea:focus{

    border:1px solid var(--primary);

    box-shadow:0 0 12px rgba(0,212,255,.30);

}

/* ===============================
   SECTION FADE
================================ */

.projects,
.contact,
footer{

    animation:fadeUp .8s ease;

}
/* ==========================================
   MAHIM ANSAR AI PORTFOLIO
   STYLE.CSS - PART 4
   Animations | Loader | Cursor | Responsive
========================================== */

/* ===============================
   LOADER
================================ */

.loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#07111f;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    z-index:99999;
    transition:.6s ease;
}

.loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader span{
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--primary);
    animation:loaderBounce .8s infinite alternate;
}

.loader span:nth-child(2){
    animation-delay:.2s;
}

.loader span:nth-child(3){
    animation-delay:.4s;
}

/* ===============================
   CUSTOM CURSOR
================================ */

.cursor{
    position:fixed;
    width:30px;
    height:30px;
    border:2px solid var(--primary);
    border-radius:50%;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:9999;
    transition:transform .15s ease;
}

.cursor-dot{
    position:fixed;
    width:8px;
    height:8px;
    background:var(--primary);
    border-radius:50%;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:9999;
}

/* ===============================
   FADE-IN CLASS
================================ */

.fade-in{
    animation:fadeUp 1s ease forwards;
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes loaderBounce{

    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-18px);
    }

}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-12px);
    }

    100%{
        transform:translateY(0);
    }

}

@keyframes glow{

    0%{
        box-shadow:0 0 10px rgba(0,212,255,.2);
    }

    50%{
        box-shadow:0 0 35px rgba(0,212,255,.5);
    }

    100%{
        box-shadow:0 0 10px rgba(0,212,255,.2);
    }

}

/* Floating Profile Image */

.hero-image img{

    animation:float 4s ease-in-out infinite;

}

/* Glowing Cards */

.skill-card,
.service-card,
.project-card{

    animation:glow 4s infinite;

}

/* ===============================
   TEXT SELECTION
================================ */

::selection{

    background:var(--primary);
    color:#07111f;

}

/* ===============================
   RESPONSIVE - TABLET
================================ */

@media(max-width:991px){

.hero{

    flex-direction:column-reverse;
    text-align:center;
    padding-top:140px;

}

.hero-content h1{

    font-size:52px;

}

.hero-content h2{

    font-size:28px;

}

.hero-buttons{

    justify-content:center;

}

.hero-image img{

    width:300px;

}

.about-container{

    flex-direction:column;

    text-align:center;

}

.contact-container{

    grid-template-columns:1fr;

}

.nav-links{

    position:fixed;

    top:80px;

    right:-100%;

    width:260px;

    height:100vh;

    background:#07111f;

    flex-direction:column;

    justify-content:flex-start;

    padding-top:50px;

    gap:30px;

    transition:.4s;

}

.nav-links.active{

    right:0;

}

.menu-btn{

    display:block;

}

}

/* ===============================
   RESPONSIVE - MOBILE
================================ */

@media(max-width:768px){

.section-title{

    font-size:34px;

}

.hero-content h1{

    font-size:42px;

}

.hero-content h2{

    font-size:22px;

}

.hero-content p{

    font-size:15px;

}

.hero-image img{

    width:240px;

}

.about-image img{

    width:280px;

}

.skills-grid,
.services-grid,
.project-grid,
.counter-grid{

    grid-template-columns:1fr;

}

.btn{

    padding:13px 28px;

}

.cursor,
.cursor-dot{

    display:none;

}

}

/* ===============================
   EXTRA SMALL DEVICES
================================ */

@media(max-width:480px){

.logo{

    font-size:24px;

}

.hero-content h1{

    font-size:34px;

}

.hero-content h2{

    font-size:19px;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

}

.btn{

    width:220px;

    text-align:center;

}

.section-title{

    font-size:30px;

}

.contact-form{

    padding:25px;

}

.social-links a{

    width:45px;
    height:45px;

}

.scrollTop{

    right:18px;
    bottom:18px;

}

}

/* ===============================
   SMOOTH TRANSITIONS
================================ */

*{
    transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
}

/* ===============================
   END OF STYLE.CSS
================================ */

