/* --- CYBERPUNK / DIGITAL NEXUS THEME --- */

/* 1. Változók és Alapok */
:root {
    /* Színpaletta - Fekete/Kék/Lila */
    --bg-deep: #050a14;     /* Legmélyebb fekete/kék */
    --bg-dark: #0a1124;     /* Sötét háttér paneleknek */
    --bg-card: rgba(16, 24, 45, 0.7); /* Üveg kártya háttér */
    
    --accent-blue: #00f2ff;   /* Neon Cián/Kék */
    --accent-purple: #9d00ff; /* Neon Lila */
    --accent-blue-dim: rgba(0, 242, 255, 0.2);
    --accent-purple-dim: rgba(157, 0, 255, 0.2);

    --text-light: #e2e8f0;
    --text-muted: #8b949e;

    --font-tech: 'Rajdhani', sans-serif; /* Címsorokhoz */
    --font-body: 'Inter', sans-serif;    /* Szövegtörzshöz */

    --section-spacing: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Typography Defaults */
h1, h2, h3, h4, h5 { font-family: var(--font-tech); font-weight: 700; letter-spacing: 1px; color: #fff; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-accent-blue { color: var(--accent-blue); }
.text-accent-purple { color: var(--accent-purple); }
.text-gradient {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- 2. Háttér Effektek (Cyber Grid & Orbs) --- */
.cyber-grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0.5;
    pointer-events: none;
}
.cyber-grid-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-deep) 80%);
}
.energy-orb { position: fixed; border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.4; pointer-events: none; }
.orb-blue { top: -20%; left: -10%; width: 600px; height: 600px; background: var(--accent-blue); animation: pulseOrb 10s infinite alternate; }
.orb-purple { bottom: -20%; right: -10%; width: 700px; height: 700px; background: var(--accent-purple); animation: pulseOrb 12s infinite alternate-reverse; }
@keyframes pulseOrb { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.2); opacity: 0.5; } }

/* --- 3. Navigáció (Cyber Header) --- */
.system-status-bar {
    background: rgba(10, 17, 36, 0.9); border-bottom: 1px solid var(--accent-blue-dim);
    padding: 8px 0; font-size: 0.85rem; font-family: var(--font-tech);
}
.status-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 8px #22c55e; }
.pulse-green { animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.flex-between { display: flex; justify-content: space-between; }

.cyber-header {
    position: sticky; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 10, 20, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0; transition: 0.3s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-tech); font-size: 1.5rem; font-weight: 700; }
.logo-icon { font-size: 1.8rem; filter: drop-shadow(0 0 5px var(--accent-blue)); }
.text-thin { font-weight: 300; color: var(--text-muted); }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--accent-blue); transition: 0.3s; box-shadow: 0 0 10px var(--accent-blue);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--accent-blue); }

/* Dropdown */
.dropdown-trigger { position: relative; }
.cyber-dropdown {
    position: absolute; top: 100%; left: 0; background: var(--bg-dark);
    border: 1px solid var(--accent-blue-dim); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.3s;
    border-radius: 8px; overflow: hidden;
}
.dropdown-trigger:hover .cyber-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.cyber-dropdown li a { display: block; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cyber-dropdown li a:hover { background: var(--accent-blue-dim); color: var(--accent-blue); }
.cyber-dropdown li a::after { display: none; } /* Remove underline from dropdown */

/* Gombok */
.cyber-btn {
    padding: 10px 25px; border-radius: 4px; font-family: var(--font-tech);
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    position: relative; overflow: hidden; z-index: 1; transition: 0.4s;
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
}
.btn-glow-blue {
    background: var(--accent-blue-dim); color: var(--accent-blue); border-color: var(--accent-blue);
}
.btn-glow-blue:hover {
    box-shadow: 0 0 20px var(--accent-blue), inset 0 0 20px var(--accent-blue-dim);
    background: var(--accent-blue); color: var(--bg-deep);
}
.btn-glow-purple {
    background: var(--accent-purple-dim); color: var(--accent-purple); border-color: var(--accent-purple);
}
.btn-glow-purple:hover {
    box-shadow: 0 0 20px var(--accent-purple), inset 0 0 20px var(--accent-purple-dim);
    background: var(--accent-purple); color: white;
}
.btn-blue-fill {
    background: var(--accent-blue); color: var(--bg-deep); box-shadow: 0 0 30px var(--accent-blue-dim);
}
.btn-blue-fill:hover {
    transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-blue-dim);
}
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.bar { width: 30px; height: 3px; background: var(--accent-blue); transition: 0.3s; }

