/* ==========================================
   GOOGLE FONTS
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================
   ROOT VARIABLES
========================================== */
:root{
    --bg:#070b14;
    --bg-secondary:#0f172a;
    --card-bg:rgba(255,255,255,0.05);

    --text:#ffffff;
    --text-light:#b7c0d4;

    --primary:#00e5ff;
    --secondary:#7c3aed;
    --accent:#22c55e;

    --border:rgba(255,255,255,.1);

    --shadow:
    0 10px 40px rgba(0,229,255,.15);

    --radius:20px;

    --transition:.4s ease;
}

body.light-mode{
    --bg:#f4f8ff;
    --bg-secondary:#ffffff;
    --text:#0f172a;
    --text-light:#475569;
    --card-bg:rgba(255,255,255,.85);
    --border:rgba(0,0,0,.08);
}

/* ==========================================
   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(--text);
    overflow-x:hidden;
    line-height:1.7;
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#08101d;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
    180deg,
    var(--primary),
    var(--secondary));
    border-radius:10px;
}

/* ==========================================
   AURORA BACKGROUND
========================================== */
body::before{
    content:"";
    position:fixed;
    width:700px;
    height:700px;
    top:-200px;
    left:-250px;

    background:
    radial-gradient(
    circle,
    rgba(0,229,255,.25),
    transparent 70%);

    filter:blur(100px);
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    width:700px;
    height:700px;
    bottom:-250px;
    right:-250px;

    background:
    radial-gradient(
    circle,
    rgba(124,58,237,.22),
    transparent 70%);

    filter:blur(120px);
    z-index:-2;
}

/* ==========================================
   LOADER
========================================== */
#loader{
    position:fixed;
    inset:0;
    background:#050814;
    z-index:9999;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:20px;
}

.spinner{
    width:70px;
    height:70px;

    border:4px solid rgba(255,255,255,.15);
    border-top:4px solid var(--primary);

    border-radius:50%;

    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ==========================================
   CURSOR
========================================== */
.cursor{
    position:fixed;
    width:20px;
    height:20px;

    border:2px solid var(--primary);
    border-radius:50%;

    pointer-events:none;

    transform:translate(-50%,-50%);
    z-index:99999;
}

/* ==========================================
   PROGRESS BAR
========================================== */
#progress-bar{
    position:fixed;
    top:0;
    left:0;
    height:4px;

    width:0;

    background:
    linear-gradient(
    90deg,
    var(--primary),
    var(--secondary));

    z-index:999;
}

/* ==========================================
   HEADER
========================================== */
.header{
    position:fixed;
    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:1rem 8%;

    backdrop-filter:blur(20px);

    background:
    rgba(0,0,0,.15);

    border-bottom:
    1px solid var(--border);

    z-index:1000;
}

.logo{
    text-decoration:none;
    color:var(--text);

    font-size:2rem;
    font-weight:800;
}

.navbar{
    display:flex;
    gap:2rem;
}

.navbar a{
    color:var(--text);
    text-decoration:none;

    transition:var(--transition);
}

.navbar a:hover{
    color:var(--primary);
}

.nav-buttons{
    display:flex;
    align-items:center;
    gap:1rem;
}

.nav-buttons i{
    font-size:1.4rem;
    cursor:pointer;
}

.mobile-menu{
    display:none;
}

/* ==========================================
   GLOBAL SECTION
========================================== */
section{
    padding:120px 10%;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title h2{
    font-size:3rem;
    font-weight:800;
    position:relative;
}

.section-title h2::after{
    content:"";
    width:80px;
    height:4px;

    position:absolute;
    bottom:-15px;
    left:50%;
    transform:translateX(-50%);

    background:var(--primary);
}

/* ==========================================
   BUTTONS
========================================== */
.btn{
    padding:14px 32px;

    border:none;
    border-radius:50px;

    text-decoration:none;
    cursor:pointer;

    transition:var(--transition);
}

.primary-btn{
    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:white;
}

.secondary-btn{
    border:1px solid var(--primary);
    color:var(--text);
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

/* ==========================================
   HERO
========================================== */
.home{
    min-height:100vh;

    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:60px;
}

.hero-subtitle{
    color:var(--primary);
    font-size:1.2rem;
}

.home h1{
    font-size:4.5rem;
    line-height:1.1;
}

.home h1 span{
    color:var(--primary);
}

.home h3{
    font-size:2rem;
    margin:15px 0;
}

.hero-description{
    max-width:650px;
    color:var(--text-light);
    margin-bottom:25px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin:30px 0;
}

.social-icons{
    display:flex;
    gap:18px;
}

.social-icons a{
    width:50px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    border-radius:50%;

    color:white;

    background:var(--card-bg);

    border:1px solid var(--border);

    font-size:1.3rem;

    transition:var(--transition);
}

.social-icons a:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
}

/* ==========================================
   PROFILE IMAGE
========================================== */
.home-image{
    display:flex;
    justify-content:center;
    position:relative;
}

.glow-circle{
    width:380px;
    height:380px;

    position:absolute;

    border-radius:50%;

    background:
    radial-gradient(
    circle,
    rgba(0,229,255,.4),
    transparent);

    filter:blur(50px);

    animation:float 6s ease-in-out infinite;
}

.profile-card{
    width:360px;
    height:360px;

    border-radius:30px;

    overflow:hidden;

    backdrop-filter:blur(20px);

    background:var(--card-bg);

    border:1px solid var(--border);

    box-shadow:var(--shadow);
}

.profile-card img{
    width:100%;
    height:100%;
    object-fit:cover;
}

@keyframes float{
    50%{
        transform:translateY(-25px);
    }
}

/* ==========================================
   GLASS CARDS
========================================== */
.detail-card,
.skill-card,
.project-card,
.education-card,
.certificate-card,
.timeline-content{
    background:var(--card-bg);
    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    border-radius:var(--radius);

    transition:var(--transition);
}

.detail-card:hover,
.skill-card:hover,
.project-card:hover,
.education-card:hover,
.certificate-card:hover,
.timeline-content:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow);
}

