/* Madness & Motive - Dark Theme Styles */

:root {
    --primary: #0b1120;
    --primary-dark: #070d19;
    --primary-light: #162033;
    --accent: #00b4d8;
    --accent-light: #48cae4;
    --cream: #0d1525;
    --warm-white: #111a2e;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-light: rgba(255, 255, 255, 0.08);
    --font-display: 'Bitter', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Breadcrumb navigation */
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    color: var(--accent);
}

/* Geometric background pattern */
.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='69' viewBox='0 0 60 69' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%2348cae4' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 69px;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(7, 13, 25, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

nav.nav-dark {
    background: rgba(7, 13, 25, 0.95);
    backdrop-filter: blur(20px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

/* YouTube icon in nav */
.nav-youtube {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.nav-youtube:hover {
    color: #ff0000;
}

.nav-youtube svg {
    width: 22px;
    height: 22px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Page Headers */
.page-header {
    background: var(--primary-dark);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-light);
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--accent);
    padding: 16px 32px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.4);
}

/* Section Styling */
.section {
    padding: 100px 0;
}

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

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-dark .section-label {
    color: var(--accent-light);
}

.section-dark .section-label::before,
.section-dark .section-label::after {
    background: var(--accent-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Cards */
.card {
    background: var(--primary-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-grid-2col {
    grid-template-columns: 2fr 1fr;
}

.footer-grid-3col {
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover svg {
    color: white;
}

/* Blog Cards */
.blog-card {
    background: var(--primary-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 28px;
}

.blog-card-category {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h3 a:hover {
    color: var(--accent-light);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Portfolio/Case Study Cards */
.case-study-card {
    background: var(--primary-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.case-study-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    position: relative;
}

.case-study-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-study-card-content {
    padding: 32px;
}

.case-study-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.case-study-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-study-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-study-stat {
    text-align: center;
}

.case-study-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--primary-light);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tool Styles */
.tool-card {
    background: var(--primary-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.tool-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--primary);
}

.tool-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
    background: var(--primary-light);
}

.tool-input::placeholder {
    color: var(--text-muted);
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.tool-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.url-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-list li {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.url-list li:last-child {
    border-bottom: none;
}

.url-list li a {
    color: var(--accent);
    text-decoration: none;
}

.url-list li a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-light);
    color: white;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-grid-2col,
    .footer-grid-3col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: white;
    }

    .nav-cta {
        display: none;
    }

    .nav-youtube {
        display: none;
    }

    nav.mobile-menu-open .nav-cta {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-grid-2col,
    .footer-grid-3col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-header {
        padding: 140px 0 80px;
    }

    .section {
        padding: 80px 0;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   Blog Post Styles
   ============================================ */

/* Blog Hero */
.blog-hero {
    background: var(--primary);
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

.blog-category {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.blog-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-hero-image {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.blog-hero-image img {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 500px;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px 20px 0 0;
    display: block;
}

.blog-hero-image img.contain-fit {
    object-fit: contain;
    background: var(--primary-light);
    aspect-ratio: auto;
    max-height: 450px;
}

/* Blog Article */
.blog-article {
    background: var(--warm-white);
    padding: 60px 0 100px;
}

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

.article-content {
    background: var(--primary-light);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent);
    margin: 50px 0 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 35px 0 15px;
}

.article-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 25px 0 12px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 25px 20px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-content strong {
    color: var(--text-primary);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--accent-light);
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--accent-light);
}

/* Video Embed */
.video-embed {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3a5f 100%);
    padding: 35px;
    border-radius: 16px;
    margin: 40px 0;
}

.key-takeaways h3 {
    color: white;
    margin: 0 0 20px !important;
    font-size: 1.2rem;
}

.key-takeaways ul,
.key-takeaways ol {
    margin: 0 0 0 20px;
    color: rgba(255,255,255,0.9);
}

.key-takeaways li {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.key-takeaways strong {
    color: white;
}

/* Step Box */
.step-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.step-box h4 {
    color: var(--accent-light);
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.step-box p {
    margin: 0;
    font-size: 1rem;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.tip-box strong {
    color: #fbbf24;
}

.tip-box p {
    margin: 0;
    color: rgba(255,255,255,0.85);
}

/* Prompt Box */
.prompt-box {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

.prompt-box p {
    margin: 0;
    color: var(--accent-light);
    font-style: italic;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.quote-box p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
}

.quote-box cite {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-muted);
}

/* Case Profiles */
.case-profiles {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 10px 0 30px;
}

.case-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.case-profile img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1);
}

.case-profile strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.case-profile span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 480px) {
    .case-profile img {
        width: 110px;
        height: 110px;
    }
}

/* Sentiment Chart */
.sentiment-chart {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.sentiment-chart h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.sentiment-chart .chart-subtitle {
    margin: 0 0 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sentiment-bar-group {
    margin-bottom: 16px;
}

.sentiment-bar-group:last-child {
    margin-bottom: 0;
}

.sentiment-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.sentiment-bar-label span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.sentiment-bar-label span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sentiment-bar-track {
    height: 28px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.sentiment-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.sentiment-bar-fill.guilty {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.sentiment-bar-fill.doubt {
    background: linear-gradient(90deg, var(--accent), #0284c7);
}

.sentiment-chart .chart-note {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.warning-box h4 {
    color: #92400e;
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.warning-box p {
    margin: 0;
    color: #78350f;
}

/* Blog CTA */
.blog-cta {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
}

.blog-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.blog-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 45px;
}

.blog-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.blog-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.4);
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-bio-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--primary);
}

.author-bio-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.author-bio-content p {
    font-size: 0.95rem !important;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
    line-height: 1.6;
}

.author-bio-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.author-bio-content a:hover {
    text-decoration: underline;
}

/* Blog Post Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 0;
    }

    .blog-hero-image img {
        max-height: 280px;
    }

    .article-content {
        padding: 30px 25px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .key-takeaways {
        padding: 25px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ============================================
   Case Study Shared Styles
   ============================================ */

/* Case Study Hero */
.case-study-hero {
    background: var(--primary);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.case-study-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.case-study-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.case-study-category {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.case-study-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.case-study-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-stat-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-stat-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Metrics Bar */
.metrics-bar {
    background: var(--primary-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.metrics-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

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

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Case Study Content Grid */
.case-study-content {
    padding: 80px 0;
    background: var(--warm-white);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.case-study-main h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent);
    margin: 50px 0 20px;
    line-height: 1.3;
}

.case-study-main h2:first-child {
    margin-top: 0;
}

.case-study-main p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Sidebar */
.case-study-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-card {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebar-item-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Case Study Quote Box */
.case-study-content .quote-box {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(0, 180, 216, 0.03) 100%);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.case-study-content .quote-box p {
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Related Case Studies Section */
.related-section {
    background: var(--warm-white);
    padding: 80px 0;
}

.related-section h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
}

.related-studies {
    padding: 100px 0;
    background: var(--cream);
}

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

/* Related Section Card Overrides */
.related-grid .case-study-card {
    background: var(--primary-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: none;
}

.related-grid .case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.related-grid .case-study-card-image {
    height: 200px;
}

.related-grid .case-study-card-content {
    padding: 25px;
}

.related-grid .case-study-card-category {
    display: inline-block;
    background: rgba(0, 180, 216, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.related-grid .case-study-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.related-grid .case-study-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-grid .case-study-card-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-grid .case-study-card-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
}

.related-grid .case-study-card-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

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

    .metrics-bar-inner {
        flex-wrap: wrap;
        gap: 20px;
    }
}

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

    .case-study-hero h1 {
        font-size: 2rem;
    }

    .hero-stat-badge {
        padding: 15px 30px;
    }

    .hero-stat-value {
        font-size: 2.2rem;
    }

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

    .case-study-sidebar {
        position: static;
    }
}
