:root {
    --bg-color: #05060f;
    --card-bg: #0a0b1e;
    --primary: #8a2be2; /* Fiolet - zostawiamy jako tło/akcent drugorzędny */
    --accent: #ff4d4d;  /* ZMIANA: Cyjan -> Czerwony (główny akcent) */
    --accent-dim: rgba(255, 77, 77, 0.2); /* Czerwona poświata */
    --text-main: #ffffff;
    --text-dim: #a0a0c0;
    --grad: linear-gradient(135deg, #ff4d4d 0%, #800000 100%); /* Czerwony gradient dla przycisków */
    --danger: #ff4d4d;
    --success: #00ff88;
    --warning: #ffcc00;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtelne tło w tle - zmiana na czerwonawy odcień */
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 77, 77, 0.1) 0%, transparent 40%);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px; /* Zmieniono padding pionowy na 0, aby kontrolować wysokość */
    background: rgba(5, 6, 15, 0.95); /* Zwiększona nieprzezroczystość dla lepszego kontrastu logo */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 90px; /* Ustalona wysokość */
    top: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align logo and social icons to the right */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 10px;
    position: relative; /* Kontekst dla absolutnego pozycjonowania obrazka */
    height: 100%;
    text-decoration: none; /* Usunięcie podkreślenia linku */
}

/* SVG LOGO STYLES */
.shield-logo {
    height: 50px; /* Zmniejszono dla lepszej widoczności */
    width: auto;
    position: relative; /* ZMIANA: Statyczne pozycjonowanie */
    z-index: 1001;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); /* Cień dla lepszej widoczności */
    /* Usunięto transition i hover effect */
}

.shield-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linejoin: round;
}

.circuit-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
}

.circuit-node {
    fill: var(--accent);
}

.exclamation {
    fill: var(--accent);
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Logo Text Color: Ti (White) Warning (Red) */
.logo-text {
    color: #fff;
    margin-left: 10px; /* ZMIANA: Mniejszy margines */
}
.logo-text span { color: var(--accent); } /* Warning na czerwono */

/* NAV LINKS STYLES */
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 1.5rem;
    transition: 0.3s;
    font-size: 0.9rem;
    position: relative; /* Dla pseudo-elementu */
    padding-bottom: 5px; /* Odstęp dla podkreślenia */
}

/* Hover Effect - Red Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff; /* Opcjonalnie: zmiana koloru tekstu na biały przy hover */
}

.nav-links a:hover::after {
    width: 100%;
}

/* Social Header Icons */
.social-header-desktop {
    display: flex;
    gap: 15px;
}

.mobile-menu-social {
    display: none;
}

.social-header-mobile {
    display: none; /* Hidden by default on desktop */
    gap: 15px;
    margin-top: 5px;
}

.social-link {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr; /* Więcej miejsca dla wizualizacji */
    align-items: center;
    min-height: 100vh;
    padding: 0 10%;
    padding-top: 95px; /* ZMIANA: 90px navbar + 5px margines */
    margin-top: 5px; /* ZMIANA: 5px separacji od navbar */
    gap: 2rem;
}

.hero-content {
    z-index: 10;
    /* Animacja wejścia tekstu z PRAWEJ strony */
    animation: slideInFromRight 1.2s ease-out forwards;
    opacity: 0; /* Start niewidoczny */
}

.hero-tagline { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 1rem; font-weight: 700; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
/* Gradient tekstu w Hero też na czerwono */
.hero-content h1 span { background: linear-gradient(to right, var(--accent), #ff8888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { color: var(--text-dim); font-size: 1.1rem; max-width: 500px; margin-bottom: 2rem; }

/* UNIFIED BUTTON STYLE (OUTLINE STYLE) */
.btn-card, .btn-main {
    background: transparent;
    border: 2px solid var(--accent); /* Grubsza ramka dla lepszej widoczności */
    color: var(--accent);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-dim); /* Delikatna poświata */
}

.btn-card:hover, .btn-main:hover {
    background: var(--accent);
    color: #fff; /* Biały tekst na czerwonym tle */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.4);
}

/* --- NEW BIGGER VISUALS --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px; /* Wysokość kontenera */
    /* Animacja wejścia wizualizacji z LEWEJ strony */
    animation: slideInFromLeft 1.2s ease-out forwards;
    opacity: 0; /* Start niewidoczny */
}

/* Główny kontener z lekkim ruchem */
.cyber-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: gentle-float 6s ease-in-out infinite;
}

