/* 
   Zodel Hub - Microbiome Research Program 
   Styles 
*/

:root {
    /* Color Palette */
    --color-primary: #0A2647;
    /* Deep Science Blue */
    --color-primary-light: #144272;
    --color-accent: #2C74B3;
    /* Bright Tech Blue */
    --color-secondary: #205295;

    --color-success: #0E8388;
    /* Teal/microbiome/growth */
    --color-success-dark: #095052;
    --color-success-light: #CBE4DE;

    --color-bg-light: #F9FAFB;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #051628;
    /* Very dark blue for dark sections */
    --color-bg-alt: #F0F4F8;
    /* Light grey-blue for alt sections */

    --color-text-main: #1F2937;
    --color-text-muted: #4B5563;
    --color-text-light: #F3F4F6;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-process: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Global Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-light);
}

.section-dark p {
    color: #9CA3AF;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-success);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-success-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline.style-white {
    border-color: white;
    color: white;
}

.btn-outline.style-white:hover {
    background: white;
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-success);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, rgba(5, 22, 40, 0.9) 0%, rgba(10, 38, 71, 0.85) 100%), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(14, 131, 136, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(44, 116, 179, 0.2) 0%, transparent 20%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 131, 136, 0.2);
    border: 1px solid rgba(14, 131, 136, 0.4);
    border-radius: var(--radius-full);
    color: var(--color-success-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-section h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 2.5rem;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-secondary-link a {
    color: var(--color-success-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-secondary-link a:hover {
    text-decoration: underline;
    color: white;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-success);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateX(5px);
}

.stat-card h3 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.stat-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Problem & Opportunity */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.feature-list li,
.check-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.check-list li::before {
    content: "✓";
    color: var(--color-success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.problem-text h2,
.opportunity-text h2 {
    margin-bottom: 1.5rem;
}

/* Approach */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(14, 131, 136, 0.15);
    position: absolute;
    top: -10px;
    right: 10px;
    font-family: var(--font-serif);
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Partnerships */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.partner-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    border-top: 5px solid transparent;
}

.partner-card:hover {
    border-top-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.partner-card.highlight-card {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-process);
}

.highlight-card h3,
.highlight-card p,
.highlight-card .card-list li {
    color: white;
}

.highlight-card .card-list li::before {
    background: rgba(255, 255, 255, 0.2);
}

.card-desc {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.card-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Participation */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder-block {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.split-image img:hover {
    transform: scale(1.02);
}

.content-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin: 2rem auto 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.participation-steps {
    margin-top: 2rem;
}

.p-item {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--color-bg-alt);
    padding-left: 1rem;
    transition: 0.3s;
}

.p-item:hover {
    border-left-color: var(--color-success);
}

.p-item h4 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.p-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-success);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1rem;
    color: #D1D5DB;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Corporate */
.corporate-box {
    background: var(--color-bg-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.corp-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 200px;
    text-align: center;
    border-right: 1px solid #E5E7EB;
    padding-right: 3rem;
}

/* CTA */
.cta-section {
    background-color: var(--color-bg-alt);
    padding: 6rem 0;
}

.cta-form-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #030F1C;
    /* Darker than dark section */
    color: #9CA3AF;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.75rem;
    color: #9CA3AF;
}

.footer-col a:hover {
    color: var(--color-success);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-3-col,
    .grid-2-col,
    .about-grid,
    .split-layout,
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .partner-card.highlight-card {
        transform: scale(1);
    }

    .corp-logo {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #E5E7EB;
        padding-bottom: 1rem;
        text-align: left;
        min-width: auto;
    }

    .corporate-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        padding-top: 7rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}