/* ====================================
   CASE STUDIES PAGE SPECIFIC STYLES
   Extracted from inline <style> block
   ==================================== */

/* Transparent navbar overlay on hero */
.navbar-no-shadow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.navbar-no-shadow-container-2,
.navbar-wrapper-2,
div.navbar-no-shadow,
.w-nav {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Case Studies hero section */
.case-studies-hero {
    padding-top: 0 !important;
    background: linear-gradient(135deg, #6B46C1 0%, #8000FF 50%, #6B46C1 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-studies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.4;
}

.case-studies-hero-content {
    padding-top: 160px !important;
    padding-bottom: 80px !important;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.case-studies-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.case-studies-hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.95;
    color: white;
}

/* White text for navbar on purple background */
.nav-link-2 {
    color: white !important;
}

.nav-link-2:hover {
    color: #fff !important;
}

.nav-link-2.w--current {
    color: #fff !important;
}

.nav-link-2.w--current::after {
    width: 100% !important;
}

/* White logo on purple background */
.navbar-brand-2 .image-16 {
    filter: brightness(0) invert(1) !important;
}

/* Language toggle styling */
.nav-toggles-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-toggle-container {
    position: relative;
}

.language-toggle {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px;
}

.language-toggle option {
    color: #000 !important;
    background-color: #fff !important;
}

/* Filter bar */
.filter-bar {
    background: white;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: #2B1343;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    background: white;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #8000FF;
    color: #8000FF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6B46C1, #8000FF);
    color: white;
    border-color: #8000FF;
}

/* Projects grid */
.projects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

@media (max-width: 991px) {
    .projects-section {
        padding: 40px 20px 60px;
    }

    .filter-bar {
        padding: 20px;
        margin-bottom: 32px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(107, 70, 193, 0.25);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.industry-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.9), rgba(128, 0, 255, 0.9));
    backdrop-filter: blur(10px);
    color: white;
}

.featured-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.industry-badge.healthcare { color: white; }
.industry-badge.ecommerce { color: white; }
.industry-badge.finance { color: white; }
.industry-badge.education { color: white; }
.industry-badge.realestate { color: white; }
.industry-badge.hospitality { color: white; }
.industry-badge.manufacturing { color: white; }
.industry-badge.logistics { color: white; }
.industry-badge.government { color: white; }
.industry-badge.insurance { color: white; }
.industry-badge.retail { color: white; }
.industry-badge.telecommunications { color: white; }

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-name {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    line-height: 1.3;
    height: 58px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-description {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-metrics {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    min-height: 36px;
}

.metric {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1), rgba(128, 0, 255, 0.1));
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6B46C1;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 24px;
}

.tech-icon {
    width: 16px;
    height: 16px;
    color: #8000FF;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6B46C1, #8000FF);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.view-project-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(128, 0, 255, 0.3);
}

/* Modal styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
}

.modal-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.modal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(128, 0, 255, 0.05));
    border-radius: 12px;
}

.modal-metric-item {
    text-align: center;
}

.modal-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #8000FF;
    margin-bottom: 5px;
}

.modal-metric-label {
    font-size: 14px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.modal-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .case-studies-hero h1 {
        font-size: 42px;
    }

    .case-studies-hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Hide projects grid on mobile - show only Coming Soon */
    .projects-grid {
        display: none;
    }

    /* Hide filter bar on mobile since there's nothing to filter */
    .filter-bar {
        display: none;
    }

    /* Compact section height on mobile */
    .projects-section {
        min-height: auto;
        padding: 60px 20px;
    }

    /* Case Studies specific: Move Coming Soon box down by 5% */
    .coming-soon-content {
        transform: translateY(5%) !important;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-studies-hero h1 {
        font-size: 36px;
    }

    .case-studies-hero p {
        font-size: 16px;
    }

    .case-studies-hero-content {
        padding-top: 120px !important;
        padding-bottom: 50px !important;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-header {
        height: 200px;
    }

    .footer-bottom {
        background: transparent !important;
    }
}

/* Purple mobile menu */
@media screen and (max-width: 991px) {
    .nav-menu-wrapper-2,
    .nav-menu-2 {
        background: #2B1343 !important;
        background-color: #2B1343 !important;
    }

    .nav-link-2 {
        color: #fff !important;
    }
}
