/* =========================================
   OUR PROJECTS SECTION - SCOPED STYLES
   ========================================= */

/* Main Section Wrapper */
.our_project_section_wrapper {
    position: relative;
    width: 100%;
    padding: 100px 0 140px;
    background: radial-gradient(circle at top, #1e3a8a 0%, #020617 62%);
    overflow: hidden;
    perspective: 1200px;
}

/* Background Glowing Orbs */
.our_project_bg_orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: our_project_float 10s ease-in-out infinite alternate;
}

.our_project_bg_orb_1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, transparent 70%);
    top: -100px;
    left: -100px;
}

.our_project_bg_orb_2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #9333ea, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

@keyframes our_project_float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Header Styles */
.our_project_header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.our_project_label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #818cf8;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.our_project_title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.our_project_subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 3D Scene Configuration */
.our_project_carousel_scene {
    position: relative;
    width: 100%;
    height: 600px; 
    margin: 40px auto 0; /* Added 40px top margin to push cards away from the title */
    perspective: 2000px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.our_project_carousel_ring {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Individual Card Styles */
.our_project_card {
    position: absolute;
    width: 650px;
    height: 450px;
    text-decoration: none;
    display: block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}


/* Glassmorphism Card Design */
.our_project_card_glass {
    width: 100%;
    height: 90%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* Neon Glow on Hover */
.our_project_card:hover .our_project_card_glass {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.4), inset 0 0 20px rgba(79, 70, 229, 0.1);
    transform: translateY(-10px);
}

.our_project_image_wrapper {
    width: 100%;
    height: 350px; /* INCREASED: Makes the photo size significantly larger */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.our_project_img {
    width: 100%;
    height: 100%;
    /* CHANGED: 'contain' ensures the whole photo fits inside the box without cropping */
    object-fit: contain; 
    transition: transform 0.6s ease;
}

.our_project_card:hover .our_project_img {
    transform: scale(1.1);
}

.our_project_card_content {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 8px;
}

.our_project_tag {
    font-size: 0.7rem;
    color: #38bdf8;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.our_project_card_title {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.our_project_card_arrow {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.our_project_card:hover .our_project_card_arrow {
    background: #4f46e5;
    transform: rotate(-45deg);
}

/* Card Positioning on the 3D Ring */
.our_project_card[data-index="0"] {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(550px); /* Reduced from 650px */
}

.our_project_card[data-index="1"] {
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(550px);
}

.our_project_card[data-index="2"] {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(550px);
}

.our_project_card[data-index="3"] {
  transform: translate(-50%, -50%) rotateY(270deg) translateZ(550px);
}


/* Navigation Buttons */
.our_project_controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 20;
}
.our_project_nav_btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.our_project_nav_btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
}

/* ============================================================
   MOBILE & TABLET OPTIMIZED (One-Screen View)
   ============================================================ */

/* 1. MOBILE (Small to Medium: 375px - 767px) */
@media (min-width: 375px) and (max-width: 767.98px) {
    .our_project_section_wrapper {
        padding: 40px 0 20px; /* Reduced padding to save vertical space */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .our_project_header {
        margin-bottom: 20px; /* Moves title closer to card */
    }

    .our_project_title {
        font-size: 1.8rem; /* Smaller font to fit screen */
    }

    .our_project_carousel_scene {
        height: 320px; /* Shrunk from 450px to fit without scrolling */
        margin-top: 10px;
    }

    .our_project_card {
        width: 260px; /* Slightly narrower for mobile edges */
        height: 300px; /* Shorter to keep controls visible */
    }

    .our_project_image_wrapper {
        height: 180px; /* Scales the image down */
    }

    /* REDUCED translateZ: This keeps the 3D cards from flying off-screen */
    .our_project_card[data-index="0"] { transform: translate(-50%, -50%) rotateY(0deg) translateZ(230px); }
    .our_project_card[data-index="1"] { transform: translate(-50%, -50%) rotateY(90deg) translateZ(230px); }
    .our_project_card[data-index="2"] { transform: translate(-50%, -50%) rotateY(180deg) translateZ(230px); }
    .our_project_card[data-index="3"] { transform: translate(-50%, -50%) rotateY(270deg) translateZ(230px); }

    .our_project_controls {
        margin-top: 25px; /* Pulls buttons up so they are visible */
    }
}

/* 2. TABLET (Standard to Large: 768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .our_project_section_wrapper {
        padding: 80px 0;
    }

    .our_project_carousel_scene {
        height: 480px;
    }

    .our_project_card {
        width: 450px;
        height: 400px;
    }

    /* Tablet 3D Depth */
    .our_project_card[data-index="0"] { transform: translate(-50%, -50%) rotateY(0deg) translateZ(420px); }
    .our_project_card[data-index="1"] { transform: translate(-50%, -50%) rotateY(90deg) translateZ(420px); }
    .our_project_card[data-index="2"] { transform: translate(-50%, -50%) rotateY(180deg) translateZ(420px); }
    .our_project_card[data-index="3"] { transform: translate(-50%, -50%) rotateY(270deg) translateZ(420px); }
}