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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    /* ← IMPORTANT */
    --text-color: #fff;
    --main-color: #0ef;
}

.profile-img {
    width: 28rem;
    /* size yaha control karo */
    aspect-ratio: 1 / 1;
    /* automatically square banayega */
    border-radius: 50%;
    overflow: hidden;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* auto perfect crop */
}

html {
    font-size: 65.5%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.home-content h1 {
    font-size: 5.5rem;
}

.home-content h3 {
    font-size: 2.6rem;
    /* pehle 2rem ya 2.2rem hoga */
    font-weight: 500;
}

.home-content p {
    font-size: 1.6rem;
    /* paragraph bigger */
    line-height: 1.7;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;

}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 32rem;
    height: 32rem;
    object-fit: cover;
    border-radius: 50%;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
    transition: 0.5s ease;
    animation: floatImage 4s ease-in-out infinite;
}
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}  
.home-img img:hover {
    box-shadow: 0 0 4rem var(--main-color); /* Hover par thoda zyada glow */
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home content h3 :nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--main-color);
}

.home content p {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 1rem 0 2rem;
}
.home {
    position: relative;
    z-index: 1;
}

.about {
    position: relative;
    z-index: 2;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 2rem 1.5rem 2rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.circle-img {
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    padding: .5rem;
    background: var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: var(--second-bg-color);
}


.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    font-size: 3.5rem;
    text-align: left;
    line-height: 5rem;
}

.about-content h3 {
    font-size: 2.5rem;
}

.about-content p {
    font-size: 1.8rem;
    margin: 2rem 0 3rem;
}

.about {
    padding: 80px 9%;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* ===== PERFECT ABOUT CIRCLE FIX ===== */
.about .circle-img {
    width: 32rem; 
    height: 32rem;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2.5rem var(--main-color);
    background: transparent; 
    padding: 0;
}

.about .circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: none;
    box-shadow: none;
}
.about-content {
    flex: 1.5;
}

.about-content h2 span {
    color: var(--main-color);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* .skills css style */

.skills h2 {
    margin-bottom: 5rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-container .skills-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.skills-container .skills-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.skills-box i {
    font-size: 7rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.skills-box h3 {
    font-size: 2.6rem;
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}
/* ===== SKILL MODAL ===== */
.skill-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0,0,0,0.8);

    display: none;
}

.skill-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 40rem;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 2rem var(--main-color);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.modal-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.modal-content p {
    font-size: 1.6rem;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
}

@keyframes fadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.certificate-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    border: .2rem solid var(--main-color);
    border-radius: 2rem;
    box-shadow: 0 0 2rem var(--main-color);
    overflow: hidden; /* Corners clean rahenge */
    display: flex;
    align-items: center;
}

.slides img {
    width: 100%;
    display: none;
    border-radius: 2rem;
}

.slides img.active {
    display: block;
}

/* Buttons Styling */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--main-color);
    color: #000;
    border: none;
    font-size: 2.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10; /* Sabse zaroori */
    transition: 0.3s ease;
}

.prev { left: 20px; } /* Slider ke andar left side */
.next { right: 20px; } /* Slider ke andar right side */

.prev:hover, .next:hover {
    background: #fff; /* Hover par color change */
    box-shadow: 0 0 15px var(--main-color);
}


.projects {
    padding: 80px 10%;
    background-color: #0f172a;
    text-align: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 60px;
    color: white;
}

.section-title span {
    color: #00f5ff;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.project-card img {
    width: 100%;
    height: 460px;
    /* 🔥 FIX IMAGE SIZE */
    object-fit: cover;
    transition: 0.5s ease;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), #0ef);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
    transform: translateY(100%);
    transition: 0.5s ease;
    color: white;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 50%;
    margin-top: 1rem;
}

.project-info a i {
    font-size: 2.5rem;
    color: #0ef;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input {
    width: 49%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}
/* Contact Social Icons */
.contact-social {
    margin-top: 8rem;
    text-align: center;
}

.contact-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 10px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.3s;
}

.contact-social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}



.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer .text p {
    font-size: 1.6rem;
}

.footer .iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer .iconTop a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.footer .iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* BREAKPOINT */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .skills {
        padding-bottom: 7rem;
    }

    .projects {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        font-size: 3rem;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h1 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: vw;
        margin-top: 4rem;
    }

    .skills h2 {
        font-size: 3.5rem;
    }

    .projects h2 {
        margin-bottom: 3rem;
    }

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

@media (max-width: 617px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 365px) {
    .home-img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
        ;
    }

    .footer p {
        margin-top: 2rem;
    }
}