.projects-section {
    overflow: hidden;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.carousel-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.nav-chevron {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, transform 0.2s;
}

.nav-chevron:hover {
    background: #ffffff;
    color: var(--primary);
}

.nav-chevron:active {
    transform: scale(0.95);
}

.projects-slider-wrapper {
    overflow: visible;
}

.projects-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 30px;
    scrollbar-width: none;
    padding-right: 30px;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 320px;
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 25px 25px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .project-card {
        flex: 0 0 400px;
    }
}

.project-details-panel {
    display: none;
    background-color: var(--surface-container-low);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
    color: var(--on-surface);
}

.project-details-panel.active {
    display: block;
}

/* Modal */
.project-details-panel {
    display: none;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-details-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.details-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.details-panel-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #001b5e;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.close-panel-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.close-panel-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.details-panel-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .details-panel-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.details-large-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.details-text-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.details-description {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin-top: 0;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.details-meta-info {
    background-color: #f8fafc;
    border-left: 4px solid #001b5e;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    color: #475569;
    font-family: 'Inter', sans-serif;
}

.details-meta-info strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}
