/* Project page-specific styles */
.project-hero-bg {
    display: none;
    /* Hide the old static background */
}

.project-slideshow-hero {
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slideshow-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
}

@keyframes slideZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.slideshow-container .slide.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-container .slide.active img,
.slideshow-container .slide.previous img {
    animation: slideZoom 12s linear forwards;
}

.slideshow-container .slide.previous {
    z-index: 1;
    opacity: 0;
}

.slideshow-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.dot.active {
    width: 24px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}




.project-hero-subtitle {
    max-width: 600px;
    margin: 15px auto 0;
    opacity: 0.9;
    font-size: 1.2rem;
    font-weight: 300;
}

.project-milestones-section {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.project-milestones-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.project-milestones-header h2 {
    font-size: 2.2rem;
}

.project-milestones-header p {
    color: #64748b;
}

.project-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.project-blob-primary {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(62, 196, 225, 0.08);
}

.project-blob-secondary {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(10, 14, 39, 0.05);
    filter: blur(80px);
}

.project-milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover h3 {
    color: #3ec4e1;
}

.project-card .image-slider-wrapper {
    overflow: hidden;
    height: 200px;
}

.project-card .image-slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .image-slider-wrapper img {
    transform: scale(1.1);
}

.project-card .project-info {
    padding: 25px;
    background: #ffffff;
}

.project-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.tag-beds {
    display: inline-block;
    background: rgba(62, 196, 225, 0.1);
    color: #3ec4e1;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-legacy-section {
    background: #ffffff;
}

.project-legacy-header {
    margin-bottom: 40px;
}

.project-legacy-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a0e27;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.legacy-subtitle {
    color: #64748b;
}

.project-legacy-container {
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Tidy Legacy Items */
.legacy-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 10, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
}

.legacy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(62, 196, 225, 0.1);
    border-color: var(--primary-color, #3ec4e1);
}

.legacy-item h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--primary-color, #3ec4e1);
    font-weight: 700;
}

.legacy-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 900px) {
    .project-grid {
        display: flex;
        flex-direction: column;
    }
}