* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Roboto";
}

:root {
    --bg-color: #111111;
    --second-bg-color: #1a1a1a;
    --text-color: #d4d4d8;
    --main-color: #a1a1aa;
    /* neutral accent */
    --accent-color: #60a5fa;
        /* subtle blue just for highlights */
}

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

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

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
}

#menu-icon{
    font-size: 3.5rem;
    color: var(--main-color);
    display:none;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
}

span {
    background: linear-gradient(270deg,
            var(--accent-color),
            #ffffff);
    background-clip: text;
    color: transparent;
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color)
}

.gradient-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,
                var(--main-color),
                rgba(255, 255, 255, 0.25));
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}

.gradient-btn:hover{
    transform: scale(1.05);
}

section{
    min-height: 60vh;
    padding: 6rem 15%;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    padding: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h2{
    margin: 3rem 0;
    font-size: 3rem;
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-img img {
    width: 40vw;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 18px var(--main-color);
    transition: 0.4s ease-in-out;
}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.tagline {
    font-size: 2rem;
    font-weight:500;
    color: #b0b0b0;
    line-height: 2;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding:1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover{
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.btn-group{
    display: flex;
    gap: 1.5rem;
}

.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}


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


.about-content h2{
    font-size: 7rem;
    text-align: center;
    gap:1rem;
}

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

.tech-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tags span {
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.6rem;
    font-weight: 500;

    background-image: linear-gradient(270deg,
            var(--accent-color),
            #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    transition: 0.25s ease;
}

.tech-tags span:hover {
    background: var(--main-color);
    color: #000;
    -webkit-background-clip: initial;
    background-clip: initial;
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--main-color);
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    padding: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    transition: 0.3s ease-in-out;
}

.experience-card:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
    transform: translateY(-5px);
}

.experience-card h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.experience-card li{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.experience-card span {
    font-weight: 400;
}

.experience-date {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.experience-card ul {
    padding-left: 2rem;
}

.experience-card ul li {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}

.heading{
    text-align: center;
    font-size: 5rem;
    margin:5rem 0;
}

.projects{
    background-color: var(--second-bg-color);
}


.projects-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    place-items: center;
    place-items: stretch;
        /* make all cards stretch to same height */
    gap: 3rem;
    row-gap: 5rem;
}

.project-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: flex-start;
        /* align content at top */
    text-align: center;
    background-color: var(--bg-color);
    border:  2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
    height: 100%;
        /* let grid row handle height */
}

.project-card:hover{
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
    transform: scale(1.02);
}

.project-card img{
    max-width: 300px;
    border-radius: 2em;
    object-fit: cover;
}

.project-card h3{
    font-size: 3rem;
}

.project-card p{
    font-size: 1.6rem;
    flex-grow: 1;
}

.contact{
    background-color: var(--bg-color);
}

.contact h2{
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-box {
    display: flex;
    gap: 2rem;
}

.contact form .input-box input, .contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0 ;
    resize: none;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    align-items: center;
    padding-left:3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 2.2rem;
}

.contact-item i {
    font-size: 3rem;
    color: var(--main-color);
}

.contact-item a {
    color: var(--text-color);
    transition: 0.3s ease;
}

.contact-item a:hover {
    color: var(--main-color);
}

.footer{
    background-color: var(--second-bg-color);
    padding: 15px 0;
}

.footer .social-icons{
    text-align: center;
}

.footer .copyright{
    text-align: center;
    margin-top: 10px;
    font-size:16px ;
}

@media (max-width: 1285px) {
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
        .header {
            padding: 1.5rem 6%;
            background: rgba(0, 0, 0, 0.75);
        }

    .contact-item {
        justify-content: center;
    }
        .input-box {
            flex-direction: column;
        }
}

@media(max-width: 1285px) {

    /* -------------------- HEADER -------------------- */
    #menu-icon {
        display: block;
        margin-left: auto;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 70%;
        padding: 1rem 2rem;
        background: rgba(26, 26, 26, 0.95);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
        color: var(--text-color);
    }

    .navbar.active {
        display: block;
    }

    .gradient-btn {
        display: none;
    }

    /* -------------------- HOME -------------------- */
    .home {
        flex-direction: column-reverse;
        padding: 5rem 2rem;
        /* smaller padding */
        gap: 3rem;
        margin: 0;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
        /* smaller heading */
    }

    .home-content h2 {
        font-size: 2.2rem;
        /* smaller subheading */
        margin: 2rem 0;
    }

    .tagline {
        font-size: 1.6rem;
        line-height: 1.6;
    }

    .home-img img {
        width: 56vw;
        max-width: 300px;
    }

    /* -------------------- ABOUT -------------------- */
    .about {
        flex-direction: column-reverse;
        text-align: rigth;
        gap: 2rem;
        padding: 3rem 10% 2rem;
    }

    .about-content h2 {
        font-size: 4rem;
        /* smaller heading */
    }

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

    /* -------------------- PROJECTS -------------------- */
    .projects-box {
        grid-template-columns: 1fr;
        /* single column */
        gap: 2rem;
    }

    .project-card {
        padding: 3rem 1.5rem;
        /* reduce padding */
        gap: 1.5rem;
    }

    .project-card img {
        max-width: 80%;
        /* scale images */
        border-radius: 1.5rem;
    }

    .project-card h3 {
        font-size: 2.2rem;
        /* smaller heading */
    }

    .project-card p {
        font-size: 1.4rem;
        /* smaller description */
    }

    /* -------------------- CONTACT -------------------- */
    .contact-container {
        grid-template-columns: 1fr;
        /* single column */
        padding-left: 0;
        gap: 2rem;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        font-size: 2rem;
    }

    .input-box {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact form .input-box input,
    .contact form textarea {
        padding: 2rem;
        font-size: 1.6rem;
    }

    /* -------------------- FOOTER -------------------- */
    .footer {
        padding: 2rem 0;
    }

    .footer .copyright {
        font-size: 14px;
    }
}