#projects_section {
  background-color: #0a0a0a;
    padding: 80px 20px;
}

#projects_section .section-title {
    color: #fff;
}

#projects_section .projects_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#projects_section .project_card {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#projects_section .project_card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

#projects_section .project_card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

#projects_section .project_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#projects_section .project_card:hover .project_overlay {
    opacity: 1;
}

@media screen and (max-width: 930px)
{
    #projects_section .project_overlay {
        opacity: 1;
    }
}

#projects_section .project_overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    mix-blend-mode: difference;
}

#projects_section .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

#projects_section .modal.active {
    display: flex;
}

#projects_section .modal_content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    height: min(88vh, 680px);
    overflow: hidden;
    position: relative;
    background: #111;
    display: flex;
    flex-direction: column;
}

#projects_section .modal_close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-size: 18px;
    padding-bottom: 1px;
    cursor: pointer;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s;
}

#projects_section .modal_close:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

#projects_section .slider {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #000;
    overflow: hidden;
}

#projects_section .slider_track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#projects_section .slide_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

#projects_section .slide_bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.4);
    transform: scale(1.15);
    opacity: 0.7;
}

#projects_section .slide_wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

#projects_section .slider_dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    z-index: 5;
}

#projects_section .slider_dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}

#projects_section .slider_dots span.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

.modal_body {
    position: relative;
    flex-shrink: 0;
    background: #111;
    padding: 20px 32px 26px;
    border-radius: 0 0 24px 24px;
}

.modal_body::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #111);
    pointer-events: none;
}

.modal_body_top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

#modal_title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.modal_stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.stack_tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.stack_tag:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.3);
}

#modal_description {
    color: #999;
    line-height: 1.55;
    margin: 0;
    font-size: 1rem;
}

#projects_section .modal a.btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: none;
    color: #111;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

#projects_section .modal a.btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}