/**
 * Featured Projects Section Styles
 * 
 * Horizontal slider using CSS scroll-snap
 */

/* ===== Featured Projects Section ===== */
.featured-projects-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    background: #F5F5F6;
}

.featured-projects-header {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
    position: relative;
    text-align: center;
}

.featured-projects-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #69686E;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
}

.featured-projects-headline {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: #060612;
    letter-spacing: -1.5px;
}

/* Handwritten Annotation */
.projects-annotation {
    position: absolute;
    top: 0;
    right: 20%;
    transform: rotate(5deg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-annotation-text {
    font-family: 'Indie Flower', cursive, sans-serif;
    font-size: 18px;
    color: #060612;
    white-space: nowrap;
}

.projects-annotation svg {
    width: 40px;
    height: auto;
    margin-top: -5px;
}

/* ===== Horizontal Slider ===== */
.projects-slider-container {
    padding: 0 40px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-slider-container::-webkit-scrollbar {
    display: none;
}

/* Spacer to allow first/last card to be centered or spaced */
.slider-spacer {
    display: inline-block;
    width: 20px;
}

/* Project Card */
.project-card {
    display: inline-block;
    width: 85vw;
    max-width: 1100px;
    height: 600px;
    margin-right: 32px;
    vertical-align: top;
    white-space: normal;
    scroll-snap-align: center;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.project-card-inner {
    display: flex;
    height: 100%;
}

/* Card Content (Left) */
.project-content {
    flex: 0 0 40%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: white;
    /* Ensure text visible */
}

.project-meta {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.project-meta-item {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #69686E;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
}

.project-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.1;
    color: #060612;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.project-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #69686E;
    margin-bottom: 40px;
    max-width: 360px;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #060612;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-project:hover {
    background: #FF6321;
    color: white;
}

/* Card Image (Right) */
.project-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-card {
        width: 90vw;
        height: 500px;
    }

    .project-content {
        padding: 40px;
    }

    .project-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .featured-projects-header {
        padding: 0 20px;
    }

    .featured-projects-headline {
        font-size: 36px;
    }

    .projects-annotation {
        display: none;
    }

    .project-card {
        height: auto;
        width: 85vw;
        margin-right: 16px;
    }

    .project-card-inner {
        flex-direction: column-reverse;
    }

    .project-content {
        padding: 32px 24px;
        flex: auto;
    }

    .project-image {
        height: 240px;
        flex: none;
    }

    .project-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }
}