/* Global Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --gray: #f5f5f5;
    --dark-gray: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
} */

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

.btn.primary:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
}

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

.btn.secondary:hover {
    background-color: #14213d;
    transform: translateY(-3px);
}

/* .btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
} */

.btn {
  /* Basic button styling */
  display: inline-block; /* Allows padding and width to be set */
  padding: 10px 20px; /* Spacing inside the button */
  border: 1px solid #ccc; /* Light border */
  border-radius: 5px; /* Slightly rounded corners */
  background-color: #f0f0f0; /* Light gray background */
  color: #333; /* Dark text color */
  text-decoration: none; /* Removes the default underline from links */
  font-family: Arial, sans-serif; /* A clear, common font */
  font-size: 16px; /* Font size */
  cursor: pointer; /* Changes the cursor to a pointer on hover */
  text-align: center; /* Centers the text */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transitions for hover effects */
}

/* Hover and active states for user interaction */
.btn:hover {
  background-color: #e0e0e0; /* Slightly darker background on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* A more pronounced shadow */
}

.btn:active {
  background-color: #d0d0d0; /* Even darker background on click */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Inset shadow for a "pressed" look */
}

/* Additional styling for the "small" class */
.btn.small {
  padding: 8px 16px; /* Reduces padding for a smaller button */
  font-size: 14px; /* Reduces font size */
}

.section-subtitle {
    color: var(--light-text);
    margin-bottom: 30px;
    text-align: center;
}

/* Header Styles */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
    transition: var(--transition);
}

/* .social-icons a:hover {
    color: var(--primary-color);
} */

nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;  /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;  /* Ensure it spans full width */
}

/* Add padding to the body to prevent content from being hidden behind the fixed navbar */
body {
    padding-top: 60px;  /* Adjust this value based on your navbar's height */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
}

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

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 400px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Brands Section */
.brands {
    padding: 50px 0;
    background-color: var(--white);
    text-align: center;
}

.brands h2 {
    margin-bottom: 30px;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-logos img {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--gray);
}

.products h2, .products .section-subtitle {
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background-color: var(--white);
    border: 1px solid var(--dark-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    background-color: var(--dark-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: none;
}

.product-card.active {
    display: block;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 20px;
}


.product-card h3 {
    padding: 0 20px;
    margin-bottom: 5px;
}

.product-model {
    padding: 0 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.product-specs {
    padding: 0 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--dark-gray);
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services h2, .services .section-subtitle {
    text-align: center;
}

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

.service-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--gray);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.achievements {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.achievement {
    text-align: center;
}

.count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.label {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials h2, .testimonials .section-subtitle {
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    display: none;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote {
    position: relative;
    margin-bottom: 20px;
}

.quote i:first-child {
    position: absolute;
    top: -10px;
    left: -20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote i:last-child {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote p {
    font-style: italic;
    position: relative;
    left: 10px;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info span {
    color: var(--light-text);
    font-size: 0.9rem;
}

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

.slider-prev, .slider-next {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    color: var(--secondary-color);
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--gray);
}

.faq h2, .faq .section-subtitle {
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--light-text);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact .container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
}

.contact-info {
    flex: 1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dark-gray);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.logo img {
    height: 40px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #c1121f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container, 
    .about .container, 
    .contact .container {
        flex-direction: column;
    }
    
    .hero-content, 
    .hero-image, 
    .about-content, 
    .about-image, 
    .contact-form, 
    .contact-info {
        flex: none;
        width: 100%;
        padding-right: 0;
    }
    
    .hero-content, 
    .contact-form {
        margin-bottom: 40px;
    }
    
    .hero-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .nav-links {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .category-tabs {
        justify-content: flex-start;
    }
    
    .tab-btn {
        margin: 0 10px 10px 0;
    }
    
    .achievements {
        flex-direction: column;
    }
    
    .achievement {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 15px;
    }
}