/* ==========================================================================
   WEBSITE CASES SHOWCASE - STYLESHEET
   TG Studio Web - Visual Showcase for Websites & Landing Pages
   ========================================================================== */

.website-cases-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--service-theme-rgb, 235, 9, 113), 0.08) 0%, rgba(10, 10, 15, 0.98) 70%);
    overflow: hidden;
}

/* Atmospheric Glow Backgrounds */
.website-cases-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.website-cases-glow-left {
    top: 10%;
    left: -15%;
    background: radial-gradient(circle, rgba(var(--service-theme-rgb, 235, 9, 113), 0.6) 0%, transparent 70%);
}

.website-cases-glow-right {
    bottom: 5%;
    right: -15%;
    background: radial-gradient(circle, rgba(var(--service-theme-rgb-strong, 255, 92, 170), 0.5) 0%, transparent 70%);
}

/* Filter Tabs Bar */
.website-cases-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.website-cases-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.website-cases-tab-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.website-cases-tab-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.website-cases-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.website-cases-tab-btn:hover svg {
    transform: scale(1.1);
}

.website-cases-tab-btn.active {
    background: linear-gradient(135deg, rgba(var(--service-theme-rgb, 235, 9, 113), 0.22) 0%, rgba(var(--service-theme-rgb-strong, 255, 92, 170), 0.12) 100%);
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.6);
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(var(--service-theme-rgb, 235, 9, 113), 0.35);
}

.website-cases-tab-btn.active .website-cases-tab-badge {
    background: rgba(var(--service-theme-rgb, 235, 9, 113), 0.4);
    color: #ffffff;
}

/* Case Panels & Main Layout */
.website-cases-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
}

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

.website-case-showcase-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .website-case-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================================================
   LEFT COLUMN: BROWSER MOCKUP & DEVICE PREVIEW STAGE
   ========================================================================== */

.website-browser-wrapper {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.website-browser-frame {
    position: relative;
    border-radius: 16px;
    background: #0d0e15;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 40px -10px rgba(var(--service-theme-rgb, 235, 9, 113), 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.website-browser-frame:hover {
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.4);
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.8),
        0 0 50px -5px rgba(var(--service-theme-rgb, 235, 9, 113), 0.25);
}

