:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --accent-color: #e31937; /* Tesla red */
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
}

header {
    padding: 2rem;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.about-content a.external-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(227, 25, 55, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.about-content a.external-link:hover,
.about-content a.external-link:focus {
    background: var(--accent-color);
    color: #111;
    transform: translateY(-1px);
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to bottom, #111, #0a0a0a);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.card a img {
    cursor: zoom-in; /* Changes the mouse to a magnifying glass icon */
    transition: opacity 0.2s ease;
    width: 100%;
    height: auto;
    display: block;
}

.card a img:hover {
    opacity: 0.8; /* Subtle visual feedback on hover */
}

.video-container {
    margin-bottom: 4rem;
}

.video-placeholder {
    background: #222;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #444;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}