body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #0f0f0f;
    overflow-y: scroll;
}

header {
    background: #000000;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

a { 
    color: rgb(255, 217, 0); 
    text-decoration: none;
    user-select: none; 
    cursor: default;
} 

a:hover { 
    color: rgb(195, 143, 0);
}

#about{
    background: #131313;
    color: #fff;
    padding: 1rem;
    text-align: left;
}

#projects {
    background: #131313;
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    
}

#pet-projects {
    background: #131313;
    color: #ffffff;
    padding: 1rem;
    text-align: left;
}

section {
    padding: 2rem;
}

.project {
    background: #161616;
    color:#fff;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact { 
    background-color: #131313;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #131313;
    color: #fff;
}

.container { 
    display: flex; 
    justify-content: space-evenly;
    position: relative;
    z-index: 1;
    
} 

.image-container { 
    position: relative;
    perspective: 1000px;
    
}

.image-container img { 
    width: 200px; 
    transition: transform 0.3s ease; 
    transform-style: preserve-3d;
    z-index: 0;
}

@media screen and (max-width: 768px) {
    .container {
        overflow-x: scroll;
        max-width: 100%;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
        position: relative;
    }

    .image-container img{
        width: 100%;
        max-width: 150px;
        height: auto;
        object-fit: cover;
        border-radius: 5px;
        cursor: pointer;
        transition: transform 0.3s ease, z-index 0.3s ease;
        z-index: 0;
    }

    .image-container:hover img{
        transform: scale(1.5);
        z-index: 1;
        max-width: none;
        max-height: none;
      }
  }

.image-container:hover img { 
    transform: scale(3);
    z-index: 1;
}

.project h3 { 
    text-align: center; 
}

.link{
    display: block;
    text-align: right;
    margin-right: 20px;
}

.tabcontent {
    display: none;
    opacity: 0;
    transform: scale(0.8) translateX(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tabcontent.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateX(0%);
}

.tabcontent.exiting {
    transform: scale(0.5) translateX(100%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.abouttext{
    flex: 1;
}

.image-row {
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .image-row {
      flex-direction: column;
    }
  }

.resized-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resized-image:hover {
    transform: scale(1.2);
}

.aboutcontainer {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.photo {
    flex-shrink: 0;
    width: 250px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    order: 2;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

@media screen and (max-width: 768px) {
    .aboutcontainer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
  
    .photo {
        order: 1;
        width: 100%;
        max-width: 300px;
    }

    .abouttext {
        order: 2;
    }
}

.video-container video {
    width: 200px;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    background: black;
    border-radius: 5px;
}

.video-container:hover video {
    transform: scale(3);
    z-index: 1;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .video-container video {
        width: 100%;
        max-width: 150px;
    }

    .video-container:hover video {
        transform: scale(1.5);
    }
}

.image-container:hover img {
    transform: scale(3);
    z-index: 10;
}

.video-container video {
    width: 200px;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.image-container:hover,
.video-container:hover {
    z-index: 999;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: black;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: white;
    cursor: pointer;
    user-select: none;
}
