* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cases-nav {
    background-color: #620000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.logo p {
    color: rgb(155, 155, 155);
    font-size: 12px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e63946;
}

.contact-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-btn i {
    color: #e63946;
}

.cases-hero {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cases-hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cases-hero p {
    font-size: 16px;
    color: #999;
}

.cases-filters {
    background-color: #f8f8f8;
    padding: 20px 0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-tab {
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: #620000;
    color: #fff;
}

.cases-list {
    padding: 60px 0;
    background-color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.cases-grid.single-view {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.case-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(98, 0, 0, 0.05);
}

.cases-grid.single-view .case-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 16px;
    box-shadow: none;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(98, 0, 0, 0.15);
}

.cases-grid.single-view .case-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cases-grid.single-view .case-image {
    height: 400px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cases-grid.single-view .case-image img {
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.cases-grid.single-view .case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #620000 0%, #8b0000 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(98, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.cases-grid.single-view .case-category {
    top: 25px;
    left: 25px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(98, 0, 0, 0.4);
}

.case-overlay {
    display: none;
}

.cases-grid.single-view .case-overlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.case-info {
    padding: 20px;
    border-top: 1px solid rgba(98, 0, 0, 0.05);
}

.cases-grid.single-view .case-info {
    text-align: center;
    padding: 20px;
    border-top: none;
}

.case-info h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cases-grid.single-view .case-info h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.case-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.cases-grid.single-view .case-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.case-desc {
    line-height: 1.7;
    margin-bottom: 15px !important;
}

.view-detail {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: linear-gradient(135deg, #620000 0%, #8b0000 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(98, 0, 0, 0.4);
}

.case-card:hover .view-detail {
    opacity: 1;
    visibility: visible;
}

.cases-grid.single-view .view-detail {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 14px 40px;
    border-radius: 35px;
    font-size: 15px;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 6px 20px rgba(98, 0, 0, 0.5);
    letter-spacing: 1px;
    z-index: 10;
}

.view-detail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(98, 0, 0, 0.6);
}





.case-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.case-detail-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: #620000;
    color: #fff;
}

.modal-body {
    color: #333;
}

.modal-body .case-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.modal-body .case-detail-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-body h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.modal-body .case-detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-body .case-detail-meta span {
    font-size: 14px;
    color: #666;
}

.modal-body .case-detail-content {
    font-size: 15px;
    line-height: 2;
    color: #555;
}

.modal-body .case-detail-content p {
    margin-bottom: 15px;
}

.modal-body .case-detail-features {
    margin-top: 20px;
    padding-left: 20px;
}

.modal-body .case-detail-features li {
    margin-bottom: 10px;
    color: #555;
}

.cases-footer {
    background-color: #620000;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 14px;
    color: #ccc;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: #e63946;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: #ccc;
}

.footer-bottom p a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
}

.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-overlay #zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-overlay.active #zoom-image {
    transform: scale(1);
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.zoom-hint {
    position: absolute;
    bottom: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.zoom-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
}

.zoom-prev,
.zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

.zoom-prev:hover,
.zoom-next:hover {
    background-color: rgba(98, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .case-detail-images {
        grid-template-columns: 1fr !important;
    }
}