/* Metric Retro Noir Design System */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Roboto+Mono:wght@300;400;500&display=swap');

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --neon-cyan: #00f3ff;
    --neon-amber: #ffaa00;
    --text-main: #e0e0e0;
    --text-muted: #808080;
    --grid-line: rgba(0, 243, 255, 0.03);
    /* Subtle cyan grid */
    --border-dim: rgba(0, 243, 255, 0.1);
    --border-bright: rgba(0, 243, 255, 0.5);

    /* Fonts */
    --font-head: 'Rajdhani', sans-serif;
    --font-tech: 'Roboto Mono', monospace;

    /* Spacing */
    --grid-unit: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    /* Millimeter paper background pattern */
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;

    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    color: var(--neon-amber);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-dim);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid var(--border-dim);
    padding: 5px 15px;
    background: var(--bg-panel);
}

.logo span {
    color: var(--neon-cyan);
}

/* Compact Hamburger "Control Panel" */
.hamburger-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-switch a.active {
    color: var(--neon-cyan);
    font-weight: bold;
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-dim);
    background: var(--bg-panel);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--neon-cyan);
    transition: all 0.3s;
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    margin-top: 10px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Items with strict padding */
.nav-dropdown ul {
    list-style: none;
}

.nav-dropdown>ul>li {
    border-bottom: 1px solid var(--border-dim);
}

.nav-dropdown>ul>li:last-child {
    border-bottom: none;
}

.nav-dropdown a {
    display: block;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-dropdown a:hover {
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-cyan);
    padding-left: 20px;
    /* Slide effect */
}

/* Submenu styling */
.has-submenu>a::after {
    content: '+';
    float: right;
    font-weight: bold;
}

.submenu {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-dim);
}

.has-submenu.open .submenu {
    display: block;
}

.submenu a {
    font-size: 0.8rem;
    padding-left: 25px;
    color: var(--text-muted);
}

.submenu a:hover {
    color: var(--neon-amber);
}


/* Metric Card Style */
.metric-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-dim);
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
}

/* Corner markers */
.metric-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}

.metric-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    background: rgba(5, 5, 5, 0.7);
    padding: 40px;
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(3px);
}

/* Form Styles */
input,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-dim);
    color: var(--neon-cyan);
    font-family: var(--font-tech);
    margin-bottom: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

button {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 30px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

footer {
    border-top: 1px solid var(--border-dim);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
}