/* --- 1. SERVER STACK (Lewa strona) --- */
.server-stack {
    position: relative;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: perspective(1000px) rotateY(15deg); /* Lekki obrót 3D */
    z-index: 2; /* Ensure server is above streams */
}

.server-unit {
    height: 60px;
    background: linear-gradient(180deg, rgba(20, 20, 40, 1) 0%, rgba(10, 10, 30, 1) 100%);
    border: 2px solid #333; /* Neutral border */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

/* Główny unit serwera - świeci mocniej na czerwono */
.server-unit.main-unit {
    height: 80px;
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.4), inset 0 0 15px rgba(255, 77, 77, 0.2);
    z-index: 2;
}

/* Światła na serwerach */
.lights {
    display: flex;
    gap: 5px;
}
.lights span {
    width: 8px; height: 8px; border-radius: 50%;
    background-color: #333;
}
.u1 .lights span { background-color: var(--accent); animation: blink 2s infinite alternate; }
.u2 .lights span { background-color: var(--accent); animation: blink 3s infinite alternate-reverse; }
.processing span {
    background-color: var(--accent);
    box-shadow: 0 0 5px var(--accent);
    animation: rapid-blink 0.5s infinite alternate;
}

.server-base {
    height: 20px;
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
    opacity: 0.7;
}

/* --- 2. AI CHIP (Prawa strona) --- */
.ai-chip {
    width: 280px;
    height: 280px;
    background: rgba(10, 11, 30, 0.9); /* Slightly more opaque */
    border: 3px solid var(--accent);
    border-radius: 10px; /* More square like a GPU chip */
    position: relative;
    transform: perspective(1000px) rotateY(-15deg); /* Lekki obrót w drugą stronę */
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.2), inset 0 0 20px rgba(255, 77, 77, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Allow pins to stick out */
    transition: transform 0.3s ease; /* Smooth hover effect */
    z-index: 2; /* Ensure chip is above streams */
}

.ai-chip:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.05);
    box-shadow: 0 0 60px rgba(255, 77, 77, 0.4), inset 0 0 30px rgba(255, 77, 77, 0.2);
}

/* GPU Pins/Legs */
.ai-chip::before, .ai-chip::after {
    content: '';
    position: absolute;
    background-image: linear-gradient(90deg, gold 50%, transparent 50%);
    background-size: 10px 100%;
    z-index: -1;
}

/* Top/Bottom Pins */
.ai-chip::before {
    top: -10px; bottom: -10px; left: 20px; right: 20px;
    background-image: linear-gradient(90deg, gold 4px, transparent 4px);
    background-size: 12px 100%;
}

/* Left/Right Pins (simulated with box shadow or another element, simplified here) */


/* Wzory obwodów na chipie */
.circuits {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
            linear-gradient(var(--accent-dim) 1px, transparent 1px),
            linear-gradient(90deg, var(--accent-dim) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    border-radius: 8px;
}

.chip-core-container {
    width: 140px;
    height: 140px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--accent);
    border-radius: 4px; /* Square core */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.chip-core {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Pulsujące jądro AI */
.glow-pulse::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(20px);
    animation: core-pulse 3s ease-in-out infinite;
    z-index: -1;
}

/* --- 3. DATA STREAMS (Połączenie) --- */
.data-streams {
    position: absolute;
    top: 50%;
    left: 200px; /* Start od serwera */
    right: 260px; /* Koniec przy chipie */
    height: 100px;
    transform: translateY(-50%);
    z-index: 1; /* Behind server and chip */
}

.stream {
    height: 4px;
    background: linear-gradient(90deg, #800000, var(--accent));
    margin: 15px 0;
    position: relative;
    opacity: 0.7;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-dim);
}

/* Animacja przepływu danych */
.stream::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    opacity: 0.8;
    animation: data-flow 2s infinite linear;
}

