/* --- Core Styles --- */
:root {
    --bg-color: #020205;
    --text-color: #e0f7ff;
    --accent-color: #00ffff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Ensure canvas covering */
#canvas-container {
    position: fixed;
    /* Changed to fixed for better stability across pages */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 40;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Scroll & Sections (index.html specific mostly, but good to have) --- */
#scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    z-index: 20;
    scrollbar-width: none;
    /* Firefox */
}

#scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.scroll-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 12vh;
    pointer-events: none;
}

.section-content {
    pointer-events: auto;
    text-align: center;
    z-index: 30;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    background: transparent;
    border-radius: 16px;
    border: none;
}

.section-active .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Typography --- */
.product-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px currentColor;
}

.product-desc {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.metallic-text {
    background: linear-gradient(135deg, #E5E4E2 0%, #ffffff 50%, #C0C0C0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.metallic-border {
    border: 1px solid rgba(229, 228, 226, 0.3);
    box-shadow: 0 0 15px rgba(229, 228, 226, 0.1);
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    color: rgba(224, 247, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* --- Components --- */
.cta-button,
.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    border: 1px solid currentColor;
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
.cta-btn:hover {
    background: currentColor;
    color: #000;
    box-shadow: 0 0 30px currentColor;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    /* Color specific shadows handled in page styles or modifiers */
}

.interactive {
    pointer-events: auto;
}

.glass-panel {
    background: rgba(5, 12, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.1);
}

.atom-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.1s;
    z-index: 5;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- Animations --- */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-active {
    display: flex !important;
    animation: modalIn 0.3s ease-out forwards;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* --- Navigation & Dropdowns --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(5, 12, 25, 0.95);
    min-width: 200px;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-radius: 8px;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: rgba(224, 247, 255, 0.8);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.dropdown-content a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: modalIn 0.2s ease-out forwards;
}

/* --- Common Page Layout (for non-index pages) --- */
.page-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    /* Top margin for fixed nav */
    padding: 20px;
    min-height: calc(100vh - 200px);
    /* Leave space for footer */
}

/* Standardize headings for other pages */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

h1 span {
    font-family: var(--font-heading);
}

p,
li,
a {
    font-family: var(--font-body);
}

/* Article/Blog Styling */
article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(5, 12, 25, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
}

article h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
}

article p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.glass-nav {
    background: rgba(2, 2, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(2, 2, 5, 0.95);
    box-shadow: 0 4px 30px rgba(0, 200, 255, 0.1);
}