/* ========================================
   Car Toys Website - Professional Styling
   Theme: Black & Blue with White Accents
   ======================================== */

/* CSS Variables for Color Theme */
:root {
    --primary-black: #000000;
    --primary-blue: #0066cc;
    --dark-blue: #003366;
    --light-blue: #3399ff;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-gray: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
}

/* Header Styles - Black with Blue Underline */
header {
    background-color: var(--primary-black);
    border-bottom: 4px solid var(--primary-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--primary-blue);
    margin-right: 10px;
    font-size: 2rem;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* White Hover Effect for Links */
nav a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Blue Underline Animation on Hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* Main Container */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-blue);
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

/* Bullet Lines */
.sidebar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.sidebar li:hover::before {
    width: 16px;
}

.sidebar a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.sidebar a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    background-color: var(--white);
}

/* Heading Styles with Dark Blue Highlight */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-gray);
    margin: 1.5rem 0 1rem;
    padding: 10px 15px;
    background: linear-gradient(to right, var(--dark-blue) 4px, transparent 4px);
    border-left: 4px solid var(--dark-blue);
    position: relative;
}

h1 {
    font-size: 2.5rem;
    background-color: rgba(0, 51, 102, 0.05);
}

h2 {
    font-size: 2rem;
    background-color: rgba(0, 51, 102, 0.04);
}

h3 {
    font-size: 1.75rem;
    background-color: rgba(0, 51, 102, 0.03);
}

h4 {
    font-size: 1.5rem;
    background-color: rgba(0, 51, 102, 0.02);
}

h5 {
    font-size: 1.25rem;
    background-color: rgba(0, 51, 102, 0.02);
}

h6 {
    font-size: 1.1rem;
    background-color: rgba(0, 51, 102, 0.01);
}

/* Professional Card Styles */
.card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.card h3 {
    margin-top: 0;
}

/* White + Blue Animation */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
}

.animated-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    animation: pulse-blue 2s infinite;
}

.animated-button:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    animation: none;
}

/* Content Link Styles */
.content-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-link:hover {
    color: var(--dark-blue);
    border-bottom-color: var(--primary-blue);
}

/* Article Styles */
article {
    line-height: 1.8;
    font-size: 1.05rem;
}

article p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Bullet Points in Content */
ul.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

ul.bullet-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.6;
}

ul.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

/* Map Container */
.map-container {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    border: 3px solid var(--primary-blue);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Footer Styles */
footer {
    background-color: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-blue);
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.submit-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

/* Loading Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, article {
    animation: slideIn 0.6s ease-out;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(51, 153, 255, 0.05));
    border-left: 5px solid var(--primary-blue);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.highlight-box h4 {
    background: none;
    border: none;
    color: var(--dark-blue);
    margin-top: 0;
}