/* Faster stream animation for hover effect */
.stream.fast-stream::after {
    animation-duration: 0.5s;
}

.s1::after { animation-delay: 0s; }
.s2::after { animation-delay: 0.5s; }
.s3::after { animation-delay: 1s; }


/* --- ANIMATIONS --- */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes rapid-blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
}

@keyframes core-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

@keyframes data-flow {
    0% { left: -30%; }
    100% { left: 130%; }
}

/* NEW ENTRANCE ANIMATIONS */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- SECTIONS COMMON --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--accent), #ff8888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Dodano obramowanie liter */
    -webkit-text-stroke: 0.5px white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* --- THREAT LANDSCAPE --- */
.threat-landscape {
    padding: 5rem 0;
    background: rgba(10, 11, 30, 0.5);
}

.threat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.threat-list {
    list-style: none;
}

.threat-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.threat-list li:hover {
    border-color: var(--danger);
    transform: translateX(10px);
    box-shadow: -5px 5px 15px rgba(255, 77, 77, 0.1);
}

.threat-list i {
    font-size: 2rem;
    color: var(--danger);
}

.threat-list h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.threat-list p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.chat-simulation {
    background: #1a1b2e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-message.user {
    background: rgba(255, 77, 77, 0.1);
    border-left: 3px solid var(--accent);
    color: #ddd;
}

.chat-message.bot.error {
    background: rgba(255, 77, 77, 0.1);
    border-left: 3px solid var(--danger);
    color: var(--danger);
}

.glitch {
    animation: glitch-anim 2s infinite;
    font-weight: bold;
}

@keyframes glitch-anim {
    0% { opacity: 1; }
    50% { opacity: 0.5; text-shadow: 2px 0 red; }
    100% { opacity: 1; }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* --- CORE CAPABILITIES --- */
.core-capabilities {
    padding: 5rem 0;
}

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

.capability-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capability-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.capability-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-card {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-top: auto;
}

.btn-card:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-dim);
}

/* --- SERVICE DETAIL PAGES --- */
.service-detail-section {
    padding: 5rem 0;
}

.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent); /* Czerwona ramka */
}

.feature-item h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.service-cta-box {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--accent);
}

/* --- LIVE SECURITY FEED --- */
.live-feed-section {
    padding: 5rem 0;
    background: rgba(5, 6, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* More space for map */
    gap: 2rem;
    background: #000;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    height: 500px;
}

.feed-log-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-header {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1.5fr 1.5fr;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #888;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.feed-log {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.log-entry {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1.5fr 1.5fr;
    padding: 8px 0;
    border-bottom: 1px solid #111;
    animation: fade-in 0.5s ease-out;
    align-items: center;
}

.col-time { color: #666; }
.col-type { font-weight: bold; }
.col-ip { color: var(--accent); }
.col-attack { color: #ffffff; } /* ZMIANA: Biały kolor dla ataku */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.world-map {
    background: #0a0b1e;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

/* World Map Background Image */
.map-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg'); /* Placeholder or use local asset if available */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: invert(1) hue-rotate(180deg); /* Make it look dark/cyber */
}

.map-point-active {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--danger);
    animation: ping 1s ease-out forwards;
    z-index: 10;
}

.map-label {
    position: absolute;
    color: var(--accent);
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.7);
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 11;
    animation: fade-out 2s forwards;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes fade-out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- SOCIAL PROOF --- */
.social-proof {
    padding: 4rem 0;
    text-align: center;
}

.stats {
    margin-bottom: 3rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: text-shadow 0.3s ease;
}

/* Glow effect for text on scroll */
.text-glow-active {
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
    animation: text-glow-pulse 2s ease-out forwards;
}

@keyframes text-glow-pulse {
    0% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 25px rgba(255, 77, 77, 0.5); }
    100% { text-shadow: 0 0 0 transparent; }
}

