/* ===== VARIABLES ===== */
:root {
    /* Colors - Light Mode */
    --navy: #1a2332;
    --coral: #FF6B6B;
    --teal: #00D4AA;
    --cream: #F8F6F3;
    --charcoal: #2D3748;
    --light-gray: #E2E8F0;
    --white: #FFFFFF;
    
    /* Theme-aware colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F6F3;
    --text-primary: #2D3748;
    --text-secondary: #1a2332;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Sizing */
    --text-7xl: clamp(3.5rem, 8vw, 5.5rem);
    --text-5xl: clamp(2.5rem, 5vw, 3.5rem);
    --text-4xl: clamp(2rem, 4vw, 2.75rem);
    --text-3xl: clamp(1.75rem, 3vw, 2.25rem);
    --text-2xl: clamp(1.5rem, 2.5vw, 1.875rem);
    --text-xl: clamp(1.25rem, 2vw, 1.5rem);
    --text-lg: clamp(1.125rem, 1.5vw, 1.25rem);
    --text-base: clamp(1rem, 1.2vw, 1.125rem);
    
    /* Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    /* Backgrounds - Elevation System */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-elevated: #242b3d;
    
    /* Text Colors - Off-white, never pure */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    
    /* Navigation */
    --nav-bg: rgba(15, 20, 25, 0.98);
    
    /* Cards & Surfaces */
    --card-bg: #1a1f2e;
    --border-color: #2D3748;
    
    /* Brand Colors - Desaturated for dark mode */
    --coral: #E57373;
    --teal: #4DB6AC;
    
    /* Semantic Colors */
    --white: #E2E8F0;
    --navy: #1a1f2e;
    --charcoal: #E2E8F0;
    --cream: #1a1f2e;
    --light-gray: #2D3748;
}

/* Dark Mode - Section Backgrounds (Elevation-based) */
[data-theme="dark"] .skills-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .experience-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .case-studies-preview {
    background: var(--bg-secondary);
}

[data-theme="dark"] .final-cta {
    background: var(--bg-primary);
}

[data-theme="dark"] .credibility-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Dark Mode - About Page */
[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .about-story {
    background: var(--bg-primary);
}

[data-theme="dark"] .credentials-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .credentials-section .credential-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .credentials-section .credential-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Dark Mode - Case Studies Pages */
[data-theme="dark"] .case-studies-grid-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .case-studies-philosophy {
    background: var(--bg-secondary);
}

[data-theme="dark"] .philosophy-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Dark Mode - Detailed Case Study Pages */
[data-theme="dark"] .case-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .case-section.alt-bg {
    background: var(--bg-secondary);
}

[data-theme="dark"] .case-navigation {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
}

/* Dark Mode - Hobbies Page */
[data-theme="dark"] .hobbies-grid-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .hobby-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .hobby-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hobbies-synthesis {
    background: var(--bg-secondary);
}

[data-theme="dark"] .synthesis-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
}

[data-theme="dark"] .synthesis-card:hover {
    border-color: var(--teal);
    background: var(--bg-elevated);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Dark Mode - CTA Sections */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Dark Mode - Card Elevation */
[data-theme="dark"] .skill-card,
[data-theme="dark"] .case-card,
[data-theme="dark"] .credential-item,
[data-theme="dark"] .case-study-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .case-study-highlights {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .highlight-label {
    color: var(--coral);
}

[data-theme="dark"] .highlight-value {
    color: var(--text-primary);
}

[data-theme="dark"] .metric-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary) !important;
}

[data-theme="dark"] .case-study-card.featured {
    background: var(--card-bg);
    border: 2px solid var(--coral);
}

[data-theme="dark"] .case-study-card.featured h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

