/* CSS Variables */
:root {
    --primary: #00d9ff;
    --primary-dark: #00b8d4;
    --dark: #0a0e1a;
    --dark-light: #0d1425;
    --text: #ffffff;
    --text-light: #d1d5db;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--dark);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline.accent {
    border-color: rgba(0, 217, 255, 0.5);
    color: var(--primary);
}

.btn-outline.accent:hover {
    background-color: rgba(0, 217, 255, 0.1);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

/* Case Studies Page */
.case-studies-page {
    min-height: 100vh;
    padding: 120px 0 80px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 80px;
}

.hero-content {
    text-align: center;
    margin-bottom: 64px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text), var(--primary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Case Studies List */
.case-studies-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 80px;
}

.case-study-card {
    overflow: hidden;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.company-section {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(128, 0, 255, 0.1));
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.company-logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text);
    font-weight: 700;
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 8px;
}

.company-industry {
    color: var(--primary);
    margin-bottom: 24px;
}

.challenge-section,
.solution-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.section-content {
    color: var(--text);
}

/* Results Section */
.results-section {
    padding: 32px;
}

.results-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 24px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.result-item {
    text-align: center;
}

.result-metric {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.result-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.testimonial-quote {
    color: var(--text);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    margin-bottom: 80px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(128, 0, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.cta-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin: 0 auto 24px;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation Classes */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeIn {
    animation-name: fadeIn;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-studies-page {
        padding: 100px 0 60px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .company-section,
    .results-section {
        padding: 24px;
    }

    .cta-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .result-metric {
        font-size: 2rem;
    }
}