.stat-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dim);
}

/* --- FOOTER --- */
.main-footer {
    background: #020205;
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.certs {
    display: flex;
    gap: 10px;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    color: white;
    flex: 1;
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #fff;
    color: black;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.8rem;
}

/* Footer Logo & Social Column */
.footer-logo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right align for desktop */
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 120px;
    width: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 140px; /* Zwiększono z 100px */
        display: flex; /* ZMIANA: Użycie flexboxa do zmiany kolejności */
        flex-direction: column; /* ZMIANA: Tekst pierwszy, obrazek drugi */
    }

    .hero-content h1 { font-size: 3rem; }
    .hero-description { margin: 0 auto 2rem; }
    .nav-links { display: none; }
    .hero-visual { height: 400px; width: 100%; }
    .cyber-visual-container { transform: scale(0.8); }
    .data-streams { left: 180px; right: 240px; }
    .threat-grid { grid-template-columns: 1fr; }
    .feed-container { grid-template-columns: 1fr; height: auto; }
    .world-map { height: 200px; }

    /* Mobile Menu Styles */
    .navbar {
        padding: 1rem 5%;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        order: 1; /* Left side */
        flex: 0 0 auto; /* ZMIANA: Nie rozciągaj */
    }

    .logo {
        order: 2; /* After menu button */
        flex: 0 0 auto; /* ZMIANA: Nie rozciągaj */
        justify-content: flex-start; /* ZMIANA: Wyrównaj do lewej */
        margin-left: 20px; /* ZMIANA: 20px od menu button */
        cursor: pointer; /* ZMIANA: Pokazuje że jest klikalny */
    }

    .social-header-desktop {
        display: none; /* Hide desktop social icons on mobile */
    }

    .social-header-mobile {
        display: none; /* Hide mobile social icons from header bar */
    }

    /* If we want social icons under logo in mobile menu or somewhere else */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 6, 15, 0.95);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none; /* Hidden by default */
        z-index: 1001;
        padding-bottom: 50px;
    }

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

    .mobile-menu-social {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 2rem;
        justify-items: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-menu-social .social-link {
        font-size: 1.5rem;
    }

    /* Footer Mobile */
    .footer-logo-col {
        align-items: center; /* Center for mobile */
        margin-top: 2rem;
    }

    /* ZMIANA: Dostosowanie logo na mobile - STATYCZNE */
    .shield-logo {
        height: 40px; /* Mniejsze logo na mobile */
        position: relative; /* ZMIANA: Statyczne pozycjonowanie na mobile */
    }

    .logo-text {
        margin-left: 8px; /* ZMIANA: Mniejszy margines na mobile */
        font-size: 1.1rem;
        margin-top: 0;
    }

    .navbar {
        height: 70px; /* ZMIANA: Mniejsza wysokość navbara na mobile */
    }

    .logo {
        height: auto; /* ZMIANA: Dynamiczna wysokość */
    }
}

@media (max-width: 600px) {
    /* Na mobilkach upraszczamy wizualizację */
    .cyber-visual-container { flex-direction: column; transform: scale(0.7); gap: 20px;}
    .data-streams {
        position: relative; left: auto; right: auto;
        width: 50px; height: 100px; transform: rotate(90deg);
        margin: -20px 0;
    }
    .stream::after { animation: data-flow 1.5s infinite linear; }
    .section-title { font-size: 2rem; }

    .hero-cta-mobile {
        margin-top: 2rem;
        text-align: center;
    }

    /* ZMIANA: Styl przycisku mobilnego na btn-card */
    .hero-cta-mobile .btn-main {
        background: transparent;
        border: 1px solid var(--accent);
        color: var(--accent);
        padding: 0.8rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: 0.3s;
    }

    .hero-cta-mobile .btn-main:hover {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 0 15px var(--accent-dim);
    }
}

/* --- SUBPAGES STYLES (MERGED) --- */