/* ==========================================
   ABOUT
========================================== */
.about-details{
    margin-top:40px;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.detail-card{
    padding:25px;
    text-align:center;
}

/* ==========================================
   SKILLS
========================================== */
.skills-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.skill-card{
    text-align:center;
    padding:35px;
}

.skill-card i{
    font-size:3rem;
    color:var(--primary);
}

.skill-card h3{
    margin-top:15px;
}

/* ==========================================
   TIMELINE
========================================== */
.timeline{
    position:relative;
    max-width:900px;
    margin:auto;
}

.timeline::before{
    content:"";
    position:absolute;

    left:50%;
    top:0;
    bottom:0;

    width:4px;

    background:var(--primary);
}

.timeline-item{
    width:50%;
    padding:20px 40px;
    position:relative;
}

.timeline-item:nth-child(odd){
    left:0;
}

.timeline-item:nth-child(even){
    left:50%;
}

.timeline-content{
    padding:25px;
}

/* ==========================================
   PROJECTS
========================================== */
.project-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(340px,1fr));

    gap:30px;
}

.project-content{
    padding:30px;
}

.tech-stack{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin:20px 0;
}

.tech-stack span{
    background:rgba(0,229,255,.15);
    color:var(--primary);

    padding:8px 14px;
    border-radius:50px;
}

.project-buttons{
    display:flex;
    gap:15px;
}

.project-buttons a{
    text-decoration:none;
    color:white;

    padding:10px 18px;

    border-radius:50px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));
}

/* ==========================================
   EDUCATION
========================================== */
.education-card{
    max-width:700px;
    margin:auto;
    text-align:center;
    padding:40px;
}

/* ==========================================
   CERTIFICATES
========================================== */
.certificate-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:25px;
}

.certificate-card{
    padding:30px;
    text-align:center;
    font-weight:600;
}

/* ==========================================
   CONTACT
========================================== */
.contact-form{
    max-width:700px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form textarea{
    width:100%;

    padding:18px;

    border-radius:15px;

    background:var(--card-bg);

    color:var(--text);

    border:1px solid var(--border);

    outline:none;
}

/* ==========================================
   FOOTER
========================================== */
footer{
    padding:40px 10%;
    text-align:center;

    border-top:
    1px solid var(--border);
}

.footer-socials{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:20px 0;
}

.footer-socials a{
    color:var(--text);
    font-size:1.5rem;
}

/* ==========================================
   TOP BUTTON
========================================== */
#topBtn{
    position:fixed;
    bottom:25px;
    right:25px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:white;

    cursor:pointer;

    display:none;

    z-index:999;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media(max-width:992px){

    .home{
        grid-template-columns:1fr;
        text-align:center;
    }

    .home-image{
        order:-1;
    }

    .about-details{
        grid-template-columns:repeat(2,1fr);
    }

    .timeline::before{
        left:25px;
    }

    .timeline-item,
    .timeline-item:nth-child(even){
        width:100%;
        left:0;
        padding-left:70px;
    }
}

@media(max-width:768px){

    .navbar{
        position:absolute;
        top:100%;
        left:0;

        width:100%;

        display:none;
        flex-direction:column;

        background:#08111f;

        padding:20px;
    }

    .navbar.active{
        display:flex;
    }

    .mobile-menu{
        display:block;
    }

    .home h1{
        font-size:3rem;
    }

    .section-title h2{
        font-size:2.2rem;
    }

    .profile-card{
        width:280px;
        height:280px;
    }
}

@media(max-width:576px){

    section{
        padding:100px 6%;
    }

    .about-details{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        justify-content:center;
    }

    .home h1{
        font-size:2.5rem;
    }
}
 /* Reveal Animation */
.section-title,
.skill-card,
.detail-card,
.timeline-item,
.project-card,
.certificate-card,
.education-card,
.contact-form{
    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;
}

.show{
    opacity:1 !important;
    transform:translateY(0) !important;
}

/* Active Nav */
.navbar a.active{
    color:var(--primary);
}

/* Typing Cursor */
.typing-text::after{
    content:"|";
    animation:blink .7s infinite;
}

@keyframes blink{
    50%{
        opacity:0;
    }
}