:root {
    --primary-color: #004d40;
    /* Deep Chemical Green */
    --secondary-color: #00acc1;
    /* Modern Cyan */
    --accent-1: #fdd835;
    /* Yellow */
    --accent-2: #e91e63;
    /* Pink */
    --accent-3: #9c27b0;
    /* Purple */
    --dark-bg: #0a0f12;
    --text-light: #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Smooth Scroll Config */
html.lenis {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto;
}

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* Kimyasal Simge Efektleri */
.chemical-symbol {
    position: absolute;
    color: rgba(0, 172, 193, 0.2);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: -1;
}

/* Atom Animasyonu */
.atom {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.atom-nucleus {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-1);
}

.atom-orbit {
    position: absolute;
    border: 1px solid rgba(0, 172, 193, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.atom-electron {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(10, 15, 18, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    transition: all 0.5s ease;
    z-index: 1000;
}

.navbar-brand span {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 172, 193, 0.5);
}

.nav-link {
    position: relative;
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: var(--bs-nav-link-color);
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(0, 172, 193, 0.8);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    box-shadow: 0 0 10px var(--secondary-color);  
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Arkaplan katmanları için geçiş efekti */
#particles-js, #chemical-elements, #atoms-container {
    transition: filter 0.6s ease-out;
    will-change: filter;
}

/* Bulanıklık sınıfı */
.bg-blurred {
    filter: blur(5px) brightness(1.5);
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 77, 64, 0.2) 0%, transparent 70%);
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 172, 193, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(253, 216, 53, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero h1 {
    font-size: 5rem;
    background: linear-gradient(45deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Kimyasal Molekül Dekorasyonu */
.molecule-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    opacity: 0.05;
    z-index: -1;
}

.molecule-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-2);
    border-radius: 50%;
}

.molecule-bond {
    position: absolute;
    height: 3px;
    background: var(--secondary-color);
    transform-origin: left center;
}

.premium-btn {
    padding: 15px 40px;
    border: 2px solid var(--secondary-color);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
    background: rgba(0, 172, 193, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.premium-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 30px var(--secondary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: 0.5s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 172, 193, 0.1), transparent);
    transition: 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 172, 193, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Section Title */
.section-title {
    margin-bottom: 80px;
    text-align: center;
    position: relative;
}

.section-title span {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* Chemical Data Badge */
.chemical-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 172, 193, 0.2);
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    font-size: 0.8rem;
    margin: 5px;
    font-family: monospace;
}

#canvasContainer {
    position: relative;
    width: var(--size);
    height: var(--size);
    /* Neon derinlik hissi için hafif glow */
    filter: drop-shadow(0 0 20px rgba(0, 234, 255, 0.3));
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}