/* Health-Tech Portfolio Theme Overrides */

/* Typography & Colors update for High-Contrast Tech Look */
:root {
    --primary-bg: #0a0a0b;
    --card-bg: #161618;
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border-color: #27272a;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0 3rem;
    box-shadow: none;
}

.hero-headline {
    font-size: 3.2rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
}

.profile-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bio-text {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.btn-primary, .nav-btn {
    background-color: var(--accent-blue) !important;
    color: #fff !important;
    border-radius: 4px !important; /* Tech blocky feel instead of rounded pills */
    border: 1px solid transparent;
}

.btn-primary:hover, .nav-btn:hover {
    background-color: #2563eb !important;
}

/* Expertise Section */
.expertise-section {
    margin: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.expertise-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Bio Section Overrides */
.bio-content h2 {
    color: var(--text-main);
}

.bio-content h2 .text-highlight {
    display: inline; /* Override stacking from old stylesheet on mobile */
    font-size: inherit; /* Override font-size change from old stylesheet */
}

/* Case Studies Section */
.case-studies-section {
    margin: 5rem 0;
}

.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.case-study-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-study-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.cs-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.cs-subtitle {
    font-size: 1.15rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    font-weight: 500;
}

.cs-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.cs-content strong {
    color: var(--text-main);
}

.cs-translation {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background-color: rgba(59, 130, 246, 0.08);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cs-translation strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Responsive Design & Mobile Overrides --- */

/* Fluid Typography for key headings */
.hero-headline {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 3.2rem);
    line-height: 1.2;
}

header .subtitle {
    font-size: clamp(1.05rem, 2vw + 0.5rem, 1.25rem);
}

.section-title {
    font-size: clamp(1.8rem, 4vw + 1rem, 2.5rem);
}

/* Mobile & Tablet Breakpoint */
@media (max-width: 768px) {
    header {
        padding: 3rem 0 2rem;
    }

    .profile-section {
        padding: 2rem;
        margin: 2rem auto;
    }

    .expertise-section,
    .case-studies-section {
        margin: 3.5rem 0;
    }

    .expertise-card,
    .case-study-card {
        padding: 2rem;
    }

    /* Make hero CTA button full-width for easy tapping */
    .bio-content .btn-primary {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}