:root {
    --bg-navy: #1a3a5a;
    --bg-darker: #0d1f33;
    --accent-coral: #ff7f7f;
    /* rgba(255, 126, 121, 1) */
    --text-white: #f0f0f0;
    /* rgba(240, 240, 240, 1) */
    --glass-bg: rgba(26, 58, 90, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Roboto Slab', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    background-color: var(--bg-navy);
    color: var(--text-white);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
}

/* Background & Atmosphere */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 120%);
    pointer-events: none;
    z-index: -1;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Typography */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--accent-coral);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-coral);
    padding-left: 15px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: rgba(13, 31, 51, 0.9);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: fixed;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 127, 127, 0.5));
    animation: rotateGear 20s linear infinite;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-white);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(240, 240, 240, 0.6);
    font-family: var(--font-mono);
    font-size: 1rem;
    display: block;
    padding: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-coral);
    background: rgba(255, 127, 127, 0.1);
    box-shadow: 0 0 10px rgba(255, 127, 127, 0.2);
}

.nav-footer {
    margin-top: auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #00ff00;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Main Content */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 3rem;
}

.section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Glassmorphism Cards */
.blur-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 126, 121, 0.2);
    border-color: rgba(255, 126, 121, 0.3);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text .title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(26, 58, 90, 0.8);
}

.hero-text .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    color: rgba(240, 240, 240, 0.8);
}

.btn-primary {
    background: transparent;
    color: var(--accent-coral);
    border: 2px solid var(--accent-coral);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-coral);
    color: var(--bg-navy);
    box-shadow: 0 0 20px var(--accent-coral);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wafer-model {
    width: 300px;
    height: 300px;
    background: rgba(10, 20, 30, 0.8);
    border-radius: 50%;
    position: relative;
    border: 2px solid var(--accent-coral);
    box-shadow: 0 0 30px rgba(255, 127, 127, 0.2);
    overflow: hidden;
}

.wafer-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-coral);
    box-shadow: 0 0 10px var(--accent-coral);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* Bunker Tech */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-card {
    text-align: center;
}

.icon-container {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Spec Table */
.spec-container {
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.spec-table th {
    color: var(--accent-coral);
    font-size: 0.9rem;
}

.status-ok {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dash-card h4 {
    color: rgba(240, 240, 240, 0.6);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.big-stat {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.full-width {
    grid-column: span 3;
}

.log-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #4CAF50;
    max-height: 150px;
    overflow-y: auto;
}

.log-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    padding-bottom: 0.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        justify-content: space-between;
    }

    .logo-container {
        margin-bottom: 0;
        flex-direction: row;
    }

    .logo-img {
        width: 40px;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .nav-links {
        display: none;
        /* Hide for now on mobile or add hamburger menu */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text .title {
        font-size: 2.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .wafer-model {
        margin-bottom: 2rem;
    }
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(240, 240, 240, 0.4);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Contact Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-coral);
    font-family: var(--font-mono);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(13, 31, 51, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-coral);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.message-box {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.message-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.message-error {
    background: rgba(255, 127, 127, 0.1);
    border: 1px solid var(--accent-coral);
    color: var(--accent-coral);
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(240, 240, 240, 0.9);
    margin-bottom: 2rem;
}