/* Color Palette Variables */
:root {
    --background-orange: #F47C20;
    --sun-gradient-center: #FDB813;
    --text-complete-auto-care: #F57C00;
    --text-surya-motor: #EAEAEA;
    --car-border-wrench: #1A1A1A;
    --shadow-outline-accents: #4A4A4A;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-orange);
    color: var(--car-border-wrench); /* Deep black/dark gray for main text */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    overflow-x: hidden; /* Added to remove horizontal scroll bar */
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* Increased padding */
    padding-right: 1.5rem; /* Increased padding */
}

/* Header/Navigation */
header {
    background-color: var(--car-border-wrench); /* Deep black/dark gray background */
    color: var(--text-surya-motor); /* Light grayish white text */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Softer shadow */
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out; /* Add transition for header */
}

.header-scrolled {
    background-color: rgba(26, 26, 26);
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between; /* Align logo and hamburger icon */
    align-items: center;
}

nav a.logo {
    font-size: 1.8rem; /* Slightly larger logo */
    font-weight: 700;
    color: var(--text-surya-motor);
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: color 300ms ease-in-out, font-size 0.3s ease-in-out;
    text-decoration: none;
}

.header-scrolled a.logo {
    color: var(--sun-gradient-center);
    font-size: 1.6rem;
}

nav a.logo:hover {
    color: var(--sun-gradient-center);
}

/* Hamburger button styling */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger .bar {
    width: 2rem;
    height: 3px;
    background-color: var(--text-surya-motor);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Hide navigation links by default on mobile */
#nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* The key change for mobile */
    flex-direction: column;
    position: absolute; /* Position the menu for mobile */
    top: 5rem; /* Adjust based on header height */
    left: 0;
    width: 55%;
    background-color: var(--car-border-wrench);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

#nav-links.active {
    display: flex; /* Show the menu when active */
}

/* Animate the hamburger icon when active */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

#nav-links li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
}

#nav-links li a {
    display: block;
    padding: 1rem 0;
    color: var(--text-surya-motor);
    text-decoration: none;
    font-size: 1.3rem;
    transition: background-color 0.3s;
}

#nav-links li a:hover {
    
    color: #FDB813;
}

@media (min-width: 768px) {
    nav {
        flex-direction: row;
    }
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }
    #nav-links {
        position: static;
        display: flex; /* Show the menu on desktop */
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        /* margin-left: auto; -- Removed this redundant line */
        gap: 2rem; /* space-x-8 */
    }
    #nav-links li {
        border-bottom: none;
        margin-left: 0;
    }
    nav ul li a {
        color: var(--text-surya-motor);
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        transition: all 300ms ease-in-out;
        text-decoration: none;
        position: relative;
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--sun-gradient-center);
        transition: width 0.3s ease-in-out;
    }

    nav ul li a:hover::after {
        width: 80%;
    }

    nav ul li a:hover {
        color: var(--sun-gradient-center);
    }
}

/* Hero Section */
.hero-background {
    background-image: url('SURYApng.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-surya-motor); /* Light grayish white text */
    overflow: hidden; /* Ensure gradient doesn't overflow */
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(26, 26, 26, 0.7), rgba(244, 124, 32, 0.5)); /* Gradient overlay */
    border-radius: 0.375rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem; /* Increased padding */
    max-width: 60rem; /* Slightly wider */
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem; /* More rounded */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    background-color: rgba(26, 26, 26, 0.8); /* Slightly darker background */
    animation: fadeInScale 1s ease-out forwards; /* Animation for hero content */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h1 {
    font-size: 3.5rem; /* Larger font size */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow */
}

.hero-content p {
    font-size: 1.25rem; /* Larger font size */
    margin-bottom: 2.5rem;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
}

.hero-content .btn {
    background-color: var(--text-complete-auto-care); /* Rich orange */
    color: var(--car-border-wrench); /* Deep black text */
    font-weight: 700;
    padding: 0.8rem 2.5rem; /* More padding */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    transition: all 300ms ease-in-out;
    display: inline-block;
    text-decoration: none;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
}

.hero-content .btn:hover {
    background-color: var(--sun-gradient-center); /* Vibrant yellow-orange */
    transform: translateY(-3px) scale(1.05); /* Lift and scale */
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4.5rem; /* md:text-7xl */
    }
    .hero-content p {
        font-size: 1.4rem; /* md:text-xl */
    }
}