/* --- 4. Hero Section (Digital Portal) --- */
.hero-cyber {
    min-height: 90vh; display: flex; align-items: center; padding: var(--section-spacing) 0;
    position: relative; overflow: hidden;
}
.hero-content { display: flex; align-items: center; gap: 50px; }
.hero-text-panel { flex: 1; z-index: 2; }
.hero-visual-panel { flex: 1; display: flex; justify-content: center; perspective: 1000px; }

.cyber-subtitle {
    color: var(--accent-blue); font-size: 1.1rem; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 10px var(--accent-blue-dim);
}
h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; position: relative; }

/* Hologram Visual */
.hologram-container {
    position: relative; width: 400px; height: 400px; display: flex; justify-content: center; align-items: center;
    transform-style: preserve-3d; animation: holoFloat 6s infinite ease-in-out;
}
.holo-circle { position: absolute; border-radius: 50%; border: 2px solid; }
.outer { width: 100%; height: 100%; border-color: var(--accent-blue-dim); animation: spin 20s linear infinite; border-style: dashed; }
.inner { width: 70%; height: 70%; border-color: var(--accent-purple-dim); animation: spin 15s linear infinite reverse; border-style: dotted; }
.holo-icon { font-size: 8rem; color: var(--accent-blue); filter: drop-shadow(0 0 20px var(--accent-blue)); animation: pulseIcon 3s infinite; }
.floating-code-snippet {
    position: absolute; bottom: -40px; background: rgba(0,0,0,0.8); border: 1px solid var(--accent-blue);
    padding: 5px 15px; font-family: monospace; color: var(--accent-blue); font-size: 0.8rem;
    box-shadow: 0 0 15px var(--accent-blue-dim);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes holoFloat { 0%, 100% { transform: translateY(0) rotateX(10deg); } 50% { transform: translateY(-20px) rotateX(-10deg); } }
@keyframes pulseIcon { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* --- 5. Dashboard Readout (Counts) --- */
.dashboard-readout {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
    margin-top: -50px; position: relative; z-index: 10;
    padding: 30px; background: rgba(10, 17, 36, 0.8); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.readout-panel { display: flex; align-items: center; gap: 20px; padding: 10px; border-right: 1px solid rgba(255,255,255,0.05); }
.readout-panel:last-child { border-right: none; }
.readout-panel i { font-size: 2.5rem; filter: drop-shadow(0 0 10px currentColor); }
.readout-data .counter { font-family: var(--font-tech); font-size: 2.5rem; font-weight: 700; line-height: 1; display: block; }
.readout-data .label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- 6. Általános Szekció Stílusok --- */
.section-cyber { padding: var(--section-spacing) 0; }
.section-header { margin-bottom: 60px; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; text-transform: uppercase; position: relative; display: inline-block; }
.section-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- 7. Nexus Core (About & Services) --- */
.nexus-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; align-items: center; }
.dark-glass {
    background: var(--bg-card); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08); padding: 40px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); position: relative; overflow: hidden;
}
.dark-glass::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
    padding: 5px 15px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    font-family: var(--font-tech); border: 1px solid;
}
.tech-tag.blue { color: var(--accent-blue); border-color: var(--accent-blue-dim); background: var(--accent-blue-dim); }
.tech-tag.purple { color: var(--accent-purple); border-color: var(--accent-purple-dim); background: var(--accent-purple-dim); }
.cyber-link { color: var(--accent-blue); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.cyber-link:hover { gap: 10px; text-shadow: 0 0 10px var(--accent-blue); }

.nexus-services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; perspective: 1000px;
}
.hex-service {
    background: var(--bg-dark); padding: 30px 20px; text-align: center;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    transition: 0.4s; border: 1px solid rgba(255,255,255,0.05); position: relative;
}
.hex-service::after {
    content: ''; position: absolute; inset: 0; 
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    border: 2px solid transparent; transition: 0.4s; pointer-events: none;
}
.hex-service:hover { transform: translateY(-10px) scale(1.05); background: var(--accent-blue-dim); }
.hex-service:hover::after { border-color: var(--accent-blue); filter: drop-shadow(0 0 10px var(--accent-blue)); }
.hex-service i { font-size: 2rem; color: var(--accent-blue); margin-bottom: 15px; display: block; }
.hex-service h4 { font-size: 1.1rem; margin-bottom: 10px; }
.hex-service p { font-size: 0.9rem; color: var(--text-muted); }

