/* Global Styles */
:root {
    --primary-color: #ff9100;
    --secondary-color: #ffb300;
    --dark-color: #4b0164;
    --light-color: #FFFFFF;
    --gray-color: #F5F5F5;
    --text-color: #333333;
}

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

.navbar-nav .nav-link {
    font-weight: 400;
}

.hero-slide h1, .hero-slide h2 {
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-panel h3 {
    /*font-weight: 100;*/
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

.btn-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0 15px;
    color: var(--text-color);
}

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

/* Mega Menu Styles */
.dropdown-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

/* Full-width mega dropdown */
.mega-dropdown .dropdown-menu {
    position: fixed;
    top: 76px;
    width: 100vw;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    border-radius: 0;
    padding-top: 24px;
    padding-bottom: 24px;
    z-index: 1050;
}

.mega-dropdown .dropdown-menu .container,
.mega-dropdown .dropdown-menu .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

.mega-dropdown .list-group-item-action {
    border-radius: 10px;
    background: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu .container {
    padding: 20px;
}

.list-group-item-action {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
}

.list-group-item-action:hover {
    background-color: var(--gray-color);
    transform: translateX(5px);
}

.list-group-item-action h5 {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.list-group-item-action p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.list-group-item-action i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Ensure centered dropdown doesn't push layout */
.navbar .dropdown-menu.mega-open {
    display: block;
}

/* Keep mega dropdown visible when hovering over the menu content */
.mega-dropdown:hover .dropdown-menu {
    display: block !important;
}

.mega-dropdown .dropdown-menu:hover {
    display: block !important;
}

/* Hero Slider */
.hero-slider {
    margin-top: 76px;
    position: relative;
}

.hero-slide {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.hero-slide h1, .hero-slide h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Panels */
.category-panels {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.category-panel {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
}

.category-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(255, 255, 255, 0.5);*/
    z-index: 1;
    transition: all 0.3s ease;
}

.row > div:nth-child(1) .category-panel {
    background: url('../img/cat/cat_everyday_vehicle.png') center/cover no-repeat;
}

.row > div:nth-child(2) .category-panel {
    background: url('../img/cat/cat_heavy_duty.png') center/cover no-repeat;
}

.row > div:nth-child(3) .category-panel {
    background: url('../img/cat/cat_ship_ahts.png') center/cover no-repeat;
}


.category-panel:hover::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.category-panel .panel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-panel:hover .panel-content {
    transform: scale(1.1);
}

.category-panel:hover h3 {
    color: #FFD700;
}

.category-panel h3 {
    color: var(--light-color);
    margin: 0;
    color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.panel-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    padding: 0 10px;
}

/* About Section */
.about-section {
    padding: 100px 0 50px;
}

.section-title {
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

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

.world-map-container {
    text-align: center;
}

.world-map-container img {
    max-width: 100%;
    height: auto;
}

/* Clients Section */
.clients-section {
    background-color: var(--gray-color);
    padding: 50px 0;
}

.client-carousel .client-item {
    text-align: center;
    padding: 20px;
}

.client-carousel .client-item img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.client-carousel .client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 70px 0 30px;
}

.footer-logo {
    height: 40px;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer ul li a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer ul li a:hover {
    opacity: 1;
    color: var(--light-color);
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--light-color);
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: var(--light-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-slide {
        height: 60vh;
    }
    
    .category-panels {
        margin-top: -80px;
    }
    
    .category-panel {
        height: 180px;
    }
    
    .panel-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: 50vh;
    }
    
    .category-panels {
        margin-top: -60px;
    }
    
    .category-panel {
        height: 150px;
        margin-bottom: 20px;
    }
    
    .about-section {
        padding: 80px 0 40px;
    }
    
    .stats-container {
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer h5 {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: 40vh;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-slide h2 {
        font-size: 1.5rem;
    }
    
    .category-panels {
        margin-top: -40px;
    }
    
    .category-panel {
        height: 120px;
    }
    
    .panel-content h3 {
        font-size: 0.9rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .social-icons {
        margin-top: 20px;
        text-align: center;
    }
}
