:root {
    --bg-color: #0b0b0f;
    --text-color: #ffffff;
    --primary-color: #0070f3;
    --secondary-color: #333333;
    --font-main: 'Noto Sans', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(11, 11, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.lang-switcher button:hover, .lang-switcher button.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-container iframe,
#yt-player {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #e0e0e0;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #005bb5;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 300px;
    padding: 100px 20px;
    text-align: center;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
}

.feature h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* Stats */
.stats {
    display: flex;
    flex-wrap: wrap;
    background: #111;
    padding: 80px 20px;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    max-width: 300px;
    margin-bottom: 40px;
}

.stat-item h3 {
    font-size: 16px;
    color: #888;
    letter-spacing: 2px;
}

.stat-item p {
    font-size: 32px;
    font-weight: 800;
    margin: 10px 0;
}

.stat-item span {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

/* Common Page Padding */
.page-content {
    padding: 150px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 60vh;
}

.page-title {
    font-size: 42px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.news-content {
    line-height: 1.6;
    color: #ccc;
}

/* Footer McLaren Style */
.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    color: #a0aab2;
    border-top: none;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}

.footer-left {
    width: 70%;
    box-sizing: border-box;
    background-color: #171a1d;
    padding: 60px 40px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.footer-right {
    width: 30%;
    box-sizing: border-box;
    background-color: #2b3035;
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.footer-links-grid, .footer-social-grid {
    display: flex;
    gap: 100px;
}

.footer-list {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-list li {
    list-style-type: none !important;
}

.footer-list a {
    color: #a0aab2;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-bottom-left {
    margin-top: auto;
    padding-top: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-legal-links {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links li {
    list-style-type: none !important;
}

.footer-legal-links a {
    color: #a0aab2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .footer {
        flex-direction: column;
    }
    .footer-left {
        width: 100%;
        padding: 40px 20px;
    }
    .footer-right {
        width: 100%;
        padding: 40px 20px;
    }
    .footer-links-grid, .footer-social-grid {
        gap: 40px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #1a1a24;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    transition: transform 0.3s;
    cursor: pointer;
}

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

.product-card:hover .product-image-placeholder {
    transform: scale(1.05);
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    /* User can replace background-color with a background-image later */
}

.product-info {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.product-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Company Profile */
.company-profile {
    max-width: 800px;
    margin-top: 40px;
}

.company-info-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.company-info-list dt {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.company-info-list dd {
    margin: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-info-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .company-info-list dt {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Contact Form Table Layout */
.contact-form {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.contact-table th,
.contact-table td {
    border: 1px solid #e0e0e0;
    padding: 20px;
    text-align: left;
    vertical-align: middle;
}

.contact-table th {
    width: 30%;
    background-color: #f8f9fa;
    font-weight: bold;
    color: #111;
}

.th-sub {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.contact-table td {
    width: 70%;
    background-color: #ffffff;
}

.contact-table .required {
    color: #e53935;
    font-weight: bold;
    margin-left: 4px;
}

.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table select,
.contact-table textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.3s;
}

.contact-table input:focus,
.contact-table select:focus,
.contact-table textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.contact-table textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-table .input-row {
    display: flex;
    gap: 10px;
}

.contact-table .input-row input {
    flex: 1;
}

.select-wrapper {
    position: relative;
}

.form-actions {
    text-align: center;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 60px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s, filter 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    filter: brightness(0.9);
}

.btn-submit:active {
    transform: translateY(2px);
}

.btn-submit:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .contact-table th,
    .contact-table td {
        display: block;
        width: 100%;
    }
    .contact-table th {
        border-bottom: none;
    }
    .contact-table .input-row {
        flex-direction: column;
    }
}
