:root {
    --primary: #00d4ff;
    --bg: #0b0e14;
    --card-bg: #1a1f26;
    --text: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .logo {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header {
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    background: rgba(11, 14, 20, 0.9);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

#hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1517976487492-5750f3195933?auto=format&fit=crop&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: white;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--primary);
    color: black;
}

section {
    padding: 100px 10%;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 20px;
    gap: 20px;
}

.stat-item span {
    display: block;
    color: var(--primary);
    font-weight: bold;
}

.timeline {
    margin-top: 40px;
    border-left: 2px solid #333;
    padding-left: 20px;
}

.event {
    margin-bottom: 30px;
    position: relative;
    opacity: 0.5;
}

.event.active {
    opacity: 1;
    color: var(--primary);
}

.event.done {
    opacity: 0.8;
    text-decoration: line-through;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* Estils per a la pàgina de Models */
.container {
    padding: 120px 10% 50px;
}

.models-header {
    text-align: center;
    margin-bottom: 50px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
}

.model-card {
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.model-image {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    color: #444;
    overflow: hidden;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.model-info {
    flex: 1;
    padding: 25px;
}

.model-info h2 {
    margin: 10px 0;
    color: white;
}

.model-info ul {
    list-style: none;
    margin-top: 15px;
    font-size: 0.9rem;
}

.model-info li {
    margin-bottom: 5px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #444;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .container {
        padding: 100px 5% 40px;
    }

    .placeholder-img {
        height: 220px;
        min-height: 220px;
        font-size: 1.2rem;
    }

    .model-info {
        padding: 20px;
    }
}


.tag-active {
    background: var(--primary);
    color: black;
}

/* Estil per a models futurs */
.model-card.future {
    opacity: 0.7;
    filter: grayscale(1);
}

.model-card.future:hover {
    filter: grayscale(0.5);
}

/* Marca la pàgina activa al menú */
nav ul li a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}
