:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --bg-light: #1a2d5a;
    --primary: #0066ff;
    --primary-light: #00a8ff;
    --accent: #00d084;
    --accent-light: #1aff99;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: rgba(0, 102, 255, 0.15);
    --glass: rgba(15, 21, 53, 0.7);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-light), var(--accent-light));
}
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
canvas {
    display: block;
}
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.nav-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.logo:hover {
    transform: scale(1.05);
}
.logo-symbol {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link:hover::after {
    width: 100%;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
    border-radius: 2px;
}
.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 60px;
    position: relative;
    z-index: 10;
}
.hero-content {
    flex: 1;
    z-index: 10;
}
.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}
.hero-title .word {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}
.hero-title .word:nth-child(2) {
    animation-delay: 0.2s;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}
.cta-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}
.cta-button:hover::before {
    left: 100%;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 212, 132, 0.3);
}
.hero-animation {
    flex: 1;
    height: 500px;
    position: relative;
}
#moleculeCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(0, 102, 255, 0.2));
}
.explore {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.explore-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.explore-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.explore-card:hover::before {
    top: -20%;
    right: -20%;
}
.explore-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.1);
}
.card-icon {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}
.explore-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.explore-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}
.topic-count {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 212, 132, 0.1);
    border: 1px solid rgba(0, 212, 132, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}
.notes-lab {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.notes-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 60px;
}
.notes-search {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}
.notes-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.note-item:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}
.note-item.active {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
}
.note-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.note-count {
    font-size: 12px;
    color: var(--accent);
    background: rgba(0, 212, 132, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}
.note-viewer {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    min-height: 500px;
}
.note-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.note-content.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.note-content h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}
.note-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.note-body h4 {
    font-size: 18px;
    color: var(--accent);
    margin-top: 20px;
}
.note-body p {
    color: var(--text-secondary);
    line-height: 1.8;
}
.note-body ul {
    list-style: none;
    margin-left: 20px;
}
.note-body li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.note-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}
.note-highlight {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 132, 0.05) 100%);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    margin: 20px 0;
}
.note-highlight strong {
    color: var(--accent);
}
.lab-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.lab-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
}
.lab-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}
.lab-viz {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 132, 0.05) 100%);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.atom, .particle, .bond, .wave {
    position: absolute;
}
.atom {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: atomFloat 3s ease-in-out infinite;
}
.atom.a {
    left: 30%;
    background: rgba(0, 102, 255, 0.2);
}
.atom.b {
    right: 30%;
    background: rgba(0, 212, 132, 0.2);
    animation-delay: 0.5s;
}
@keyframes atomFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.bond {
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    animation: bondPulse 2s ease-in-out infinite;
}
@keyframes bondPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.particle {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: particleMove 2s ease-in-out infinite;
}
.particle:nth-child(1) {
    animation-delay: 0s;
}
.particle:nth-child(2) {
    animation-delay: 0.3s;
}
.particle:nth-child(3) {
    animation-delay: 0.6s;
}
@keyframes particleMove {
    0% {
        left: 20%;
        top: 50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 80%;
        top: 50%;
        opacity: 0;
    }
}
.wave {
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 102, 255, 0.3) 25%,
        rgba(0, 212, 132, 0.3) 50%,
        rgba(0, 102, 255, 0.3) 75%,
        transparent
    );
    animation: waveMove 2s ease-in-out infinite;
}
@keyframes waveMove {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
}
.lab-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.lab-card p {
    color: var(--text-secondary);
    font-size: 14px;
}
.about {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.about-content {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
}
.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}
.footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-link:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .nav-content {
        padding: 0 20px;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .menu-toggle {
        display: flex;
    }
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 40px 20px;
        gap: 40px;
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-animation {
        height: 300px;
    }
    .explore, .notes-lab, .lab-section, .about {
        padding: 60px 20px;
    }
    .section-title {
        font-size: 36px;
    }
    .notes-container {
        grid-template-columns: 1fr;
    }
    .about-content {
        padding: 40px 20px;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .hero-title .word {
        display: inline;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
