:root {
    --card-bg: #1e2d3d;
    --card-bg-light: #243447;
    --accent: #00c8ff;
    --text-primary: #f0f4f8;
    --text-muted: #c2d6e8;
    --border: rgba(0, 200, 255, 0.2);
}

body {
    background-image: url(bg_15.webp);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 56px 0 0;
    background-color: #111e2b;
    color: #333;
    background-attachment: fixed;
    background-position: left;
}

/* === NAV === */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(13, 26, 38, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topnav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.topnav-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.topnav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.topnav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.topnav-links a:hover,
.topnav-links a.active {
    color: var(--accent);
}

/* === HERO === */

.hero {
    background: linear-gradient(135deg, #0d1a26 0%, #1e2d3d 100%);
    color: var(--text-primary);
    padding: 100px 20px 70px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--accent);
}

.hero h1 {
    font-size: 2.6em;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === SECTIONS === */

section {
    margin: 30px auto;
    padding: 36px 30px;
    max-width: 1000px;
    background: var(--card-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    text-align: left;
}

h2 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: 0.4px;
}

h3 {
    color: var(--text-primary);
    margin-top: 28px;
    font-size: 1.1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.8;
}

section ul,
section ol {
    color: var(--text-muted);
    line-height: 1.8;
    padding-left: 20px;
}

section li {
    margin-bottom: 6px;
}

section li strong {
    color: var(--text-primary);
}

.section-intro {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

/* === NETWORK DIAGRAM === */

.network-diagram {
    background: var(--card-bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    text-align: left;
}

.network-diagram pre {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.8;
}

/* === HARDWARE === */

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.hardware-card {
    background: var(--card-bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.15);
}

.hardware-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.hardware-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 4px 0;
}

.hardware-card p strong {
    color: var(--text-primary);
}

.card-detail {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* === VLAN TABLE === */

.vlan-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.vlan-table th {
    background: var(--card-bg-light);
    color: var(--text-primary);
    padding: 14px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.vlan-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.vlan-table td strong {
    color: var(--text-primary);
}

.vlan-table tr:hover td {
    background: rgba(0, 200, 255, 0.05);
}

.vlan-10 { border-left: 4px solid #28a745; }
.vlan-20 { border-left: 4px solid var(--accent); }
.vlan-30 { border-left: 4px solid #ffc107; }
.vlan-40 { border-left: 4px solid #dc3545; }

/* === SERVICES === */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.service-card {
    background: var(--card-bg-light);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.15);
}

.service-card h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-card .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(40, 167, 69, 0.15);
    color: #4caf71;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.status-planned {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

/* === HIGHLIGHT BOX === */

.highlight-box {
    background: var(--card-bg-light);
    border-left: 3px solid var(--accent);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: var(--accent);
    margin-top: 0;
}

.highlight-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.highlight-box li {
    margin-bottom: 8px;
}

/* === TECH BADGES === */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    justify-content: flex-start;
}

.tech-badge {
    background: var(--card-bg-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tech-badge:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* === INFO BOX === */

.info-box {
    background: var(--card-bg-light);
    border-left: 3px solid var(--accent);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* === IMAGE GALLERY === */

.image-gallery {
    margin: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(#070f17, #070f17) padding-box,
                linear-gradient(to top right, rgba(0, 255, 47, 0.716), rgba(0, 80, 200, 0.803)) border-box;
    border: 1px solid transparent;
    box-shadow: -18px 18px 75px rgba(0, 255, 64, 0.434),
                18px -18px 75px rgba(0, 10, 200, 0.726),
                0 8px 32px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.4s ease;
}

.gallery-item:hover {
    box-shadow: -24px 24px 100px rgba(0, 255, 65, 0.5),
                24px -24px 100px rgba(0, 10, 200, 0.85),
                0 12px 48px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    display: block;
}

.gallery-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 200, 255, 0.04);
    border-top: 1px solid rgba(0, 200, 255, 0.15);
    padding: 12px 20px;
}

.gallery-caption::before {
    content: "◈";
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.gallery-caption p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === BACK LINK === */

.back-link {
    display: inline-block;
    margin: 20px 0 4px;
    padding: 10px 22px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 0.95rem;
}

.back-link:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: var(--accent);
}

/* === CONTACT === */

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.8;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hardware-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}
