#backgroundVideo, .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100; /* Keep these far back */
}

.overlay {
    background-color: rgba(8, 22, 56, 0.5); /* Blue background with opacity */
}

.content {
    position: relative;
    z-index: 100; /* Above the video and overlay */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A1237;
    --secondary-color: #1DAFFF;
    --accent-color: #00D4AA;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F7F9FB;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar:hover,
.navbar.scrolled {
    background: rgba(10, 18, 55, 0.9);
    backdrop-filter: blur(10px);
}

/* Dark navbar for non-home pages */
.navbar.dark-nav {
    background: rgba(10, 18, 55, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.dark-nav:hover {
    background: rgba(10, 18, 55, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white */
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio (9/16 = 0.5625) */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border: none;
  pointer-events: none;
  background: #000;
}

@media (max-aspect-ratio: 16/9) {
  .hero-video {
    width: 177.78vh; /* 100 * (16/9) */
    height: 100vh;
  }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 18, 55, 0.7);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    text-align: left;
    margin-left: 10%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #F1EDE2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.6;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    color: #F1EDE2;
}

.cta-button {
    background: transparent;
    color: #F1EDE2;
    border: 1px solid #F1EDE2;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.2px;
}

.cta-button:hover {
    background: rgba(241, 237, 226, 0.1);
    border-color: rgba(241, 237, 226, 0.8);
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

section p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.product-line-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-style: italic;
}

/* Labs Section */
.labs-section {
    background: var(--light-gray);
}

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

.lab-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lab-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

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

.lab-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* RehabHub Section */
.rehabhub-section {
    background: var(--white);
}

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

.rehabhub-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.rehabhub-text p {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-sales-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-sales-btn:hover {
    background: #00b894;
    transform: translateY(-2px);
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Products Section */
.products-section {
    background: var(--light-gray);
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.product-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    margin: 0;
    text-align: left;
}

/* Features Section */
.features-section {
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

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

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.contact-value {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #0099cc;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-align: left;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
}

/* Mission Section */
.mission-section {
    background: var(--white);
    padding: 5rem 0;
}

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

.mission-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.mission-text p {
    text-align: left;
    margin-bottom: 1rem;
}

/* Values Section - Horizontal Layout */
.values-row {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-col {
    flex: 1 1 0;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 6px 32px 0 rgba(9, 23, 57, 0.12), 0 1.5px 6px 0 rgba(9, 23, 57, 0.08);
    border: 1px solid #e5e7eb;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left !important;
}

.value-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: left !important;
}

@media (max-width: 1024px) {
    .values-row {
        flex-direction: column;
        gap: 2rem;
    }
    .value-col {
        padding: 2rem 1.2rem 1.5rem 1.2rem;
    }
}

/* Team Section */
.team-section {
    background: var(--white);
    padding: 5rem 0;
}

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

.team-member {
    text-align: center;
    padding: 1rem;
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.member-photo .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

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

.member-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-member.team-bottom {
    justify-self: center;
}

.team-bottom-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.team-bottom-row .team-member {
    min-width: 220px;
    max-width: 260px;
}

@media (max-width: 900px) {
    .team-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .team-bottom-row .team-member {
        max-width: 100%;
    }
}

/* Timeline Section */
.timeline-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0 2rem;
    flex: 1;
    max-width: 300px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Product Categories */
.categories-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--light-gray);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.category-tab.active,
.category-tab:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Products Category Sections */
.products-category {
    display: none;
    padding: 5rem 0;
}

.products-category.active {
    display: block;
}

.products-category:nth-child(even) {
    background: var(--light-gray);
}

/* Detailed Product Cards */
.products-detailed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.product-detailed-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.product-image-large {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-specs {
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
}

.spec-value {
    color: var(--text-light);
}

.learn-more-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.learn-more-btn:hover {
    background: #00b894;
    transform: translateY(-2px);
}

/* Technical Specifications Table */
.specs-section {
    background: var(--white);
    padding: 5rem 0;
}

.specs-table {
    margin-top: 3rem;
    overflow-x: auto;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.specs-table tr:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .hero-video[src*="youtube"] {
        width: 100vw;
        height: 100vh;
        transform: scale(1.3);
    }
    
    .hero {
        background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rehabhub-content,
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .value-number {
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: auto;
    }
    
    .product-detailed-card {
        flex-direction: column;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-tab {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .timeline-item {
        margin-left: 20px;
    }
    
    .timeline-content {
        margin: 0 0 0 0.5rem;
    }
}

/* Research Page Styles */
.research-areas {
    background: var(--white);
    padding: 5rem 0;
}

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

.research-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

.research-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.research-card p {
    color: var(--text-light);
    margin: 0;
}

.publications-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

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

.publication-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
}

.publication-year {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.publication-authors {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.publication-journal {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.collaborations-section {
    background: var(--white);
    padding: 5rem 0;
}

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

.collaboration-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.collaboration-card:hover {
    transform: translateY(-5px);
}

.collaboration-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

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

.collaboration-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Page Styles */
.contact-info-section {
    background: var(--white);
    padding: 5rem 0;
}

.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
}

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

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

.map-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.map-placeholder {
    background: var(--white);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.map-content {
    text-align: center;
    color: var(--text-light);
}

.map-content p:first-child {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Form Styles */
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.timeline, .timeline-content, .timeline-date, .timeline-content h3, .timeline-content p {
    text-align: left !important;
}
