/* --- CYBERSHIELD STYLESHEET --- */
:root {
    --bg-dark: #050a14;
    --bg-card: #0f1623;
    --bg-sidebar: #0b111a;
    --primary: #00d4ff;
    --secondary: #0056b3;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Botões */
.btn { padding: 12px 24px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn-primary { background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%); color: #000; box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); }
.btn-full { width: 100%; display: flex; }

/* Navbar com Dropdowns */
.navbar { background-color: rgba(5, 10, 20, 0.96); border-bottom: 1px solid var(--border); position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 0; backdrop-filter: blur(10px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.7rem; font-family: var(--font-head); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo span, .logo i { color: var(--primary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--primary); }

/* Dropdown Submenus */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 230px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}
.dropdown-menu li a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.dropdown-menu li a:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary);
    padding-left: 24px;
}
.nav-links li:hover .dropdown-menu { display: block; }

/* Hero */
.hero { height: 85vh; min-height: 550px; background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1920&q=80') center/cover fixed; position: relative; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.75) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: 40px; }
.tagline { color: var(--primary); font-weight: bold; letter-spacing: 2px; font-size: 0.85rem; display: block; margin-bottom: 10px; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.15; color: #fff; text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; max-width: 650px; }
.hero-buttons { display: flex; gap: 15px; }

/* Cabeçalho de Páginas Internas */
.page-header { height: 35vh; min-height: 220px; background: linear-gradient(to bottom, rgba(5, 10, 20, 0.9), rgba(5, 10, 20, 0.96)), url('https://images.unsplash.com/photo-1510915228340-29c85a43dcfe?auto=format&fit=crop&w=1950&q=80') center/cover; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 60px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 2.6rem; color: #fff; margin-bottom: 8px; text-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.breadcrumbs { color: var(--primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Secções & Layouts */
.section-dark { padding: 75px 0; background-color: var(--bg-dark); }
.section-title { font-size: 2.2rem; margin-bottom: 10px; color: #fff; text-align: center; }
.section-subtitle { color: var(--primary); margin-bottom: 50px; text-align: center; font-weight: 600; letter-spacing: 1px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { background-color: var(--bg-card); padding: 35px 25px; border-radius: 6px; border: 1px solid var(--border); transition: 0.3s; position: relative; }
.card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--primary); opacity: 0; transition: 0.3s; }
.card:hover::before { opacity: 1; }
.icon-box { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { color: #fff; margin-bottom: 12px; font-size: 1.3rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.card-link { color: var(--primary); font-weight: bold; font-size: 0.85rem; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); padding: 25px; text-align: center; border-radius: 6px; }
.stat-number { font-size: 2.5rem; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.stat-desc { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.about-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 40px; margin-bottom: 40px; }
.about-box h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.6rem; }
.about-box p { color: var(--text-main); font-size: 1.05rem; margin-bottom: 15px; }

/* Contacto e Formulários */
.contact-box { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.contact-info { flex: 1; padding: 45px; background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), transparent); border-right: 1px solid var(--border); }
.contact-info h3 { color: #fff; margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; color: var(--text-main); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.contact-form { flex: 1.5; padding: 45px; }
.input-group { margin-bottom: 18px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 14px; background: var(--bg-dark); border: 1px solid var(--border); color: #fff; border-radius: 4px; outline: none; font-family: var(--font-body); font-size: 0.9rem; }
.input-group input:focus, .input-group textarea:focus, .input-group select:focus { border-color: var(--primary); }

.content-wrapper { display: flex; gap: 40px; padding: 60px 0; align-items: flex-start; }
.main-content { flex: 2; background: var(--bg-card); padding: 40px; border-radius: 8px; border: 1px solid var(--border); }
.sidebar { flex: 1; position: sticky; top: 100px; }
.widget { background: var(--bg-sidebar); padding: 25px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 25px; }
.widget h3 { color: #fff; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.service-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.service-list a:hover { color: var(--primary); background: rgba(0, 212, 255, 0.05); padding-left: 15px; }

/* Modal de Confirmação */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 35px;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.modal-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.modal-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

footer { padding: 35px 0; border-top: 1px solid var(--border); background-color: #020408; color: var(--text-muted); text-align: center; font-size: 0.9rem; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons, .contact-box, .content-wrapper { flex-direction: column; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar { width: 100%; order: 2; }
}