:root {
    --primary-color: #519FC8;
    --secondary-color: #1a1a1a;
    --accent-color: #3a7ba8;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link {
    color: #fff !important;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('imgs/HeroSection1.jpg?v=1') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(81, 159, 200, 0.3);
    color: #fff;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-content {
    padding: 20px;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-image {
    height: 100%;
    min-height: 400px;
    background: url('imgs/AboutSection.jpg') center/cover no-repeat;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Machinery Section */
.machinery-section {
    background-color: var(--light-bg);
}

/* Machinery Carousel */
.machinery-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    max-width: 100%;
}

.machinery-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.machinery-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.machinery-tab {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.machinery-tab:hover,
.machinery-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(81, 159, 200, 0.3);
}

.carousel-nav {
    background: rgba(81, 159, 200, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.prev-nav {
    margin-right: 15px;
}

.next-nav {
    margin-left: 15px;
}

.machinery-display {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 500px;
}

.machinery-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.machinery-description {
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.machinery-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-section {
    background-color: #fff;
}

.project-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.project-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.project-card-body {
    padding: 20px;
}

.project-card-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #ddd;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(81, 159, 200, 0.25);
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info {
    padding: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.social-link.whatsapp:hover {
    background-color: #25D366;
    color: #fff;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--accent-color);
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body img {
    display: block;
    margin: 0 auto;
}

/* Modal Project Image Styles */
.modal-project-image {
    height: 500px !important;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive modal image sizes */
@media (max-width: 768px) {
    .modal-project-image {
        height: 350px !important;
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .modal-project-image {
        height: 250px !important;
        max-height: 40vh;
    }
}

/* Responsive */
@media (max-width: 575px) {
    .machinery-image {
        height: 250px;
        margin-bottom: 15px;
    }
    
    .machinery-display {
        padding: 20px;
    }
    
    .machinery-description {
        padding: 15px;
    }
    
    .machinery-description h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .machinery-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Footer responsive */
    footer .d-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    footer .d-flex .d-flex {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    footer img {
        margin: 0 !important;
    }
    
    footer p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .machinery-carousel-container {
        flex-direction: column;
        gap: 15px;
        margin: 0 20px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .machinery-tabs {
        justify-content: flex-start;
        padding: 10px 0;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    
    
    .machinery-tab {
        min-width: 120px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .scroll-hint {
        font-size: 0.85rem;
        opacity: 0.8;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 0.5; }
    }
    
    .social-links {
        flex-direction: column;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Project Gallery Styles */
.project-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.thumbnail-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 5px 0; /* Add padding to prevent overflow */
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0; /* Prevent shrinking */
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px); /* Use translateY instead of scale to avoid overflow */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Add shadow for hover effect */
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

