/* Variables */
:root {
    --primary-color: #007bff;  /* Blue for buttons and other elements */
    --primary-hover: #0056b3;  /* Darker blue for hover states */
    --nav-color: #ff0000;      /* Red for nav */
    --nav-hover: #ff6666;      /* Lighter red for nav hover */
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Site Navigation - Floating Glassmorphic Dock */
.site-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem;
    background: rgba(248, 249, 250, 0.9); /* Light gray/whitish glass */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Darker border line for high definition on white bg */
    border-radius: 50px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 
                0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    color: var(--nav-color); /* Old Nav Red */
    background-color: transparent;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-link i {
    transition: transform 0.25s ease;
}

/* Specific styling for scroll-top chevron inside the dock */
.nav-link.scroll-top {
    padding: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.05); /* Subtle dark circle on light background */
    border-radius: 50%;
    color: var(--nav-color); /* Red arrow icon */
}

.nav-link.scroll-top:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.08); /* Soft blue highlight matching branding */
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: translateY(-1px);
}

.nav-link:visited,
.nav-link:focus,
.nav-link:active {
    text-decoration: none;
}

/* Responsive Dock: Anchored to Bottom on Mobile for easy thumb access */
@media (max-width: 768px) {
    .site-nav {
        top: auto;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 420px;
    }
    
    .nav-links {
        justify-content: space-around;
        padding: 0.4rem;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex-grow: 1;
        text-align: center;
    }
    
    .nav-link.scroll-top {
        flex-grow: 0;
        width: 32px;
        height: 32px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/header.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .lead {
        font-size: 1.25rem;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 80px);
        margin-top: 80px;
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.hidden {
    opacity: 0;
    transform: translateY(20px);
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

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

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

.card-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .card {
        margin: 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Services Section */
.services-description {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 250px));
    width: 100%;
    max-width: 100%;
    gap: 1.5rem;
    padding: 2rem;
    margin: 0;
    justify-content: center;
}

.feature-item {
    text-align: center;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
    line-height: 1.3;
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(180px, 220px));
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: minmax(160px, 200px);
        gap: 1rem;
        padding: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item i {
        font-size: 1.75rem;
    }
}

/* Clients Image */
.clients-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* Upload Section */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 30px;
}

.modal-header {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-header .btn-close {
    background-color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background-color: var(--primary-hover);
    transform: rotate(90deg);
}

.modal-header .btn-close:focus {
    box-shadow: none;
}

/* Override Bootstrap's default white background-image for close button */
.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.modal-footer {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

#driveFrame {
    background: #f8f9fa;
}

/* Modal Carousels */
#worksModal .modal-content,
#aboutModal .modal-content {
    border-radius: 30px;
    overflow: hidden;
}

#worksModal .modal-header,
#aboutModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

#worksModal .modal-body,
#aboutModal .modal-body {
    padding: 0;
}

#worksCarousel,
#aboutCarousel {
    background-color: #000;
}

#worksCarousel .carousel-item,
#aboutCarousel .carousel-item {
    height: 70vh;
    background-color: #000;
}

#worksCarousel .carousel-item img,
#aboutCarousel .carousel-item img {
    height: 100%;
    object-fit: contain;
}

#worksCarousel .carousel-control-prev,
#worksCarousel .carousel-control-next,
#aboutCarousel .carousel-control-prev,
#aboutCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.7;
    background-color: var(--primary-color);
    margin: 0 1rem;
    border-radius: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
}

#worksCarousel .carousel-control-prev:hover,
#worksCarousel .carousel-control-next:hover,
#aboutCarousel .carousel-control-prev:hover,
#aboutCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    #worksCarousel .carousel-item,
    #aboutCarousel .carousel-item {
        height: 50vh;
    }
    
    #worksCarousel .carousel-control-prev,
    #worksCarousel .carousel-control-next,
    #aboutCarousel .carousel-control-prev,
    #aboutCarousel .carousel-control-next {
        margin: 0 0.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 3rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 2rem;
}

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

.footer-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-card p {
    color: #666;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.footer-card .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-card .phone-link:hover {
    color: var(--primary-hover);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}