/* --- 8. Projects Grid (Cyber Cards) --- */
.cyber-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.cyber-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 30px; position: relative; overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; min-height: 300px;
}
.card-badge {
    position: absolute; top: 20px; right: 20px; padding: 5px 10px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; border-radius: 4px;
}
.card-icon-large { font-size: 4rem; margin-bottom: auto; opacity: 0.2; transition: 0.4s; }
.card-content { position: relative; z-index: 2; margin-top: 20px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.card-action { font-weight: 700; display: inline-flex; align-items: center; gap: 5px; transition: 0.3s; }
.card-glow {
    position: absolute; top: 50%; left: 50%; width: 200%; height: 200%;
    background: radial-gradient(circle, transparent 30%, var(--bg-deep) 70%);
    transform: translate(-50%, -50%); opacity: 0; transition: 0.5s; z-index: 1;
}

/* Card Blue Variation */
.card-blue .card-badge { background: var(--accent-blue-dim); color: var(--accent-blue); }
.card-blue .card-icon-large { color: var(--accent-blue); }
.card-blue .card-action { color: var(--accent-blue); }
.card-blue:hover { border-color: var(--accent-blue); box-shadow: 0 10px 40px var(--accent-blue-dim); transform: translateY(-10px); }
.card-blue:hover .card-icon-large { opacity: 1; transform: scale(1.1) rotate(-10deg); filter: drop-shadow(0 0 20px var(--accent-blue)); }
.card-blue:hover .card-glow { background: radial-gradient(circle at center, var(--accent-blue-dim) 0%, transparent 70%); opacity: 0.4; }

/* Card Purple Variation */
.card-purple .card-badge { background: var(--accent-purple-dim); color: var(--accent-purple); }
.card-purple .card-icon-large { color: var(--accent-purple); }
.card-purple .card-action { color: var(--accent-purple); }
.card-purple:hover { border-color: var(--accent-purple); box-shadow: 0 10px 40px var(--accent-purple-dim); transform: translateY(-10px); }
.card-purple:hover .card-icon-large { opacity: 1; transform: scale(1.1) rotate(10deg); filter: drop-shadow(0 0 20px var(--accent-purple)); }
.card-purple:hover .card-glow { background: radial-gradient(circle at center, var(--accent-purple-dim) 0%, transparent 70%); opacity: 0.4; }

/* --- 9. Server Mainframe (Infrastructure) --- */
.mainframe-bg {
    background: linear-gradient(to bottom, var(--bg-deep), #02040a);
    position: relative;
}
.mainframe-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="40" height="40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h40v40H0z" fill="none"/%3E%3Cpath d="M0 39h40v1H0zM39 0v40h1V0z" fill="rgba(0, 242, 255, 0.05)"/%3E%3C/svg%3E');
    pointer-events: none;
}
.mainframe-layout { display: flex; align-items: center; gap: 60px; }
.mainframe-info { flex: 1; }
.mainframe-specs { list-style: none; border-left: 2px solid var(--accent-blue-dim); padding-left: 30px; }
.mainframe-specs li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; font-weight: 600; }
.mainframe-specs i { font-size: 1.3rem; filter: drop-shadow(0 0 5px currentColor); }

