.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 */
}


/* Project Section */
.project-section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button */
.project-back-button {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* VIDEO */
.video-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 0px;
    box-shadow: 0px 18px 48px 0px rgba(0, 0, 0, 0.55);
}

/* 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: rgba(255, 255, 255, 0.9);
    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;
}

/* META */
.project-meta {
    margin-top: 48px;
}

.meta-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    margin: 24px 0;
}

.meta-row {
    margin-bottom: 24px;
}

.meta-row .meta-value {
    font-size: 34px;
    font-weight: 600;

}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Meta Item */
.meta-item {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.meta-value {
    font-size: 18px;
    font-weight: 500;
}

/* ABOUT */
.project-about {
    margin-top: 64px;
    max-width: 700px;
}

.project-about h2 {
    font-size: 28px;
    margin-bottom: 16px;
    
}

.project-about .subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.85;
}

/* DETAILS */
.project-details {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    position: relative;
}

.project-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        rgba(0, 168, 255, 0.15),
        transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.project-col h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    color: #00A8FF;
    font-size: 20px;
}

.project-col:first-child h3:first-child {
    margin-top: 0;
}

.project-col p.subtitle,
.project-col li {
    opacity: 0.85;
    line-height: 1.7;
    font-size: 16px;
}

.project-col ul {
    list-style: none;
    padding-left: 0;
}

.project-col li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.project-col li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00A8FF;
}

/* IMAGES GRID SECTION */
.project-images-grid {
    margin-top: 80px;
}
.image-featured {
    margin-bottom: 2rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 12px 28px 0px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease;
    height: 100vh; /* Added height to container */
    background: #f5f5f5; /* Added background for contain */
}

.image-featured:hover {
    transform: translateY(-4px);
}

.image-featured img {
    width: 100%;
   height:  100%;
   object-fit: cover;
    
}
.images-grid {
    display: grid;
    grid-template-columns: repeat(2,2fr); /* Changed from 2fr to 1fr */
    gap: 24px;
    margin-top: 2rem;

}

.grid-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height:100%; /* Added height to container */
    background: #f5f5f5; /* Added background */
}

.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.4);
}

.grid-item img {
    width: 100%;  
    height: 100%;
    object-fit: cover; /* Fills container, maintains aspect ratio, crops if needed */
    
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* ================== TABLET (≤ 992px) ================== */
@media (max-width: 992px) {
    .project-section {
        padding: 64px 20px;
    }

    .video-wrapper {
        max-height: 420px;
    }

    .video-wrapper video {
        height: 420px;
    }

    .meta-grid {
       grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .meta-item:nth-child(2n) {
        border-right: none;
    }

 

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

  
}

/* ================== MOBILE (≤ 768px) ================== */
@media (max-width: 768px) {
    .project-section {
        padding: 56px 16px;
    }

    .video-wrapper {
        margin: 32px 0;
        border-radius: 20px;
    }

    .video-wrapper video {
        height: 350px;
        border-radius: 20px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .meta-row .meta-value {
        font-size: 24px;
    }

    .project-meta {
        margin-top: 40px;
    }

    .meta-value {
        font-size: 16px;
    }

    .project-about {
        margin-top: 48px;
    }

    .project-details {
        margin-top: 48px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-details::before {
        width: 100%;
        height: 100%;
    }

    .image-featured img {
        
        border-radius: 20px;
    }

    .images-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

   
    


    .back-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ================== 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-grid {
        grid-template-columns: 1fr;
    }

    .meta-item {
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .meta-item:last-child {
        border-bottom: none;
    }

    .meta-value {
        font-size: 15px;
    }

     

    .images-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

   
    

    .back-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Section Visibility */
#home, #portfolio, #about, #contact, #project {
    display: none;
}

#home.active, #portfolio.active, #about.active, #contact.active, #project.active {
    display: block;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}