/* General Styles */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #34495e;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --max-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Navigation */
#navbar {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    transition: max-height 0.3s ease;
}

#navbar.scrolled .logo img {
    max-height: 50px;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

.nav-link i {
    margin-right: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 600px;
    overflow: hidden;
}

.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.rating {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stars {
    color: #f39c12;
    font-size: 1.5rem;
    margin-right: 10px;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.call-btn {
    background-color: var(--primary-color);
    color: white;
}

.services-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.call-btn:hover {
    background-color: #c0392b;
}

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

/* Services Section */
#services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 20px;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.service-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Custom icons that aren't in FontAwesome */
.fa-tire:before {
    content: "\f111"; /* Use circle icon */
    position: relative;
}

.fa-tire:after {
    content: "\f111"; /* Use circle icon */
    position: absolute;
    font-size: 0.6em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fa-brake-system:before {
    content: "\f21c"; /* Use street view icon as a substitute */
}

/* Reviews Section */
#reviews {
    background-color: #f9f9f9;
}

.review-rating {
    text-align: center;
    margin-bottom: 35px;
}

.rating-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.rating-stars {
    color: #f39c12;
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.reviews-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 calc(33.33% - 20px);
    margin: 0 10px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-img {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
}

.reviewer-name {
    font-weight: bold;
    color: var(--secondary-color);
}

.review-rating {
    color: #f39c12;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.review-date {
    margin-left: 10px;
    color: #999;
    font-size: 0.8rem;
}

.review-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.review-comment {
    font-style: italic;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

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

.prev-btn:disabled, .next-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* About Us Section */
#about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1 1 500px;
    animation: fadeInLeft 1s ease;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    animation: fadeInRight 1s ease;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
}

/* Contact Section */
#contact {
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1 1 400px;
    animation: fadeInLeft 1s ease;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-detail {
    flex-grow: 1;
}

.contact-detail h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-detail p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-detail strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-detail a {
    color: #666;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.map-container {
    flex: 1 1 500px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 1s ease;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
    
    .review-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .review-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 20px;
    }
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
    animation: bounceIn 0.5s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.floating-btn i {
    font-size: 25px;
    color: white;
    margin-bottom: 0;
    z-index: 2;
    margin-top: 5px;
}

.floating-btn-text {
    font-size: 12px;
    color: white;
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
    z-index: 2;
    letter-spacing: 0.5px;
}

.call-float {
    background: linear-gradient(135deg, #27ae60 0%, #1ecb4f 100%);
    border: 3px solid #27ae60;
    box-sizing: border-box;
}

.directions-float {
    background: linear-gradient(135deg, #e74c3c 0%, #d32f2f 100%);
}

.floating-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    z-index: 1;
}

.floating-btn:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.23);
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    .floating-btn {
        width: 54px;
        height: 54px;
    }
    .floating-btn i {
        font-size: 20px;
    }
    .floating-btn-text {
        font-size: 10px;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        opacity: 1;
        transform: scale(0.89);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}