/* Grand Air Condition - UI Improvements */

/* =================
   NAVBAR IMPROVEMENTS
   ================= */

/* Adjust navbar height and padding */
.navbar {
    padding: 0.5rem 0 !important;
    min-height: 80px;
}

.navbar-brand img {
    max-height: 45px !important;
    width: auto !important;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    font-weight: 500;
}

/* Active nav link highlighting */
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-nav .nav-link.active::before {
    width: 100% !important;
    left: 0 !important;
}

/* Better dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

/* =================
   HOME PAGE IMPROVEMENTS
   ================= */

/* Hero section banner text overlay fix */
.hero-header {
    position: relative;
    min-height: 500px;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
}

.hero-header h1,
.hero-header h5 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Product section improvements */
.service-item {
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 66, 41, 0.1);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(15, 66, 41, 0.15);
    transform: translateY(-5px);
}

.service-item img {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Service Page Image Optimization */
.service-icon img {
    width: 40% !important;
    max-width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.1);
}

/* Client section improvements */
.testimonial-carousel .testimonial-item {
    padding: 20px;
}

.testimonial-carousel img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
    border: 3px solid #f0f0f0;
    padding: 10px;
    background: white;
}

.testimonial-carousel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 15px;
}

/* =================
   CONTACT PAGE IMPROVEMENTS
   ================= */

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    height: 100%;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 66, 41, 0.15);
}

.contact-info h4 {
    color: var(--primary);
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    width: 20px;
    background: linear-gradient(135deg, var(--bs-primary), #2c5f41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form improvements */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(177, 0, 0, 0.25);
}

.contact-form-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.contact-form-section h3 {
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating input,
.form-floating textarea {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-floating input:focus,
.form-floating textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 66, 41, 0.25);
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

/* Contact Details Enhancement */
.contact-detail-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-item:hover {
    background: rgba(15, 66, 41, 0.05);
    padding-left: 1rem;
    border-radius: 8px;
}

.contact-detail-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bs-primary), #2c5f41);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-detail-item strong {
    color: var(--bs-primary);
    font-weight: 600;
}

.contact-detail-item a {
    color: #495057;
    font-weight: 500;
}

.contact-detail-item a:hover {
    color: var(--bs-primary);
}

/* =================
   NEW CONTACT PAGE STYLING
   ================= */

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--bs-primary), #2c5f41);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(15, 66, 41, 0.15);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary), #2c5f41);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-info-card:hover .contact-icon-wrapper::before {
    transform: translateX(100%);
}

.contact-info-card h4 {
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-info-card .text-muted {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Detail Cards */
.contact-detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    height: 100%;
}

.contact-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 66, 41, 0.12);
    border-color: var(--bs-primary);
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bs-primary), #2c5f41);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-detail-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-detail-content h6 {
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1rem;
}

.contact-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #2c5f41;
    text-decoration: underline;
}

/* Contact Badges */
.contact-badges .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 25px;
}

/* Services Highlight */
.services-highlight {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.services-highlight h5 {
    color: var(--bs-dark);
    font-weight: 600;
}

.service-item-mini {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--bs-dark);
    font-size: 0.95rem;
}

.service-item-mini i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Map Section */
.map-section {
    position: sticky;
    top: 2rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

/* Quick Contact Card */
.quick-contact-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}

.quick-contact-card h5 {
    color: var(--bs-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-contact-card .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.quick-contact-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quick-contact-card .btn-success:hover {
    background-color: #198754;
    border-color: #198754;
}

/* Contact Details Grid */
.contact-details-grid {
    margin: 2rem 0;
}

/* Enhanced Form Section Background */
.contact-form-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), #2c5f41, var(--bs-primary));
}

/* =================
   PAGE HEADER BACKGROUND IMPROVEMENTS
   ================= */

/* Ensure SVG backgrounds scale properly in page headers */
.page-header {
    background-attachment: fixed !important;
}

/* Improve SVG rendering for page headers */
@media (max-width: 768px) {
    .page-header {
        background-attachment: scroll !important;
        min-height: 300px;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .contact-info-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon-wrapper i {
        font-size: 1.2rem;
    }
    
    .contact-detail-card {
        padding: 1rem;
    }
    
    .contact-detail-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .contact-detail-icon i {
        font-size: 1rem;
    }
    
    .quick-contact-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .services-highlight {
        padding: 1.5rem;
    }
    
    .map-section {
        position: static;
        margin-top: 2rem;
    }
    
    .banner-slider-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-header h1 {
        font-size: 2rem !important;
    }
    
    .service-item img {
        height: 150px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px 15px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 8px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .banner-slider-container {
        margin-bottom: 1rem;
    }
}

/* =================
   PERFORMANCE OPTIMIZATIONS
   ================= */

/* Lazy loading improvements */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .back-to-top,
    .footer-social a {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .back-to-top,
    .btn {
        display: none !important;
    }
}

/* =================
   BANNER SLIDER STYLES
   ================= */

.banner-slider-container {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    overflow-x: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.banner-item {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

body {
    overflow-x: hidden;
}

/* Banner Carousel Navigation */
.banner-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.banner-carousel .owl-nav .owl-prev,
.banner-carousel .owl-nav .owl-next {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-carousel .owl-nav .owl-prev:hover,
.banner-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Banner Carousel Dots */
.banner-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-carousel .owl-dot.active,
.banner-carousel .owl-dot:hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Animation for banner content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles for banner */
@media (max-width: 768px) {
    .banner-carousel .owl-nav {
        padding: 0 10px;
    }
    
    .banner-carousel .owl-nav .owl-prev,
    .banner-carousel .owl-nav .owl-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banner-carousel .owl-dots {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .banner-overlay h1 {
        font-size: 2rem !important;
    }
    
    .banner-overlay h5 {
        font-size: 1rem !important;
    }
}

/* =================
   RESPONSIVE BANNER SYSTEM
   ================= */

/* Show large banners on desktop/tablet, hide small banners */
.banner-slider-container .banner-large {
    display: block !important;
}

.banner-slider-container .banner-small {
    display: none !important;
}

/* Override Owl Carousel's auto-display when loaded */
.banner-slider-container .banner-small.owl-carousel.owl-loaded {
    display: none !important;
}

.banner-slider-container .banner-large.owl-carousel.owl-loaded {
    display: block !important;
}

/* Media query for small screens - show mobile banners, hide desktop banners */
@media (max-width: 768px) {
    .banner-slider-container .banner-large {
        display: none !important;
    }
    
    .banner-slider-container .banner-small {
        display: block !important;
    }
    
    /* Override Owl Carousel's auto-display when loaded on mobile */
    .banner-slider-container .banner-large.owl-carousel.owl-loaded {
        display: none !important;
    }
    
    .banner-slider-container .banner-small.owl-carousel.owl-loaded {
        display: block !important;
    }
}

/* Ensure both banner carousels inherit the same styling */
.banner-large,
.banner-small {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}
