/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Automotive Theme */
    --primary: 220 100% 50%; /* #0066FF - Electric Blue */
    --primary-dark: 220 100% 40%; /* #0052CC */
    --secondary: 45 100% 50%; /* #FFCC00 - Warning Yellow */
    --accent: 0 100% 50%; /* #FF0000 - Racing Red */
    --dark: 220 15% 15%; /* #1F2937 - Dark Gray */
    --light: 220 15% 98%; /* #F8FAFC - Light Gray */
    --white: 0 0% 100%; /* #FFFFFF */
    --gray: 220 15% 60%; /* #64748B */
    --gray-light: 220 15% 85%; /* #CBD5E1 */
    --success: 120 50% 45%; /* #22C55E */
    --danger: 0 65% 55%; /* #EF4444 */
    --warning: 45 95% 50%; /* #F59E0B */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--dark));
    background-color: hsl(var(--white));
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: hsl(var(--gray));
    color: hsl(var(--white));
}

.btn-secondary:hover {
    background-color: hsl(var(--dark));
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.9);
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--dark));
    color: hsl(var(--white));
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    font-size: 2rem;
    color: hsl(var(--secondary));
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.cookie-modal-content {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
}

.cookie-category {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid hsl(var(--gray-light));
    border-radius: 0.5rem;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-category span {
    font-size: 0.9rem;
    color: hsl(var(--gray));
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Header */
.header {
    background-color: hsl(var(--white));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--dark));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: hsl(var(--white));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    z-index: -2;
}

.hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: hsl(var(--light));
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
}

.about-text h2 i {
    margin-right: 0.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature i {
    color: hsl(var(--success));
    font-size: 1.25rem;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* Services Section */
.services {
    text-align: center;
}

.services h2 {
    color: hsl(var(--primary));
    margin-bottom: 3rem;
}

.services h2 i {
    margin-right: 0.5rem;
}

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

.service-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    text-align: center;
}

.products h2 {
    color: hsl(var(--primary));
    margin-bottom: 3rem;
}

.products h2 i {
    margin-right: 0.5rem;
}

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

.product-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

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

.product-icon {
    font-size: 3rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.product-card h3 {
    color: hsl(var(--dark));
    margin-bottom: 1rem;
}

.price {
    display: inline-block;
    background-color: hsl(var(--secondary));
    color: hsl(var(--dark));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Reviews Section */
.reviews {
    text-align: center;
}

.reviews h2 {
    color: hsl(var(--primary));
    margin-bottom: 3rem;
}

.reviews h2 i {
    margin-right: 0.5rem;
}

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

.review-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.review-stars {
    color: hsl(var(--secondary));
    margin-top: 0.25rem;
}

.review-card p {
    font-style: italic;
    color: hsl(var(--gray));
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: hsl(var(--white));
    text-align: center;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter h2 i {
    margin-right: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact h2 {
    color: hsl(var(--primary));
    margin-bottom: 3rem;
}

.contact h2 i {
    margin-right: 0.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: hsl(var(--primary));
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: hsl(var(--dark));
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid hsl(var(--gray-light));
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkmark-custom {
    width: 18px;
    height: 18px;
    border: 2px solid hsl(var(--gray-light));
    border-radius: 3px;
    background-color: hsl(var(--white));
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark-custom {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.checkbox-label input[type="checkbox"]:checked + .checkmark-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: hsl(var(--dark));
    color: hsl(var(--white));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
}

.footer-section h4 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: hsl(var(--gray-light));
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: hsl(var(--white));
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: hsl(var(--primary-dark));
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--gray-light));
}

.footer-contact i {
    color: hsl(var(--primary));
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--gray));
    padding-top: 2rem;
    text-align: center;
    color: hsl(var(--gray-light));
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: hsl(var(--white));
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid,
    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Cookie Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: hsl(var(--white));
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--light));
}

.cookie-modal-header h3 {
    margin: 0;
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: hsl(var(--gray));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: hsl(var(--light));
    color: hsl(var(--primary));
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: hsl(var(--light));
    border-radius: 0.5rem;
    gap: 1rem;
}

.cookie-option-info h4 {
    margin: 0 0 0.5rem 0;
    color: hsl(var(--dark));
}

.cookie-option-info p {
    margin: 0;
    color: hsl(var(--gray));
    font-size: 0.9rem;
}

.cookie-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: hsl(var(--primary));
}

.cookie-toggle label {
    font-size: 0.8rem;
    color: hsl(var(--gray));
    text-align: center;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--light));
    justify-content: flex-end;
}

.cookie-modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
