/* Case Studies Page Styles */

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    opacity: 0.4;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.page-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Case Studies Grid */
.case-studies-grid {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.case-studies-grid .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-studies-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Case Study Cards */
.case-study-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.case-study-card:hover::before {
    transform: scaleX(1);
}

.case-study-image {
    height: 220px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.case-study-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.case-study-card:hover .case-study-image::before {
    transform: translateX(100%);
}

.case-study-image.telecom {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

.case-study-image.building {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.case-study-image.managed {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.case-study-image i {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image i {
    transform: scale(1.1);
}

.case-study-image span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.case-study-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-content h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.case-study-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex: 1;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.case-study-stats > div {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.case-study-stats > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-study-stats .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.case-study-stats .label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    align-self: center;
}

.case-study-link:hover {
    color: #4f46e5;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    transform: translateX(5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.case-study-link i {
    transition: transform 0.3s ease;
}

.case-study-link:hover i {
    transform: translateX(3px);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .case-studies-grid .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-card {
        border-radius: 16px;
    }
    
    .case-study-image {
        height: 180px;
    }
    
    .case-study-image i {
        font-size: 3rem;
    }
    
    .case-study-content {
        padding: 2rem;
    }
    
    .case-study-content h3 {
        font-size: 1.4rem;
    }
    
    .case-study-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .case-study-stats > div {
        padding: 1rem 0.5rem;
    }
    
    .case-study-stats .value {
        font-size: 1.5rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 4rem 0 3rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .case-studies-grid {
        padding: 3rem 0;
    }
    
    .case-studies-grid .grid {
        gap: 1.5rem;
    }
    
    .case-study-image {
        height: 160px;
    }
    
    .case-study-image i {
        font-size: 2.5rem;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .case-study-content h3 {
        font-size: 1.3rem;
    }
    
    .case-study-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .case-study-stats > div {
        padding: 0.75rem;
    }
    
    .case-study-stats .value {
        font-size: 1.4rem;
    }
    
    .case-study-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
} 