/* Modern Case Study Styles */
:root {
    --primary-color: #F2C94C;
    --secondary-color: #1D252D;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* Navbar and Logo Fixes */
.navbar {
    padding: 15px 0 !important;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
}

.responsive-logo {
    height: auto !important;
    width: auto !important;
    max-height: 60px !important;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active:after,
.navbar-nav .nav-link:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.case-study-hero {
    position: relative;
    background: linear-gradient(rgba(29, 37, 45, 0.8), rgba(29, 37, 45, 0.9)), url('../assets/case-study-after.png') center center;
    background-size: cover;
    color: var(--white);
    padding: 120px 0 80px;
    margin-bottom: 0;
    text-align: center;
}

.case-study-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--primary-color);
}

.case-study-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.case-study-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.project-title-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.project-title-card h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    display: inline-block;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.meta-item {
    margin-bottom: 0.5rem;
}

.meta-item strong {
    display: block;
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.meta-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styling */
.case-study-section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.section-accent {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-dark .section-header h2::after {
    background-color: var(--white);
}

.section-accent .section-header h2::after {
    background-color: var(--secondary-color);
}

/* Content Styling */
.content-block {
    margin-bottom: 3rem;
}

.content-block h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.section-dark .content-block h3 {
    color: var(--white);
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* List Styling */
.modern-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.modern-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modern-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.section-dark .modern-list li::before {
    background-color: var(--white);
}

/* Before/After Images */
.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.03);
}

.image-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    z-index: 2;
}

/* Testimonial */
.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: right;
}

/* CTA Section */
.cta-section {
    background: #0c1e36;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    text-align: center;
    margin-top: 80px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(93, 93, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 93, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    transform: translate(-100px, 100px);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Styles */
footer {
    background-color: #0c1e36;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(93, 93, 255, 0.1), transparent 70%);
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #5d5dff;
    transform: translateX(5px);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-contact-icon {
    margin-right: 15px;
    width: 20px;
    color: #5d5dff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #5d5dff;
    color: #fff;
    transform: translateY(-5px);
}

.responsive-logo-footer {
    max-height: 60px;
    margin-bottom: 20px;
}

.copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
}

.copyright-bar p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.copyright-bar a {
    color: #fff;
    font-size: 0.9rem;
    margin-left: 15px;
    text-decoration: none;
}

.copyright-bar a:hover {
    color: #5d5dff;
    transform: none;
}

.btn-primary:hover {
    background-color: #e0bb45;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0 !important;
    }
    
    .responsive-logo {
        max-height: 50px !important;
    }
    
    .navbar-collapse {
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .case-study-hero {
        padding: 100px 0 60px;
    }
    
    .case-study-hero h1 {
        font-size: 2.8rem;
    }
    
    .project-meta {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .before-after-container {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .case-study-hero h1 {
        font-size: 2.2rem;
    }
    
    .case-study-tagline {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .case-study-section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .project-title-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}
