/* ===============================================
   CASE STUDY - CLEANHOUSE
   Dopasowany do stylu NSPC Digital
   =============================================== */

/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* NSPC Digital Color Palette */
    --bg-dark: #12141d;
    --bg-card: #1c1f2b;
    --text-white: #ffffff;
    --text-gray: #b0b0c0;
    
    --accent-primary: #00f2ff;
    --accent-secondary: #00c3ff;
    --accent-glow: rgba(0, 242, 255, 0.4);
    
    --gradient-main: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-tech: 'Space Grotesk', monospace;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* ===============================================
   HEADER
   =============================================== */

.case-header {
    background: rgba(18, 20, 29, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(10px);
}

.case-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.case-nav {
    display: flex;
    gap: 35px;
}

.case-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.case-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.case-nav a:hover {
    color: var(--accent-primary);
}

.case-nav a:hover::after {
    width: 100%;
}

/* ===============================================
   HERO SECTION
   =============================================== */

.case-hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, rgba(0, 242, 255, 0.05) 0%, transparent 100%);
    position: relative;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
}

.breadcrumb {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.separator {
    color: var(--accent-primary);
}

.current {
    color: var(--accent-primary);
}

.hero-content {
    max-width: 900px;
    margin-bottom: 50px;
}

.hero-label {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 600;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-main);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.hero-image img {
    width: 100%;
    display: block;
}

/* ===============================================
   CASE SECTIONS
   =============================================== */

.case-section {
    padding: 100px 0;
    position: relative;
}

.case-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.2), transparent);
}

.section-dark {
    background: rgba(8, 8, 12, 0.6);
}

.section-accent {
    background: linear-gradient(135deg, rgba(0, 195, 255, 0.08) 0%, rgba(0, 242, 255, 0.08) 100%);
}

.section-label {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.section-text {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 900px;
    margin-bottom: 50px;
}

/* ===============================================
   CHALLENGE GRID
   =============================================== */

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.challenge-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-5px);
}

.challenge-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.challenge-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.challenge-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===============================================
   SOLUTION GRID
   =============================================== */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.solution-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.15);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.solution-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===============================================
   TECH GRID
   =============================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tech-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-primary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-label {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-value {
    font-size: 1rem;
    color: var(--text-white);
}

/* Feature Highlight */
.feature-highlight {
    background: rgba(0, 242, 255, 0.05);
    padding: 45px;
    border-radius: 16px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.feature-content p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    font-size: 0.95rem;
    color: var(--text-white);
    background: rgba(0, 242, 255, 0.08);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

/* ===============================================
   SCREENSHOTS
   =============================================== */

.screenshots-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.screenshot-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 255, 0.15);
}

.screenshot-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.screenshot-caption p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Mobile screenshot - mniejszy rozmiar */
.screenshot-mobile {
    max-width: 400px;
    margin: 0 auto;
}

.screenshot-mobile img {
    width: 100%;
}

/* ===============================================
   RESULTS GRID
   =============================================== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.result-card {
    background: rgba(0, 242, 255, 0.05);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.result-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.result-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===============================================
   CTA SECTION
   =============================================== */

.case-cta {
    background: linear-gradient(135deg, rgba(0, 195, 255, 0.1) 0%, rgba(0, 242, 255, 0.1) 100%);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.case-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.case-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid;
}

.btn-cta.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    border-color: transparent;
}

.btn-cta.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.btn-cta.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-cta.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* ===============================================
   FOOTER
   =============================================== */

.case-footer {
    background: rgba(8, 8, 12, 0.95);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
}

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

.footer-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-white);
}

/* ===============================================
   RESPONSYWNOŚĆ
   =============================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .solution-grid,
    .challenge-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .case-header {
        padding: 15px 0;
    }
    
    .case-nav {
        gap: 20px;
    }
    
    .case-nav a {
        font-size: 0.85rem;
    }
    
    .case-hero {
        padding: 60px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .feature-highlight {
        flex-direction: column;
        padding: 30px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 32px;
    }
}
