/* ============================================
   HALLWARD CASE STUDY PAGE STYLES
   ============================================ */

:root {
    --hallward-dark: #0a0a0f;
    --hallward-dark-secondary: #0f0f1a;
    --hallward-blue: #60A5FA;
    --hallward-blue-accent: #3B82F6;
    --hallward-text: #FFFFFF;
    --hallward-text-secondary: #b4b4c0;
    --hallward-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--hallward-dark);
    color: var(--hallward-text);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(124, 58, 237, 0.1) 50%, transparent 100%);
    animation: circuitPulse 8s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

.hallward-hero {
    padding: 60px 24px 80px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hallward-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.back-to-portfolio-link {
    display: inline-block;
    color: var(--hallward-blue);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-to-portfolio-link:hover {
    color: var(--hallward-blue-accent);
    text-decoration: underline;
}

.hallward-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hallward-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--hallward-text);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hallward-hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hallward-text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.hallward-hero-description {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hallward-feature-pills {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hallward-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hallward-border);
    border-radius: 24px;
    color: var(--hallward-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.hallward-pill i {
    color: var(--hallward-blue);
}

.hallward-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hallward-tech-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hallward-border);
    border-radius: 20px;
    color: var(--hallward-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.hallward-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hallward-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.hallward-cta-btn.primary {
    background: var(--hallward-blue-accent);
    color: var(--hallward-text);
}

.hallward-cta-btn.primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hallward-cta-btn.outline {
    background: transparent;
    border: 1px solid var(--hallward-text);
    color: var(--hallward-text);
}

.hallward-cta-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hallward-blue);
}

.hallward-hero-right {
    position: relative;
}

.hallward-screenshot-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: var(--hallward-dark-secondary);
    display: flex;
    flex-direction: column;
    position: relative;
}

.browser-frame {
    background: #2D3748;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #EF4444;
}

.browser-dot.yellow {
    background: #F59E0B;
}

.browser-dot.green {
    background: #10B981;
}

.browser-url {
    flex: 1;
    text-align: center;
    color: var(--hallward-text-secondary);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.hallward-screenshot {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

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

.hallward-section {
    padding: 80px 24px;
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.hallward-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hallward-text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hallward-section-text {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hallward-section-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   CHALLENGE LIST
   ============================================ */

.hallward-challenge-list {
    list-style: none;
    margin-bottom: 24px;
}

.hallward-challenge-list li {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.hallward-challenge-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--hallward-blue);
    font-size: 1.5rem;
    line-height: 1;
}

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

.hallward-solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.hallward-solution-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hallward-border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.hallward-solution-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--hallward-blue);
    transform: translateY(-2px);
}

.hallward-solution-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hallward-text);
    margin-bottom: 12px;
}

.hallward-solution-text {
    font-size: 1rem;
    color: var(--hallward-text-secondary);
    line-height: 1.7;
}

/* ============================================
   TECHNICAL IMPLEMENTATION
   ============================================ */

.hallward-tech-subsection {
    margin-bottom: 48px;
}

.hallward-subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hallward-text);
    margin-bottom: 16px;
    margin-top: 32px;
}

.hallward-subsection-title:first-child {
    margin-top: 0;
}

.hallward-tech-list {
    list-style: none;
    margin-top: 20px;
}

.hallward-tech-list li {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
}

.hallward-tech-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--hallward-blue);
    font-size: 1.5rem;
    line-height: 1;
}

.hallward-challenge-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hallward-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.hallward-challenge-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--hallward-blue);
}

.hallward-challenge-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hallward-text);
    margin-bottom: 12px;
}

/* ============================================
   RESULTS & IMPACT
   ============================================ */

.hallward-results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.hallward-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hallward-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.hallward-result-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--hallward-blue);
    transform: translateY(-2px);
}

.hallward-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hallward-text);
    margin-bottom: 12px;
}

.hallward-result-label {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    font-weight: 500;
}

.hallward-impact-text {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    line-height: 1.8;
    max-width: 900px;
}

/* ============================================
   TECHNOLOGIES USED
   ============================================ */

.hallward-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hallward-tech-pill {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--hallward-blue);
    border-radius: 24px;
    color: var(--hallward-text);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hallward-tech-pill:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--hallward-blue-accent);
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.hallward-cta-section {
    padding: 80px 24px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hallward-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hallward-text);
    margin-bottom: 16px;
}

.hallward-cta-description {
    font-size: 1.125rem;
    color: var(--hallward-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.hallward-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.hallward-cta-btn.primary {
    background: var(--hallward-blue-accent);
    color: var(--hallward-text);
}

.hallward-cta-btn.primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hallward-cta-btn.outline {
    background: transparent;
    border: 1px solid var(--hallward-text);
    color: var(--hallward-text);
}

.hallward-cta-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hallward-blue);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hallward-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hallward-hero-right {
        order: -1;
    }
    
    .hallward-solution-grid {
        grid-template-columns: 1fr;
    }
    
    .hallward-results-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hallward-hero {
        padding: 40px 16px 60px;
        min-height: auto;
    }
    
    .hallward-hero-title {
        font-size: 3rem;
    }
    
    .hallward-hero-tagline {
        font-size: 1.25rem;
    }
    
    .hallward-section {
        padding: 60px 16px;
    }
    
    .hallward-section-title {
        font-size: 2rem;
    }
    
    .hallward-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hallward-cta-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hallward-hero-title {
        font-size: 2.5rem;
    }
    
    .hallward-hero-description {
        font-size: 1rem;
    }
    
    .hallward-pill {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .hallward-section-title {
        font-size: 1.75rem;
    }
    
    .hallward-cta-title {
        font-size: 2rem;
    }
}

