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

/* Material Colors */
:root {
    --primary: #1565C0; /* Deep Blue */
    --accent: #26A69A; /* Teal */
    --text: #212121;
    --hero-bg: #0D47A1; /* Dark Blue */
    --features-bg: #239f40; /* Deep Green */
    --bioscience-bg: #1976D2; /* Rich Blue */
    --breakthroughs-bg: #F57C00; /* Deep Orange */
    --contact-bg: #37474F; /* Darker Slate Gray */
    --footer-bg: #102027; /* Dark Slate */
}

/* Global Font */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #fff;
}

/* DNA Pattern Background */
.navbar, .features, .bioscience-details, .breakthroughs {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M10 10 C15 15, 25 15, 30 10 C25 5, 15 5, 10 10 M10 30 C15 25, 25 25, 30 30 C25 35, 15 35, 10 30" fill="none" stroke="rgba(21, 101, 192, 0.1)" stroke-width="1"/></svg>') repeat;
    position: relative;
}

/* Multicolor Gradient for h2 */
h2 {
    font-size: 40px;
    font-weight: 600;
    background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1565C0, #26A69A, #388E3C);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(21, 101, 192, 0.9);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 28px; /* Adjust font size as needed */
}

.hamburger {
    display: none;
    font-size: 40px;
    cursor: pointer;
}
.nav-links {
    display: flex;
    list-style: none;
    transition: max-height 0.3s ease-out;
    justify-content: center; /* Center items horizontally */
    width: 100%; /* Ensure full width */
    text-align: center; /* Center text within the links */
}
.nav-links.active {
    display: block;
}
.nav-links li {
    margin: 0 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center; /* Center items vertically */
        text-align: center; /* Center text in mobile view */
    }
}

/* Hero Section */
.hero {
    text-align: center;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(13, 71, 161, 0.8), rgba(21, 101, 192, 0.8));
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-dna {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/dna-pattern.svg') no-repeat center center; /* Replace with actual DNA PNG */
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--features-bg);
}
.features .feature-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.feature-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}
.feature-card p {
    font-size: 15px;
    font-weight: 300;
    color: #757575;
}

/* Bioscience Details Section */
.bioscience-details {
    padding: 60px 20px;
    background-color: var(--bioscience-bg);
    text-align: center;
}
.bioscience-details h2 {
    margin-bottom: 50px;
}
.bioscience-details .card-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}
.detail-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.detail-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.detail-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.detail-card p {
    font-size: 14px;
    font-weight: 300;
    color: #757575;
}

/* Breakthroughs Section */
.breakthroughs {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--breakthroughs-bg);
}
.breakthroughs .breakthrough-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}
.breakthrough-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.breakthrough-item:hover {
    transform: scale(1.03);
}
.breakthrough-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}
.breakthrough-item p {
    font-size: 15px;
    font-weight: 300;
    color: #757575;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--contact-bg);
    color: white;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    background: url('images/dna-pattern.svg') no-repeat center center; /* Replace with actual image */
    background-size: cover;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 71, 79, 0.7); /* Dark overlay for readability */
    z-index: 0;
}
.contact-info h3,
.contact-info p,
.contact-info .contact-details {
    position: relative;
    z-index: 1;
}
.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}
.contact-info p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #E0E0E0;
}
.contact-details {
    list-style: none;
}
.contact-details li {
    margin: 15px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.contact-details i {
    margin-right: 10px;
    color: var(--accent);
}
.contact-details a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-details a:hover {
    color: var(--accent);
}
.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text);
}
.form-group {
    text-align: left;
}
.form-group label {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
}
.form-group .required {
    color: #E57373;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #B0BEC5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #FAFAFA;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(21, 101, 192, 0.3);
    outline: none;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.contact .btn {
    background-color: var(--primary);
    color: white;
    align-self: flex-start;
    padding: 12px 30px;
    border-radius: 8px;
}
.contact .btn:hover {
    background-color: #0D47A1;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 40px 20px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto 40px;
    gap: 30px;
}
.footer-section {
    flex: 1;
    min-width: 220px;
    padding: 0 15px;
}
.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: white;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1565C0, #26A69A, #388E3C);
    border-radius: 2px;
}
.footer-section p {
    font-size: 14px;
    font-weight: 300;
    color: #B0B0B0;
    line-height: 1.5;
}
.footer-section a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section a:hover {
    color: var(--accent);
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin: 12px 0;
}
.footer-section ul li a {
    font-size: 14px;
    font-weight: 300;
}
.social-links a {
    color: white;
    font-size: 22px;
    margin: 0 12px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}
.footer-bottom p {
    font-size: 14px;
    font-weight: 300;
    color: #B0B0B0;
}
.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .feature-card, .detail-card, .breakthrough-item {
        width: 45%;
    }
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info, .contact-form {
        width: 100%;
        max-width: 600px;
    }
    .footer-container {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .footer-section {
        flex: 1 1 45%;
        min-width: 200px;
    }
}
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center; /* Center items vertically */
        text-align: center; /* Center text in mobile view */
    }
    .hamburger {
        display: block;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .feature-grid, .card-row, .breakthrough-grid {
        flex-direction: column;
        align-items: center;
    }
    .feature-card, .detail-card, .breakthrough-item {
        width: 85%;
        margin: 15px 0;
    }
    .contact-info, .contact-form {
        padding: 20px;
    }
    .contact .btn {
        align-self: center;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-section {
        flex: none;
        width: 100%;
        padding: 0;
    }
}