.project-section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 24px;
}

/* VIDEO */
.video-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 0px;
    box-shadow: 0px 18px 48px 0px #0000008C;
}

/* Thumbnail */
.video-thumb {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Button */
.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 32px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* Video */
.video-wrapper video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .video-wrapper video {
       
    }

    .play-btn {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

/* META */
.project-meta {
    margin-top: 48px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.meta-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    opacity: 0.6;
    text-transform: uppercase;
}



.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* border-top: 1px solid rgba(255,255,255,0.15); */
    /* border-left: 1px solid rgba(255,255,255,0.15); */
}

/* Meta Item */
.meta-item {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    /* border-bottom: 1px solid rgba(255,255,255,0.15); */
}

.meta-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.meta-value {
    font-size: 18px;
    font-weight: 500;
}


@media (max-width: 992px) {
    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-item {
        padding: 16px;
    }

    .meta-value {
        font-size: 16px;
    }
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* ABOUT */
.project-about {
    margin-top: 64px;
    max-width: 700px;
}

.project-about h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

/* DETAILS */
.project-details {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    background:
        radial-gradient(600px 600px at center center,
            rgba(0, 168, 255, 0.4),
            transparent 35%);

}

.project-col h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    color: #00A8FF;
}

.project-col p,
.project-col li {
    opacity: 0.85;
    line-height: 1.7;
}

/* IMAGES */
.project-images {
    margin-top: 80px;


}

.imagemain {
    width: 100%;
    height: 70vh;
    opacity: 1;
    border-radius: 24px;
    box-shadow: 0px 12px 28px 0px #00000073;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagemain img {
    width: 120%;
    height: fit-content;
    object-fit: cover;
    opacity: 1;
    border-radius: 24px;
    box-shadow: 0px 12px 28px 0px #00000073;
    transition: all ease 1s;
}

.imagemain img:hover {
    transform: scale(.9);
}

.imagecontainer {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;


}

.imgback {
    width: 100%;
    height: 50vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgback img {
    object-fit: fill;
    width: 120%;
    height: fit-content;
    border-radius: 20px;
    box-shadow: 0px 18px 32px 0px #00000070;
    transition: transform 0.5s ease;
}

.imagecontainer img:hover {
    transform: scale(.9);

}

/* 📱 MOBILE */
@media (max-width: 768px) {

    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-about h2 {
        font-size: 24px;
    }

    .imagecontainer {
        grid-template-columns: 1fr;
    }

    .meta-row {
        flex-direction: column;
        gap: 8px;
    }
}


/* ================== TABLET (≤ 992px) ================== */
@media (max-width: 992px) {
    .project-section {
        padding: 64px 20px;
    }

    .video-wrapper {
        max-height: 420px;
    }

    .video-wrapper video {
        height: 420px;
    }

    .imagemain {
        height: 55vh;
    }

    .imgback {
        height: 40vh;
    }
}

/* ================== MOBILE (≤ 768px) ================== */
@media (max-width: 768px) {
    .project-section {
        padding: 56px 16px;
    }

    .video-wrapper {
        margin: 32px 0;
        border-radius: 20px;
    }

    .video-wrapper video {
       
        border-radius: 20px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .project-meta {
        margin-top: 40px;
    }

    .meta-value {
        font-size: 16px;
    }

    .project-about {
        margin-top: 48px;
    }

    .project-details {
        margin-top: 48px;
        gap: 40px;
    }

    .imagemain {
        height: 45vh;
        border-radius: 20px;
    }

    .imagemain img {
        width: 130%;
    }

    .imgback {
        height: 35vh;
        border-radius: 18px;
    }
}

/* ================== SMALL MOBILE (≤ 576px) ================== */
@media (max-width: 576px) {
    .project-section {
        padding: 48px 14px;
    }

    .play-btn {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .project-about h2 {
        font-size: 22px;
    }

    .meta-item {
        padding: 14px;
    }

    .meta-value {
        font-size: 15px;
    }

    .imagemain {
        height: 38vh;
    }

    .imgback {
        height: 30vh;
    }
}

/* Navigation styles */
.view-project-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.3);
}

/* Project section transition */
.project-section {
    display: none;
}

.project-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make sure other sections can be hidden */
#home, #portfolio, #about, #contact {
    display: none;
}

#home.active, #portfolio.active, #about.active, #contact.active, #project.active {
    display: block;
}

/* Update navigation to include project link */
.nav a[onclick*="project"] {
    display: none; /* Hide from main nav, we'll handle it programmatically */
}