.mainframe-rack {
    flex: 1; background: rgba(10, 17, 36, 0.8); border: 3px solid var(--bg-dark);
    border-radius: 12px; padding: 20px; box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative; overflow: hidden;
}
.mainframe-rack::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent-blue); box-shadow: 0 0 20px var(--accent-blue);
    animation: scanline 4s infinite linear;
}
@keyframes scanline { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.server-unit {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px; border-radius: 6px; overflow: hidden; transition: 0.3s;
}
.server-unit:hover { border-color: var(--accent-blue); background: var(--accent-blue-dim); }
.unit-header {
    padding: 12px 20px; background: rgba(255,255,255,0.03); display: flex;
    justify-content: space-between; align-items: center; font-family: var(--font-tech); font-weight: 700;
}
.unit-body { padding: 20px; font-size: 0.9rem; }
.unit-body ul { list-style: none; margin-bottom: 15px; }
.unit-body li a { color: var(--accent-blue); font-family: monospace; }
.status-badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; }
.status-ok { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-warning { background: rgba(234, 179, 8, 0.2); color: #eab308; }

.server-load-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.load-progress { height: 100%; border-radius: 3px; box-shadow: 0 0 10px currentColor; }
.load-progress.blue { background: var(--accent-blue); }
.load-progress.purple { background: var(--accent-purple); }
.unit-active { border-left: 3px solid var(--accent-blue); }
.unit-inactive { border-left: 3px solid var(--text-muted); opacity: 0.7; }

/* --- 10. Footer (Cyber Footer) --- */
.cyber-footer { background: #02040a; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { font-family: var(--font-tech); font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: white; }
.brand-col p { color: var(--text-muted); margin-bottom: 25px; max-width: 300px; }
.footer-socials { display: flex; gap: 15px; }
.social-link {
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: 0.3s; border: 1px solid transparent;
}
.social-link.blue:hover { background: var(--accent-blue); color: var(--bg-deep); box-shadow: 0 0 20px var(--accent-blue); }
.social-link.purple:hover { background: var(--accent-purple); color: white; box-shadow: 0 0 20px var(--accent-purple); }

.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul a { color: var(--text-muted); transition: 0.3s; }
.footer-col ul a:hover { color: var(--accent-blue); padding-left: 5px; text-shadow: 0 0 10px var(--accent-blue-dim); }
.partner-list li { color: var(--text-light); font-weight: 600; }
.partner-logo-img { max-width: 120px; filter: grayscale(100%) brightness(200%); transition: 0.5s; opacity: 0.7; }
.partner-logo-img:hover { filter: grayscale(0%) brightness(100%); opacity: 1; }

.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }

/* --- 11. Scroll Animációk Osztályai --- */
[data-animate] { opacity: 0; transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="slide-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate].animated { opacity: 1; transform: none; }

/* --- 12. Mobil Optimalizáció (Responsive) --- */
@media screen and (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero-content { flex-direction: column; text-align: center; gap: 60px; }
    .cyber-subtitle { justify-content: center; }
    .hero-visual-panel { width: 100%; height: 300px; }
    .hologram-container { width: 300px; height: 300px; }
    .holo-icon { font-size: 6rem; }

    .nexus-grid, .mainframe-layout { grid-template-columns: 1fr; gap: 60px; }
    .readout-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 20px; }
    .footer-top-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: flex; z-index: 1001; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background: rgba(5, 10, 20, 0.98); backdrop-filter: blur(30px);
        flex-direction: column; justify-content: center; padding: 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); border-left: 1px solid var(--accent-blue-dim);
    }
    .nav-menu.active { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.5); }
    .nav-links { flex-direction: column; align-items: center; gap: 25px; }
    .nav-links a { font-size: 1.2rem; }
    .cyber-dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: none; padding-left: 20px; display: none; }
    .dropdown-trigger.active .cyber-dropdown { display: block; }
    .nav-actions { margin-top: 30px; }

    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background: var(--accent-purple); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background: var(--accent-purple); }

    h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .dashboard-readout { grid-template-columns: 1fr; margin-top: 0; }
    .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand, .footer-col h4 { justify-content: center; }
    .footer-socials { justify-content: center; }
    .logo-col { order: -1; margin-bottom: 30px; }
}

