:root {
    --primary-color: #1A2C49;
    /* Deep Navy from Logo */
    --secondary-color: #00A896;
    /* Science Teal accent */
    --text-color: #333333;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --accent-color: #3B82F6;
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo img {
    height: 70px;
    /* Increased height for the full logo */
    width: auto;
    max-width: 280px;
    /* Prevent overly wide logo */
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.08);
    /* Slightly more dynamic hover */
}

.logo span {
    display: none;
    /* Logo image now contains the text */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 10rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #233a61;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 44, 73, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Product Section */
.product {
    padding: 8rem 0;
    background: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.product-features {
    list-style: none;
    margin: 2rem 0;
}

.product-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.product-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* App Mockup Rendering */
.app-mockup {
    background: #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mockup-header {
    background: #e2e8f0;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-bubble.left {
    background: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble.right {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Research Cards */
.research {
    background: var(--light-bg);
    padding: 6rem 0;
}

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

.research-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.research-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.research-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-card {
    background: var(--primary-color);
    color: white;
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-detail {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-detail a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.large {
    width: 100%;
    text-align: center;
    background: var(--secondary-color);
    font-size: 1.1rem;
    color: white;
    /* Ensure text is visible */
}

/* Research Detail Styling */
.research-papers {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.paper-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.paper-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.paper-info p {
    font-size: 0.9rem;
    color: #64748b;
}

.paper-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo-img {
    height: 55px;
    /* Increased for the combined logo */
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #64748b;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 2rem;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-img-placeholder {
    height: 250px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.team-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-card .bio {
    padding: 0 2rem;
    font-size: 0.95rem;
    color: #64748b;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
    }
}