/* Add Poppins font import at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Case Studies Page CSS */

:root {
    --primary-color: #ff0000;
    --primary-light: #ff3e3e;
    --primary-dark: #cc0000;
    --dark-color: #000000;
    --darker-color: #0a0a0a;
    --light-color: #f5f5f5;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--darker-color));
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --accent-color: #e50000;
    --accent-hover: #ff2a2a;
    --text-muted: #cccccc;
    --card-bg: #121212;
    --card-hover: #1a1a1a;
    --transition-speed: 0.3s;
    --gradient-red: linear-gradient(135deg, #e50000, #ff4d4d);
    --glow-shadow: 0 0 15px rgba(229, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    font-size: 0.9rem;
    /* padding-left: 1.5rem; */
    margin-bottom: 0.5rem;
}



a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(229, 0, 0, 0.4);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    color: var(--text-light);
}

.btn-outline:hover::before {
    opacity: 1;
    transform: scale(1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.0rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
}

.loading-content img {
    width: 150px;
    margin-bottom: 20px;
}

.loading-text {
    margin-bottom: 15px;
}

.loading-text span {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    animation: loadingPulse 1.4s infinite ease-in-out;
    animation-fill-mode: both;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background-color: var(--dark-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(229, 0, 0, 0.1), transparent 80%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridShift 20s linear infinite;
    z-index: 1;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.animated-particles::before,
.animated-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.animated-particles::before {
    width: 300px;
    height: 300px;
    background: rgba(229, 0, 0, 0.2);
    top: 20%;
    left: 10%;
    animation-name: floatParticle1;
}

.animated-particles::after {
    width: 200px;
    height: 200px;
    background: rgba(229, 0, 0, 0.2);
    bottom: 20%;
    right: 15%;
    animation-name: floatParticle2;
}

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

@keyframes floatParticle2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-70px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(229, 0, 0, 0.1);
    border: 1px solid rgba(229, 0, 0, 0.3);
    border-radius: 30px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(229, 0, 0, 0);
    }
}

.main-heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(229, 0, 0, 0.2);
    z-index: -1;
    transform: skew(-15deg);
}

.hero-content p {
    font-size: 1.0rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 700px;
    opacity: 0.9;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.stat-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.arrow {
    margin-top: 10px;
    text-align: center;
}

.arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrow 2s infinite;
}

.arrow span:nth-child(1) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(2) {
    animation-delay: -0.4s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.6s;
}

@keyframes arrow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* ===== Case Study Navigation ===== */
.case-study-nav {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 15px 0;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* ===== Case Study Cards ===== */
.case-study-grid {
    background-color: var(--dark-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-card {
    background-color: transparent;
    perspective: 1000px;
    height: 580px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
}

.card-front {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.card-back {
    background-color: var(--card-bg);
    transform: rotateY(180deg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 100%;
}

.case-study-card:hover {
    transform: translateY(-10px);
    z-index: 2;
}

.case-study-card:hover .card-front {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(229, 0, 0, 0.2);
}

.btn-flip-back {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    z-index: 10;
}

.card-inner.flipped .btn-flip-back {
    opacity: 1;
}

.btn-flip-back:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.btn-flip-back:active {
    transform: scale(0.95);
}

.btn-flip-back i {
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-flip-back:hover i {
    color: var(--text-light);
}

.card-back::-webkit-scrollbar,
.card-front::-webkit-scrollbar {
    width: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.card-back::-webkit-scrollbar-track,
.card-front::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.card-back::-webkit-scrollbar-thumb,
.card-front::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.card-back::-webkit-scrollbar-thumb:hover,
.card-front::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.case-study-card:hover .card-front,
.case-study-card:focus .card-front {
    box-shadow: 0 0 30px rgba(229, 0, 0, 0.2);
}

.case-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(229, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.case-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.case-study-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-front p {
    color: var(--text-muted);
    margin-bottom: 1.0rem;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.stats-bar .stat {
    text-align: center;
}

.stats-bar .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stats-bar .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-flip, .btn-full-case {
    width: 100%;
    padding: 0.8rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: auto;
}

.btn-flip {
    background-color: rgba(229, 0, 0, 0.1);
    color: var(--primary-color);
    margin-top: 1rem;
}

.btn-flip:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-full-case {
    margin-top: 1rem;
}

.btn-full-case:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.card-back h3 {
    margin-top: 30px;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.challenge, .solution, .results {
    margin-bottom: 2rem;
}

.challenge h4, .solution h4, .results h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge h4 i, .solution h4 i, .results h4 i {
    color: var(--primary-color);
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.problem-statement, .key-points {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.problem-statement h4, .key-points h4 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.problem-statement h4 i, .key-points h4 i {
    color: var(--primary-color);
}

.problem-statement p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.key-points ul {
    margin-bottom: 0;
}

.key-points li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    padding-left: 1.25rem;
}

/* ===== Call to Action ===== */
.cta-section {
    background-color: var(--darker-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.cta-container h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.cta-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
}

.cta-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 0, 0, 0.2);
}

.cta-btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Additional Animation Effects */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowing {
    0%, 100% {
        box-shadow: 0 0 10px rgba(229, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 0, 0, 0.8);
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .main-heading {
        font-size: 3rem;
    }
    
    .case-study-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .main-heading {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .main-heading .highlight::before {
        height: 6px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .case-study-card {
        height: 550px;
    }
    
    .card-inner {
        height: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-heading {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .case-study-card {
        height: 520px;
    }
    
    .card-front, .card-back {
        padding: 1.5rem;
    }
    
    .tab-container {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
    }
    
    .cta-container p {
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Modal Styles */
.case-study-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--dark-color);
    margin: 50px auto;
    padding: 2rem;
    width: 90%;
    max-width: 1100px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-header .company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.modal-header .company-info i {
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul, 
.modal-body ol {
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.testimonial {
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: var(--border-radius-md);
}

.testimonial blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.testimonial blockquote::before {
    content: "\201C";
    font-size: 3rem;
    position: absolute;
    left: -0.5rem;
    top: -1rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.testimonial .author {
    text-align: right;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ml-3 {
    margin-left: 1rem;
}

.btn-read-more {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 1rem;
    width: 100%;
    font-weight: 500;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 0, 0, 0.2);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

.impact-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.impact-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
}

.impact-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Modal Footer Styles */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download-case {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-download-case:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animation for cards when they're revealed */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-study-card.animated {
    animation: cardReveal 0.6s ease forwards;
}

/* Body state when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Print styles for Case Studies */
@media print {
    .case-study-card {
        page-break-inside: avoid;
    }
    
    .modal-content {
        page-break-inside: avoid;
    }
    
    .btn-read-more,
    .btn-full-case,
    .btn-flip-back,
    .back-to-top,
    .navbar,
    .footer {
        display: none;
    }
}

/* End of styles */

.card-front .btn-full-case {
    position: relative;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 5;
    width: auto;
    margin-top: auto;
    display: block;
    margin-left: auto;
}

.card-front .btn-full-case:hover {
    background-color: var(--primary-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 0, 0, 0.3);
}

.card-front .btn-read-more {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: auto;
    margin-bottom: 0;
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Card scroll indicator */
.card-back .scroll-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(229, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: bounce 1.5s infinite;
    pointer-events: none;
    z-index: 5;
}

.card-back .scroll-indicator i {
    font-size: 14px;
}

.card-back.needs-scroll {
    padding-bottom: 3rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}
  