/* --- ÚJ CSS: Egyedi Megoldások Szekció --- */
.custom-offer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.offer-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.cyber-list {
    list-style: none;
    margin-top: 20px;
}

.cyber-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue-dim);
    transition: 0.3s;
}

.cyber-list li:hover {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent-blue);
    transform: translateX(10px);
}

/* Pricing Terminal Design */
.pricing-terminal {
    background: #0d1117;
    border: 1px solid var(--accent-purple-dim);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    font-family: monospace; /* Terminál érzet */
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    border-bottom: 1px solid var(--accent-purple-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

.terminal-body {
    padding: 30px;
    background: radial-gradient(circle at top right, rgba(157, 0, 255, 0.05), transparent);
}

.pricing-status {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    border: 1px dashed var(--accent-purple);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    background: rgba(157, 0, 255, 0.1);
}

.terminal-text {
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terminal-divider {
    height: 1px;
    background: var(--accent-purple-dim);
    margin: 20px 0;
}

.full-width {
    width: 100%;
    justify-content: center;
}


/* --- ÚJ CSS: Frissített Szerver Rack Design --- */
.mainframe-layout-vertical {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    perspective: 1000px; /* 3D hatáshoz */
}

.server-rack-unit {
    background: #0b1221;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: stretch;
    min-height: 80px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.server-rack-unit:hover {
    transform: scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-dim);
    z-index: 10;
}

/* Rack fülek a szélen (kozmetika) */
.rack-ears {
    width: 40px;
    background: #1a202c;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    align-items: center;
}
.rack-ears::before, .rack-ears::after {
    content: ''; width: 8px; height: 8px; background: #333; border-radius: 50%; box-shadow: inset 0 0 2px black;
}

.rack-content {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Állapotjelző LED */
.rack-status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pulse-green { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: blink 2s infinite; }
.pulse-yellow { background: #eab308; box-shadow: 0 0 10px #eab308; animation: blink 1s infinite; }

.rack-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
    font-family: var(--font-tech);
}
.rack-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Unit 1 Special (Physical Core) */
.unit-physical {
    border: 2px solid var(--accent-purple); /* Kiemeljük, hogy ez a fő gép */
    background: linear-gradient(90deg, #0b1221 0%, rgba(157, 0, 255, 0.05) 100%);
    min-height: 120px; /* Nagyobb legyen */
}

.rack-stats {
    margin-left: auto;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin-top: 2px;
    border-radius: 2px;
}

.bar-fill { height: 100%; border-radius: 2px; }
.bar-fill.blue { background: var(--accent-blue); }
.bar-fill.purple { background: var(--accent-purple); }

/* Osztott sor (SQL és Storage egymás mellett) */
.rack-split-row {
    display: flex;
    gap: 15px;
}

.half-unit {
    flex: 1;
}

/* Mobilnézet javítás az új elemekhez */
@media screen and (max-width: 992px) {
    .custom-offer-layout {
        grid-template-columns: 1fr;
    }
    
    .rack-split-row {
        flex-direction: column; /* Mobilon egymás alá kerülnek */
    }
    
    .rack-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .rack-stats {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }
}


/* --- CYBER SEPARATOR (Szekció Elválasztó) --- */
.cyber-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto; /* Középre igazítás */
    padding: 0 20px;
    opacity: 0.7;
    position: relative;
    z-index: 5;
}

/* A vonalak */
.cyber-separator .line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 15px var(--accent-blue);
}

/* A középső ikon */
.cyber-separator .node-icon {
    color: var(--accent-purple);
    font-size: 0.8rem;
    filter: drop-shadow(0 0 5px var(--accent-purple));
    animation: pulseNode 3s infinite;
}

@keyframes pulseNode {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Mobilnézeten kicsit rövidebb legyen */
@media screen and (max-width: 768px) {
    .cyber-separator {
        max-width: 80%;
    }
}

/* Aktív menüpont stílusa */
.nav-links a.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue-dim);
}

.nav-links a.active::after {
    width: 100%; /* A vonal teljes szélességű legyen */
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
}


/* =========================================
   RESPONSIVE & MOBILE OPTIMALIZÁCIÓ
   ========================================= */

/* --- 1. TABLET ÉS KISEBB LAPTOP (max 1024px) --- */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 95%; /* Jobban kihasználja a helyet */
    }

    /* Hero */
    h1 { font-size: 3.5rem; }
    .hero-content { gap: 30px; }
    .hologram-container { width: 350px; height: 350px; }
    
    /* Nexus Grid (Rólunk) */
    .nexus-grid {
        grid-template-columns: 1fr; /* Egymás alá kerül a szöveg és a hexagonok */
        gap: 40px;
    }
    .nexus-services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 oszlopos hexagon rács */
    }

    /* Egyedi Szolgáltatások */
    .custom-offer-layout {
        gap: 40px;
    }
}

