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

:root {
    --bg-color: #121521;
    --second-bg-color: #1f2230;
    --main-color: #00ff99;
    --secondary-color: #00ccff;
    --hover-color: #33ffcc;
    --white-color: #ffffff;
    --soft-text-color: #a0a3b0;
    --disabled-color: #ffffff33;

}

html {
    font-size: 62.5%;
}

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

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 7%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--white-color);
    font-weight: 700;
}

nav a {
    font-size: 2rem;
    font-weight: 500;
    color: var(--white-color);
    margin-left: 3.5rem;
    transition: 0.5s;
}

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

#menu-icon {
    font-size: 4rem;
    display: none;
}

/* ---------- HOME SECTION ---------- */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    flex-wrap: wrap;
}

.home-detail h1 {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-detail h2 {
    font-size: 3.2rem;
    margin-top: -1rem;
}

.typing {
    color: var(--main-color);
    border-right: 2px solid var(--main-color);
    padding-right: 0.3rem;
}

/* ---------- BUTTONS & ICONS ---------- */
.home-detail p {
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.5rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: 0.5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

.home-detail .btn-sci .sci {
    display: flex;
    margin-left: 2rem;
    flex-wrap: wrap;
}

.home-detail .btn-sci .sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 0.8rem;
    transition: 0.5s;
}

.home-detail .btn-sci .sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* ---------- IMAGE SECTION ---------- */
.home-img .img-box {
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: "";
    position: absolute;
    width: 50rem;
    height: 50rem;
    background: conic-gradient(transparent, transparent, transparent, var(--main-color));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
}

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

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 50%;
    border: 0.01rem solid var(--bg-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    top: 3rem;
    display: block;
    width: 85%;
    object-fit: cover;
}

/*------------- about section------------------*/
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    background: var(--second-bg-color);
}

.heading {
    font-size: 3rem;
    padding: 1rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

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


.heading::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 4px;
    background: linear-gradient(70deg, #7cf03d, #037d52);
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.heading:hover::after {
    width: 120px;
    background: linear-gradient(90deg, #7cf03d, #05e899);

}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
}

/* Image Section */
.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 0.3rem solid var(--main-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
}

/* Spinning Circle Animation */
.circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 0.3rem solid var(--second-bg-color);
    border-bottom: 0.3rem solid var(--second-bg-color);
    border-left: 0.3rem solid var(--main-color);
    border-right: 0.3rem solid var(--main-color);
    animation: spin 6s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Content Section */
.about-content {
    max-width: 600px;
    text-align: left;
}

.about-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;

}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Button */
.btn-box {
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    background: var(--main-color);
    border-radius: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border: 0.2rem solid var(--main-color);
    transform: translateY(-3px);
}

.btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    z-index: 0;
}

.btn:hover::after {
    width: 100%;
}

@media screen and (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-content {
        text-align: center;
    }
}

/* ---------- EDUCATION SECTION ---------- */
.education {
    background: var(--second-bg-color);
    padding: 8rem 9%;
    text-align: center;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.education-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 1px solid var(--main-color);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 2rem var(--main-color);
}

.education-card h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    font-size: 1.6rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.education-card p {
    font-size: 1.5rem;
    color: var(--soft-text-color);
    line-height: 1.6;
}

/* ---------- CERTIFICATE SECTION ---------- */
.certificate {
    background: var(--bg-color);
    padding: 8rem 9%;
    text-align: center;
}

.certificate-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
}

.certificate-card {
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 280px;
    transition: all 0.4s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 2rem var(--main-color);
}

.certificate-card i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.certificate-card h3 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.certificate-card p {
    font-size: 1.5rem;
    color: var(--soft-text-color);
}


/* ---------- SKILLS SECTION ---------- */
.skills {
    background: var(--second-bg-color);
    padding: 8rem 9%;
    text-align: center;
}

.skills .heading {
    margin-bottom: 4rem;
}

