﻿/* Custom CSS for RentACar Website */

/* Root Variables */
:root {
    --primary-bg: #141414;
    --secondary-bg: #1e1e1e;
    --accent-yellow: #ffcc00;
    --text-light: #f5f5f5;
    --text-muted: #aaa;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-overlay: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-overlay), url('../img/categories/car.jpg') center/cover;
/*    position: relative;*/
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
/*        position: absolute;*/
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 204, 0, 0.1), transparent);
        animation: heroAnimation 20s infinite alternate;
    }

@keyframes heroAnimation {
    0% {
        transform: translateX(-5px) translateY(-5px);
    }

    100% {
        transform: translateX(5px) translateY(5px);
    }
}

.hero-overlay {
/*    position: absolute;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.4);
}

.hero-content {
/*    position: relative;*/
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .hero-buttons .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3);
    }

.hero-stats {
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
    border-radius: 20px !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

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

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Cards */
.feature-card {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .feature-card:hover::before {
        left: 100%;
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(255, 204, 0, 0.2);
        border-color: var(--accent-yellow);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-yellow), #e6b800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-bg);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(255, 204, 0, 0.15);
        border-color: var(--accent-yellow);
    }

.service-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
}

    .pricing-card.featured {
        border-color: var(--accent-yellow);
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(255, 204, 0, 0.2);
    }

    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-10px);
    }

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-yellow);
    color: var(--primary-bg);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--accent-yellow);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.period {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

    .pricing-features li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

        .pricing-features li:last-child {
            border-bottom: none;
        }

.btn-block {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-yellow);
    transition: all 0.3s ease;
    height: 100%;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

.stars {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: 0 20px 40px rgba(255, 204, 0, 0.2);
    }

    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: all 0.3s ease;
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
}

    .gallery-content h5 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--accent-yellow);
    }

/* CTA Section */
.cta-section {
    background: var(--gradient-overlay), url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .cta-buttons .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3);
    }

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }

    .cta-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }

    .feature-card,
    .service-card,
    .pricing-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .feature-card,
    .service-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Background Patterns */
.bg-dark {
    background-color: var(--secondary-bg) !important;
}

/* Button Enhancements */
.btn-warning {
    background: linear-gradient(135deg, var(--accent-yellow), #e6b800);
    border: none;
    color: var(--primary-bg);
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #e6b800, var(--accent-yellow));
        color: var(--primary-bg);
        box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
    }

.btn-outline-warning {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transition: all 0.3s ease;
}

    .btn-outline-warning:hover {
        background: var(--accent-yellow);
        color: var(--primary-bg);
        box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
    }

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a) !important;
    border-top: 1px solid var(--border-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

    .social-links a:hover {
        background: var(--accent-yellow);
        color: var(--primary-bg) !important;
        transform: translateY(-3px);
    }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .animate-on-scroll.in-view {
        opacity: 1;
        transform: translateY(0);
    }

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.2), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}
