/* VARIABLES GLOBALS */
:root {
    --bg-dark: #000000;
    --bg-card: #111111;
    --text-main: #e0e0e0;
    --accent-blue: #00d4ff;
    --accent-green: #00ff9d;
    --border-color: #333333;
}

/* RESET BÀSIC */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVEGACIÓ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-nav {
    border: 1px solid var(--accent-blue);
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: var(--accent-blue);
    color: #000 !important;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 100px 20px 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text; /* <-- Aquesta és la línia estàndard que ens demanava! */
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #aaaaaa;
    max-width: 700px;
    margin: 0 auto;
}

/* BIFURCACIÓ (TARJETES) */
.bifurcation {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.bif-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 30px;
    width: 45%;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.bif-card:hover {
    transform: translateY(-10px);
}

.bif-card.public:hover {
    border-color: var(--accent-green);
}

.bif-card.privat:hover {
    border-color: var(--accent-blue);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.bif-card h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.bif-card.public h2 { color: var(--accent-green); }
.bif-card.privat h2 { color: var(--accent-blue); }

.bif-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
}

.bif-card p {
    color: #aaaaaa;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.btn-card {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-public {
    background-color: transparent;
    border: 1px solid var(--accent-green);
    color: #fff;
}

.btn-public:hover {
    background-color: var(--accent-green);
    color: #000;
}

.btn-privat {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: #fff;
}

.btn-privat:hover {
    background-color: var(--accent-blue);
    color: #000;
}
/* EFECTE DEL LOGO PRINCIPAL */
/* ACTUALITZACIÓ LOGO MÉS GRAN */
.hero-logo {
    width: 100%;
    max-width: 800px; /* <--- Ho he pujat de 320px a 500px perquè imposi! */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.4));
    animation: float 4s ease-in-out infinite;
}

/* ESTILS DELS BOTONS D'IDIOMA */
.lang-switch {
    margin-left: 15px;
    color: #555;
    font-weight: bold;
}

.lang-switch button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s;
}

.lang-switch button:hover {
    color: var(--accent-blue);
}

.lang-switch button.active {
    color: #fff;
    border-bottom: 2px solid var(--accent-green);
}

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

/* SECCIÓ: PER QUÈ NOVA-GRID */
.about-section {
    padding: 80px 20px 100px 20px;
    background-color: var(--bg-dark);
    text-align: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #aaaaaa;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
}

.about-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-card {
    background-color: #080808;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    width: 30%;
    min-width: 280px;
    text-align: left;
    transition: 0.3s;
}

.about-card:hover {
    border-color: var(--accent-blue);
    background-color: #0a0a0a;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.05);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.about-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* SECCIÓ DE SEGURETAT */
.security-section {
    background-color: #080808;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.security-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.security-section > p {
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.security-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sec-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    width: 30%;
    min-width: 250px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.sec-item:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.sec-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sec-item h4 {
    margin-bottom: 10px;
    color: #fff;
}

.sec-item p {
    color: #888;
    font-size: 0.9rem;
}

/* CONTACTE */
.contact-section {
    padding: 100px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-section p {
    color: #aaaaaa;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    color: #000;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

/* FOOTER */
footer {
    background-color: #050505;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.footer-logo span { color: var(--accent-blue); }

.footer-content p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 10px;
}
.footer-links a:hover {
    color: #fff;
}