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

:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #4299e1;
    --text-color: #2d3748;
    --background-light: #f7fafc;
    --background-dark: #2d3748;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: linear-gradient(to bottom,
        rgba(26, 54, 93, 0.95),
        rgba(26, 54, 93, 0.9)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.gene-panel ul {
    list-style: none;
    padding: 0;
}

.gene-panel li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--primary-color);
    font-weight: 500;
}

.methodology {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Professionals Section */
.professionals {
    background-color: var(--background-light);
    padding: 80px 0;
}

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

.professional-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.professional-item:hover {
    transform: translateY(-5px);
}

/* Contact Section */
footer {
    background-color: var(--background-dark);
    color: white;
    padding: 80px 0 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--accent-color);
}

#contact-form, #popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, select, textarea {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--primary-color);
}

/* Popup Styles */
.popup-overlay {
    display: none;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
}

.thank-you-message {
    text-align: center;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 926px) {
    nav ul {
        display: none;
    }

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

    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

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

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

    .stat-grid, .process-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 95%;
        padding: 1.5rem;
    }

    .demo-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .recommendations {
        padding: 20px;
    }

    .recommendation-card {
        margin-bottom: 20px;
    }

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

    .mobile-menu {
        display: none;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 200px;
        background: linear-gradient(to bottom,
            rgba(26, 54, 93, 0.95),
            rgba(26, 54, 93, 0.9)
        );
        padding: 20px 30px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 998;
        transition: right 0.3s ease-in-out;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        margin: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu.active {
        display: block;
        right: 0;
    }

    .mobile-menu li {
        list-style: none;
        margin-bottom: 12px;
        opacity: 0;
        transform: translateX(20px);
        animation: slideIn 0.3s ease forwards;
    }

    .mobile-menu li:last-child {
        margin-bottom: 0;
    }

    .mobile-menu li a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
        display: block;
        padding: 6px 0;
    }

    .mobile-menu li a:hover {
        color: var(--accent-color);
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 18px;
        cursor: pointer;
        position: fixed;
        top: 22px;
        right: 20px;
        z-index: 999;
    }

    .burger-menu span {
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

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

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

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

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Add overlay when menu is active */
    .mobile-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .mobile-menu.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.logo-container {
    display: flex;
    align-items: center;
    text-align: center;
}

.logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: inherit;
}

