:root {
    --bg-dark: #0f1115;
    --bg-card: #181b22;
    --bg-header: #12141a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-purple: #9d4edd;
    --accent-cyan: #00f5d4;
    --border-color: #262b36;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.brand-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.highlight-purple {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-cyan);
}

.header-search form {
    display: flex;
    background: #090a0d;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.header-search input {
    background: transparent;
    border: none;
    padding: 0.5rem 0.8rem;
    color: #fff;
    font-family: inherit;
}

.header-search button {
    background: var(--accent-purple);
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    color: #fff;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 17, 21, 0.95), rgba(24, 27, 34, 0.8)), url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    padding: 5rem 0;
    border-bottom: 2px solid var(--border-color);
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-purple), #7b2cbf);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

/* Section Common */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-cyan);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
}

.card-image-placeholder {
    height: 180px;
    background: #20242e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.card-body {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card-title a {
    color: #fff;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent-purple);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 6px;
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    background: #20242e;
    border-color: var(--accent-cyan);
}

/* Simulation Section Highlight */
.sim-box {
    background: linear-gradient(135deg, #181b22 0%, #201a2e 100%);
    border-left: 4px solid var(--accent-purple);
    padding: 2.5rem;
    border-radius: 6px;
}

/* Legal & Form Pages */
.legal-content, .contact-form-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input, .form-group textarea {
    background: #090a0d;
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success { background: #1b4332; color: #75b798; border: 1px solid #2d6a4f; }
.alert-error { background: #4a121a; color: #ea868f; border: 1px solid #842029; }

/* Footer */
.site-footer {
    background: #090a0d;
    border-top: 2px solid var(--border-color);
    margin-top: auto;
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    background: #050608;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--bg-header);
        border-bottom: 2px solid var(--border-color);
        padding: 1.5rem;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 1rem; }
    .header-search { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
}