/* HERO SECTION */
.case-study-hero {
    background: #1d1d1d;
    padding: 100px 0 80px;
    text-align: center;
    margin-top: 20px;
}

.hero-badge {
    margin-bottom: 30px;
}

.hero-badge a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mockup {
    margin-bottom: 60px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.meta-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.meta-item p {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* CHALLENGE SECTION */
.case-study-challenge {
    background: #1a1a1a;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

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

.challenge-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.challenge-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.challenge-item p {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* SOLUTION SECTION */
.case-study-solution {
    background: #1d1d1d;
    padding: 100px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.solution-content {
    padding: 20px 0;
}

.solution-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.solution-intro {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.solution-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

.solution-list h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    margin-top: 0;
}

.solution-list p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

.solution-mockup {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

/* RESULTS SECTION */
.case-study-results {
    background: #1a1a1a;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    margin-bottom: 60px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.results-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

.results-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Results Carousel */
.results-carousel-wrapper {
    position: relative;
}

.results-carousel {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-counter {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    margin: 0 20px;
}

/* Thumbnails */
.thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.thumbnails-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.thumbnails-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.carousel-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0;
    flex: 1;
    width: calc(5 * 80px + 4 * 12px - 10px);
    scrollbar-width: none;
}

.carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail.active {
    border-color: rgba(255, 255, 255, 0.5);
}

.results-content {
    padding: 20px;
}

.results-content > p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.results-list li {
    font-size: 15px;
    color: #ffffff;
    padding: 12px 25px;
    position: relative;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    width: 100%;
}

.results-list li:last-child {
    border-bottom: none;
}

.results-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #888;
    font-weight: 700;
}

/* Case Studies Section (Grid) */
.case-studies-section {
    background: #1d1d1d;
    padding: 100px 0 40px 0;
    position: relative;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
}

.case-studies-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.case-studies-description {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Case Study Item */
.case-study-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 120px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-item:last-child {
    border-bottom: none;
}

.case-study-item:nth-child(even) {
    grid-template-columns: 1fr;
}

.case-study-item:nth-child(even) > * {
    direction: ltr;
}

.case-study-content {
    padding: 20px 0;
    order: 1;
}

.case-study-mockup {
    order: 2;
}

.case-study-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.case-study-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.case-study-client {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ddd;
    margin-bottom: 10px;
}

.case-study-description {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
}

.case-study-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

.case-study-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    font-size: 13px;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.case-study-link {
    display: inline-block;
    margin-top: 25px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    color: #ffffff;
}

/* Mockup Placeholder */
.case-study-mockup {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    padding: 40px 0;
}

.case-study-mockup img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.1) 0%, rgba(80, 80, 80, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    text-align: center;
    padding: 30px;
}

.mockup-placeholder.large {
    height: 500px;
}

.mockup-placeholder p {
    color: #888;
    margin: 0;
}

.mockup-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .results-item {
        grid-template-columns: 1fr;
    }

    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .case-study-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .case-study-title {
        font-size: 28px;
    }

    .solution-mockup,
    .results-mockup {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        padding: 60px 0 40px;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-study-challenge,
    .case-study-results {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .solution-title {
        font-size: 32px;
    }

    .case-studies-section {
        padding: 60px 0 30px 0;
    }

    .case-studies-title {
        font-size: 32px;
    }

    .case-studies-description {
        font-size: 15px;
    }

    .case-studies-header {
        margin-bottom: 50px;
        padding: 40px 30px;
    }

    .case-study-item {
        padding: 40px 0;
        gap: 30px;
        margin-bottom: 60px;
    }

    .case-study-title {
        font-size: 24px;
    }

    .mockup-placeholder {
        font-size: 14px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .case-studies-section {
        padding: 40px 0 20px 0;
    }

    .case-studies-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }

    .case-studies-title {
        font-size: 26px;
    }

    .case-study-title {
        font-size: 20px;
    }

    .case-study-tags {
        gap: 8px;
    }

    .tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .solution-mockup,
    .results-mockup {
        height: 250px;
    }

    .solution-list li {
        gap: 15px;
    }
}

/* LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-counter {
        bottom: 20px;
        transform: translateX(-50%);
    }
}
