/* =============================================
   FRONTEND CSS - KUYOU Auto Works
   Theme: Matte Black with Glassmorphism
   Colors: Matte Black (#1a1a1a) + Burnt Orange (#e87a24)
   ============================================= */

/* ========== CSS VARIABLES ========== */
:root {
    --matte-black: #1a1a1a;
    --matte-black-dark: #141414;
    --matte-black-light: #222222;
    --pure-white: #ffffff;
    --accent-orange: #e87a24;
    --accent-orange-dark: #c96a1e;
    --accent-orange-light: #f59e0b;
    
    /* Glass Effects */
    --glass-bg-input: rgba(255, 255, 255, 0.08);
    --glass-bg-input-focus: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-border-focus: rgba(232, 122, 36, 0.5);
    --glass-bg-form: rgba(26, 26, 26, 0.35);
    --glass-bg-card: rgba(26, 26, 26, 0.3);
    --glass-bg-card-hover: rgba(26, 26, 26, 0.5);
    --glass-bg-nav: rgba(26, 26, 26, 0.35);
    --glass-bg-hero: rgba(26, 26, 26, 0.4);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-placeholder: rgba(255, 255, 255, 0.3);
    
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 20px rgba(232, 122, 36, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--matte-black);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange-light);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.3;
}

.orange-text {
    color: var(--accent-orange);
}

.text-muted {
    color: var(--text-muted);
}

.text-light {
    color: var(--text-light);
}

.text-white {
    color: var(--text-white);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
    font-family: inherit;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-orange {
    background: var(--accent-orange);
    color: var(--pure-white);
}

.btn-orange:hover {
    background: #f08a34;
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.btn-orange:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border-light);
}

.btn-outline:hover {
    background: var(--glass-bg-input);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

/* ========== GLASS INPUT ========== */
.glass-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-placeholder);
}

.glass-input:focus {
    background: var(--glass-bg-input-focus);
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 3px rgba(232, 122, 36, 0.1);
}

.glass-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
}

.glass-textarea::placeholder {
    color: var(--text-placeholder);
}

.glass-textarea:focus {
    background: var(--glass-bg-input-focus);
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 3px rgba(232, 122, 36, 0.1);
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 80vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    background: url('../images/garage/hero-bg.png') center/cover no-repeat fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: var(--glass-bg-hero);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--matte-black);
}

.section-darker {
    background: var(--matte-black-dark);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 50px;
    font-weight: 300;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--glass-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.feature-card .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: var(--glass-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}

.testimonial-card .customer {
    font-weight: 600;
    color: var(--text-white);
    font-size: 14px;
}

/* ========== SEARCH / TRACKING ========== */
.search-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--glass-bg-form);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.search-group input {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.search-group input::placeholder {
    color: var(--text-placeholder);
}

.search-group input:focus {
    background: var(--glass-bg-input-focus);
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 3px rgba(232, 122, 36, 0.1);
}

.search-group span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-confirmed,
.status-diagnostics {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-repair {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-quality_check {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-ready,
.status-delivered,
.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========== TIMELINE ========== */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: var(--glass-bg-input);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-step .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg-input);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.timeline-step.active .icon {
    background: rgba(232, 122, 36, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 0 6px rgba(232, 122, 36, 0.1);
}

.timeline-step.completed .icon {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.timeline-step .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.active .label {
    color: var(--accent-orange);
}

.timeline-step.completed .label {
    color: #4ade80;
}

/* ========== FOOTER ========== */
.footer-kuyou {
    background: var(--matte-black-dark);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.social-links a:hover {
    color: var(--accent-orange);
    background: var(--glass-bg-input-focus);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }

.hidden { display: none; }
.visible { display: block; }

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 42px;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .search-group {
        flex-direction: column;
        padding: 16px;
    }
    
    .search-group input {
        width: 100%;
        min-width: auto;
    }
    
    .timeline {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        gap: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Staggered animations for grids */
.feature-card:nth-child(1) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.3s; }

.testimonial-card:nth-child(1) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.05s; }
.testimonial-card:nth-child(2) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.15s; }
.testimonial-card:nth-child(4) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.2s; }
.testimonial-card:nth-child(5) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.25s; }
.testimonial-card:nth-child(6) { animation: fadeInUp 0.5s ease forwards; animation-delay: 0.3s; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--matte-black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(232, 122, 36, 0.3);
    color: var(--text-white);
}

::-moz-selection {
    background: rgba(232, 122, 36, 0.3);
    color: var(--text-white);
}