/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a73e8;
    --secondary: #fbbc04;
    --dark: #202124;
    --light: #f8f9fa;
    --gray: #5f6368;
    --success: #34a853;
    
    /* Light mode variables (default) */
    --bg-color: #ffffff;
    --text-color: #202124;
    --card-bg: #f8f9fa;
    --header-bg: #ffffff;
    --footer-bg: #202124;
    --footer-text: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #e8eaed;
        --card-bg: #1e1e1e;
        --header-bg: #1e1e1e;
        --footer-bg: #000000;
        --footer-text: #e8eaed;
        --border-color: #3c4043;
        --shadow: rgba(0, 0, 0, 0.3);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

section {
    padding: 80px 0;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0d5bb9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

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

.btn-secondary:hover {
    background-color: #e6a800;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(45deg, #fbbc04, #ff6d01, #fbbc04);
    background-size: 200% 200%;
    color: var(--dark);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--shadow), 0 0 20px rgba(251, 188, 4, 0.6);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite, shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.floating-btn:hover {
    background-color: #e6a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(251, 188, 4, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(251, 188, 4, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(251, 188, 4, 0.4);
    }
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
}

.address {
    font-size: 0.9rem;
    color: var(--gray);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./assets/buyer+seller+damaged car.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* About Section */
.about {
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

/* How It Works Section */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.gallery h2 {
    margin-bottom: 2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Contact Form Section */
.contact {
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
}

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

.message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

/* FAQ Section */
.faq {
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 20px;
    background-color: var(--bg-color);
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Chatbot Section */
.chatbot {
    background-color: var(--dark);
    color: white;
    text-align: center;
}

.chatbot h2 {
    color: white;
}

.chatbot-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

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

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

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .theme-toggle .sun {
        display: block;
    }
    
    .theme-toggle .moon {
        display: none;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .contact-info {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .floating-btn {
        bottom: 15px;
        left: 15px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .theme-toggle {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .step {
        min-width: 100%;
    }
    
    .floating-btn {
        bottom: 10px;
        left: 10px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Additional styles for mobile menu when active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    padding: 20px;
    box-shadow: 0 5px 10px var(--shadow);
}