/* Section Title */
.section-title {
    font-size: 2.5rem; /* Slightly larger */
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem; /* More margin */
    position: relative;
    padding-bottom: 10px; /* Space for the line */
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly below for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px; /* Wider line */
    height: 4px; /* Thicker line */
    background-color: var(--text-complete-auto-care); /* Rich orange accent */
    margin: 10px auto 0;
    border-radius: 9999px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Services Section */
#services {
    padding-top: 5rem; /* More padding */
    padding-bottom: 5rem; /* More padding */
    background-color: var(--background-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.5rem; /* Increased gap */
}

.service-card {
    background-color: var(--text-surya-motor); /* Light grayish white background */
    padding: 2rem; /* More padding */
    border-radius: 0.75rem; /* More rounded */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    transition: all 300ms ease-in-out;
    border: 2px solid transparent; /* Subtle border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(50px); /* Start further below for animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.75rem); /* More lift */
    border-color: var(--text-complete-auto-care); /* Orange border on hover */
}

.service-card .icon {
    color: var(--text-complete-auto-care); /* Rich orange icon */
    font-size: 3.5rem; /* Larger icon */
    margin-bottom: 1.25rem;
    display: block; /* Ensure it takes full width */
    line-height: 1; /* Adjust line height for icons */
    transition: transform 0.3s ease-in-out; /* Icon animation */
}

.service-card:hover .icon {
    transform: rotateY(180deg) scale(1.1); /* Flip and slightly enlarge icon on hover */
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-card h3 {
    font-size: 1.75rem; /* Larger title */
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--car-border-wrench); /* Deep black/dark gray text */
    font-size: 1rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Why Choose Us Section */
#why-us {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--text-surya-motor);
}

.why-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.why-us-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-us-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.why-us-item .icon {
    font-size: 3rem;
    color: var(--text-complete-auto-care);
}

.why-us-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--car-border-wrench);
}

@media (min-width: 768px) {
    .why-us-content {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
    .why-us-item {
        flex: 1;
        flex-direction: row;
    }
}

/* About Us Section */
#about {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--background-orange);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* Increased gap */
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limit image size on larger screens */
    opacity: 0; /* Start hidden for animation */
    transform: translateX(-50px); /* Start left for animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    border-radius: 0.75rem; /* More rounded */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    text-align: center;
    padding: 1rem;
    opacity: 0; /* Start hidden for animation */
    transform: translateX(50px); /* Start right for animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text h2 {
    font-size: 2.5rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--car-border-wrench); /* Deep black/dark gray text */
    font-size: 1.15rem; /* Slightly larger text */
    margin-bottom: 1.5rem;
}

.about-text .btn {
    display: inline-block;
    background-color: var(--text-complete-auto-care); /* Rich orange */
    color: var(--car-border-wrench); /* Deep black text */
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    transition: all 300ms ease-in-out;
    text-decoration: none;
}

.about-text .btn:hover {
    background-color: var(--sun-gradient-center);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start; /* Align items to start */
    }
    .about-image {
        flex: 0 0 35%; /* Adjusted width */
        margin-top: 2rem; /* Push image down slightly */
    }
    .about-text {
        flex: 0 0 55%; /* Adjusted width */
        text-align: left;
        padding-left: 2rem; /* Add some space */
    }
    .about-text h2 {
        text-align: left;
    }
    .about-text .section-title::after {
        margin-left: 0;
        transform: translateX(0);
    }
}

/* Gallery Section */
#gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--car-border-wrench); /* Dark background for gallery */
    color: var(--text-surya-motor);
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0; /* Start hidden for animation */
    transform: scale(0.95); /* Start slightly scaled down */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slider-container.animate {
    opacity: 1;
    transform: scale(1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    flex-shrink: 0; /* Prevents images from shrinking */
    display: block;
    border-radius: 0.75rem;
    object-fit: cover;
    height: 400px; /* Fixed height for consistency */
}

@media (max-width: 767px) {
    .slider img {
        height: 250px; /* Adjust height for smaller screens */
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.dots-container {
    text-align: center;
    margin-top: 1.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--shadow-outline-accents);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--text-complete-auto-care);
    transform: scale(1.2); /* Active dot animation */
}

/* Contact Section */
#contact {
    padding-top: 2rem; /* Reduced padding */
    padding-bottom: 2rem; /* Reduced padding */
    background-color: var(--background-orange);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap */
}

@media (min-width: 1024px) {
    .contact-content {
        max-width: 1130px; /* Reduced overall breadth */
         margin: 0; /* Updated line to remove centering */
        flex-direction: row;
    }
}