/* --- 2. MOBIL ÉS TABLET (max 992px) --- */
@media screen and (max-width: 992px) {
    
    /* Általános */
    :root { --section-spacing: 60px; } /* Kisebb térközök a szekciók között */
    
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 2rem; }
    
    /* Navigáció - Hamburger menü aktiválása */
    .menu-toggle { display: flex; z-index: 1100; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background: rgba(5, 10, 20, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; padding: 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        border-left: 1px solid var(--accent-blue-dim);
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }
    .nav-menu.active { right: 0; }
    
    .nav-links { flex-direction: column; width: 100%; gap: 20px; }
    .nav-links a { font-size: 1.3rem; display: block; text-align: center; }
    .nav-actions { margin-top: 30px; width: 100%; display: flex; justify-content: center; }

    /* Dropdown mobilon: simán jelenjen meg a lista alatt */
    .cyber-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: transparent; box-shadow: none; border: none;
        padding-left: 0; display: none; margin-top: 10px;
    }
    .dropdown-trigger.active .cyber-dropdown { display: block; text-align: center; }
    .cyber-dropdown li a { border-bottom: none; padding: 5px 0; color: var(--text-muted); }

    /* Hero Szekció */
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text-panel { width: 100%; }
    .hero-btns { justify-content: center; }
    .cyber-subtitle { justify-content: center; }
    .hologram-container { margin: 0 auto; transform: scale(0.8); } /* Kicsinyítés */

    /* Egyedi Megoldások & Terminál */
    .custom-offer-layout { grid-template-columns: 1fr; }
    .pricing-terminal { margin-top: 20px; }
    
    /* Szerver Infrastruktúra */
    .mainframe-layout-vertical { width: 100%; }
    .rack-split-row { flex-direction: column; } /* SQL és Storage egymás alá */
    
    /* Footer */
    .footer-top-grid { grid-template-columns: 1fr 1fr; text-align: left; }
    .footer-brand { justify-content: flex-start; }
}

