:root {
    --lab-white: #FFFFFF;
    --chemical-blue: #0D47A1;
    --heat-red: #FF5252;
    --precision-silver: #BDBDBD;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--lab-white);
    color: var(--chemical-blue);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background-color: var(--chemical-blue);
    color: var(--lab-white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Header */
.header {
    background-color: var(--lab-white);
    border-bottom: 2px solid var(--precision-silver);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--chemical-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.molecule-logo {
    width: 50px;
    height: 50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chef-knife {
    font-size: 1.8rem;
    color: var(--heat-red);
    margin-left: 0.5rem;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--chemical-blue);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--heat-red);
}

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

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

.navbar-toggler {
    border-color: var(--chemical-blue);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 71, 161, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--lab-white) 0%, rgba(189, 189, 189, 0.1) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--chemical-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--chemical-blue);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--heat-red);
    border-color: var(--heat-red);
    color: var(--lab-white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #E53935;
    border-color: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

.btn-outline-primary {
    border-color: var(--chemical-blue);
    color: var(--chemical-blue);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--chemical-blue);
    color: var(--lab-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

/* Molecular Demo */
.molecular-demo {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05) 0%, rgba(255, 82, 82, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--precision-silver);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.1);
}

#molecularCanvas {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    background-color: var(--lab-white);
    margin-bottom: 1.5rem;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--chemical-blue);
    font-size: 0.95rem;
}

.form-range {
    height: 8px;
    background-color: var(--precision-silver);
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--heat-red);
    border: 2px solid var(--lab-white);
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
}

.form-range::-moz-range-thumb {
    background-color: var(--heat-red);
    border: 2px solid var(--lab-white);
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--lab-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--chemical-blue);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.feature-card {
    background-color: var(--lab-white);
    border: 2px solid var(--precision-silver);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--chemical-blue), var(--heat-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(13, 71, 161, 0.15);
    border-color: var(--chemical-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--chemical-blue), var(--heat-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--lab-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--chemical-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--chemical-blue);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--precision-silver);
}

.spec-label {
    font-weight: 600;
    color: var(--chemical-blue);
    opacity: 0.7;
}

.spec-value {
    font-weight: 700;
    color: var(--heat-red);
    font-size: 1.1rem;
}

/* Technology Section */
.technology {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.03) 0%, rgba(255, 82, 82, 0.03) 100%);
}

.tech-visualization {
    padding: 2rem;
}

.reaction-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.molecule {
    position: relative;
    width: 150px;
    height: 150px;
}

.atom {
    position: absolute;
    border-radius: 50%;
}

.atom.central {
    width: 40px;
    height: 40px;
    background-color: var(--chemical-blue);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.atom.orbit {
    width: 30px;
    height: 30px;
    background-color: var(--heat-red);
    box-shadow: 0 3px 8px rgba(255, 82, 82, 0.3);
}

.atom.orbit-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit1 3s linear infinite;
}

.atom.orbit-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: orbit2 3s linear infinite;
}

.atom.orbit-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit3 3s linear infinite;
}

@keyframes orbit1 {
    0% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    100% { transform: translateX(-50%) rotate(360deg) translateY(0); }
}

@keyframes orbit2 {
    0% { transform: translateY(-50%) rotate(0deg) translateX(0); }
    100% { transform: translateY(-50%) rotate(360deg) translateX(0); }
}

@keyframes orbit3 {
    0% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    100% { transform: translateX(-50%) rotate(360deg) translateY(0); }
}

.reaction-arrow {
    font-size: 3rem;
    color: var(--heat-red);
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.reaction-label {
    text-align: center;
    font-weight: 600;
    color: var(--chemical-blue);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.tech-description {
    font-size: 1.1rem;
    color: var(--chemical-blue);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    color: var(--chemical-blue);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-list i {
    color: var(--heat-red);
    font-size: 1.3rem;
}

/* Recipe Visualizer */
.recipe-visualizer {
    padding: 5rem 0;
    background-color: var(--lab-white);
}

.visualizer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.recipe-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--precision-silver);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--lab-white);
}

.step:hover {
    border-color: var(--chemical-blue);
    transform: translateY(-3px);
}

.step.active {
    border-color: var(--heat-red);
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.05), rgba(13, 71, 161, 0.05));
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--chemical-blue);
    color: var(--lab-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step.active .step-number {
    background-color: var(--heat-red);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--chemical-blue);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--chemical-blue);
    opacity: 0.7;
    margin: 0;
}

.visualization-area {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(255, 82, 82, 0.05));
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--precision-silver);
    min-height: 400px;
}

#recipeCanvas {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background-color: var(--lab-white);
}

/* Footer */
.footer {
    background-color: var(--chemical-blue);
    color: var(--lab-white);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--heat-red);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(255, 82, 82, 0.1);
    display: inline-block;
}

.footer-link:hover {
    color: var(--lab-white);
    background-color: var(--heat-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .recipe-steps {
        flex-direction: column;
    }
    
    .reaction-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reaction-arrow {
        transform: rotate(90deg);
    }
}

