body {
    font-family: 'Roboto', sans-serif;
    background: #18171C;
    /*background: linear-gradient(39deg, rgba(24, 23, 28, 1) 0%, rgba(24, 23, 28, 1) 75%, rgb(36 36 37) 100%); */
    color: white;
    margin: 0;
    padding: 0px;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    box-sizing: border-box;
    background-color: #18171c;
}



h1, h2, .intro {
    width: 100%;
    margin: 0;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2rem;
}

.intro {
    font-weight: 100;
    font-size: 1.5rem;
}

a {
    color: white;
    text-decoration: none;
}

.resume-link {
    position: relative;
    display: block;
    padding: 10px 20px;
    background-color: #1E90FF;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    border: 3px solid transparent;
    box-sizing: border-box;
    background: linear-gradient(0deg,#1E90FF, #1e90FF) padding-box, linear-gradient(150deg,rgba(30, 144, 255, 1) 0%, rgba(219, 252, 255, 1) 100%) border-box;
    transition: 0.3s;
    background-size: 200% auto;
    background-position: left center;
    box-shadow: 0 0 20px #1E90FF33;
}

.resume-link:hover {
    border: 3px solid transparent;
    box-sizing: border-box;
    background-position: right center;
}

.background1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#57ff4848 1.8px, transparent 1.8px);
    background-size: 36px 36px;
    background-attachment: fixed ;
    z-index: -2;
}

.background2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#383838 1.8px, transparent 1.8px);
    background-size: 36px 36px;
    background-attachment: fixed ;
    z-index: -1;
}

/* on body hover, move the background layers in opposite directions */

.home{
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    perspective: 1000px;
    opacity: 1;
    z-index: 1;
}

.project-card {
    background: #1b1b20;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    height: auto;
    border: 1px solid #ffffff14;
    box-shadow: 0px 6px 10px #00000099;
    position: relative;
    transition: transform 0.1s;
    transform-style: preserve-3d;
    cursor: pointer;
    z-index: 1;
    font-weight: 100;
}

.project-card {
  position: relative;                 /* anchor for absolute children */
  border-radius: 16px;
  overflow: hidden;                   /* keeps glow rounded */
  transform-style: preserve-3d;
  transition: transform .3s ease;
}

.project-card-content { position: relative; z-index: 2; }

.project-card .glow {
  position: absolute;
  inset: -20%;                        /* extend past edges for softer falloff */
  z-index: 1;                         /* behind content, above image if needed */
  pointer-events: none;
  border-radius: inherit;
  filter: blur(32px);                 /* soft halo */
  opacity: .7;                        /* tune */
  transition: opacity .2s ease;
  background: radial-gradient(circle at 50% 50%, #ffffff55, #0000000f 60%); /* initial */
}

.project-card:hover .glow { opacity: 1; }

.project-card-image {
    background: url('project-image.png') no-repeat center center;
    background-size: 90% 90%;
    width: 50%;
    height: 100%;
}

.project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 50%;
}

.project-card-content h2 {
    margin: 0 0 10px;
}

.project-card-content p {
    margin: 0 0 15px;
    text-align: start;
    height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.project-card-content a {
    color: #1E90FF;
    text-decoration: none;
    margin-top: auto;
    font-weight: 500;
}

.project-card-content a:hover {
    text-decoration: underline;
}

.github-link {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white !important;
    text-decoration: none;
    font-size: 24px;
}

.github-link:hover {
    color: #1E90FF !important;
}

/* Desktop */
@media (min-width: 768px) {
    .resume-link{
        position: absolute;
        right: 30px;
        top: 30px;
    }
    .project-card {
        width: calc(25% - 40px);
        height: 500px;
        flex-direction: column;
    }

    .project-card-image {
        width: 100%;
        height: 60%;
        background-size: contain;
    }

    .project-card-content {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .project-card-content p {
        display: block;
    }

    .github-link {
        top: 25px;
        right: 25px;
    }
}