* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}



.about p {
    color: #666666;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

h1 {
    font-size: clamp(1.5em, 5vw, 2.5em);
    padding: 0.1em 0;
    font-family: "Poppins", sans-serif;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    font-family: "Poppins", sans-serif;
    color: #333;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    font-family: "Poppins", sans-serif;
}

.projects p, .tech-stack p, .contact p {
    font-family: "Poppins", sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 1em;
    color: #333
} 

.hero, .projects, .tech-stack, .contact {
    padding: 1.25em 0;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #ffffff;
}


.container {
    padding: 1.25em;
    text-align: left;
    border-radius: 5px;
    width: 100%;
}



/* heading and navigation */

header {
    background-color: transparent;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;

}

.header__container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* header.scrolled {
    background-color: #fff;
    transition: background-color 0.3s ease;
    opacity: 0.9;
} */


.desktop-nav-links, .navbar  {
    display: none;
}

.nav-logo {
    font-family: "Michroma", sans-serif;
    text-decoration: none;
    font-size: 2em;
    color: #333;
    font-weight: 700;
    cursor: pointer;
}

.bar {
    width: 2em;
    background-color: #333;
    height: 0.25em;
    margin: 0.3em 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border-radius: 1em;
}

.bars {
    z-index: 3;
    background-color: none;
    cursor: pointer;
}

.bars.active .bar1 {
    transform: rotate(45deg) translate(0.5em, 0.3em);
}

.bars.active .bar2 {
    opacity: 0;
}

.bars.active .bar3 {
    transform: rotate(-45deg) translate(0.5em, -0.3em);
}


.navbar {
    background: #fff;
    padding: 2rem;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.25em;
    z-index: 1000;
}

.navbar.active {
    max-height: 500px; /* Adjust based on content */
    display: flex;
}

.mobile-nav-links {
    text-align: center;
    width: 100%;
}

.nav-links li {
    list-style: none;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    display: block;

}

.nav-links a {
    padding: 0.6em;
}

.nav-links a:hover {
    padding: 0.6em;
    color: #333;
}

.btn-icons-desktop {
    display: none;
}


@media (min-width: 768px) {

    .btn-icons-desktop {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    .btn-icons-desktop li svg path {
        fill: #666;
        transition: fill 0.3s ease;
    }

    .btn-icons-desktop li:hover svg path {
        fill: #333;
        cursor: pointer;
    }

    .desktop-nav-links {
        display: flex;
        gap: 1em;
        align-items: center;
        justify-content: center;
    }

    .nav-group {
        display: flex;
        align-items: center;
        gap: 2em;
    }

    .btn-group-desktop {
        display: flex;
        gap: 2em;
    }

    .mobile-nav-links {
        display: none;
    }

    .navbar {
        position: relative;
        max-height: none;
    }

    .bars {
        display: none;
    }

    #active {
        color: #333;

    }

    .desktop-nav-links a {
        text-decoration: none;
        font-size: 1rem;
        transition: background-color 0.1s ease;
        color: #666666;
        white-space: nowrap;
    }

    .desktop-nav-links a:hover {
        color: #333;
    }
}


/* hero */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--color-primary);
}

.hero__container {
    text-align: left;
    /* background-color: var(--primary-bg-color); */
    width: 100%;
    height: 100%;
    color: var(--primary-txt-color);
    flex-direction: column;
    display: flex;
    gap: 4em;
    align-items: center;
    justify-content: center; 
}

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

.hero .name {
    background: linear-gradient(45deg, #13B0F5 0%, #E70FAA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for modern browsers */
}


.gradient-border  {
    display: flex;
    padding: 8px; /* border thickness */
    background: linear-gradient(90deg, #13B0F5, #E70FAA);
    border-radius: 12px; /* match img radius */
    border-radius: 50%;
    align-items: center;
    width: clamp(300px, 40vw - 3.4rem, 320px);
    height: clamp(300px, 40vw - 3.4rem, 320px);
    /* Optional: Add a shadow for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    align-items: center;
    justify-content: center;
}

.gradient-border img {
    width: clamp(280px, 30vw, 300px);
    height: clamp(280px, 30vw, 300px);
    display: block;
    height: auto;
    border-radius: 12px;
}

.nav-logo {
    background: linear-gradient(90deg, #13B0F5, #E70FAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for modern browsers */
}





.hero__section {
    text-align: center;
}

.hero__container {
    width: 90%;
}

.hero__section--top img {
    border-radius: 60%;

}

.title {
    color: rgb(142, 237, 9);
    font-weight: 900;
}

.hero {
    position: relative;
    overflow: hidden;
}

/* Base shape */
.shape {
    position: absolute;
    opacity: 0.15;
    z-index: 0;
}

/* Big Circle */
.circle1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #007bff;
    top: -50px;
    left: -50px;
}

/* Triangle pointing toward name */
.triangle1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid #00c851;
    top: 50%;
    right: 10%;
    transform: translateY(-50%) rotate(20deg);
}

