/* ===========================================
   UBWENGE LAB WEBSITE - COMPLETE STYLESHEET
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Color System */
:root {
    --blue-primary: #2563eb;
    --blue-secondary: #1e40af;
    --blue-light: #3b82f6;
    --blue-bg: rgba(37, 99, 235, 0.06);

    --black: #0f172a;
    --gray-dark: #334155;
    --gray-medium: #64748b;
    --gray-light: #e5e7eb;
    --gray-bg: #f8fafc;
    --white: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 50px;
    /* Updated for rounded premium feel */

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===========================================
   GLOBAL STYLES
   =========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hind Madurai', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.25rem;
    /* Increased from 1.125rem */
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-position: inside;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    /* Increased */
    font-weight: 500;
}

h2 {
    font-size: 2.5rem;
    /* Increased */
    font-weight: 400;
    color: var(--blue-secondary);
}

h3 {
    font-size: 1.8rem;
    /* Increased */
    font-weight: 400;
    color: var(--black);
}

h4 {
    font-size: 1.4rem;
    /* Increased */
    font-weight: 400;
    color: var(--black);
}

/* ===========================================
   LAYOUT & CONTAINERS
   =========================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

.header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 44px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.header.scrolled .brand-name {
    color: var(--black);
}

.header nav {
    display: flex;
    gap: 8px;
}

.header nav a {
    padding: 10px 18px;
    font-weight: 600;
    color: var(--white);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.header.scrolled nav a {
    color: var(--gray-dark);
}

.header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header nav a:hover {
    color: var(--blue-primary);
}

.header nav a:hover::after {
    width: 60%;
}

.header nav a.active {
    color: var(--blue-primary);
    background: transparent;
}

.header nav a.active::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================================
   HERO SECTIONS
   =========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.8),
            rgba(30, 64, 175, 0.7));
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    color: var(--white);
    padding: 0 5%;
    text-align: center;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-text .btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    padding: 14px 36px;
}

.hero-text .btn:hover {
    background: var(--white);
    color: var(--blue-primary);
}

/* Page Hero (non-image) */
.page-hero {
    background: linear-gradient(135deg, var(--blue-secondary), var(--blue-primary));
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-page .page-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.7)), url('../assets/images/about_us_placeholder.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.projects-page .page-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.7)), url('../assets/images/projects_placeholder.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    opacity: 0.8;
    text-decoration: underline;
}

/* Consistent spacing for text before buttons */
.platform-text p:last-of-type,
.project-details p:last-of-type,
.module-intro p:last-of-type,
.audience-card p:last-of-type,
.founder-text p:last-of-type {
    margin-bottom: 25px;
}

.platform-text h2,
.project-details h2,
section h2 {
    margin-bottom: 20px;
}

.platform-text p,
.project-details p,
.intro-large {
    margin-bottom: 15px;
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Prepare for outline styles */
}

