
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/BackTest.png');
    background-repeat: repeat;
    background-size: 2000px 2000px;
    animation: drift-diagonal 300s linear infinite;
    color: #e0e0e0;
    background-color: #111;
    font-family: Arial, sans-serif;
    padding-top: 200px;
}


@keyframes drift-diagonal {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

a {
    color: #2969ff;
    text-decoration: none;
}

    a:hover {
        color: #551a8b;
        text-decoration: underline;
    }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    padding: 40px 20px;
    background: #000;
    border: 2px solid #333;
    box-shadow: 0 0 10px #000;
}

    header h1 {
        font-size: 2.5rem;
        color: #f0f0f0;
        text-shadow: 1px 1px 0 #000;
    }

    header p {
        color: #e0e0e0;
    }

section {
    margin-bottom: 60px;
}

.projects h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 2rem;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-right: 200px;
    margin-left: 200px;
}

.project-card {
    width: calc(50% - 15px);
    min-width: 300px;
    background: #000;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px #000;
    margin-bottom: 30px;
    box-sizing: border-box;
}

    .project-card:hover {
        transform: translateY(-5px);
        border-color: #999;
    }

    .project-card img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
        border: 2px solid #666;
    }

    .project-card h3 {
        color: #f0f0f0;
        margin: 10px 0;
    }

    .project-card p {
        color: #bbb;
        margin-bottom: 10px;
    }

.buttons {
    display: flex;
    gap: 10px;

}

.btn {
    width: 160px;
    display: inline-block;
    background: #222;
    color: #f0f0f0;
    padding: 8px 16px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid #a0a0a0;
}

    .btn:hover {
        background: #bbb;
    }

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.tool-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tool-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .tool-icon:hover {
        opacity: 1;
        transform: scale(1.05);
    }

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

.project-info {
    position: relative;
    flex: 1;
}

.project-logo {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border: 2px solid #555;
    background: #111;
    display: block;
}

.project-details {
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 10px;
    animation: fadeSlide 0.4s ease-in-out;
}

    .project-details.hidden {
        display: none;
    }

.extra-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

    .extra-media img {
        width: 100%;
        border: 2px solid #555;
    }

    .extra-media video {
        width: 100%;
        height: 227px; 
        object-fit: cover;
        border: 2px solid #555;
        display: block;
        border-radius: 4px;
    }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .video-wrapper iframe {
        position: absolute;
        width: 100%;
        height: 100%;
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .image-lightbox img {
        max-width: 90%;
        max-height: 90%;
        border: 4px solid #999;
    }

    .image-lightbox .close-btn {
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

.project-details ul {
    padding-left: 25px;
    margin-bottom: 10px;
    color: #bbb;
}

.project-details li {
    margin-bottom: 1px;
}

.about-split {
    display: flex;
    justify-content: center; 
    gap: 38px;
    margin-bottom: 60px;
}

.about-left,
.about-right {
    width: 25%; 
    background: #000;
    padding-top: 20px; 
    padding-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px; 
}

.about-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 20px;
}

.about-content {
    flex: 1;
    min-width: 0; 
}

.about-right {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
}

.about-photo {
    flex: 0 0 auto;
    width: 180px;
    height: 230px;
    border-radius: 4%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    
}

@media (max-width: 1400px) {
    .project-grid {
        flex-direction: column;
        align-items: center;
        margin-left: 20px; 
        margin-right: 20px;
    }

    .project-card {
        width: 100%;
        max-width: 700px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-split {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-left,
    .about-right {
        width: 90%;
        text-align: center;
        padding: 10px 15px;
    }

    .about-left {
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        padding: 10px 15px;
    }

    .about-content {
        width: 100%; 
        margin-bottom: 15px; 
    }

    .about-photo {
        width: 180px; 
        height: auto; 
    }

    .project-logo {
        height: auto;
        height: 200px;
        width: 200px;
    }

    header h1 {
        font-size: 2rem;
    }

    .projects h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
