/* Portfolio page background */
body {
    background-color: #2874a6;
}

/* Make section cards stand out on dark background */
section {
    background-color: #ffffff;
}

/* Nav stays white */
nav {
    background-color: #ffffff;
}

/* ===== PROJECT PAGE ===== */
.project-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2874a6;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 30px;
}

.back-link:hover {
    color: #1a5276;
}

.project-page h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 30px;
    text-align: left;
}

.project-page h1::after {
    display: none;
}

.project-page-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.project-page-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.project-page-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.project-page-details h3 {
    color: #2874a6;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.project-page-details p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-page h1,
.project-page-details div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-page {
    overflow: hidden;
}

.project-video-large iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .project-page {
        padding: 25px 20px;
    }

    .project-page-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .project-page h1 {
        font-size: 22px;
    }

    .project-video-large iframe {
        height: 280px;
    }

    .lightbox img {
        max-width: 92%;
        max-height: 80%;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
    .project-page {
        padding: 20px 15px;
    }

    .project-page-gallery {
        grid-template-columns: 1fr;
    }

    .project-page h1 {
        font-size: 19px;
    }

    .project-video-large iframe {
        height: 200px;
    }

    .lightbox-arrow {
        font-size: 22px;
        width: 38px;
        height: 38px;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    display: none;
}

/* ===== PROJECT VIDEO ===== */
.project-video {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-video iframe {
    width: 100%;
    height: 180px;
    border-radius: 8px;
}

.project-video-large {
    margin: 15px 0 30px;
    border-radius: 8px;
    overflow: hidden;
}

.project-video-large iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .project-video-large iframe {
        height: 220px;
    }
}

.project-video-large video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Don't Touch Button */
.dont-touch-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 0 #a93226, 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.dont-touch-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    animation: shiny 3s infinite;
}

.dont-touch-btn:hover {
    background-color: #c0392b;
}

.dont-touch-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #a93226, 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes shiny {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}