/* Browser Top Toolbar */
.website-browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(18, 20, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.website-browser-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.website-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.website-browser-dot--red { background: #ff5f56; border: 1px solid #e0443e; }
.website-browser-dot--yellow { background: #ffbd2e; border: 1px solid #dea123; }
.website-browser-dot--green { background: #27c93f; border: 1px solid #1aab29; }

/* Address Bar */
.website-browser-address {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.website-browser-address svg {
    width: 14px;
    height: 14px;
    stroke: #22c55e;
    flex-shrink: 0;
}

.website-browser-url {
    color: #e2e8f0;
    font-weight: 500;
}

.website-browser-url-ssl {
    color: #22c55e;
    font-weight: 600;
}

/* Device Switcher Toggle Buttons */
.website-device-switcher {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.website-device-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.website-device-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.website-device-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.website-device-btn.active {
    background: rgba(var(--service-theme-rgb, 235, 9, 113), 0.3);
    color: #ffffff;
    border: 1px solid rgba(var(--service-theme-rgb, 235, 9, 113), 0.5);
}

/* Browser Viewport Stage */
.website-browser-viewport {
    position: relative;
    width: 100%;
    background: #08090d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop View Mode: Strict 16:9 Aspect Ratio */
.website-browser-viewport[data-device-view="desktop"] {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 520px;
    padding: 0;
}

.website-browser-viewport[data-device-view="desktop"] .website-desktop-stage {
    width: 100%;
    height: 100%;
    display: block;
}

.website-browser-viewport[data-device-view="desktop"] .website-mobile-stage {
    display: none;
}

.website-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 6s ease-in-out;
}

.website-browser-frame:hover .website-preview-img {
    object-position: bottom center;
}

/* Mobile View Mode: Android Smartphone in 412 x 915 Proportion */
.website-browser-viewport[data-device-view="mobile"] {
    background: radial-gradient(circle, rgba(20, 24, 36, 0.95) 0%, rgba(8, 9, 13, 0.98) 100%);
    padding: 24px 0;
    min-height: 480px;
    aspect-ratio: 16 / 9;
    height: auto;
}

.website-browser-viewport[data-device-view="mobile"] .website-desktop-stage {
    display: none;
}

.website-browser-viewport[data-device-view="mobile"] .website-mobile-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Android Smartphone Mockup (Exact 412 x 915 Aspect Ratio) */
.website-phone-mockup {
    aspect-ratio: 412 / 915;
    height: 430px;
    width: auto;
    max-width: 100%;
    background: #000000;
    border-radius: 28px;
    border: 8px solid #1a1d28;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.9), 
        0 0 35px rgba(var(--service-theme-rgb, 235, 9, 113), 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Android Punch-hole Camera Dot (top center circle cutout) */
.website-phone-camera-dot {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    background: #000000;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Android Bottom Gesture Indicator Bar */
.website-phone-nav-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    z-index: 10;
}

.website-phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.website-phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 5s ease-in-out;
}

.website-phone-mockup:hover .website-phone-img {
    object-position: bottom center;
}

/* Live Badge Overlay */
.website-live-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(10, 12, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.website-live-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: website-pulse 2s infinite;
}

@keyframes website-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   RIGHT COLUMN: CASE DETAILS, METRICS & CTAS
   ========================================================================== */

.website-case-card-details {
    background: rgba(18, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    min-width: 0;
}

.website-case-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--service-theme-rgb-strong, 255, 92, 170), 1);
    background: rgba(var(--service-theme-rgb, 235, 9, 113), 0.12);
    border: 1px solid rgba(var(--service-theme-rgb, 235, 9, 113), 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.website-case-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.website-case-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
}

/* Performance Metrics Grid */
.website-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.website-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.website-metric-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.3);
    transform: translateY(-2px);
}

.website-metric-val {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--service-theme-rgb-strong, 255, 92, 170), 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 2px;
}

.website-metric-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* Key Features & Deliverables List */
.website-deliverables-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.website-deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.website-deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
}

.website-deliverable-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--service-theme-rgb, 235, 9, 113), 0.2);
    color: rgba(var(--service-theme-rgb-strong, 255, 92, 170), 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tech Badges */
.website-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
}

.website-tech-tag {
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* CTA Actions */
.website-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.website-actions .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* ==========================================================================
   CASE SELECTOR CAROUSEL / THUMBNAILS LIST
   ========================================================================== */

.website-cases-selector {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.website-case-card-thumb {
    background: rgba(18, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.website-case-card-thumb:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.4);
    transform: translateY(-4px);
}

.website-case-card-thumb.active {
    background: linear-gradient(135deg, rgba(var(--service-theme-rgb, 235, 9, 113), 0.15) 0%, rgba(18, 20, 30, 0.9) 100%);
    border-color: rgba(var(--service-theme-rgb, 235, 9, 113), 0.7);
    box-shadow: 0 10px 30px -5px rgba(var(--service-theme-rgb, 235, 9, 113), 0.25);
}

.website-thumb-preview {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    background: #0a0b10;
}

.website-thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.website-case-card-thumb:hover .website-thumb-preview img {
    transform: scale(1.05);
}

.website-thumb-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(var(--service-theme-rgb-strong, 255, 92, 170), 1);
    margin-bottom: 4px;
    display: block;
}

.website-thumb-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.website-thumb-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsiveness Adjustments */
@media (max-width: 768px) {
    .website-cases-section {
        padding: 60px 0;
    }

    .website-case-card-details {
        padding: 24px;
    }

    .website-case-title {
        font-size: 1.4rem;
    }

    .website-metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .website-browser-viewport {
        height: 380px;
    }

    .website-phone-mockup {
        width: 190px;
        height: 350px;
        border-width: 7px;
    }

    .website-actions {
        flex-direction: column;
        width: 100%;
    }

    .website-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
