:root {
    --primary-color: #007bff; /* Tech Blue */
    --secondary-color: #00d2d3; /* Cyan/Teal */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-light: #fff;
    --accent-color: #ff6b6b;
    --card-bg: #fff;
    --nav-bg: #fff;
    --hero-gradient-start: #f5f7fa;
    --hero-gradient-end: #c3cfe2;
}

body.dark-mode {
    --primary-color: #4da3ff;
    --secondary-color: #00e6e7;
    --dark-bg: #000000;
    --light-bg: #121212;
    --text-color: #e0e0e0;
    --text-light: #e0e0e0;
    --card-bg: #1e1e1e;
    --nav-bg: #1a1a1a;
    --hero-gradient-start: #1a1a1a;
    --hero-gradient-end: #2c3e50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: background-color 0.3s;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .navbar {
    background-color: rgba(26, 26, 26, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 55px; /* Increased size */
    width: auto;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-left: 12px;
    letter-spacing: 1px;
    display: none; /* Hide text on mobile if needed, or keep it */
}

@media (min-width: 768px) {
    .logo span {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    color: var(--text-color);
    position: relative;
}

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

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

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

/* Custom Language Selector */
.lang-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.lang-dropdown:hover {
    background-color: rgba(0,0,0,0.05);
}

body.dark-mode .lang-dropdown:hover {
    background-color: rgba(255,255,255,0.1);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 20px;
    display: block;
    color: var(--text-color);
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.lang-option:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

body.dark-mode .lang-option:hover {
    background-color: rgba(255,255,255,0.1);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

body.dark-mode #theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-text.centered {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

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

.science-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, background-color 0.3s;
}

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

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

/* Product Section */
.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

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

.product-showcase.no-image {
    display: block;
    text-align: center;
}

.product-details.full-width {
    max-width: 1000px;
    margin: 0 auto;
}

.product-details h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

.feature-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.feature-box {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: #ccc;
}

.specs {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
    color: #aaa;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: background-color 0.3s;
}

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

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Evidence Section */
.evidence-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.evidence-text h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.evidence-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

.evidence-highlight {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: rgba(0,123,255,0.1);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.evidence-highlight p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

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

.footer-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-info a {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 1rem;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}