:root {
    --primary-color: #202c39;
    --secondary-color: #B8142D;
    --text-color: #333;
    --light-bg: #FFF9FB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header and Navigation Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation menu */
.main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem;
    display: block;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Carousel Styles */
.hero {
    position: relative;
    padding: 0;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.carousel-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.2s;
    animation-fill-mode: both;
}

.carousel-content .btn {
    animation: fadeInUp 0.5s ease-out 0.4s;
    animation-fill-mode: both;
}

/* Carousel Controls */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .carousel-content h1 {
        font-size: 1.7rem;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Services Section */
/* Revamped Services Section Styles */
.services-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 10%, rgba(184, 20, 45, 0.03) 0%, rgba(32, 44, 57, 0.03) 100%);
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    margin: -2rem auto 3rem;
    max-width: 700px;
    color: #666;
    font-size: 1.1rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.5s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background-color: rgba(184, 20, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #555;
}

.service-features li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.service-cta {
    margin-top: auto;
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
}

.service-cta:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Services CTA Section */
.services-cta-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-cta-container::before {
    content: "";
    position: absolute;
    right: -5%;
    bottom: -20%;
    width: 300px;
    height: 300px;
    background: url('images/brake-icon.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
}

.services-cta-content {
    position: relative;
    z-index: 1;
}

.services-cta-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.services-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 6px;
    display: inline-block;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Add animation when service cards come into view */
.service-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-cta-container {
        padding: 2rem;
    }
    
    .services-cta-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .services-cta-container {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Work Gallery */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-bg);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--light-bg);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
}

address {
    font-style: normal;
    margin: 1rem 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hamburger Menu for Mobile */
    .menu-toggle {
        display: block;
    }
    
    /* Show X when menu is open */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav li {
        margin: 1rem 0;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    
    /* Other Mobile Adjustments */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services, .testimonials, .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card, .testimonial-card, .contact-card {
        padding: 1.5rem;
    }
}