/* Code Zero Group Theme for Case Studies */

:root {
    /* Code Zero Group Color Variables */
    --cz-primary-blue: #4629f2;
    --cz-secondary-blue: #2a1a9b;
    --cz-accent-green: #8fd44f;
    --cz-dark-bg: #1a1a1a;
    --cz-darker-bg: #0f0f0f;
    --cz-text-light: #ffffff;
    --cz-text-gray: #cccccc;
    --cz-purple-accent: #7c3aed;
    
    /* Code Zero Group Typography */
    --cz-font-primary: 'Khand', sans-serif;
    --cz-font-secondary: 'Lato', sans-serif;
    
    /* Accessibility Improvements - WCAG2 Compliance */
    --cz-focus-ring: 3px solid #8fd44f;
    --cz-link-hover: #a9e676;
}

/* Code Zero Group Theme Scoping */
.cz-theme {
    background-color: var(--cz-dark-bg);
    color: var(--cz-text-light);
    font-family: var(--cz-font-secondary);
}

/* Code Zero Group Hero Section */
.cz-theme .hero-section,
.cz-theme .cz-hero {
    background: linear-gradient(135deg, var(--cz-primary-blue) 0%, var(--cz-secondary-blue) 50%, var(--cz-darker-bg) 100%);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.cz-theme .hero-section::before,
.cz-theme .cz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(139, 212, 79, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cz-theme .hero-section .container,
.cz-theme .cz-hero .container {
    position: relative;
    z-index: 2;
}

/* Code Zero Group Hero Typography */
.cz-theme .hero-section h1,
.cz-theme .cz-hero h1 {
    font-family: var(--cz-font-primary);
    font-size: 4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, var(--cz-text-light), var(--cz-accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cz-theme .hero-section .lead,
.cz-theme .cz-hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cz-text-gray);
    max-width: 600px;
}

/* Code Zero Group Content Blocks */
.cz-theme .cz-content {
    background-color: var(--cz-darker-bg);
    padding: 5rem 0;
    position: relative;
}

.cz-theme .cz-content-alt {
    background-color: var(--cz-dark-bg);
}

.cz-theme .cz-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cz-primary-blue);
}

.cz-theme .cz-content-alt::before {
    background: var(--cz-accent-green);
}

/* Code Zero Group Section Titles */
.cz-theme .cz-section-title {
    font-family: var(--cz-font-primary);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--cz-text-light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.cz-theme .cz-section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: var(--cz-primary-blue);
    margin-top: 0.5rem;
}
    letter-spacing: 1px;
}

/* Code Zero Group Text Styling */
.cz-theme .content-block p,
.cz-theme .cz-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cz-text-gray);
    margin-bottom: 1.5rem;
}

/* Code Zero Group Buttons */
.cz-theme .btn-primary {
    background: linear-gradient(135deg, var(--cz-primary-blue), var(--cz-purple-accent));
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cz-theme .btn-primary:hover {
    background: linear-gradient(135deg, var(--cz-purple-accent), var(--cz-primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 41, 242, 0.4);
}

/* Code Zero Group Accent Elements */
.cz-theme .accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--cz-primary-blue), var(--cz-accent-green));
    margin: 2rem 0;
    border-radius: 2px;
}

/* Code Zero Group Split Screen Layout */
.cz-theme .full-width-split-screen {
    display: flex;
    min-height: 500px;
    align-items: center;
}

.cz-theme .full-width-split-screen img {
    width: 50%;
    height: 500px;
    object-fit: cover;
}

