/* ========================================
   Optimus Auto Workz - Custom Styles
   Color Palette: Plum (#4c1d95) + Amber (#f59e0b)
   ======================================== */

/* CSS Custom Properties */
:root {
    --plum-dark: #2e1065;
    --plum: #4c1d95;
    --plum-light: #6d28d9;
    --plum-lighter: #8b5cf6;
    --plum-pale: #ede9fe;
    --plum-bg: #f5f3ff;
    
    --amber-dark: #d97706;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-pale: #fef3c7;
    
    --neutral-900: #0f172a;
    --neutral-800: #1e293b;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-400: #94a3b8;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --white: #ffffff;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Background Decorative Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.bg-shape.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--plum);
    top: -200px;
    right: -200px;
}

.bg-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--amber);
    bottom: 20%;
    left: -100px;
}

.bg-shape.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--plum-light);
    top: 50%;
    right: 10%;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

.text-amber {
    color: var(--amber);
}

.text-gradient {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: var(--neutral-900);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--plum-dark);
}

.logo-icon {
    color: var(--plum);
}

.logo-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--neutral-700);
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--plum-bg) 0%, var(--white) 50%, var(--amber-pale) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--plum-pale);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--plum);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--neutral-900);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-200);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-300);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.geometric-accent {
    position: absolute;
    border-radius: var(--radius);
}

.geometric-accent-1 {
    width: 120px;
    height: 120px;
    background: var(--plum);
    top: -30px;
    left: -30px;
    opacity: 0.9;
    transform: rotate(15deg);
}

.geometric-accent-2 {
    width: 80px;
    height: 80px;
    background: var(--amber);
    bottom: 40px;
    right: -20px;
    border-radius: 50%;
    opacity: 0.9;
}

.hero-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.card-primary {
    bottom: 60px;
    left: -40px;
    border: 2px solid var(--plum-pale);
}

.card-amber {
    top: 40px;
    right: -30px;
    border: 2px solid var(--amber-pale);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-primary .card-icon {
    background: var(--plum-pale);
    color: var(--plum);
}

.card-amber .card-icon {
    background: var(--amber-pale);
    color: var(--amber-dark);
}

.card-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--neutral-900);
}

.card-text {
    display: block;
    font-size: 0.8rem;
    color: var(--neutral-500);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--plum);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--plum), var(--amber));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--plum-lighter);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.service-icon-1 { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%); }
.service-icon-2 { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%); }
.service-icon-3 { background: linear-gradient(135deg, var(--plum-light) 0%, var(--plum-lighter) 100%); }
.service-icon-4 { background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber) 100%); }
.service-icon-5 { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-lighter) 100%); }
.service-icon-6 { background: linear-gradient(135deg, var(--amber) 0%, var(--plum) 100%); }

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--neutral-900);
}

.service-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Choose Us */
.why-us {
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
    color: var(--white);
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-content .section-tag {
    color: var(--amber-light);
}

.why-content .section-title {
    color: var(--white);
    text-align: left;
}

.why-content .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-bottom: 2.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.feature-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--neutral-900);
    margin-top: 2px;
}

.feature-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.why-visual {
    position: relative;
}

.why-image-container {
    position: relative;
}

.why-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--amber) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    border-radius: var(--radius-xl);
}

.why-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.why-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--amber);
    color: var(--neutral-900);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.why-badge .badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.why-badge .badge-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about {
    background: var(--plum-bg);
}

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

.about-text .section-tag {
    text-align: left;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--neutral-600);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.about-stat {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    flex: 1;
}

.about-stat .stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum);
}

.about-stat .stat-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.about-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--amber);
    border-radius: var(--radius);
    bottom: -20px;
    right: -20px;
    z-index: 0;
    transform: rotate(10deg);
}

/* Contact Section */
.contact {
    background: var(--white);
}

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

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--neutral-600);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

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

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

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--plum-pale);
    color: var(--plum);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 1rem;
}

.contact-value:hover {
    color: var(--plum);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--neutral-200);
}

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

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

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--neutral-800);
    background: var(--white);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--plum-lighter);
    box-shadow: 0 0 0 3px var(--plum-pale);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.form-success.active {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--plum-pale);
    color: var(--plum);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
}

.form-success p {
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--neutral-400);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--neutral-400);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: var(--neutral-400);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--neutral-400);
}

.footer-contact a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .why-grid,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-img,
    .why-img {
        height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .card-primary,
    .card-amber {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
    }
    
    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-img {
        height: 300px;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
