/* General Reset and Base Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #222222;
    --border-color: #dddddd;
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

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

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

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

.btn-primary:hover {
    background-color: #0b5abf;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #2d8e47;
    transform: translateY(-2px);
}

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
}

.btn-text:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 180px;
}

.logo img {
    width: 100%;
}

.nav ul {
    display: flex;
    align-items: center;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

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

.nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav ul li a:hover:after, .nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services h2 {
    text-align: center;
}

.services h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: auto;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 1;
    padding-right: 30px;
}

.about-features {
    margin: 20px 0 30px;
}

.about-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Diagnostics Section */
.diagnostics {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.diagnostics-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.diagnostics-image {
    flex: 1;
    padding-right: 30px;
}

.diagnostics-content {
    flex: 1;
}

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

.feature {
    display: flex;
    align-items: center;
}

.feature img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Showroom Section */
.showroom {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.showroom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.showroom-content {
    flex: 1;
    padding-left: 30px;
}

.showroom-features {
    margin: 20px 0 30px;
}

.showroom-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.showroom-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.showroom-image {
    flex: 1;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.testimonials h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-slider {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin: 0 15px;
    text-align: left;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--text-light);
}

.testimonials-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-preview h2 {
    text-align: center;
}

.blog-preview h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.blog-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact .container {
    display: flex;
    justify-content: space-between;
}

.contact-content {
    flex: 1;
    padding-right: 30px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
}

.contact-icon img {
    width: 20px;
    height: 20px;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-light);
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

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

.social-links a img {
    width: 20px;
    height: 20px;
}

.contact-form {
    flex: 1;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    max-width: 200px;
    margin-bottom: 30px;
}

.footer-nav {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-nav-col {
    flex: 1;
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-nav-col h4 {
    color: white;
    margin-bottom: 15px;
    position: relative;
}

.footer-nav-col h4:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav-col ul li {
    margin-bottom: 10px;
}

.footer-nav-col ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-nav-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #aaa;
}

/* Blog Page Styles */
.blog-header {
    padding: 150px 0 50px;
    background-color: var(--bg-light);
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: 50px 0;
    padding-left: 15px;
    padding-right: 15px;
}

/* Article Page Styles */
.article {
    padding: 150px 0 50px;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-light);
    margin-bottom: 20px;
}

.article-date, .article-author {
    margin-right: 20px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.article-content h2 {
    margin-top: 40px;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 10px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Related Articles Section */
.related-articles {
    padding: 50px 0;
    background-color: var(--bg-light);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content h2:after {
    display: none;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.cta .btn-primary:hover {
    background-color: var(--bg-light);
}

/* Thank You Page */
.thank-you {
    padding: 150px 0 80px;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

/* Policy Pages */
.policy {
    padding: 150px 0 80px;
}

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

.last-updated {
    color: var(--text-light);
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    margin-top: 40px;
}

.policy-section h3 {
    margin-top: 20px;
}

.contact-list {
    list-style-type: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero .container,
    .about .container,
    .diagnostics-grid,
    .showroom .container,
    .contact .container {
        flex-direction: column;
    }

    .hero-content,
    .about-content,
    .diagnostics-content,
    .showroom-content,
    .contact-content {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 30px;
    }

    .hero-image,
    .about-image,
    .diagnostics-image,
    .showroom-image {
        margin-top: 30px;
    }

    .footer-nav-col {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        padding: 30px 0;
    }

    .nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 60px;
    }

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

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

    .footer-top {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 30px;
    }

    .footer-nav {
        flex-direction: column;
    }

    .footer-nav-col {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .testimonial {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }
}
