html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: auto;
    color: auto;
    line-height: 1.4;
    text-align: center;
}

p {
    font-weight: 500;
}

section {
    padding: 10px;
}

#projects {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    padding-left: 350px;
    padding-right: 350px;
    padding-bottom: 50px;
}

.project-thumbnail {
    border: 2px solid rgba(255, 255, 255, 0.236);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    transition: transform 0.3s ease;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail-content {
    padding: 20px;
    text-align: center;
    color:antiquewhite;
}

.thumbnail-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.thumbnail-content h3 {
    margin-top: 15px;
    font-size: 20px;
}

.thumbnail-content p {
    margin-top: 10px;
    font-size: 14px;
    color: #8d8d8d;
}

.thumbnail-content .btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #831bcd;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.thumbnail-content .btn:hover {
    background-color: #f9620b;
}

@media screen and (min-width: 1025px) {
    #projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 100px;
        padding: 0 300px;
    }

    .project-thumbnail {
        width: 100%;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #000000;
    padding: 20px;
    border: 3px solid #888;
    width: 60%;
    max-height: 80vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    max-width: 80%;
    color: antiquewhite;
}

.modal-content {
    border-bottom: 10px solid #888;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.column {
    flex: 1 1 45%;
    margin: 5px;
    min-width: 250px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 50%;
    padding: 10px;
}

.stop-scrolling {
    overflow: hidden;
}

#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire background */
    z-index: -1; /* Places the video behind other content */
}

#pr h2,p {
    color:antiquewhite;
}

.modal img{
    width: auto; /* Set the width and height of the circular container */
    height: 300px; /* Make the container circular */
    border-radius: 30px;
    position: relative;
    margin: 100px auto;
}

@media only screen and (max-width: 1024px) {
    #projects {
        padding: 0 50px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-thumbnail {
        width: 100%;
    }

    .modal-content {
        width: 80%;
        max-height: 70vh;
    }

    .modal img {
        height: 200px;
        margin: 50px auto;
    }
}

@media only screen and (max-width: 768px) {
    body {
        padding: 0 20px;
    }

    #projects {
        padding: 0;
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        padding: 10px;
    }

    .modal img {
        height: 150px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 5px;
    }

    #projects {
        padding: 0 10px;
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .modal img {
        height: 120px;
    }
}

@media (max-width: 768px) {
    #backgroundVideo {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      z-index: -1;
  }

  #backgroundVideo {
    display: none;
    }

    body{
        background-color: #000;
    }
}

@media only screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        background-color: #1a1a1a;
        border: none;
        border-radius: 10px;
    }

    .modal-body {
        flex-direction: column;
        padding: 10px;
    }

    .modal-row {
        flex-direction: column;
        gap: 20px;
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    .close {
        font-size: 24px;
        color: #f0f0f0;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .modal img {
        height: 100px;
        border-radius: 15px;
        margin: 20px auto;
    }

    #pr h2, #pr p {
        color: #f0f0f0;
        font-size: 16px;
    }

    .thumbnail-content .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    .modal-content {
        width: 100%;
        padding: 10px;
    }

    .modal img {
        height: 80px;
        border-radius: 10px;
    }

    #pr h2, #pr p {
        font-size: 14px;
    }

    .thumbnail-content .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}