/* Case Studies New - Clean Design */



/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    background: var(--background);
    color: var(--text-main);
    padding-top: 80px; /* Account for fixed navbar */
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: transparent;
}

.hero-title {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Case Studies Section */
.case-studies-section {
    padding: 2rem 0 4rem 0;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Case Study Card - Clean Design Without Orange Borders */
.case-study-card {
    background: var(--surface);
    border: 1px solid #404040;
    border-radius: 16px;
    padding: 1.75rem;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}



.case-study-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.case-study-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

/* Card Image - Consistent Aspect Ratio */
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Card Content - Consistent Layout */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.card-category {
    color: var(--mclaren-orange);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
    flex: 1;
}

/* Orange Divider Line */
.card-divider {
    height: 3px;
    background: var(--mclaren-orange);
    margin: 0 0 1rem 0;
    border-radius: 2px;
    flex-shrink: 0;
    width: 100%;
}

/* Card Action - Orange Theme */
.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--mclaren-orange);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
    text-align: left;
}

.card-action i {
    transition: transform 0.3s ease;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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



/* Responsive Design */
@media (max-width: 1200px) {
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.25rem;
        max-width: 100%;
    }

    .case-study-card {
        padding: 1.25rem;
        height: 450px;
    }
    
    .card-image {
        height: 150px;
        margin-bottom: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .case-studies-section {
        padding: 1.5rem 0 2.5rem 0;
    }

    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }

    .case-study-card {
        padding: 1rem;
        height: 420px;
    }
    
    .card-image {
        height: 140px;
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .case-studies-section {
        padding: 1rem 0 1.5rem 0;
    }

    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }

    .case-study-card {
        padding: 1rem;
        height: 400px;
    }
    
    .card-image {
        height: 120px;
        margin-bottom: 0.875rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .card-action {
        font-size: 0.85rem;
    }
}

/* Very small mobile - fallback to single column */
@media (max-width: 360px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-study-card {
        padding: 1rem;
        height: 340px;
    }
}

/* Animation for cards appearing */
.case-study-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.case-study-card:nth-child(1) { animation-delay: 0.1s; }
.case-study-card:nth-child(2) { animation-delay: 0.2s; }
.case-study-card:nth-child(3) { animation-delay: 0.3s; }
.case-study-card:nth-child(4) { animation-delay: 0.4s; }
.case-study-card:nth-child(5) { animation-delay: 0.5s; }
.case-study-card:nth-child(6) { animation-delay: 0.6s; }
.case-study-card:nth-child(7) { animation-delay: 0.7s; }
.case-study-card:nth-child(8) { animation-delay: 0.8s; }
.case-study-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
