img {
    max-width: 100%;
    height: auto;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #e2e8f0;
  background-color: #0f172a;
  margin: 0;
  overflow-x: hidden;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 700px;

    background: radial-gradient(
        circle,
        rgba(56,189,248,0.15) 0%,
        rgba(15,23,42,0) 60%
    );

    top: -100px;
    left: -200px;

    z-index: -1;
}

.hero_buttons .button {
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.button{
    all:unset;
    display: inline-block;
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.button:hover{
    transform: translateY(-5px);
    background-color: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}

#hero {
    max-width: 700px; 
    margin-top: 60px;
    position: relative;
}

#hero h1 {
    font-size: 80px;
    font-weight: bold;
    margin: 0, 0, 10px, 0;
    padding: 0;
    position: relative;
}

#title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #38bdf8;
    margin-top: 12px;
    border-radius: 2px;
}

#hero h2 {
    font-size: 50px;
    font-weight: lighter;
    margin: 0 0 20px 0;
    padding: 0;
}

#projects {
    margin-top: 120px;
}

.project_image_wrapper{
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 16px;
}

#projects h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
}

.projects_grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.project_card{
    border: 1px solid white;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    min-width: 0;
}

.project_card:hover{
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.project_card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project_card p {
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.project_stack {
    opacity: 0.75;
    font-size: 14px;
    margin-bottom: 20px;
    color: #93c5fd;
}

.project_links {
    margin-top: 10px;
}

/* About  */

#about {
    margin-top: 120px;
    max-width: 700px;
}

#about h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Contact */

#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#contact h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact_links {
    display: flex;
    gap: 20px;
}

.contact_links a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 500;
    position: relative;
}

.contact_links a:hover {
    color: #38bdf8;
}

.contact_links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -4px;
    transition: width 0.2s ease;
}

.contact_links a:hover::after {
    width: 100%;
}

@media (max-width: 900px) {

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

}

@media(max-width: 600px){
    
    #hero h1 {
        font-size: 70px;
    }

    #hero h2 {
        font-size: 35px;
        margin: 20px 0 20px 0;
    }

    .hero_buttons{
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    #projects {
        margin-top: 80px;
    }

    .projects_grid{
        grid-template-columns: 1fr;
    }

    #about {
        margin-top: 80px;
    }

    #contact {
        margin-top: 0px;
        margin-bottom: 40px;
        padding: 20px 40px;
    }

    main::before {
    width: 500px;
    height: 500px;
    left: -150px;
  }
}