.contact-info, .contact-form-section {
    background-color: var(--text-surya-motor);
    padding: 1.5rem; /* Reduced padding */
    border-radius: 0.75rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--shadow-outline-accents);
    opacity: 0;
    transform: translateY(30px); /* Reduced animation distance */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-info.animate, .contact-form-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-info h3, .contact-form-section h3 {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 500; /* Reduced font weight */
    margin-bottom: 1rem; /* Reduced margin */
    text-align: left;
}

.contact-info div {
    margin-bottom: 0.75rem; /* Reduced margin */
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--car-border-wrench);
    font-size: 0.95rem; /* Reduced font size */
    transition: transform 0.2s ease-in-out;
}

.contact-info p:hover {
    transform: translateX(5px);
}

.contact-info p span {
    color: var(--text-complete-auto-care);
    margin-right: 0.5rem; /* Reduced margin */
    font-size: 1.1rem; /* Reduced icon size */
}

.contact-info a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--car-border-wrench);
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease-in-out, color 0.3s ease;
}

.contact-info a:hover {
    transform: translateX(5px);
    color: var(--text-complete-auto-care);
}

.contact-info a span {
    color: var(--text-complete-auto-care);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.social-icons {
    text-align: left;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--car-border-wrench);
    font-size: 1.8rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--text-complete-auto-care);
    transform: translateY(-3px) scale(1.1);
}

.contact-info h4 {
    font-size: 1.1rem; /* Reduced font size */
    font-weight: 500; /* Reduced font weight */
    margin-top: 1.5rem; /* Reduced margin */
    margin-bottom: 1rem; /* Reduced margin */
    text-align: left;
}

.map-placeholder {
    background-color: var(--shadow-outline-accents);
    height: 35rem; /* Change this value for the map's length */
    width: 100%; /* Change this value for the map's breadth */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-surya-motor);
    overflow: hidden;
}

.map-placeholder iframe {
    border: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.contact-form-section form div {
    margin-bottom: 1rem; /* Reduced spacing */
}

.contact-form-section label {
    display: block;
    font-size: 0.85rem; /* Reduced font size */
    font-weight: 500;
    color: var(--car-border-wrench);
    margin-bottom: 0.2rem;
}

.contact-form-section input,
.contact-form-section select,
.contact-form-section textarea {
    margin-top: 0.25rem;
    display: block;
    width: 90%;
    padding: 0.75rem; /* Reduced padding */
    border: 1px solid var(--shadow-outline-accents);
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 0.95rem; /* Reduced font size */
    transition: all 0.3s ease;
}

.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
    box-shadow: 0 0 0 3px var(--text-complete-auto-care);
    border-color: var(--text-complete-auto-care);
    transform: scale(1.02); /* Slight scale on focus */
}

.contact-form-section button[type="submit"] {
    width: 100%;
    background-color: var(--text-complete-auto-care);
    color: var(--car-border-wrench);
    font-weight: 600; /* Reduced font weight */
    padding: 0.8rem 1.5rem; /* Reduced padding */
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    transition: all 300ms ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 1rem; /* Reduced font size */
}

.contact-form-section button[type="submit"]:hover {
    background-color: var(--sun-gradient-center);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
    .contact-info, .contact-form-section {
        flex: 0 0 50%;
    }
    .contact-info h3, .contact-form-section h3 {
        text-align: left;
    }
    .contact-info p {
        justify-content: flex-start;
    }
    .contact-info h4 {
        text-align: left;
    }
}

/* Footer */
footer {
    background-color: var(--car-border-wrench); /* Deep black/dark gray background */
    color: var(--text-surya-motor); /* Light grayish white text */
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center; /* Center text in footer */
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

footer .footer-links {
    display: flex;
    flex-direction: column; /* Stack links on small screens */
    justify-content: center;
    gap: 0.5rem; /* More space */
    margin-top: 1rem;
}

@media (min-width: 768px) {
    footer .footer-links {
        flex-direction: row; /* Row for larger screens */
        gap: 1.5rem;
    }
}

footer a {
    color: var(--shadow-outline-accents); /* Soft gray */
    transition: color 300ms ease-in-out;
    text-decoration: none;
}

footer a:hover {
    color: var(--text-complete-auto-care); /* Rich orange */
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-button i {
    animation: pulse 1.5s infinite; /* Pulsing animation for the icon */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}