/* Common Subpage Hero */
.hero-subpage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
    padding: 0 10%;
    padding-top: 95px; /* ZMIANA: 90px navbar + 5px margines */
    margin-top: 5px; /* ZMIANA: 5px separacji od navbar */
    gap: 2rem;
    position: relative;
    overflow: hidden;
    /* ZMIANA: Usunięto border i background, aby tło było takie samo jak na stronie głównej */
    border: none;
    background: transparent;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 900px) {
    .hero-subpage {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex; /* ZMIANA: Użycie flexboxa do zmiany kolejności */
        flex-direction: column; /* ZMIANA: Tekst pierwszy, obrazek drugi */
    }
}

/* Target Lock - Global for all subpage banners */
.target-lock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Increased by 30% from 390px */
    height: 500px; /* Increased by 30% from 390px */
    border: 2px dashed var(--accent); /* Default color, can be overridden */
    border-radius: 50%;
    animation: rotate-lock 60s linear infinite; /* Zmieniono z 10s na 60s */
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

@keyframes rotate-lock {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 1. Red Teaming Specifics */
.hero-red-team::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: pulse-red 5s infinite;
}

.hero-red-team .target-lock {
    border-color: var(--accent);
}

@keyframes pulse-red {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

.terminal-window {
    background: #0f0f1a;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.2);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg);
    z-index: 1;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; background: #333; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
    color: #a0a0c0;
    font-size: 0.9rem;
}

.cmd { color: var(--accent); }
.output { color: #fff; margin-bottom: 10px; display: block; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); animation: blink 1s infinite; }

@media (max-width: 900px) {
    .terminal-window { transform: none; margin-top: 2rem; }
}

/* 2. Vulnerability Scanning Specifics */
.hero-scan::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.1) 0%, transparent 60%);
    z-index: -1;
}

.hero-scan .target-lock {
    border-color: var(--accent);
}

.scanner-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(10, 11, 30, 0.8);
    border: 1px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.2);
    z-index: 1;
}

.code-block {
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #a0a0c0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.scan-beam {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: scan-down 3s linear infinite;
    opacity: 0.8;
}

@keyframes scan-down {
    0% { top: 0; }
    100% { top: 100%; }
}

.vuln-marker {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    padding: 2px 5px;
    color: #ff4d4d;
    display: inline-block;
    animation: pulse-vuln 2s infinite;
}

@keyframes pulse-vuln {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@media (max-width: 900px) {
    .scanner-visual { margin-top: 2rem; height: 300px; }
}

/* 3. AI Implementation Specifics */
.hero-impl::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-impl .target-lock {
    border-color: var(--accent);
}

.structure-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(10, 11, 30, 0.9);
    border: 2px solid var(--accent);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
    z-index: 2;
    transition: all 0.5s ease;
}

.node:hover {
    transform: scale(1.1);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.node.center { width: 100px; height: 100px; font-size: 2.5rem; border-color: var(--accent); color: var(--accent); z-index: 3; }

.node.n1 { top: 20%; left: 20%; animation: float-node 4s infinite ease-in-out; }
.node.n2 { top: 20%; right: 20%; animation: float-node 5s infinite ease-in-out 1s; }
.node.n3 { bottom: 20%; left: 20%; animation: float-node 4.5s infinite ease-in-out 0.5s; }
.node.n4 { bottom: 20%; right: 20%; animation: float-node 5.5s infinite ease-in-out 1.5s; }

@keyframes float-node {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, #800000, var(--accent));
    opacity: 0.3;
    z-index: 1;
    transform-origin: left center;
}

.c1 { top: 50%; left: 25%; width: 25%; height: 2px; transform: rotate(-35deg); }
.c2 { top: 50%; right: 25%; width: 25%; height: 2px; transform: rotate(35deg); transform-origin: right center; }
.c3 { top: 50%; left: 25%; width: 25%; height: 2px; transform: rotate(35deg); }
.c4 { top: 50%; right: 25%; width: 25%; height: 2px; transform: rotate(-35deg); transform-origin: right center; }

@media (max-width: 900px) {
    .structure-visual { margin-top: 2rem; height: 300px; }
}