/* ============================================
   NETDEFENSE — Styles
   Palette: Military khaki / olive / sand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


* {quotes: „„“ „““ „‚“ „‘“ „»“ „«“ „›“ „‹“;} 
blockquote > p:before {content: open-quote;}
blockquote > p:after {content: close-quote;} 



:root {
    /* Dark Backgrounds */
    --bg-primary: #2f3a22;
    --bg-secondary: #39462b;
    --bg-card: #445336;
    --bg-card-hover: #4d5d3e;

    /* Light / Sand Backgrounds */
    --bg-sand: #c8b97a;
    --bg-sand-light: #d4c98e;
    --bg-sand-dark: #b5a568;
    --bg-sand-card: #bfb070;
    --bg-sand-card-hover: #b5a664;

    /* Accents */
    --accent-sand: #c2a94e;
    --accent-sand-dim: #a08a3a;
    --accent-olive: #6b7c3e;
    --accent-olive-light: #8b956d;
    --accent-olive-dark: #4a5628;

    /* Text (dark sections) */
    --text-primary: #f1ead3;
    --text-muted: #d5cfb8;
    --text-dim: #aba38a;

    /* Text (light/sand sections) */
    --text-on-sand: #1a1c14;
    --text-on-sand-muted: #3a3c28;
    --text-on-sand-dim: #5a5c40;

    /* Terminal */
    --terminal-bg: #0e100a;
    --terminal-text: #a4b06a;
    --terminal-prompt: #c2a94e;

    /* Misc */
    --border: #6a7958;
    --border-light: #768665;
    --border-sand: #a89a58;
    --border-sand-light: #b8aa68;

    /* Fonts */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Sizing */
    --container: 1100px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}


div:has(> blockquote) {
    margin: 10px 0;
    padding: 5px 20px;
/*    border-left: 5px solid #007bff; /* Modrý pruh */
    font-size: 25px;
    font-style: italic;
    font-family: serif;
    font-weight: bold;
    background: rgba(0,0,0,0.1);    
    /*color: #555;*/
    color: var(--text-primary);
}
blockquote>cite {
    text-align: right;
}


div.dark:has(> blockquote) {
    color: var(--text-on-sand);
}

div.block-quote p:has(> cite) {
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Overlay Effects (very subtle) --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.scanline-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(47, 58, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

.nav-logo-dot,
.footer-logo-dot {
    color: var(--accent-sand);
}

.hero-title-dot {
    color: var(--accent-olive-dark);
}

.section-title-dot {
    color: var(--accent-sand);
}

.section-light .section-title-dot {
    color: var(--accent-olive-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.2s ease;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent-sand);
    color: var(--bg-primary);
    border-color: var(--accent-sand);
}

.btn-primary:hover {
    background: var(--accent-sand-dim);
    border-color: var(--accent-sand-dim);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Dark buttons (for light sections) */
.btn-dark {
    background: var(--bg-primary);
    color: var(--bg-sand-light);
    border-color: var(--bg-primary);
}

.btn-dark:hover {
    background: var(--bg-secondary);
    border-color: var(--bg-secondary);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--text-on-sand-muted);
    border-color: var(--border-sand);
}

.btn-ghost-dark:hover {
    color: var(--text-on-sand);
    border-color: var(--text-on-sand-muted);
}

/* --- Section Labels --- */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-olive-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* --- Light (Sand) Section Overrides --- */
.section-light {
    background: var(--bg-sand);
}

.section-light .section-label {
    color: var(--accent-olive-dark);
}

.section-light .section-title {
    color: var(--text-on-sand);
}

/* --- Hero --- */
.hero {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 40px;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(1200px 420px at 15% -20%, rgba(255, 247, 212, 0.28), transparent 70%),
        linear-gradient(118deg, #d2c585 0%, #c8ba78 48%, #bcad67 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-olive-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(40px, 5.8vw, 62px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-on-sand);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-on-sand-muted);
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-motto {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-olive-dark);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Terminal --- */
.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #1a1c14;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-olive);
}

.terminal-title {
    font-size: 11px;
    color: var(--text-dim);
}

.terminal-body {
    padding: 16px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line .prompt {
    color: var(--terminal-prompt);
}

.terminal-line .cmd {
    color: var(--text-primary);
}

.terminal-line.output {
    color: var(--terminal-text);
}

.terminal-line.dim {
    color: var(--text-dim);
}

.terminal-line.accent {
    color: var(--accent-sand);
}

.terminal-line.muted {
    color: var(--text-muted);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.terminal-prompt {
    color: var(--terminal-prompt);
    margin-right: 8px;
    flex-shrink: 0;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    caret-color: var(--accent-sand);
    min-width: 0;
}

.terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--accent-sand);
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
    margin-left: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Services --- */
.services {
    position: relative;
    padding: 100px 0;
    background: #2f3a22;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2000&q=80");
    background-size: cover;
    background-position: center;
    filter: grayscale(0.45) saturate(0.7) contrast(1.08) brightness(0.52);
    transform: scale(1.03);
}

.services::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(19, 23, 14, 0.78) 0%,
        rgba(24, 30, 18, 0.72) 40%,
        rgba(20, 24, 15, 0.82) 100%
    );
}

.services .container {
    position: relative;
    z-index: 1;
}

.services .section-label {
    margin-bottom: 28px;
    color: #d9d3be;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 32px 28px;
    background: rgba(44, 54, 34, 0.62);
    border: none;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(231, 224, 194, 0.13);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:nth-child(odd) {
    background: rgba(52, 64, 40, 0.58);
}

.service-card:nth-child(even) {
    background: rgba(43, 55, 34, 0.68);
}

.service-card:hover {
    background: rgba(60, 73, 46, 0.78);
    box-shadow: inset 0 0 0 1px rgba(231, 224, 194, 0.24);
    transform: translateY(-2px);
}

.service-icon {
    color: #d8ca92;
    margin-bottom: 20px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #d3ccb6;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--bg-sand);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about .section-label {
    color: var(--accent-olive-dark);
}

.about .section-title {
    color: var(--text-on-sand);
}

.about .section-title-dot {
    color: var(--accent-olive-dark);
}

.about-text p {
    color: var(--text-on-sand-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 72px;
}

.value {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-olive-dark);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 2px;
}

.value h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-on-sand);
}

.value p {
    font-size: 14px;
    color: var(--text-on-sand-muted);
    line-height: 1.6;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 380px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 72px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: #3f4d30;
    border: none;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.contact-item:nth-child(even) {
    background: #4a5938;
}

.contact-item:hover {
    background: #556644;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-olive-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.brand-mark-footer {
    width: 200px;
    height: auto;
}

.footer-motto {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent-sand);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 32px;
        min-height: auto;
    }

    .hero-terminal {
        display: flex;
        justify-content: center;
    }

    .terminal {
        max-width: 100%;
    }

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

    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-values,
    .contact-details {
        padding-top: 0;
    }

    .section-title {
        font-size: 30px;
    }

}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(47, 58, 34, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .terminal-body {
        min-height: 240px;
        font-size: 12px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }
}