/* Dark Mode - Case Study Page Elements */
[data-theme="dark"] .approach-column {
    background: var(--bg-elevated);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .approach-column:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .approach-column h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .case-list li {
    color: var(--text-primary);
    opacity: 0.9;
}

/* Dark Mode - Navbar Logo Fix */
[data-theme="dark"] nav.scrolled .logo {
    color: var(--text-primary);
}

[data-theme="dark"] .challenge-card {
    background: var(--bg-elevated);
    border-left: 4px solid var(--coral);
}

[data-theme="dark"] .challenge-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .challenge-card p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .crm-mockup {
    background: var(--bg-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mockup-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .mockup-tabs .tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .mockup-tabs .tab.active {
    color: var(--text-primary);
}

[data-theme="dark"] .mockup-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .mockup-summary {
    background: var(--bg-elevated);
}

[data-theme="dark"] .mockup-summary h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .mockup-summary p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .mockup-highlights {
    background: var(--bg-elevated);
}

[data-theme="dark"] .mockup-highlights h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .mockup-highlights li {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .case-note {
    color: var(--text-secondary);
}

[data-theme="dark"] .learning-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    border-left: 4px solid var(--teal);
}

[data-theme="dark"] .learning-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .learning-card p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .deliverable-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .deliverable-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .deliverable-item p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .funnel-visual h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .funnel-insight {
    background: var(--bg-elevated);
    border-left: 4px solid var(--teal);
}

[data-theme="dark"] .funnel-insight p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .sidebar-list li {
    color: var(--text-primary);
}

[data-theme="dark"] .case-navigation {
    background: var(--bg-secondary);
}

[data-theme="dark"] .nav-button {
    color: var(--bg-primary);
    border-color: var(--border-color);
    background: var(--text-primary);
}

[data-theme="dark"] .nav-button:hover {
    background: var(--text-secondary);
}

/* Dark Mode - Amazon Case Study Elements */
[data-theme="dark"] .rubric-category {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .rubric-category h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .rubric-category p {
    color: var(--text-primary);
    opacity: 0.85;
}

[data-theme="dark"] .rubric-rollout {
    background: var(--bg-elevated);
}

[data-theme="dark"] .rubric-rollout h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .phase-item {
    background: var(--card-bg);
    border-left: 4px solid var(--coral);
}

[data-theme="dark"] .phase-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .phase-item p {
    color: var(--text-primary);
    opacity: 0.85;
}

[data-theme="dark"] .hub-type {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .hub-type h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .hub-description {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .benefit-tag {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

[data-theme="dark"] .product-option {
    background: var(--card-bg);
}

[data-theme="dark"] .product-option.low-quality {
    border-color: var(--border-color);
}

[data-theme="dark"] .product-header h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .product-price {
    color: var(--text-primary);
}

[data-theme="dark"] .product-true-cost {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

[data-theme="dark"] .score-item {
    background: var(--bg-elevated);
}

[data-theme="dark"] .score-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .score-value {
    color: var(--text-primary);
}

[data-theme="dark"] .product-note {
    color: var(--text-secondary);
}

[data-theme="dark"] .comparison-insight {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

[data-theme="dark"] .score-type {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .score-type h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .score-type p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .breakthrough-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .breakthrough-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .breakthrough-card p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .social-business-model {
    background: var(--bg-elevated);
}

[data-theme="dark"] .social-business-model h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .social-business-model p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .model-benefit p {
    color: var(--text-primary);
}

[data-theme="dark"] .science-advantage,
[data-theme="dark"] .financial-endgame {
    background: var(--bg-elevated);
}

[data-theme="dark"] .science-advantage h3,
[data-theme="dark"] .financial-endgame h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .advantage-list li {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .advantage-list strong {
    color: var(--coral);
}

[data-theme="dark"] .endgame-text {
    color: var(--text-primary);
    opacity: 0.9;
}

/* Dark Mode - York Funding Case Study Elements */
[data-theme="dark"] .process-stage {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .process-stage h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .process-stage > p {
    color: var(--text-primary);
    opacity: 0.85;
}

[data-theme="dark"] .before-state {
    background: rgba(229, 115, 115, 0.1);
    border-color: rgba(229, 115, 115, 0.3);
}

[data-theme="dark"] .after-state {
    background: rgba(77, 182, 172, 0.1);
    border-color: var(--teal);
}

[data-theme="dark"] .before-state h3,
[data-theme="dark"] .after-state h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .problem-list li,
[data-theme="dark"] .solution-list li {
    color: var(--text-primary);
}

[data-theme="dark"] .result-metric {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .metric-description {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .quality-badge.low {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* Dark Mode - Text Colors (Override semantic color variables) */
[data-theme="dark"] .section-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .skill-card h3,
[data-theme="dark"] .case-card h3,
[data-theme="dark"] .credential-item h3,
[data-theme="dark"] .timeline-role,
[data-theme="dark"] .case-study-card h2,
[data-theme="dark"] .philosophy-item h3,
[data-theme="dark"] .hobby-card h2,
[data-theme="dark"] .synthesis-card h3,
[data-theme="dark"] .about-hero-content h1,
[data-theme="dark"] .story-content h2,
[data-theme="dark"] .credentials-section .credential-item h3,
[data-theme="dark"] .case-section h2,
[data-theme="dark"] .case-section h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] p,
[data-theme="dark"] .skill-card p,
[data-theme="dark"] .case-card p,
[data-theme="dark"] .timeline-company,
[data-theme="dark"] .case-study-desc,
[data-theme="dark"] .about-intro,
[data-theme="dark"] .story-content p,
[data-theme="dark"] .credentials-section .credential-item p,
[data-theme="dark"] .philosophy-item p,
[data-theme="dark"] .synthesis-intro,
[data-theme="dark"] .hobby-content p,
[data-theme="dark"] .case-section p {
    color: var(--text-primary);
    opacity: 0.9;
}

[data-theme="dark"] .timeline-description,
[data-theme="dark"] .timeline-description li {
    color: var(--text-secondary);
}

[data-theme="dark"] strong {
    color: var(--text-primary);
}

/* Dark Mode - Timeline Specific */
[data-theme="dark"] .timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .timeline-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .timeline-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .timeline-content p {
    color: var(--text-primary);
    opacity: 0.85;
}

[data-theme="dark"] .timeline-year {
    color: var(--coral);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out-expo);
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out-expo);
}

nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-display);
    transition: all 0.3s var(--ease-out-expo);
}

nav.scrolled .logo {
    color: var(--navy);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--charcoal);
}

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

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

/* Buttons in nav */
.btn-contact, .btn-resume {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: none;
    font-family: var(--font-body);
}

.btn-contact {
    background: var(--coral);
    color: var(--white);
}

.btn-contact:hover {
    background: #FF5252;
    transform: translateY(-2px);
}

.btn-resume {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

nav.scrolled .btn-resume {
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-resume:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav.scrolled .btn-resume:hover {
    background: var(--cream);
}

/* About Page - Dark nav on light hero */
.about-page nav:not(.scrolled) .logo {
    color: var(--navy);
}

.about-page nav:not(.scrolled) .nav-links a {
    color: var(--charcoal);
}

.about-page nav:not(.scrolled) .dark-mode-toggle svg {
    color: var(--charcoal);
}

.about-page nav:not(.scrolled) .mobile-menu-toggle span {
    background: var(--charcoal);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

nav.scrolled .dark-mode-toggle:hover {
    background: var(--cream);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

nav.scrolled .dark-mode-toggle svg {
    color: var(--charcoal);
}

.dark-mode-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    transform-origin: center;
}

nav.scrolled .mobile-menu-toggle span {
    background: var(--charcoal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .dark-mode-toggle {
        order: 1;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 2rem;
        order: 2;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        color: var(--text-primary) !important;
        font-size: 1.5rem;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .btn-contact,
    .btn-resume {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    
    .btn-resume {
        border-color: var(--text-primary);
        color: var(--text-primary) !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2332 0%, #2d3f5f 100%);
    padding: 150px 3rem 100px;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: radial-gradient(circle at 20% 80%, var(--teal) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--coral) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.3s forwards;
}

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

.hero-text h1 {
    font-size: var(--text-7xl);
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero-text h1 .line {
    display: block;
    overflow: hidden;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1.1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    display: inline-block;
    font-size: 1rem;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: #FF5252;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.6s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    max-height: 65vh;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 107, 0.15),
        0 0 100px rgba(0, 212, 170, 0.1);
}

/* Edge fade vignette - blends white photo background into dark hero */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(26, 35, 50, 0.3) 70%,
        rgba(26, 35, 50, 0.6) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Hover gradient overlay */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(0, 212, 170, 0.12));
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.hero-image:hover::before {
    opacity: 1;
}

/* Ambient glow behind image */
.hero-image {
    filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.2)) 
            drop-shadow(0 0 60px rgba(0, 212, 170, 0.15));
}

/* Old metric card styles removed */

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 3;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

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

/* ===== SECTIONS ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

.section-title {
    font-size: var(--text-5xl);
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--charcoal);
    opacity: 0.7;
    font-weight: 400;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 10rem 0;
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 35, 50, 0.12);
    border-color: var(--teal);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--charcoal);
    opacity: 0.8;
    line-height: 1.8;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.timeline {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 30px;
    bottom: -50px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal), var(--coral));
    opacity: 0.3;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--coral);
    font-family: var(--font-display);
}

.timeline-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: var(--text-lg);
    color: var(--coral);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.timeline-content p {
    color: var(--charcoal);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.timeline-highlights {
    list-style: none;
    padding: 0;
}

.timeline-highlights li {
    color: var(--charcoal);
    opacity: 0.7;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.timeline-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* ===== CASE STUDIES PREVIEW ===== */
.case-studies-preview {
    padding: 10rem 0;
    background: var(--white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.case-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(26, 35, 50, 0.15);
}

.case-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.case-card h3 {
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.case-card p {
    color: var(--charcoal);
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.case-metrics span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.case-link {
    font-weight: 600;
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.case-link:hover {
    gap: 1rem;
}

/* ===== CREDIBILITY SECTION ===== */
.credibility-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, #2d3f5f 100%);
}

.credibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.credibility-left h2 {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: 2rem;
}

.credibility-left p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.credibility-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credential-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.4s var(--ease-out-expo);
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
}

.credential-icon {
    font-size: 2.5rem;
}

.credential-item h4 {
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.credential-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.credential-detail {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 0.5rem !important;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 8rem 0;
    background: var(--cream);
    text-align: center;
}

.final-cta h2 {
    font-size: var(--text-5xl);
    color: var(--navy);
    margin-bottom: 2rem;
}

.final-cta p {
    font-size: var(--text-xl);
    color: var(--charcoal);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ===== CONTACT MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideUp 0.4s var(--ease-out-expo);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--charcoal);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-close:hover {
    background: var(--cream);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: var(--text-4xl);
    color: var(--navy);
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: var(--text-lg);
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-item a {
    color: var(--coral);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

.modal-content .btn-primary {
    width: 100%;
    justify-content: center;
    display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content,
    .credibility-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Tablet image sizing */
    .hero-image {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-image img {
        max-height: 55vh;
    }
    
    .timeline-item {
        grid-template-columns: 100px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 2rem 80px;
        text-align: center;
    }
    
    /* Reorder hero elements on mobile */
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Make hero-text children direct flex children for reordering */
    .hero-text {
        display: contents;
    }
    
    .hero-text h1 {
        order: 1;
    }
    
    .hero-text .tagline {
        order: 2;
    }
    
    .hero-image {
        order: 3;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-image img {
        max-height: 35vh;
        max-width: 280px;
    }
    
    .hero-text .cta-group {
        order: 4;
        justify-content: center;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .skills-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .modal-content {
        padding: 3rem 2rem;
    }
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero-content h1 {
    margin-bottom: 30px;
    font-size: 3.5rem;
    line-height: 1.2;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.about-hero-image {
    position: relative;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-story {
    padding: 80px 0;
    background: #fff;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin: 60px 0 24px;
}

.story-content h2:first-child {
    margin-top: 0;
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.story-content em {
    font-style: italic;
    color: var(--teal);
}

.story-content a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid var(--teal);
    transition: all 0.3s ease;
}

.story-content a:hover {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

.credentials-section {
    padding: 80px 0;
    background: var(--cream);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.credentials-section .credential-item {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
}

.credentials-section .credential-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.credentials-section .credential-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.credentials-section .credential-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.credentials-section .credential-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.credentials-section .credential-item strong {
    color: var(--navy);
    font-weight: 600;
}

.credentials-section .credential-item ul {
    list-style: none;
    padding: 0;
}

.credentials-section .credential-item ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--charcoal);
}

.credentials-section .credential-item ul li:last-child {
    border-bottom: none;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, #0f1824 100%);
    color: #fff;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .about-intro {
        font-size: 1.1rem;
    }

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

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

/* ===== CASE STUDIES LANDING PAGE ===== */
.case-studies-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a2332 0%, #0f1824 100%);
    color: #fff;
    text-align: center;
}

.case-studies-hero .section-title {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

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

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

.case-study-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--teal);
}

.case-study-card.featured {
    border: 2px solid var(--coral);
    background: linear-gradient(135deg, #fff 0%, #fffbf7 100%);
}

.case-study-card.featured::before {
    content: '⭐ Featured Project';
    position: absolute;
    top: -12px;
    left: 50px;
    background: var(--coral);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.case-study-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--teal);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.case-study-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-study-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.case-study-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--coral);
}

.highlight-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.case-study-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--cream);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.metric-icon {
    font-size: 1.3rem;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    gap: 14px;
    color: var(--coral);
}

.case-studies-philosophy {
    padding: 100px 0;
    background: #fff;
}

.philosophy-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 60px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.philosophy-item {
    position: relative;
    padding: 40px 30px;
}

.philosophy-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.philosophy-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.9;
}

/* Responsive Case Studies */
@media (max-width: 768px) {
    .case-studies-hero .section-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .case-study-card {
        padding: 30px;
    }

    .case-study-card h2 {
        font-size: 1.8rem;
    }

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

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

/* ===== DETAILED CASE STUDY PAGES ===== */
.case-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1a2332 0%, #0f1824 100%);
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    gap: 12px;
}

.case-hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--coral);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.case-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.case-hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 900px;
    margin-bottom: 48px;
}

.case-hero-meta {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.case-section {
    padding: 100px 0;
    background: #fff;
}

.case-section.alt-bg {
    background: var(--cream);
}

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

.case-sidebar h3,
.case-sidebar h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 2rem;
    position: sticky;
    top: 120px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    position: sticky;
    top: 160px;
}

.sidebar-list li {
    padding: 12px 0;
    color: var(--charcoal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-list li::before {
    content: '→';
    color: var(--teal);
    margin-right: 12px;
    font-weight: 700;
}

.case-main-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.case-large-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.case-main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.challenge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.challenge-card {
    background: var(--cream);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--coral);
}

.challenge-card h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.challenge-card p {
    font-size: 1rem;
    margin: 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.approach-column {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.approach-column h4 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.case-list {
    list-style: none;
    padding: 0;
}

.case-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--charcoal);
    line-height: 1.6;
}

.case-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 900;
}

.insight-box {
    background: linear-gradient(135deg, var(--teal) 0%, #00b896 100%);
    color: #fff;
    padding: 32px;
    border-radius: 16px;
    margin-top: 48px;
}

.insight-box h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.insight-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.insight-box em {
    font-style: italic;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.section-title-left {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.case-intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 48px;
    max-width: 900px;
}

.funnel-comparison {
    display: grid;
    gap: 48px;
    margin: 48px 0;
}

.funnel-visual h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.funnel-bar {
    display: flex;
    width: 100%;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.funnel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.funnel-stage:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
}

.funnel-insight {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--navy);
    margin-top: 32px;
}

.funnel-insight p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.crm-mockup {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin: 40px 0;
}

.mockup-header {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.mockup-tabs {
    display: flex;
    gap: 24px;
}

.tab {
    padding: 8px 16px;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--navy);
    border-bottom-color: var(--coral);
    font-weight: 600;
}

.mockup-content {
    padding: 32px;
}

.mockup-summary {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mockup-summary h5 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.mockup-summary p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.mockup-highlights {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
}

.mockup-highlights h5 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.mockup-highlights ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mockup-highlights li {
    padding: 8px 16px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.95rem;
}

.case-note {
    font-style: italic;
    color: #666;
    font-size: 1rem;
    margin-top: 32px;
}

.dashboard-preview {
    background: linear-gradient(135deg, #1a2332 0%, #2d3f5f 100%);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    margin: 48px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h4 {
    font-size: 1.5rem;
    margin: 0;
}

.dashboard-filters select {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

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

.metric-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.metric-gauge.good {
    border-color: var(--teal);
}

.metric-gauge.warning {
    border-color: #FFB84D;
}

.metric-gauge.danger {
    border-color: var(--coral);
}

.gauge-value {
    font-size: 2rem;
    font-weight: 900;
}

.gauge-max {
    font-size: 1rem;
    opacity: 0.6;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.dashboard-summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
}

.summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 1rem;
    opacity: 0.8;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-percent {
    font-size: 1.2rem;
    color: var(--teal);
    font-weight: 700;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.deliverable-item {
    background: var(--cream);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.deliverable-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.deliverable-item h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.deliverable-item p {
    font-size: 1rem;
    margin: 0;
}

.learnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.learning-card {
    background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--teal);
}

.learning-card h4 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.learning-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.case-navigation {
    padding: 60px 0;
    background: var(--cream);
}

.case-navigation .container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.nav-button {
    flex: 1;
    padding: 20px 32px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-button:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

    .case-sidebar h3,
    .case-sidebar h4 {
        position: static;
        font-size: 1.5rem;
    }

    .sidebar-list {
        position: static;
    }
}

@media (max-width: 768px) {
    .case-hero h1 {
        font-size: 2.5rem;
    }

    .case-hero-subtitle {
        font-size: 1.1rem;
    }

    .case-hero-meta {
        gap: 24px;
    }

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

    .case-navigation .container {
        flex-direction: column;
    }
}
/* ===== AMAZON CASE STUDY SPECIFIC STYLES ===== */

/* Rubric Visual */
.rubric-visual {
    margin: 60px 0;
}

.rubric-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rubric-category {
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.rubric-category:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.rubric-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rubric-icon {
    font-size: 2rem;
}

.rubric-category h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0;
}

.rubric-category p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

/* Rubric Rollout Timeline */
.rubric-rollout {
    margin: 60px 0;
    padding: 50px;
    background: var(--cream);
    border-radius: 20px;
}

.rubric-rollout h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 40px;
    text-align: center;
}

.timeline-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.phase-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--coral);
}

.phase-year {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phase-item h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.phase-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

/* Hub Ecosystem */
.hub-ecosystem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.hub-type {
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.hub-type:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.hub-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hub-type h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.hub-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.hub-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefit-tag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

/* Social Business Model */
.social-business-model {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, var(--navy) 0%, #0f1824 100%);
    border-radius: 20px;
    color: #fff;
}

.social-business-model h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.social-business-model > p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
}

.model-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.model-benefit {
    display: flex;
    gap: 20px;
    align-items: start;
}

.model-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.model-benefit p {
    margin: 0;
    line-height: 1.6;
}

.model-benefit strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--teal);
}

/* Buyer Incentive System */
.buyer-system {
    margin: 60px 0;
}

.credit-example {
    background: var(--cream);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
}

.credit-example h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 40px;
    text-align: center;
}

.product-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.product-option {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.product-option.low-quality {
    border-color: rgba(0, 0, 0, 0.1);
}

.product-option.high-quality {
    border-color: var(--teal);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.15);
}

.product-header {
    margin-bottom: 24px;
}

.product-header h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.quality-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.quality-badge.low {
    background: rgba(0, 0, 0, 0.08);
    color: var(--charcoal);
}

.quality-badge.high {
    background: var(--teal);
    color: #fff;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.product-credit {
    font-size: 1.2rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-true-cost {
    font-size: 1.1rem;
    color: var(--charcoal);
    padding: 16px;
    background: var(--cream);
    border-radius: 10px;
    margin-bottom: 24px;
}

.product-true-cost strong {
    color: var(--coral);
    font-size: 1.4rem;
}

.product-scores {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.score-item {
    flex: 1;
    padding: 12px;
    background: var(--cream);
    border-radius: 8px;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 6px;
}

.score-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
}

.product-note {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

.comparison-insight {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--charcoal);
    padding: 30px;
    background: #fff;
    border-left: 4px solid var(--coral);
    border-radius: 8px;
}

.scoring-system {
    margin-top: 60px;
}

.scoring-system h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 30px;
}

.score-explainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.score-type {
    padding: 30px;
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 12px;
}

.score-type h4 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.score-type p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

.scoring-note {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.8;
}

/* Material Science Section */
.science-breakthroughs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.breakthrough-card {
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.breakthrough-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.breakthrough-card h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.breakthrough-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

.science-advantage {
    margin: 60px 0;
    padding: 50px;
    background: var(--cream);
    border-radius: 20px;
}

.science-advantage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.science-advantage > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.advantage-list strong {
    color: var(--navy);
    font-weight: 600;
}

.financial-endgame {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, var(--navy) 0%, #0f1824 100%);
    border-radius: 20px;
    color: #fff;
}

.financial-endgame h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.endgame-text {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 24px;
}

/* ===== YORK FUNDING CASE STUDY SPECIFIC STYLES ===== */

/* Process Flow */
.process-flow {
    margin: 60px 0;
}

.process-stage {
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 100px;
}

.stage-number {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-stage h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.process-stage > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.85;
    margin-bottom: 16px;
}

.stage-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* CRM Transformation */
.crm-transformation {
    margin: 60px 0;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.before-state,
.after-state {
    padding: 40px;
    border-radius: 16px;
}

.before-state {
    background: rgba(255, 107, 107, 0.05);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.after-state {
    background: rgba(0, 212, 170, 0.05);
    border: 2px solid var(--teal);
}

.before-state h3,
.after-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
}

.problem-list li,
.solution-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.problem-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.crm-features {
    margin-top: 60px;
}

.crm-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

/* Team Development */
.team-development {
    margin: 60px 0;
}

.team-impact {
    margin-bottom: 60px;
}

.impact-stat {
    margin-bottom: 40px;
}

.stat-visual {
    margin-bottom: 12px;
}

.stat-bar {
    width: 100%;
    height: 60px;
    background: var(--cream);
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.6s ease;
}

.stat-label {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 600;
}

.stat-improvement {
    font-size: 1.1rem;
    color: var(--coral);
    font-weight: 700;
    margin-top: 8px;
}

.training-methodology {
    margin: 60px 0;
    padding: 50px;
    background: var(--cream);
    border-radius: 20px;
}

.training-methodology h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 40px;
    text-align: center;
}

.training-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.training-phase {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
}

.training-phase h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.training-phase p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

.quality-metrics {
    margin: 60px 0;
}

.quality-metrics h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.quality-metrics > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.metrics-list {
    list-style: none;
    padding: 0;
}

.metrics-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.metrics-list strong {
    color: var(--navy);
    font-weight: 600;
}

/* Results Metrics */
.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.result-metric {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 30px;
    background: #fff;
    border: 2px solid var(--cream);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.result-metric:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.result-metric .metric-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--charcoal);
    opacity: 0.8;
}

/* ===== HOBBIES PAGE SPECIFIC STYLES ===== */

.hobbies-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a2332 0%, #0f1824 100%);
    color: #fff;
    text-align: center;
}

.hobbies-hero .section-title {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 24px;
}

.hobbies-grid-section {
    padding: 80px 0;
    background: var(--cream);
}

.hobby-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

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

.hobby-visual {
    text-align: center;
    margin-bottom: 40px;
}

.hobby-icon {
    font-size: 5rem;
    margin-bottom: 16px;
}

.hobby-achievement {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hobby-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hobby-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 40px;
}

.professional-connection {
    background: var(--cream);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.professional-connection h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.connection-list {
    list-style: none;
    padding: 0;
}

.connection-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    padding: 16px 0;
    padding-left: 30px;
    position: relative;
}

.connection-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 1.2rem;
}

.connection-list strong {
    color: var(--navy);
    font-weight: 600;
}

.hobby-quote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--navy);
    font-style: italic;
    padding: 30px;
    background: rgba(0, 212, 170, 0.05);
    border-left: 4px solid var(--coral);
    border-radius: 8px;
}

.hobby-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hobby-stat {
    text-align: center;
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
}

.hobby-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.hobby-stat .stat-label {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.8;
}

/* Hobbies Synthesis Section */
.hobbies-synthesis {
    padding: 100px 0;
    background: #fff;
}

.hobbies-synthesis .section-title {
    font-size: 3rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 30px;
}

.synthesis-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--charcoal);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.synthesis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.synthesis-card {
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.synthesis-card:hover {
    border-color: var(--teal);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.synthesis-card h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.synthesis-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.85;
    margin: 0;
}

/* Responsive Hobbies */
@media (max-width: 768px) {
    .hobbies-hero .section-title {
        font-size: 2.5rem;
    }

    .hobby-card {
        padding: 40px 30px;
    }

    .hobby-content h2 {
        font-size: 2rem;
    }

    .professional-connection {
        padding: 30px 20px;
    }

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

