/* Case Studies Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Section for Case Studies Index */
.case-studies-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.case-studies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.case-studies-hero .container {
    position: relative;
    z-index: 1;
}

.case-studies-hero h1 {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-studies-hero p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styles */
.case-studies-section {
    padding: 80px 0;
    background: #ffffff;
}

.case-studies-section:nth-child(even) {
    background: #f8f9fc;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #112228, #2d3748);
    border-radius: 2px;
}

.section-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 600px;
}

/* Case Study Card Styles */
.case-study-card {
    background: #ffffff;
    border-radius: 16px;
    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);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-study-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.case-study-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study-card:hover .card-image img {
    transform: scale(1.05);
}

.case-study-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-study-card .card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(17, 34, 40, 0.08);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #112228;
    margin-bottom: 15px;
    width: fit-content;
}

.case-study-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.case-study-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.case-study-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.case-study-card .tech-badge {
    padding: 4px 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    color: #4a5568;
    font-weight: 500;
}

.case-study-card .view-case-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #112228;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study-card .view-case-study:hover {
    color: #2d3748;
    gap: 12px;
}

.case-study-card .view-case-study i {
    transition: transform 0.3s ease;
}

.case-study-card:hover .view-case-study i {
    transform: translateX(4px);
}

/* Individual Case Study Page Styles */
.case-study-detail-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 140px 0 100px;
    position: relative;
}

.case-study-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.case-study-detail-hero .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.case-study-detail-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.case-study-detail-hero .breadcrumb a:hover {
    color: #ffffff;
}

.case-study-detail-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.case-study-detail-hero .breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
}

.case-study-detail-hero .hero-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.case-study-detail-hero h1 {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 3rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-study-detail-hero .hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
}

/* Case Study Content Sections */
.case-study-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 60px;
}

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

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.content-section h2 i {
    margin-right: 12px;
    color: #112228;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #112228;
    border-radius: 50%;
}

/* Tech Stack Section */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 24px;
    color: #112228;
}

.tech-item span {
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
}

/* Project Image Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
}

/* Sidebar Styles */
.case-study-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-info-item:last-child {
    margin-bottom: 0;
}

.sidebar-info-item .icon {
    width: 45px;
    height: 45px;
    background: #f8f9fc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-info-item .icon i {
    font-size: 18px;
    color: #112228;
}

.sidebar-info-item .info h5 {
    font-size: 12px;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.sidebar-info-item .info p {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #112228 0%, #1a202c 100%);
    padding: 80px 0;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: #112228;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #f8f9fc;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #112228;
    text-decoration: none;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #112228;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #2d3748;
    gap: 6px;
    text-decoration: none;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .case-studies-hero h1,
    .case-study-detail-hero h1 {
        font-size: 2.5rem;
    }
    
    .case-study-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .case-studies-hero {
        padding: 100px 0 60px;
    }
    
    .case-studies-hero h1,
    .case-study-detail-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .case-studies-section {
        padding: 60px 0;
    }
    
    .case-study-content {
        padding: 60px 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .case-studies-hero h1,
    .case-study-detail-hero h1 {
        font-size: 1.75rem;
    }
    
    .case-studies-hero p,
    .case-study-detail-hero .hero-description {
        font-size: 16px;
    }
    
    .case-study-card .card-image {
        height: 180px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}