/* Small dots background */
.dots1 {
    width: 4px;
    height: 4px;
    background: #ff7f50;
    border-radius: 50%;
    top: 20%;
    left: 70%;
    box-shadow: 20px 40px #ff7f50, -30px 60px #ff7f50, 40px 10px #ff7f50;
}

/* Soft blob behind text */
.blob1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ff7f50, #ffb347);
    border-radius: 50% 40% 60% 50%;
    top: 60%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(-20deg);
}



@media (min-width: 768px) {
    .hero__section--bottom {
        text-align: left;
    }

    .hero__section {
        flex: 1;
    }
    .hero__container {
        flex-direction: row-reverse;
    }
}


@media (min-width: 768px) {
    .about {
        text-align: center;
    }
}



.tech-stack__container {
    position: relative;
    padding: 60px 20px;
}

/* Base style for shapes */
.tech-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0; /* behind all content */
}

/* Top-left circle */
.circle1 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #007bff;
    top: -30px;
    left: -30px;
}

/* Bottom-right circle */
.circle2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ff7f50;
    bottom: -20px;
    right: -20px;
}

/* Top-right triangle */
.triangle1 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #00c851;
    top: -20px;
    right: 10%;
    transform: rotate(15deg);
}

/* Bottom-left triangle */
.triangle2 {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #ffcc00;
    bottom: 10%;
    left: 5%;
    transform: rotate(-10deg);
}

/* Blob behind header */
.blob1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff7f50, #ffb347);
    border-radius: 50% 40% 60% 50%;
    top: 20px;
    left: 60%;
    transform: rotate(-20deg);
}



/* tech-stack */

.tech-stack {
    padding: 2em 0;
}

.tech-stack h2 {
    color: #000;
}

.tech-stack__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3em;
}

.tech-stack__header {
    text-align: center;
}

.tech-stack__list {
    width: 90%;
}

.tech-stack__techs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6em; /* add spacing if you want */
}


.tech-stack__techs li {
    display: block; /* no flex needed */
    width: 70px;
}

.tech-stack__techs img {
    width: 100%;  /* or 50%, 60% depending on what looks right */
    height: auto;
    display: block;
}


.tech-stack__title {
    margin-bottom: 0;
    color: var(--color-text-dark);
}

.tech-stack__subtitle {
    font-size: 1rem;
    color: var(--color-text-dark);
    text-align: center;
}


/* projects */

.projects__header {
    text-align: center;
}

.projects__header h2 {
    color: #333;
}

.projects__container {
    width: 90%;
    margin: 0 auto;
}

.project-card {
    color: #333;
    border-radius: 5px;
    /* padding: 1.25em; */
    margin-bottom: 1.25em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translate(5px, 0);
    background-color: var(--color-surface);

}

.project-card__content {
    padding: 1.25em;
}

.project-card__links {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

.project-card:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects .link {
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    text-decoration: underline;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.projects .link:hover {
    background-color: var(--color-primary-dark);
}

@media(min-width: 768px) {
    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25em;
    }

    .hero .container {
        text-align: center;
    }

    .hero, .about, .projects, .skills, .experience, .contact {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
}



/* footer */
.footer {
    background-color: var(--color-primary-dark);
    text-align: center;
    color: #333;
    padding: 1.25em;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2em;
    flex-direction: column;
    gap: 2em;
}

.footer__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    flex-direction: column;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1em;
}

.footer__container {
    width: 90%;
    margin: 0 auto;
}

.footer__bottom {
    padding-top: 2em;
    color: #666;
}

.footer__nav-links {
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .footer__top {
        flex-direction: row;
        gap: 2em;
    }

    .footer__contact {
        flex-direction: row;
        gap: 2em;
    }

    .footer__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .footer__nav-links {
        padding: 0;
        border-top: none;
        display: flex;
        gap: 2em
    }

    .footer__nav-links a {
        white-space: nowrap;
    }


}

hr {
    border: none;
    border-top: 1px solid #eee;
}






.project-card__description {
    max-height: 60px; /* show only a few lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.project-card__description.expanded {
  max-height: 500px; /* adjust to fit full text */
}