.sub-heading {
    font-size: 2.4rem;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* --- Technical Skills --- */
.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.tech-box {
    background: var(--bg-color);
    border: 1px solid var(--main-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 1rem rgba(0, 255, 153, 0.1);
}

.tech-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 2rem var(--main-color);
}

.tech-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.tech-box h3 {
    font-size: 2rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.tech-tags span {
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    color: var(--white-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 0 1rem var(--main-color);
}

/* --- Soft Skills --- */
.soft-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.soft-box {
    background: var(--bg-color);
    border: 1px solid var(--secondary-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
    text-align: center;
}

.soft-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 1.5rem var(--secondary-color);
}

.soft-box i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.soft-box h4 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 0.8rem;
}

.soft-box p {
    font-size: 1.4rem;
    color: var(--soft-text-color);
    line-height: 1.6;
}


@media (max-width: 768px) {

    .tech-box,
    .soft-box {
        padding: 2rem;
    }

    .tech-tags span {
        font-size: 1.3rem;
    }

    .sub-heading {
        font-size: 2rem;
    }
}

/* ---------- PROJECTS SECTION ---------- */
.projects {
    background: var(--second-bg-color);
    padding: 6rem 5%;
    text-align: center;
}

.projects .heading {
    margin-bottom: 4rem;
}

.heading-h3 {
    font-size: 2rem;
    margin-bottom: 5rem;
    line-height: 1.5;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Project Card */
.project-card {
    background: var(--bg-color);
    border: 1px solid var(--main-color);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 1rem rgba(0, 255, 153, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 2rem var(--main-color);
    border-color: var(--hover-color);
}

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Thumbnail */
.project-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

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

/* Project Info */
.project-info {
    padding: 2rem;
    text-align: left;
}

.project-info h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.5rem;
    color: var(--soft-text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    color: var(--white-color);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-stack span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.03);
}

/* Project Buttons */
.project-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    border: 1px solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--main-color);
    background: transparent;
    transition: all 0.4s ease;
}

.btn-icon:hover,
.btn-icon:focus {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .project-info {
        text-align: center;
    }

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

    .project-info h3 {
        font-size: 1.8rem;
    }

    .project-info p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 4rem 2rem;
    }

    .heading-h3 {
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }

    .project-info h3 {
        font-size: 1.6rem;
    }

    .project-info p {
        font-size: 1.3rem;
    }
}

/* ---------- CONTACT SECTION ---------- */
.contact {
    background: var(--bg-color);
    padding: 8rem 9%;
    text-align: center;
}

.heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

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

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 4rem;
}

/* LEFT SIDE INFO */
.contact-info {
    flex: 1 1 350px;
    text-align: left;
    color: var(--white-color);
}

.contact-info p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: var(--soft-text-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.detail-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-box i {
    font-size: 2rem;
    color: var(--main-color);
}

.detail-box h4 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: var(--white-color);
}

.detail-box a,
.detail-box p {
    font-size: 1.4rem;
    color: var(--soft-text-color);
    transition: 0.3s;
}

.detail-box a:hover {
    color: var(--main-color);
}

/* SOCIAL LINKS */
.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: all 0.4s ease;
}

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

/* RIGHT SIDE FORM */
.contact-form {
    flex: 1 1 400px;
    background: var(--second-bg-color);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid var(--main-color);
    box-shadow: 0 0 1rem rgba(0, 255, 153, 0.1);
}

.input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--main-color);
    border-radius: 0.8rem;
    background: transparent;
    color: var(--white-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--hover-color);
    box-shadow: 0 0 0.8rem var(--hover-color);
}

.contact-form .btn {
    display: inline-block;
    width: 100%;
    margin-top: 1rem;
    font-size: 1.6rem;
}

/* ==========================
   FOOTER
   ========================== */
.footer {
    background: var(--second-bg-color);
    color: var(--white-color);
    padding: 4rem 7% 2rem;
    font-size: 1.4rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-about h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--soft-text-color);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--white-color);
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--main-color);
}

.footer-social .social-icons a {
    font-size: 2rem;
    color: var(--white-color);
    margin-right: 1.5rem;
    transition: 0.3s;
}

.footer-social .social-icons a:hover {
    color: var(--main-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 1.3rem;
    color: var(--soft-text-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social .social-icons a {
        margin-right: 1rem;
    }
}


/* --- Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
    header {
        padding: 1rem 5%;
    }

    section {
        padding: 8rem 5%;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img .img-box {
        width: 50vw;
        height: 50vw;
    }

    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .education-container,
    .tech-container,
    .soft-container,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
    }
}

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

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        display: none;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 1.5rem 0;
        font-size: 2rem;
    }

    .home-img .img-box {
        width: 65vw;
        height: 65vw;
    }

    .heading {
        font-size: 2.6rem;
    }

    .about-content p {
        font-size: 1.5rem;
    }

    .project-info {
        text-align: center;
    }

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

    .contact-form {
        padding: 2rem;
    }
}

/* --- Small Mobile Devices (max-width: 480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 55%;
    }

    .logo {
        font-size: 2.4rem;
    }

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

    .home-detail h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }

    .about-img {
        width: 20rem;
        height: 20rem;
    }

    .project-thumb {
        height: 180px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1.3rem;
    }
}