/*
 * Protego Bio Website Styles
 * Modern, professional design inspired by leading biotech companies
 */

/* ========================================
   CSS Variables & Root Styles
   ======================================== */

:root {
    /* Color Palette */
    --primary-blue: #007cba;
    --dark-blue: #003d5c;
    --logo-blue: #198EBD;
    --accent-teal: #397d8b;
    --accent-orange: #cb4726;
    --dark-gray: #2c3e50;
    --medium-gray: #6c757d;
    --light-gray: #f1f2f1;
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-blue);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--medium-gray);
}

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

a:hover {
    color: var(--dark-blue);
}

ul { list-style: none; }

/* ========================================
   Layout & Container
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background-color: var(--light-gray);
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
    overflow: visible;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    overflow: visible;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
}

/* Dropdown Arrow */
.nav-arrow {
    font-size: 0.65em;
    margin-left: 4px;
    display: inline-block;
    transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0;
    z-index: 1001;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.has-dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.has-dropdown:hover > .nav-link .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-blue);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

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

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

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

/* ========================================
   Ken Burns Background Animations
   ======================================== */

@keyframes kenburns-hero {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.18) translate(-3%, -2%); }
}
@keyframes kenburns-a {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.16) translate(3%, -2%); }
}
@keyframes kenburns-b {
    0%   { transform: scale(1.14) translate(-2%, 2%); }
    100% { transform: scale(1)    translate(2%, -2%); }
}

/* ========================================
   Section Backgrounds (animated)
   ======================================== */

.section-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    opacity: .12;
    filter: grayscale(.3);
    z-index: 0;
}

/* Alternate Ken Burns directions per section */
.section:nth-child(odd) > .section-bg  { animation: kenburns-a 20s ease-in-out infinite alternate; }
.section:nth-child(even) > .section-bg { animation: kenburns-b 18s ease-in-out infinite alternate; }

/* Ensure container sits above animated bg */
.section > .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    color: var(--white);
    background: var(--dark-blue);
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    opacity: .35;
    animation: kenburns-hero 16s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 61, 92, 0.75) 0%, rgba(0, 124, 186, 0.55) 50%, rgba(57, 125, 139, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-blue:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Cards & Content Blocks
   ======================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-medium);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--dark-blue);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--medium-gray);
}

/* Strategy Cards */
.strategy-card {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--white);
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    transition: filter var(--transition-medium);
    z-index: 0;
}

.strategy-card:hover::before {
    filter: blur(3px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 61, 92, 0.8) 0%, rgba(0, 61, 92, 0.2) 50%, transparent 100%);
    z-index: 1;
    transition: all var(--transition-medium);
}

.strategy-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 61, 92, 0.95) 0%, rgba(0, 61, 92, 0.85) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: var(--spacing-sm) var(--spacing-lg);
}

.strategy-card h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    transition: margin var(--transition-medium);
}

.strategy-card:hover h3 {
    margin-bottom: var(--spacing-md);
}

