/* Base Styles */
:root {
    --primary-color: #00AEEF;
    --secondary-color: #333333;
    --text-color: #555555;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --border-color: #e9ecef;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
}

/* ===============================
   NAVIGATION
=================================*/

.navbar {
    background-color: rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-logo {
    height: 65px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

/* ===============================
   DROPDOWN BASE STYLE
=================================*/

.dropdown-menu {
    border: none;
    padding: 0.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background-color: rgba(0,174,239,0.1);
    color: var(--primary-color);
}

/* ===============================
   MEGA MENU (DESKTOP)
=================================*/

@media (min-width: 992px){

.navbar .nav-item.dropdown{
    position: relative;
}

.navbar .dropdown-menu{
    min-width: 720px;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    left: 50%;
    transform: translateX(-50%);
}

.navbar .dropdown-menu.show{
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.navbar .dropdown-menu > li{
    width: 33.3333%;
    padding: 4px 0;
}

.navbar .dropdown-menu > li.menu-divider{
    width: 100%;
    padding: 6px 0;
}

.navbar .dropdown-divider{
    margin: 0;
}

.navbar .dropdown-item{
    white-space: normal;
    padding: 8px 12px;
    font-size: 15px;
}

}
/* ===============================
   MOBILE NAVIGATION
=================================*/

@media (max-width: 768px){

.navbar-nav{
    padding: 1rem 0;
}

.nav-link{
    padding: 0.75rem 1rem !important;
    text-align: center;
}

.nav-link:hover{
    transform: none;
    background-color: rgba(0,174,239,0.1);
}

.dropdown-menu{
    text-align: center;
    border: none;
    background: transparent;
    box-shadow: none;
}

.dropdown-item{
    padding: 0.5rem 1rem;
}

}

/* ===============================
   BUTTON
=================================*/

.nav-item .btn-primary{
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.nav-item .btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===============================
   FEATURE CARDS
=================================*/

.feature:hover{
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
/* Location Map Section */
.location-section {
    width: 100%;
    background-color: white;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.pexels.com/photos/2760243/pexels-photo-2760243.jpeg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: #0095ce;
    border-color: #0095ce;
    transform: translateY(-2px);
}

/* Services Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: block;
    margin: 0 auto 1.25rem;
}

.card-body {
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Features */
.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-links {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
    position: relative;
    padding-left: 0.25rem;
}

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

.contact-info {
    text-align: left;
}

.contact-info li {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    footer h5,
    .footer-links,
    .contact-info {
        text-align: center;
    }

    footer h5 {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        list-style: none;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .contact-info {
        margin-bottom: 1.5rem;
    }

    .contact-info li {
        justify-content: center;
    }
}

/* Services Section */
.services-hero h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.services-hero .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.services-hero .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.services-hero img {
    transition: transform 0.5s ease;
}

.services-hero img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero .lead {
        font-size: 1.1rem;
        text-align: center;
    }

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

    .map-container {
        height: 300px;
        margin-top: 2rem;
    }

    .nav-item .btn-primary {
        margin: 0.5rem 0;
    }
    .location-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .services-overview .card,
    .feature,
    .value-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .section-title,
    .page-header h1,
    .page-header .lead {
        text-align: center;
    }

    .services-hero h1,
    .services-hero p,
    .about-hero h1,
    .about-hero p {
        text-align: center;
    }

    .portfolio-section .portfolio-item {
        margin-bottom: 1.5rem;
    }

    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        width: auto;
        padding: 0.5rem 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vehicle-card {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-info {
        text-align: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.pexels.com/photos/2760243/pexels-photo-2760243.jpeg');
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
    padding: 6rem 0;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }

    .map-container {
        height: 300px;
    }

    .location-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Add these new styles for text transformation and portfolio */
.text-uppercase {
    text-transform: uppercase;
}

/* Portfolio/Works Section */
.portfolio-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.portfolio-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 400px; /* Ensure the grid has a minimum height during transitions */
}

/* Portfolio Items Styling */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    opacity: 1;
    transform: scale(1);
    height: auto;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    padding: 0;
    margin: 0;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 174, 239, 0.85);
    color: white;
    padding: 1.5rem;
    transition: all 0.4s ease;
    opacity: 0;
}

.portfolio-item:hover .portfolio-item-overlay {
    bottom: 0;
    opacity: 1;
}

.portfolio-item-overlay h4 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}


/* Update existing styles */
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    transition: all var(--transition-speed);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Update page headers */
.page-header h1,
.section-title {
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Vehicle Cards */
.vehicle-card {
    text-align: left;
    margin-bottom: 2rem;
}

.vehicle-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.vehicle-card h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: left;
}

.vehicle-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
}

.vehicle-card ul {
    margin-top: 1rem;
    text-align: left;
    padding-left: 1.5rem;
}

.vehicle-card ul li {
    margin-bottom: 0.5rem;
}

.vehicle-card ul li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .vehicle-card {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .vehicle-card img {
        margin-bottom: 1.25rem;
    }

    .vehicle-card ul {
        text-align: center;
        list-style: none;
        padding-left: 0;
    }
    .vehicle-card h4,
    .vehicle-card p {
        text-align: center;
    }
}

/* About Us Page Styling */
.about-hero h4,
.expertise-icon,
.timeline-item h4,
.value-icon {
    color: var(--primary-color);
}

.expertise-icon,
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Value Items Hover Effect */
.value-item {
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background-color: rgba(0, 174, 239, 0.1);
    transform: translateY(-5px);
}

.value-item:hover .value-icon,
.value-item:hover h4 {
    color: var(--primary-color);
}


/* Enhanced Lightbox Styling */
.portfolio-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.portfolio-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 174, 239, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 174, 239, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 174, 239, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 174, 239, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Portfolio Admin Management */
.portfolio-item-admin {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portfolio-item-admin img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.portfolio-item-admin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item-admin:hover .portfolio-item-admin-overlay {
    transform: translateY(0);
}

.portfolio-item-admin-overlay h6 {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

.portfolio-item-admin-overlay .btn {
    margin-top: 0.5rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* Offset the fixed navbar height */
    height: 100vh;
}

.slider {
    height: 100vh;
}

.slide {
    height: 100vh !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 0 15px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.slide-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.slide-content .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

/* Slider Navigation */
.slider .slick-dots {
    bottom: 25px;
    z-index: 1;
}

.slider .slick-dots li button:before {
    color: white;
    font-size: 12px;
    opacity: 0.5;
}

.slider .slick-dots li.slick-active button:before {
    opacity: 1;
}

.slider .slick-prev,
.slider .slick-next {
    width: 50px;
    height: 50px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.slider .slick-prev {
    left: 25px;
}

.slider .slick-next {
    right: 25px;
}

.slider .slick-prev:before,
.slider .slick-next:before {
    font-size: 30px;
    opacity: 0.75;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-logo {
        height: 75px;
        max-width: 260px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content .lead {
        font-size: 1.2rem;
    }
    
    footer h5,
    footer p,
    footer .mb-1,
    footer .small,
    footer .contact-info {
        text-align: center !important;
    }
    
    footer .footer-links {
        text-align: center;
        list-style: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .slider .slick-prev,
    .slider .slick-next {
        display: none !important;
    }
    
    /* Fix for Request Quote button in services page */
    .container.text-center.py-4 {
        padding: 1.5rem 1rem !important;
    }
    
    .container.text-center.py-4 .d-grid.gap-3 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .container.text-center.py-4 .btn {
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem !important;
        width: 100%;
        font-size: 1rem;
    }
    
    /* Ensure gap between buttons */
    .container.text-center.py-4 .d-grid.gap-3 a:first-child {
        margin-bottom: 0.75rem;
    }
}

/* About Section */
.about-section {
    background-color: white;
    padding: 80px 0;
}

.about-section h2 {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    margin-bottom: 2rem;
}

.about-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.about-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 0.2s;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 0.4s;
}

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