/* Primary Button - Outline Style Blue */
.btn-primary {
    background: transparent;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

.btn-primary:hover {
    background: var(--blue-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

/* Secondary Button - Keep outline but maybe same shape */
.btn-secondary {
    background: transparent;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

.btn-secondary:hover {
    background: var(--blue-primary);
    color: var(--white);
}

/* ===========================================
   SECTIONS & CONTENT BLOCKS
   =========================================== */

.section-intro {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.what-we-build {
    background: var(--white);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 80px 5%;
}

.what-we-build h2 {
    text-align: center;
}

.intro-large {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 25px;
}

/* ===========================================
   FEATURE GRIDS & CARDS
   =========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--blue-primary);
    margin-bottom: 15px;
}

/* ===========================================
   PROJECT CARDS
   =========================================== */

.project-card,
.project-card-large {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-card-large {
    margin-top: 40px;
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue-primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-details {
    padding: 40px;
}

.project-tagline {
    font-size: 1.2rem;
    color: var(--gray-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.project-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===========================================
   MODULE CARDS (E-Vuze System)
   =========================================== */

.architecture-grid {
    display: grid;
    gap: 40px;
    margin-top: 50px;
}

.module-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
}

.module-card.pharmacy-card {
    border-color: var(--blue-primary);
    background: var(--blue-bg);
}

.module-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.module-card img {
    border-radius: var(--radius-md);
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
}

.module-card h3 {
    margin-top: 15px;
    color: var(--blue-primary);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0;
}

.status-badge.active {
    background: var(--success);
    color: var(--white);
}

.status-badge.planned {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.status-badge-large {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
}

.status-badge-large.active {
    background: var(--success);
    color: var(--white);
}

.status-badge-large.planned {
    background: var(--warning);
    color: var(--white);
}

/* ===========================================
   COUNTDOWN TIMER
   =========================================== */

.countdown-section {
    background: var(--gray-bg);
    padding: 60px 0;
}

.timer-container {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.08),
            rgba(30, 64, 175, 0.08));
    border: 2px solid var(--blue-primary);
    border-radius: var(--radius-xl);
    padding: 50px;
    text-align: center;
}

.timer-container h2 {
    color: var(--blue-primary);
    margin-bottom: 30px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.time-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
}

.time-box span {
    display: block;
}

#countdown span[id] {
    font-size: 3rem;
    font-weight: 600;
    color: var(--blue-primary);
}

.time-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.launch-date {
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mission-vision {
    background: var(--gray-bg);
    padding: 60px 0;
}

.mv-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.mv-box {
    background: transparent;
    padding: 35px;
    text-align: center;
    border: none;
    transition: transform 0.3s ease;
}

.mv-box:hover {
    transform: translateY(-5px);
}

.mv-box h3 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--blue-secondary);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.challenge-item {
    background: var(--white);
    border: 2px solid var(--gray-light);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.challenge-item:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.challenge-item h4 {
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.founder-section {
    background: var(--gray-bg);
    padding: 60px 0;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.founder-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.founder-name {
    margin-top: 20px;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    background: var(--blue-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.value-item h4 {
    margin-bottom: 12px;
}

/* ===========================================
   PHARMACY MODULE STYLES
   =========================================== */

.pharmacy-problem {
    background: var(--gray-bg);
    padding: 60px 0;
}

.problem-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--blue-primary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.problem-list {
    max-width: 800px;
    margin: 40px auto;
}

.problem-list ul {
    list-style: none;
}

.problem-list li {
    padding: 15px;
    margin: 10px 0;
    background: var(--white);
    border-left: 4px solid var(--blue-primary);
    border-radius: var(--radius-sm);
}

.solution-steps {
    margin-top: 40px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    margin: 30px 0;
    align-items: start;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.step-content {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
}

.pharmacy-features {
    background: var(--gray-bg);
    padding: 60px 0;
}

.features-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-detail {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.audience-card {
    background: var(--gray-bg);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--blue-light);
}

.pharmacy-cta {
    background: var(--blue-primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.pharmacy-cta h2 {
    color: var(--white);
}

/* ===========================================
   HOSPITAL & AI MODULE STYLES
   =========================================== */

.features-list {
    margin-top: 40px;
}

.feature-item-detailed {
    background: var(--gray-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border-left: 4px solid var(--blue-primary);
}

.feature-item-detailed h3 {
    margin-bottom: 15px;
}

.benefits-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.before-box,
.after-box {
    padding: 35px;
    border-radius: var(--radius-lg);
}

.before-box {
    background: #fee;
    border: 2px solid #fcc;
}

.after-box {
    background: #efe;
    border: 2px solid var(--success);
}

.features-grid-ai {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.ai-feature {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-md);
}

.ai-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.safety-notice {
    background: var(--gray-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--warning);
}

.safety-notice h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

/* ===========================================
   TEAM PAGE STYLES
   =========================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.team-member {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.member-photo-placeholder {
    width: 120px;
    height: 120px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.member-title {
    color: var(--blue-primary);
    font-weight: 600;
    margin: 10px 0;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-member-compact {
    background: var(--gray-bg);
    padding: 20px;
    border-radius: var(--radius-md);
}

.team-member-compact h4 {
    margin-bottom: 5px;
}

.team-member-compact p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.join-team {
    background: var(--gray-bg);
    color: var(--black);
    text-align: center;
    padding: 60px 20px;
}

.join-team h2 {
    color: var(--blue-secondary);
}

/* ===========================================
   IMPACT PAGE STYLES
   =========================================== */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
}

.impact-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px auto;
    max-width: 900px;
}

.metric-box {
    background: var(--white);
    padding: 0;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.metric-box:hover {
    border-color: var(--blue-primary);
    /* box-shadow removed */
}

.metric-number {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 10px;
    line-height: 1;
}

.metric-box p {
    padding: 0 30px;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--black);
}

.vision-timeline {
    margin-top: 40px;
}

.timeline-item {
    background: var(--gray-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border-left: 4px solid var(--blue-primary);
}

.stakeholder-section {
    background: var(--gray-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 25px 0;
}

/* ===========================================
   CONTACT PAGE STYLES
   =========================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    padding: 35px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-form {
    max-width: 700px;
    margin: 40px auto;
    background: var(--gray-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===========================================
   CTA SECTIONS
   =========================================== */

.cta-section,
.partner-cta,
.partner-with-us {
    background: var(--gray-bg);
    color: var(--black);
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.cta-section h2,
.partner-cta h2,
.partner-with-us h2 {
    color: var(--blue-secondary);
    margin-bottom: 20px;
}

.cta-section p,
.partner-cta p,
.partner-with-us p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
    position: relative;
    z-index: 1;
}

.footer p,
.footer li {
    font-size: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 10px 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.link-arrow {
    color: var(--blue-primary);
    font-weight: 600;
    transition: all 0.2s;
}

.link-arrow:hover {
    text-decoration: underline;
}

.components-list {
    margin-top: 30px;
}

.component-item {
    display: flex;
    gap: 20px;
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.component-icon {
    font-size: 3rem;
    min-width: 60px;
}

.flagship-platform {
    background: var(--white);
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.platform-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.platform-image {
    max-width: 400px;
    margin: 0 auto;
}

.platform-image img {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-light);
    width: 100%;
    height: auto;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.future-item {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--blue-primary);
}

.solution-text {
    background: var(--blue-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    font-size: 1.1rem;
}

/* ===========================================
   PAGE ANIMATIONS
   =========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */

/* Base fade-in-up state */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Base slide-in-left state */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Base slide-in-right state */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Visible state triggered by JS */
.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Staggered delays for children (e.g. grids) */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Ensure hero content is visible immediately or handled separately
   if using the same class, but we likely want JS control.
   Adjusting existing animations to potential conflicts. */


body {
    animation: fadeIn 0.4s ease-out;
}

.hero,
.page-hero {
    animation: slideUp 0.6s ease-out;
}

.impact-card,
.contact-card,
.module-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.impact-card:hover,
.contact-card:hover,
.team-member:hover,
.module-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

/* ===========================================
   PROFESSIONAL ICON SYSTEM
   =========================================== */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--blue-bg);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--blue-primary);
    stroke-width: 1.5;
    fill: none;
}

.icon-lg {
    width: 80px;
    height: 80px;
}

.icon-lg svg {
    width: 40px;
    height: 40px;
}

/* ===========================================
   LONG TERM VISION TIMELINE & CHARTS
   =========================================== */

.visual-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--gray-light);
}

.timeline-row {
    position: relative;
    margin-bottom: 40px;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -39px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--blue-primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--blue-bg);
}

.timeline-row:hover .timeline-marker {
    background: var(--white);
    border-color: var(--blue-primary);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.timeline-content {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--blue-primary);
    box-shadow: var(--shadow-md);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-left: 2px solid var(--gray-light);
    border-bottom: 2px solid var(--gray-light);
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.timeline-content:hover::before {
    border-color: var(--blue-primary);
}

.timeline-date {
    display: inline-block;
    background: var(--blue-bg);
    color: var(--blue-primary);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.vision-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.vision-charts {
    align-self: end;
    /* Allign chart to the bottom of the grid */
}

/* Response styles for vision grid */
@media (max-width: 968px) {
    .vision-content-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Chart Styles */
.chart-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    margin-bottom: 30px;
    text-align: center;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 20px;
}

.bar-group {
    height: 100%;
    width: 15%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.bar {
    width: 100%;
    height: 0;
    /* JS animates this */
    background: var(--blue-bg);
    border-radius: 8px 8px 0 0;
    transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    min-height: 2px;
    /* Ensure line is visible at 0 */
}

.bar-label-year {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
}

.bar-label-val {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 4px;
}

/* Individual Bar Colors */
.bar[data-height="20%"] {
    background: var(--blue-light);
}

.bar[data-height="50%"] {
    background: var(--blue-primary);
}

.bar[data-height="80%"] {
    background: var(--blue-secondary);
}

.bar[data-height="100%"] {
    background: var(--black);
}

/* ===========================================
   STAKEHOLDER PYRAMID LAYOUT
   =========================================== */

.stakeholders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    /* Increased width to accommodate 3 columns */
    margin: 0 auto;
}

.stakeholder-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: calc(33.333% - 20px);
    /* 3 items per row with gap */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stakeholder-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Removed separate styling for last-child to keep them all in one line */

.stakeholder-card h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--blue-primary);
}

.stakeholder-card ul {
    list-style: none;
    padding: 0;
}

.stakeholder-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.stakeholder-card ul li::before {
    content: "•";
    color: var(--blue-primary);
    font-size: 1.5em;
    /* Larger bullet */
    position: absolute;
    left: 0;
    top: -5px;
}

@media (max-width: 768px) {
    .stakeholder-card {
        width: 100%;
    }

    .stakeholder-card:last-child {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .stakeholder-card {
        width: calc(50% - 15px);
    }

    /* On tablet, maybe center the last one again or keep grid flow */
    .stakeholder-card:last-child {
        width: 100%;
        max-width: 600px;
    }
}


/* ===========================================
   MOBILE NAVIGATION
   =========================================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    border-color: var(--blue-primary);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.header.scrolled .nav-toggle span {
    background: var(--gray-dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Wide screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text p {
        font-size: 1.4rem;
    }

    .intro-large {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet and below */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .header-flex {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .header nav.active {
        right: 0;
    }

    .header nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
        border-radius: 0;
        width: 100%;
        color: var(--gray-dark);
    }

    .header nav a:last-child {
        border-bottom: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-grid,
    .platform-content,
    .founder-content,
    .benefits-comparison {
        grid-template-columns: 1fr;
    }

    #countdown {
        flex-wrap: wrap;
    }

    .time-box {
        min-width: 80px;
    }

    .project-cta {
        flex-direction: column;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        width: 92%;
        padding: 40px 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-text {
        padding: 0 4%;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .page-hero {
        min-height: 100vh;
        padding: 80px 20px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .features-grid,
    .features-grid-detailed,
    .team-grid,
    .impact-grid,
    .mv-grid,
    .contact-info-grid,
    .metrics-grid,
    .challenges-grid,
    .values-grid,
    .future-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-box,
    .impact-card,
    .contact-card {
        padding: 24px;
    }

    .icon {
        width: 56px;
        height: 56px;
    }

    .icon svg {
        width: 28px;
        height: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .metric-number {
        font-size: 2.2rem;
    }

    #countdown {
        gap: 10px;
    }

    .time-box {
        min-width: 70px;
        padding: 15px;
    }

    #countdown span[id] {
        font-size: 2rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .container {
        width: 94%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .time-box {
        min-width: 60px;
        padding: 12px;
    }

    #countdown span[id] {
        font-size: 1.6rem;
    }
}