.strategy-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.strategy-card:hover p {
    max-height: 200px;
    opacity: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.strategy-card:hover .card-link {
    opacity: 1;
    max-height: 50px;
}

.strategy-card:hover .card-link:hover {
    text-decoration: underline;
}

.med-chem-card {
    background-position: 70% center;
}

.med-chem-card::before {
    background-position: 70% center;
}

/* Content Section */
.content-section {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Leadership & Team
   ======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.team-member {
    text-align: center;
    padding: var(--spacing-sm);
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    object-fit: cover;
    display: block;
    border: 4px solid var(--light-gray);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-member-photo.photo-fit-contain {
    object-fit: contain;
    background-color: var(--white);
}

.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 0.4rem;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    vertical-align: middle;
    transition: all var(--transition-fast);
}

.profile-link:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.profile-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.profile-link svg.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-member-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.team-member h4 {
    margin-bottom: var(--spacing-xs);
}

.team-member .role {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========================================
   Pipeline Chart (JS-rendered)
   ======================================== */

.pl-chart {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pl-header,
.pl-row {
    display: grid;
    grid-template-columns: 160px 120px 1fr 180px;
    min-width: 820px;
}

.pl-header {
    border-bottom: 2px solid var(--light-gray);
}

.pl-col-disease,
.pl-col-program,
.pl-col-ind {
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pl-header .pl-col-disease,
.pl-header .pl-col-program,
.pl-header .pl-col-ind {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--medium-gray);
    text-align: center;
    align-items: center;
}

.pl-header .pl-stages {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.pl-stage-label {
    padding: .85rem .25rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--medium-gray);
    text-align: center;
    border-left: 1px dashed var(--light-gray);
}

.pl-cat-header {
    padding: .65rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pl-row {
    border-bottom: 1px solid #eef1f6;
    transition: background .2s;
}

.pl-row:last-child { border-bottom: none; }
.pl-row:hover { background: var(--light-gray); }

.pl-disease {
    font-size: .85rem;
    font-weight: 500;
    color: var(--medium-gray);
    text-align: center;
}

.pl-program {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    white-space: nowrap;
}

.pl-row .pl-stages {
    position: relative;
    display: flex;
    align-items: center;
    padding: .75rem .5rem .75rem 0;
}

.pl-bar {
    height: 26px;
    border-radius: 4px 13px 13px 4px;
    position: relative;
    z-index: 1;
    transition: width .6s cubic-bezier(.16, 1, .3, 1);
    min-width: 36px;
}

.pl-bar-cap {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(80, 120, 160, .5);
    border: 2px solid rgba(255,255,255,.6);
}

.pl-note {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7rem;
    font-weight: 700;
    color: var(--dark-blue);
    z-index: 2;
    white-space: nowrap;
}

.pl-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--light-gray);
    border: none;
    opacity: .5;
    z-index: 0;
}

.pl-row .pl-col-ind {
    gap: .25rem;
    font-size: .78rem;
    color: var(--medium-gray);
    justify-content: center;
    padding: .5rem .75rem;
}

.pl-ind-item {
    text-align: center;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background-color: var(--logo-blue);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-policies {
    margin-bottom: 0.5rem;
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0.5rem;
    transition: color var(--transition-fast);
}

.footer-policies a:hover {
    color: var(--white);
}

.footer-policies span {
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   Animations
   ======================================== */

/* ========================================
   Scroll Reveal Animations
   ======================================== */

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Responsive Design
   ======================================== */

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

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        max-height: 250px;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0;
        height: auto;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link {
        display: block;
        padding: 0.25rem 0.75rem;
        margin: 0;
        line-height: 1.4;
    }

    .main-nav li {
        padding: 0;
        margin: 0;
    }

    .nav-link::after {
        display: none;
    }

    /* Mobile dropdowns: toggle via JS class instead of hover */
    .has-dropdown:hover > .dropdown-menu {
        max-height: 0;
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        max-height: 500px;
    }

    .has-dropdown.dropdown-open > .nav-link .nav-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 0;
        padding: 0;
        background-color: var(--light-gray);
        visibility: visible;
        opacity: 1;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .dropdown-link {
        padding: 0.4rem 2rem;
        font-size: 0.8rem;
    }

    .content-section,
    .content-section.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
    }

    .hero {
        min-height: 60vh;
    }

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

    .hero-content {
        padding: var(--spacing-md);
    }

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

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .team-member-photo {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .section-bg { animation: none !important; }
}

/* ========================================
   Fixed Parallax Background Mode
   ======================================== */

/* Fixed full-page animated background element */
.parallax-bg-image {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    animation: kenburns-hero 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .parallax-bg-image { animation: none !important; }
}

/* Sections get semi-transparent white so content is readable
   but the protein image peeks through */
body.parallax-bg .section {
    background-color: rgba(255, 255, 255, 0.88);
}

body.parallax-bg .section.section-alt {
    background-color: rgba(241, 242, 241, 0.92);
}

/* Hide per-section animated backgrounds on parallax pages */
body.parallax-bg .section-bg {
    display: none;
}

/* Hero keeps the dark overlay for contrast but no separate hero-bg needed */
body.parallax-bg .hero {
    background: transparent;
}
body.parallax-bg .hero-bg {
    display: none;
}
body.parallax-bg .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 61, 92, 0.82) 0%, rgba(0, 124, 186, 0.65) 50%, rgba(57, 125, 139, 0.35) 100%);
}
