/**
 * Washin Auto - Modern Home Page Styles
 */

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 114, 186, 0.3), rgba(0, 114, 186, 0.1));
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-content {
    color: var(--white);
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: var(--font-secondary);
}

.hero-title span {
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.hero-title span:after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 114, 186, 0.3);
    z-index: -1;
    border-radius: 5px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.hero-scroll-indicator a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.hero-scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Search Section */
.search-section {
    padding: 100px 0px 100px 0;
    padding: 0px 0px 30px 0;
    /*background-color: var(--bg-light);*/
    position: relative;
    overflow: hidden;
    margin-top: -100px;
}

.search-wrapper {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    padding: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.search-wrapper:beforex {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.search-header p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-tab {
    padding: 12px 25px;
    background-color: var(--gray-100);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-tab.active,
.search-tab:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 114, 186, 0.2);
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
}

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

.custom-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-form-group label i {
    color: var(--primary-color);
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 114, 186, 0.1);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-medium);
    pointer-events: none;
    transition: var(--transition-fast);
}

.custom-select:focus + .select-arrow {
    color: var(--primary-color);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    margin-bottom: 0;
}

.custom-checkbox label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.custom-checkbox input:checked + label:before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox label:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 12px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition-fast);
}

.custom-checkbox input:checked + label:after {
    opacity: 1;
}

.btn-search {
    padding: 14px 30px;
    min-width: 200px;
}

/* Categories Section */
.categories-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-fast);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-md);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.category-content {
    position: relative;
    padding: 30px 20px;
    background-color: var(--white);
    text-align: center;
}

.category-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 114, 186, 0.3);
    z-index: 1;
}

.category-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0 10px;
    color: var(--text-dark);
}

.category-content p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    min-height: 40px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.category-link i {
    transition: var(--transition-fast);
}

.category-link:hover {
    color: var(--primary-dark);
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Featured Vehicles Section */
.featured-vehicles-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.featured-tabs {
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background-color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--box-shadow-sm);
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 114, 186, 0.2);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.view-all-wrapper {
    margin-top: 50px;
    text-align: center;
}

.btn-view-all {
    min-width: 200px;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-choose-content {
    padding-right: 50px;
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-light), rgba(230, 243, 255, 0.5));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 114, 186, 0.2);
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-content p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.7;
}

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

.why-choose-image .main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
}

.stats-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: 25px;
    display: flex;
    gap: 30px;
}

.stats-item {
    text-align: center;
}

.stats-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.stats-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 600;
}

.image-shape {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    opacity: 0.1;
    z-index: -1;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    /*max-width: 1000px;*/
    margin: 50px auto 0;
}

.process-timeline:before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--gray-300);
    z-index: 0;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0px 10px;
    z-index: 1;
    width: 25%;
    float: left;
}

.process-icon {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-fast);
}

.process-item:hover .process-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 114, 186, 0.3);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.process-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.process-content p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    /*max-width: 1000px;*/
    margin: 50px auto 0;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.testimonial-rating {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.author-info span {
    font-size: 14px;
    color: var(--text-medium);
}

.quote-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    color: var(--gray-200);
    opacity: 0.5;
    z-index: 0;
}

.swiper-pagination {
    margin-top: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--gray-300);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--box-shadow-md);
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 50px;
    }

    .section-title {
        font-size: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline:before {
        width: 70%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .search-section,
    .categories-section,
    .featured-vehicles-section,
    .why-choose-section,
    .process-section,
    .testimonials-section {
        padding: 50px 0;
    }

    .why-choose-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .process-timeline:before {
        display: none;
    }

    .process-item {
        width: 50%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .search-wrapper {
        padding: 30px 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-item {
        width: 100%;
    }

    .stats-card {
        position: relative;
        left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-tag {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .search-tabs,
    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .search-tab,
    .tab-button {
        width: 100%;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .stats-card {
        flex-direction: column;
        gap: 20px;
    }
}