.logo-img {
    width: auto;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.centered-logo {
    max-width: 100%;
    height: auto;
    width: 100px;
    align-items: center;
}

.centered-text {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    margin-bottom: 30px;
}

nav ul {
    display: flex;
    list-style-type: none;
    gap: 2rem;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin-top: -60px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(44, 82, 130, 0.85), 
        rgba(158, 158, 159, 0.85)); /* Matches your brand colors with opacity */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-stat {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (max-width: 926px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .hero-stat {
        font-size: 1.5rem;
    }
}

.hero-description {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    display: inline-block;
    width: auto;
    max-width: 90%;
}

.hero-description p {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Problem Section */
.problem {
    background-color: var(--background-light);
    padding: 80px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Solution Section */
.solution {
    padding: 80px 0;
}

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

.process-item {
    text-align: center;
    padding: 2rem;
}

.process-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--background-light);
    padding: 80px 0;
}

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

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Science Section */
.science {
    padding: 80px 0;
}

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

.gene-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.hero-description p {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
}

@media (max-width: 926px) {
    .hero-tagline {
        font-size: 2.5rem;
    }
    
    .hero-description {
        padding: 1.5rem;
        width: 95%;
    }
    
    .hero-description p {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 1.2rem 2.4rem;
        font-size: 1.2rem;
        margin-bottom: 60px;
    }
}

/* Demo Section */
.demo-section {
    background-color: white;
    padding: 80px 0;
    min-height: 100vh; /* Make it full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 40px;
    margin: 0 auto;
    flex: 1; /* Take up available space */
}

/* Ensure other sections maintain their padding */
.key-figures,
.advantages,
.white-image-section,
.team-section,
.bibliography {
    padding: 80px 0;
}

/* Part 1 Styles */
.pdf-upload-area, .analysis-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mock-pdf {
    position: relative;
    background: #f8fafc;
    padding: 40px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mock-pdf:hover {
    border-color: var(--primary-color);
    background: #edf2f7;
}

.mock-pdf i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 15px;
}

.pdf-preview {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.mock-pdf:hover .pdf-preview {
    display: block;
}

.medication-selector {
    text-align: center;
    padding: 20px;
}

.medication-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.med-button {
    padding: 15px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.med-button.selected {
    background: var(--primary-color);
    color: white;
}

.analyze-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.analyze-button.active {
    opacity: 1;
    cursor: pointer;
}

/* Part 2 Styles */
.recommendations {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.recommendation-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.status {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.recommended .status {
    background: #c6f6d5;
    color: #22543d;
}

.caution .status {
    background: #feebc8;
    color: #744210;
}

.avoid .status {
    background: #fed7d7;
    color: #742a2a;
}

.recommendation-card h3 {
    margin-top: 15px;
    color: var(--text-color);
    text-align: center;
}

.dosage {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.explanation {
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
}

.new-analysis-button {
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-content img {
    max-width: 100%;
    height: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 926px) {
    .demo-container {
        flex-direction: column;
        padding: 0;
    }

    .pdf-upload-area, .analysis-form {
        padding: 20px;
        width: 100%;
    }

    .medication-buttons {
        grid-template-columns: 1fr;  /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .recommendations {
        padding: 20px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recommendation-card {
        padding: 20px;
        margin: 0;
        width: 100%;
    }

    /* Adjust font sizes for mobile */
    .medication-selector h3 {
        font-size: 1.2rem;
    }

    .med-button {
        padding: 12px;
        font-size: 0.9rem;
    }

    .analyze-button {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Ensure the mock PDF preview doesn't overflow */
    .pdf-preview {
        width: 200px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Adjust container padding */
    .demo-section .container {
        padding: 0 15px;
    }
}

/* PDF popup responsive adjustments */
@media (max-width: 926px) {
    .pdf-popup .pdf-preview-full {
        max-width: 95%;
        height: auto;
    }

    .pdf-popup .close-popup {
        top: 10px;
        right: 10px;
    }
}

/* Key Figures Section */
.key-figures {
    background-color: #f8fafc; /* Very light blue */
    padding: 80px 0;
}

.figures-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.figure-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: calc(33.333% - 2rem);
    max-width: 400px;
}

.figure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.figure-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.figure-stat {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Update the expanded content for figure cards */
.expanded-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-color);
    color: white;
}

.figure-card:hover .expanded-content {
    opacity: 1;
    visibility: visible;
}

.expanded-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.expanded-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Add an info icon to indicate interactivity */
.figure-card::after {
    content: '\f05a'; /* Font Awesome info icon */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.figure-card:hover::after {
    opacity: 0;
}

/* Add these styles after the key-figures section styles */
.advantages {
    padding: 80px 0;
}

.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.advantage-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: calc(33.333% - 2rem);
    max-width: 400px;
}

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

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.advantage-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.advantage-link:hover {
    color: var(--accent-color);
}

.advantage-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.advantage-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 926px) {
    .advantage-card {
        flex-basis: calc(50% - 2rem);
    }
}

@media (max-width: 926px) {
    .advantage-card {
        flex-basis: 100%;
    }
}

@media (max-width: 926px) {
    .figure-card {
        flex-basis: calc(50% - 2rem);
        position: relative;
        overflow: hidden;
        height: 100%;    
    }
}

@media (max-width: 926px) {
    .figure-card {
        flex-basis: 100%;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.section-title.light {
    color: white;
}

/* Dark Section (Advantages) */
.dark-section {
    background-color: inherit;
    color: var(--text-color);
}

.dark-section .section-title {
    color: var(--primary-color);
}

.dark-section .figure-card {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-section .figure-stat {
    color: var(--text-color);
}

.dark-section .expanded-content {
    background: var(--primary-color);
    color: white;
}

/* White Image Section */
.white-image-section {
    background-color: #f8fafc; /* Very light blue */
    padding: 80px 0;
}

.full-width-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Demo Section Updates */
.demo-section .centered-text {
    font-size: 1.8em;
    max-width: 800px;
    margin: 10px auto;
}

.demo-container.part-2 {
    position: relative;
}

.next-section-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 10; /* Ensure arrow is above other content */
}

.next-section-arrow:hover {
    transform: translateX(-50%) translateY(5px);
}

.next-section-arrow i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Team Section */
.team-section {
    background-color: white;
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 3px solid var(--accent-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member .title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.team-member .bio {
    text-align: justify;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: #4a5568;
    padding: 0 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.linkedin-link {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

/* Contact Section Updates */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item p {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bibliography Section */
.bibliography {
    background-color: #f8fafc; /* Very light blue */
    padding: 80px 0;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reference-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reference-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reference-icon i {
    font-size: 1.8rem;
    color: white;
}

.reference-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.reference-preview {
    color: var(--text-color);
    font-size: 1rem;
}

.reference-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.reference-card:hover .reference-details {
    opacity: 1;
}

.reference-details p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.reference-details a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.reference-details a:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 926px) {
    .references-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

nav ul li a[href="#contact"] {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

@media (max-width: 926px) {
    .desktop-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 20px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    .burger-menu span {
        width: 100%;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
    }
}

.pdf-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.pdf-popup .pdf-preview-full {
    max-width: 90%;
    max-height: 90%;
}

.pdf-popup .close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Demo Section Text Adjustments */
@media (max-width: 926px) {
    .demo-section .centered-text {
        font-size: 1rem;
        margin: 5px auto;
        max-width: 90%;
    }

    .logo-container-demo {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Next Section Arrow Responsive Adjustments */
@media (max-width: 926px) {
    .next-section-arrow {
        font-size: 1.8rem;
        bottom: 10px;
        padding: 5px;
    }

    .next-section-arrow i {
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px); /* Reduced bounce height for mobile */
        }
        60% {
            transform: translateY(-5px);
        }
    }
}

/* Add/update mobile responsiveness for team section */
@media (max-width: 926px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }

    .team-member {
        max-width: 100%;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .team-member h3 {
        font-size: 1.5rem;
    }

    .team-member .title {
        font-size: 1rem;
    }

    .team-member .bio {
        text-align: center; /* Justified text can look odd on very narrow screens */
        font-size: 0.9rem;
        padding: 0 10px;
        line-height: 1.6;
    }
}

/* Hero Section Mobile Adjustments */
@media (max-width: 926px) {
    .hero .container {
        padding-bottom: 80px;
    }

    .hero-tagline {
        font-size: 2.5rem;
    }
    
    .hero-description {
        padding: 1.5rem;
        width: 95%;
    }
    
    .hero-description p {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 1.2rem 2.4rem;
        font-size: 1.2rem;
        margin-bottom: 60px;
    }
}

/* Update expanded content links to match bibliography style */
.expanded-content a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.expanded-content a:hover {
    background: white;
    color: var(--primary-color);
}

.expanded-content h3 {
    margin-bottom: 0.5rem;
}

.expanded-content p {
    margin-bottom: 1rem;
}

/* Specific styles for Advantages section */
.advantages {
    padding: 80px 0;
}

.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.advantage-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: calc(33.333% - 2rem);
    max-width: 400px;
}

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

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.advantage-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.advantage-link:hover {
    color: var(--accent-color);
}

.advantage-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.advantage-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 926px) {
    .advantage-card {
        flex-basis: calc(50% - 2rem);
    }
}

@media (max-width: 926px) {
    .advantage-card {
        flex-basis: 100%;
    }
}

/* Whitepaper Highlight - Simplified */
.whitepaper-highlight {
    margin-bottom: 40px;
    text-align: center;
}

.whitepaper-highlight h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.whitepaper-highlight p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.whitepaper-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.whitepaper-link:hover {
    color: var(--accent-color);
}

/* Add these media queries for height-based responsive design */
@media screen and (max-height: 824px) {
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description p {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    .hero .container {
        padding: 60px 20px;
    }

    /* Adjust header for smaller heights */
    header {
        padding: 5px 0;
    }

    .logo-img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Adjust body padding to account for smaller header */
    body {
        padding-top: 40px;
    }
}

/* Even smaller screens */
@media screen and (max-height: 640px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-description p {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}