video {
    width: 100%;
    height: 100%;
}

#projects {
    padding: 4rem 2rem;
    max-width: min(100%, 1100px);
    margin: 0 auto;
    padding-bottom: 0px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 40px;
}

.card-link {
    color: white;
    text-decoration: none;
}

.card {
    height: 350px;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    /* background: linear-gradient(90deg, rgba(255, 77, 109, 0.75), rgba(77, 77, 255, 0.75)); */
    /* background: #111e58; */
}

.card-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    margin-bottom: 50px;
}

/* .card-main:hover {
    transform: translateY(-5px);
} */

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.card-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    margin-bottom: 0.5rem;
}

.card-content-main {
    padding: 1.5rem;
}

.card-content-main h2 {
    margin-bottom: 0.5rem;
}

.card-content-main h3 {
    margin-top: 20px;
    margin-bottom: 0px;
}

.card-content-main ul {
    margin-left: 35px;
    margin-bottom: 20px;
}

.card-content-main p a {
    color: white;
}

.card-content-main p a:visited {
    color: gray;
}

#github-link {
    padding: 0rem 2rem 1.5rem 2rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#github-link a {
    color: #fff;
    font-size: 3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

#github-link a:hover {
    color: #16a086;
    transform: translateY(-3px);
}

aside {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

#gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-pics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    padding: 2em;
    padding-top: 0px;
    margin-top: 0px;
}

.gallery-pics img {
    height: 200px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.gallery-pics img:hover {
    transform: translateY(-5px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 35, 45, 0.9);
  
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 50%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.close-btn:hover,
.close-btn:focus {
  color: #a0aab2;
  text-decoration: none;
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}