/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-dark: #050608;
    --bg-panel: #0f1116;
    --bg-card: #13151b;
    --accent-primary: #00ff88;
    --accent-secondary: #00b4d8;
    --text-main: #e0e0e0;
    --text-muted: #94a3b8;
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Orbitron', 'Courier New', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight { color: var(--accent-primary); }
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER --- */
header {
    background-color: rgba(5, 6, 8, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
    text-transform: uppercase;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--accent-primary); }

nav ul { display: flex; list-style: none; gap: 2.5rem; }

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

nav a:hover, nav a.active { color: var(--accent-primary); }
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs span {
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--accent-secondary);
}

/* --- ARTICLE META --- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--accent-secondary);
}

/* --- HERO SECTIONS --- */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(0, 180, 216, 0.1) 0%, rgba(5, 6, 8, 0) 60%),
    radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.05) 0%, rgba(5, 6, 8, 0) 60%);
    position: relative;
    margin-top: 80px;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-btn:hover {
    color: var(--accent-primary);
    transform: translateX(-5px);
}

/* --- SECTIONS --- */
section { padding: 6rem 0; }

.section-header { margin-bottom: 4rem; }
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin-top: 15px;
}

.content-block {
    background: var(--bg-panel);
    padding: 4rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 1px solid rgba(0, 255, 136, 0.1);
}

/* --- ARTICLE CONTENT --- */
article h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-display);
}

article h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

article h3 i { color: var(--accent-secondary); font-size: 1.2rem; }
article p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #b0b8c4; }

.content-list {
    list-style: none;
    margin: 2rem 0;
}

.content-list li {
    background: rgba(0, 255, 136, 0.05);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-primary);
    font-size: 1rem;
    color: #b0b8c4;
}

.content-list li strong {
    color: var(--accent-primary);
}

/* --- TABLES --- */
.table-container {
    overflow-x: auto;
    margin: 3rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { background: rgba(0, 180, 216, 0.1); color: var(--accent-secondary); padding: 1.5rem; text-align: left; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
td { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* --- FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.faq-item {
    background: var(--bg-card);
    padding: 2rem;
    border-left: 3px solid var(--accent-secondary);
}
.faq-question { font-weight: 700; color: #fff; margin-bottom: 0.5rem; display: block; font-size: 1.1rem; }
.faq-answer { color: var(--text-muted); font-size: 1rem; }

/* --- RELATED TOPICS --- */
.related-topics {
    background: var(--bg-panel);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-topics h3 {
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-topics h3 i {
    color: var(--accent-primary);
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.related-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-links a:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.related-links a i {
    color: var(--accent-secondary);
}

/* --- BLOG PAGE --- */
.page-header {
    margin-top: 120px;
    text-align: center;
    margin-bottom: 5rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p { color: var(--text-muted); font-size: 1.2rem; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img-top {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1a1d26, #0f1116);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-img-top i { font-size: 3rem; color: rgba(255,255,255,0.1); }

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: auto;
}

.read-link:hover { color: #fff; transform: translateX(5px); }

/* --- BUTTONS --- */
.btn-group { display: flex; gap: 1.5rem; }

.btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border: 1px solid var(--accent-primary);
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-cta:hover {
    background: var(--accent-primary);
    color: #000;
}

/* --- STATS STRIP --- */
.stats-strip {
    background: var(--bg-panel);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--accent-secondary); margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- FEATURE GRID (Services) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover { transform: translateY(-5px); border-color: var(--accent-secondary); }
.feature-card i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1.5rem; display: block; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; }

/* --- HOMEPAGE HERO (full height) --- */
.hero-home {
    height: 100vh;
    margin-top: 0;
}

.hero-home h1 {
    font-size: 5rem;
}

.hero-home p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

/* --- FOOTER --- */
footer {
    background: #020304;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--accent-primary); }

.copyright { text-align: center; color: rgba(255,255,255,0.2); font-size: 0.9rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-home h1 { font-size: 3rem; }
    .hero { height: auto; margin-top: 100px; padding: 3rem 0; }
    .hero-home { height: auto; margin-top: 80px; padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .content-block { padding: 2rem; }
    .faq-grid { grid-template-columns: 1fr; }
    nav ul { gap: 1.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2.5rem; }
    .related-links { grid-template-columns: 1fr; }
    .article-meta { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn-group { flex-direction: column; gap: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
}
