/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    padding-top: 140px; /* Increased to account for larger logo */
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    will-change: transform; /* Optimize for fixed positioning */
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
}

.navbar-brand {
    font-weight: bold;
}

.navbar-brand img {
    height: 100px;
    width: auto;
    margin-right: 15px;
}

.nav-item {
    margin: 0 20px;  /* Increased spacing between nav items */
}

/* Enhanced navigation buttons */
.navbar .btn {
    font-weight: 600;
    padding: 8px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #007bff;
    border-color: #007bff;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Mobile navigation adjustments */
@media (max-width: 991px) {
    body {
        padding-top: 120px; /* Adjusted for mobile */
    }

    .navbar {
        position: fixed !important; /* Force fixed positioning */
        position: -webkit-sticky !important; /* For Safari */
        position: sticky !important; /* Fallback */
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        height: auto;
    }

    .navbar-brand img {
        height: 80px; /* Slightly smaller logo on mobile */
    }

    /* Navigation links container */
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Regular nav items */
    .navbar-nav .nav-item:not(:has(.btn)) {
        display: inline-block;
        margin: 5px 10px;
    }

    /* Button container */
    .navbar-nav .button-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    /* Button items */
    .navbar-nav .nav-item:has(.btn) {
        display: inline-block;
        margin: 5px 5px;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
}

.hero .carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Services Section */
.services .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.services .card-img-top {
    height: 200px;
    object-fit: cover;
}

.services a:hover {
    text-decoration: none;
}

.services .card-title,
.services .card-text {
    color: inherit;
}

/* Process Section */
.process-step {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.process-step i {
    color: #007bff;
}

/* Testimonials Section */
.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .client {
    font-weight: bold;
    color: #007bff;
}

/* Portfolio Section */
.portfolio-filters {
    margin-bottom: 30px;
}

.portfolio-filters .btn {
    margin: 5px;
}

.portfolio-item .card {
    transition: transform 0.3s ease;
}

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

/* Contact Form */
.contact-form {
    background-color: #f8f9fa;
}

.contact-form form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: 50px;
}

.social-links a {
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .process-step {
        margin-bottom: 30px;
    }
}

/* Chat Widget */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-icon i {
    color: white;
    font-size: 24px;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-open {
    display: flex;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    font-weight: bold;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-input-container {
    border-top: 1px solid #eee;
    padding: 15px;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
}

.chat-send {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #f1f1f1;
    color: #333;
}

.error-message {
    background: #ff4444;
    color: white;
    text-align: center;
}

.typing {
    background: #eee;
    color: #666;
    font-style: italic;
}
.escalation {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Logo in navbar */
.navbar-brand img {
    height: 100px;
    width: auto;
    margin-right: 15px;
}

/* Button Styles */
.btn {
    border-radius: 25px;  /* More rounded corners */
    font-size: 0.9rem;    /* Smaller font size */
    padding: 8px 20px;    /* Adjust padding to maintain good button size */
}

.btn-lg {
    font-size: 1rem;      /* Slightly larger for btn-lg but still smaller than default */
    padding: 10px 25px;   /* Adjusted padding for larger buttons */
}

/* Portfolio Grid Styles */
.portfolio-grid {
    margin-top: 2rem;
}

.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

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

.portfolio-img {
    height: 250px;
    object-fit: cover;
}

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

.portfolio-filters .btn {
    min-width: 100px;
}

/* Project Modal Styles */
.modal-xl {
    max-width: 90%;
}

.project-gallery {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.project-gallery img {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.project-details {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #666;
}

/* Admin Add Button */
.btn.rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Image Comparison Styles */
.main-image-display {
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.main-image-display img {
    transition: opacity 0.3s ease;
}

.slider-controls {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.form-range {
    height: 1.5rem;
    padding: 0;
}

.form-range::-webkit-slider-thumb {
    background: #007bff;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.form-range::-webkit-slider-runnable-track {
    background: #dee2e6;
    height: 0.5rem;
    border-radius: 0.25rem;
}