/* Floating Buttons */
.floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    background-color: #25D366;
}

.floating-call {
    background-color: #007bff;
}

/* Gallery and Blog Layout */
.gallery-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .gallery-grid, .blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .footer-grid { text-align: left; }
    .footer-grid .footer-links { align-items: flex-start; }
    .footer-grid > div { text-align: left; }
}

.gallery-item, .blog-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Gallery Hover Effect */
@media (min-width: 769px) {
    .gallery-item:hover {
        transform: translateY(-10px) scale(1.02);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
        border-color: rgba(255, 193, 7, 0.6);
        z-index: 10;
    }
}

.gallery-img, .blog-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Video specific fixes */
.gallery-video-landscape {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 12px;
}
.gallery-video-landscape video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

.gallery-video-portrait {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    display: block;
}

.blog-item-content {
    padding: 15px;
}

.blog-item-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.blog-item a {
    text-decoration: none;
}

/* Footer Fixes */
.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links li i {
    flex-shrink: 0;
}

/* Areas Served center fix */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
    justify-content: center;
    gap: 15px;
}

/* Slider Review Fixes */
.swiper-slide img {
    height: 280px;
    object-fit: contain;
    background: #fff;
}

/* --- Light Mode Visibility Fixes --- */
[data-theme="light"] .hero-text h1 span.gradient {
    background: linear-gradient(45deg, var(--primary-dark), #333333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .area-tag:hover {
    color: var(--bg-deep);
    border-color: var(--text-main);
    background-color: var(--text-main);
}

[data-theme="light"] .gallery-item, [data-theme="light"] .blog-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 769px) {
    [data-theme="light"] .gallery-item:hover {
        background: rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.15);
    }
}

/* --- Logo Sizing & Position Fix --- */
header {
    height: 95px; 
}
header .container {
    padding: 0 25px; /* Give more breathing room */
}

.logo-img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    object-position: left center;
    margin-left: 10px; /* Adjusting left side position */
    transform-origin: left center;
    transform: scale(1.2) !important; /* Scale to appear bigger without expanding container */
}

@media (max-width: 1024px) {
    .logo-img {
        width: 50px !important;
        height: 50px !important;
        transform: scale(1.4) !important;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    header .container {
        padding: 0 15px;
    }
    .logo-img {
        width: 40px !important;
        height: 40px !important;
        margin-left: 5px;
        transform: scale(1.6) !important; /* Scale to appear much larger on mobile */
    }
}

/* --- Logo Hover Fix & Logo Text Styling --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--primary-glow);
}

.logo:hover .logo-img {
    transform: scale(1.2) !important; /* Keep the same scale as base to disable hover animation on desktop */
}

@media (max-width: 1024px) {
    .logo-text {
        font-size: 0.95rem;
    }
    .logo:hover .logo-img {
        transform: scale(1.4) !important;
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    .logo:hover .logo-img {
        transform: scale(1.6) !important;
    }
}


/* --- Responsive Tablet Fix for Navigation --- */
/* The large logo text and many navigation links cause overlap on tablets like iPad (820px). */
/* Triggering mobile navigation (hamburger menu) on anything smaller than 1200px to ensure it stays clean. */
@media (max-width: 1200px) {
    .nav-links {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
        pointer-events: auto !important;
    }
    
    header {
        justify-content: center;
    }
    header .container {
        padding: 0 20px;
    }
}