/* --- 3. TELEFON (max 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Betűméretek csökkentése */
    h1 { font-size: 2.5rem; }
    .lead-text, .offer-description { font-size: 1rem; }

    /* Dashboard (Counts) */
    .dashboard-readout {
        grid-template-columns: 1fr; /* 1 oszlop */
        padding: 20px;
        margin-top: 0; /* Ne lógjon bele a Hero-ba */
    }
    .readout-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        justify-content: flex-start;
        padding: 15px 0;
    }
    .readout-panel:last-child { border-bottom: none; }

    /* Nexus Core */
    .nexus-services-grid { grid-template-columns: 1fr; } /* Hexagonok egymás alá */
    
    /* Projektek */
    .cyber-card-grid { grid-template-columns: 1fr; } /* Kártyák egymás alá */

    /* Szerver Rack Finomhangolás */
    .rack-content { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rack-stats { width: 100%; margin-left: 0; margin-top: 10px; }
    .rack-mini-stat { margin-left: 0; margin-top: 5px; }

    /* Footer */
    .footer-top-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand { justify-content: center; }
    .footer-socials { justify-content: center; }
    .footer-col h4 { justify-content: center; }
    .footer-col ul a:hover { padding-left: 0; color: var(--accent-blue); } /* Mobilon ne csússzon el hoverre */
}

/* --- 4. KIS KIJELZŐS TELEFON (max 480px) --- */
@media screen and (max-width: 480px) {
    h1 { font-size: 2.1rem; }
    .btn-large { width: 100%; text-align: center; }
    .hologram-container { width: 280px; height: 280px; }
    .holo-icon { font-size: 5rem; }
    
    /* Elválasztó vonal mobilon */
    .cyber-separator { max-width: 90%; gap: 10px; }
}

/* =========================================
   SERVER MAINFRAME MOBIL JAVÍTÁS
   ========================================= */

@media screen and (max-width: 768px) {
    
    /* 1. A fő konténer elrendezése: Szöveg felül, gép alul */
    .mainframe-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* 2. A Rack szekrény kerete mobilon */
    .mainframe-rack {
        padding: 10px; /* Kevesebb belső térköz, hogy kiférjen a tartalom */
        width: 100%;
        box-shadow: none; /* Mobilon zavaró lehet a nagy árnyék */
        border-width: 1px;
    }

    /* 3. A szerver egységek (Unitok) */
    .server-unit {
        margin-bottom: 20px;
        height: auto !important; /* Engedjük, hogy akkorára nőjön, amekkora kell */
    }

    /* 4. A Fejléc (Cím és Státusz) átalakítása */
    .unit-header {
        flex-direction: column; /* Egymás alá kerüljön a név és az állapot */
        align-items: flex-start !important; /* Balra igazítás */
        gap: 10px;
        white-space: normal; /* Hosszú szöveg tördelése */
    }

    .unit-header i {
        display: none; /* Mobilon spóroljunk helyet: ikon elrejtése a fejlécben (opcionális) */
    }

    .status-badge {
        font-size: 0.65rem;
        align-self: flex-start; /* Bal oldalon marad */
        margin-top: 5px;
    }

    /* 5. Tartalom (Body) */
    .unit-body {
        padding: 15px;
    }

    .unit-body ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-left: 0;
    }

    .unit-body li {
        font-size: 0.9rem;
        word-break: break-all; /* Hosszú URL-ek tördelése */
    }

    /* 6. A Load Bar (Töltőcsík) javítása */
    .server-load-bar {
        margin-top: 15px;
        height: 8px; /* Kicsit vastagabb, hogy jobban látsszon */
    }

    /* 7. Ha van Split Row (SQL és Storage egymás mellett volt), most legyen egymás alatt */
    .rack-split-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .half-unit {
        width: 100%;
    }
}

/* --- TERMINAL CONTACT LIST STÍLUS --- */

.terminal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.term-contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    text-decoration: none;
}

.term-contact-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.term-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.term-contact-row:hover .term-icon {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-dim);
}

.term-data {
    display: flex;
    flex-direction: column;
}

.term-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: monospace;
}

.term-value {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: monospace;
}

/* Különböző színek hovernél */
.term-contact-row:nth-child(2):hover { /* Telefon */
    border-color: var(--accent-purple);
}
.term-contact-row:nth-child(2):hover .term-icon {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-dim);
}

.term-contact-row:nth-child(3):hover { /* Discord */
    border-color: #5865F2; /* Discord kék */
}
.term-contact-row:nth-child(3):hover .term-icon {
    color: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.3);
}