.cz-theme .full-width-split-screen > div {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Code Zero Group Responsive Design */
@media (max-width: 992px) {
    .cz-theme .hero-section h1,
    .cz-theme .cz-hero h1 {
        font-size: 3rem;
    }
    
    .cz-theme .full-width-split-screen {
        flex-direction: column;
    }
    
    .cz-theme .full-width-split-screen img,
    .cz-theme .full-width-split-screen > div {
        width: 100%;
    }
    
    .cz-theme .full-width-split-screen img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .cz-theme .hero-section h1,
    .cz-theme .cz-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .cz-theme .content-block h2,
    .cz-theme .cz-content h2 {
        font-size: 2rem;
    }
    
    .cz-theme .content-block,
    .cz-theme .cz-content {
        padding: 2rem 0;
    }
}

/* Code Zero Group Back Button Styling */
.cz-theme .btn-back {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background-color: white !important;
    border: none !important;
    color: #333 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin-right: 15px;
    font-size: inherit;
}

.cz-theme .btn-back:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.cz-theme .btn-back i {
    font-size: 1.25rem;
}

/* Code Zero Group Case Study Badge */
.cz-theme .case-study-badge {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5em 1.5em;
    background: transparent linear-gradient(90deg, rgba(170, 255, 0, 0.5) 0%, rgba(170, 255, 0, 0.13) 100%) 0% 0% no-repeat padding-box;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 3px #55ee00 solid;
    color: white;
}

.cz-theme .hero {
    margin-top: auto;
    padding: 2rem 0;
}

.cz-theme .hero-title {
    align-items: center;
    gap: 0.25em;
    font-size: clamp(1.75rem, 1rem + 5vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
    display: flex;
}

.cz-theme .hero-title .btn-back {
    height: auto;
    width: auto;
    min-width: 60px;
    min-height: 60px;
}

/* Code Zero Group Call-to-Action (CTA) Section */
.cz-theme .cz-cta {
    background: linear-gradient(135deg, var(--cz-primary-blue) 0%, var(--cz-secondary-blue) 100%);
    padding: 5rem 0;
    color: var(--cz-text-light);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.cz-theme .cz-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 10% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 8%);
    background-size: 200px 200px;
    opacity: 0.8;
    z-index: 1;
}

.cz-theme .cz-cta .container {
    position: relative;
    z-index: 2;
}

/* Code Zero Group Contact Section Override */
.cz-theme .contact-module {
    background: linear-gradient(135deg, var(--cz-darker-bg) 0%, var(--cz-primary-blue) 100%);
}

.cz-theme .contact-module h2 {
    color: var(--cz-text-light);
    font-family: var(--cz-font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Code Zero Group Project Impact Section */
.cz-theme .cz-impact {
    background: linear-gradient(135deg, var(--cz-darker-bg) 0%, var(--cz-dark-bg) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cz-theme .cz-impact::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(143, 212, 79, 0.1) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.cz-theme .cz-impact::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(70, 41, 242, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
}

.cz-theme .cz-impact-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.cz-theme .cz-impact h2 {
    color: var(--cz-text-light);
    text-align: left;
    margin-bottom: 1.5rem;
}

.cz-theme .cz-impact strong {
    color: var(--cz-accent-green);
}

.cz-theme .cz-impact .cz-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--cz-text-light);
}

/* Legacy project impact styling for backward compatibility */
.cz-theme .project-impact {
    background: var(--cz-darker-bg);
    padding: 4rem 0;
    border-top: 2px solid var(--cz-accent-green);
    border-bottom: 2px solid var(--cz-accent-green);
}

.cz-theme .project-impact h2 {
    color: var(--cz-text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.cz-theme .project-impact strong {
    color: var(--cz-accent-green);
}

/* Ensure main app is protected from Code Zero theme */
.main:not(.cz-theme) {
    /* Preserve Poseidon styling for main app */
}

/* Override default Poseidon colors for Code Zero theme */
.cz-theme .bg-dark {
    background-color: var(--cz-darker-bg) !important;
}

.cz-theme .bg-primary {
    background-color: var(--cz-primary-blue) !important;
}

.cz-theme .text-light {
    color: var(--cz-text-light) !important;
}

/* WCAG2 Accessibility Improvements */
.cz-theme a:focus {
    outline: var(--cz-focus-ring, 3px solid #8fd44f);
    outline-offset: 2px;
}

.cz-theme .img-fluid {
    max-width: 100%;
    height: auto;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .cz-theme .cz-content::before {
        border-left: 4px solid currentColor;
    }
}

/* Responsive adjustments for improved readability */
@media (max-width: 768px) {
    .cz-theme .cz-section-title {
        font-size: 2rem;
    }
    
    .cz-theme .cz-lead {
        font-size: 1.1rem;
    }
    
    .cz-theme .cz-content {
        padding: 3rem 0;
    }
    
    .cz-theme .order-md-1 {
        order: 2;
    }
    
    .cz-theme .order-md-2 {
        order: 1;
    }
}