/*
 * Perfect Waterproofing - Main Stylesheet
 * Professional Waterproofing Portfolio & Lead Generation Website
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors */
    --primary-color: #0A2A43;
    --secondary-color: #6C757D;
    --accent-color: #4A90E2;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing - Responsive */
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 42, 67, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 42, 67, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 42, 67, 0.16);
    
    /* Mobile-specific variables */
    --mobile-padding: 15px;
    --mobile-radius: 8px;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    position: relative;
    background: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    margin: 0 15px;
    transition: var(--transition-smooth);
}

.top-bar a:hover {
    color: var(--accent-color);
}

.top-bar i {
    margin-right: 5px;
}

.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 45px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-brand img {
    height: 38px;
    max-width: 150px;
}

.navbar-brand span {
    color: var(--accent-color);
}

/* Footer logo */
.footer-logo {
    height: 55px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
        max-width: 160px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 35px;
        max-width: 140px;
    }
    
    .footer-logo {
        height: 50px;
        max-width: 180px;
    }
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* ============================================
   BUTTONS & CTA
   ============================================ */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: var(--transition-bounce);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #0d3b5e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1ebc59;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3b5e 100%);
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
    background: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow-sm);
    margin-top: -40px;
    position: relative;
    z-index: 3;
    border-radius: 12px;
}

.trust-item {
    text-align: center;
    padding: 15px;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 24px;
    transition: var(--transition-bounce);
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.trust-item h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .subtitle {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ============================================
   CARDS
   ============================================ */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card .btn-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card .btn-link:hover {
    gap: 10px;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-step {
    position: relative;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.process-step:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.process-step h4 {
    margin-bottom: 10px;
}

.process-step p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #0d3b5e);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: ripple 15s infinite;
}

@keyframes ripple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ============================================
   FLOATING CTA BUTTONS
   ============================================ */
.floating-cta {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-bounce);
    animation: pulse 2s infinite;
    /* Ensure buttons are always visible and touchable */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-whatsapp {
    bottom: 30px;
    right: 30px;
    background: #25D366;
}

.floating-call {
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
}

.floating-cta:hover {
    transform: scale(1.15);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 42, 67, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   RESPONSIVE IMAGES WITH LAZY LOADING
   ============================================ */
/* Lazy Image Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.lazy-image.loaded {
    opacity: 1;
}

/* Image aspect ratio preservation */
.gallery-item img,
.lazy-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* Responsive image sizes for different screen sizes */
@media (max-width: 767.98px) {
    .gallery-item img,
    .lazy-image {
        height: 220px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-item img,
    .lazy-image {
        height: 260px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-item img,
    .lazy-image {
        height: 280px;
    }
}

@media (min-width: 1200px) {
    .gallery-item img,
    .lazy-image {
        height: 300px;
    }
}

@media (min-width: 1600px) {
    .gallery-item img,
    .lazy-image {
        height: 380px;
    }
}

/* Loading placeholder animation */
.lazy-image:not(.loaded) {
    position: relative;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Disable hover effects on touch devices for better mobile UX */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
    
    /* Show overlay on tap for mobile */
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
}

/* High-resolution image optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img,
    .lazy-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prevent image dragging */
.gallery-item img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Image error handling - fallback style */
.gallery-item img[alt]:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

/* ============================================
   HOMEPAGE FEATURED IMAGES
   ============================================ */
/* Featured project images on homepage */
.slide-in-right .gallery-item img {
    height: 200px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-in-right .gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Mobile optimization for homepage images */
@media (max-width: 767.98px) {
    .slide-in-right .gallery-item img {
        height: 150px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .slide-in-right .gallery-item img {
        height: 180px;
    }
}

/* Featured projects section on homepage */
section .gallery-item {
    transition: transform 0.3s ease;
}

section .gallery-item:hover {
    transform: translateY(-5px);
}

/* Ensure images maintain quality on high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Progressive image loading enhancement */
.lazy-image {
    background-color: #f0f0f0;
    background-image: 
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0)
        );
    background-repeat: no-repeat;
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
    min-height: 200px;
}

.lazy-image.loaded {
    background: none;
    animation: none;
}

/* Smooth fade-in effect for loaded images */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lazy-image.loaded {
    animation: fadeIn 0.5s ease-in;
}

/* Grid layout for homepage featured images */
.row.g-3 .gallery-item {
    margin-bottom: 0;
}

.row.g-3 .col-6 {
    padding: 0.5rem;
}

/* Mobile-specific image styles */
@media (max-width: 575.98px) {
    .row.g-3 .col-6 {
        padding: 0.25rem;
    }
    
    .slide-in-right .gallery-item img {
        height: 120px;
    }
}

/* Touch device image optimization */
@media (hover: none) and (pointer: coarse) {
    .slide-in-right .gallery-item:hover img {
        transform: none;
    }
    
    .slide-in-right .gallery-item:active img {
        transform: scale(0.98);
    }
}

/* Image container for aspect ratio preservation */
.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 150px;
}

/* Prevent layout shift during image load */
.lazy-image:not(.loaded) {
    min-height: 200px;
    display: block;
}

/* Retina display optimization */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    .lazy-image,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.team-photo {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.team-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px 20px;
    text-align: center;
    background: var(--white);
}

.team-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.team-info .designation {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Mobile Responsive - Team Cards */
@media (max-width: 767.98px) {
    .team-card {
        margin-bottom: 20px;
    }
    
    .team-info {
        padding: 20px 15px;
    }
    
    .team-info h4 {
        font-size: 1.15rem;
    }
    
    .team-info .designation {
        font-size: 0.9rem;
    }
}

/* Touch devices - disable hover transform */
@media (hover: none) and (pointer: coarse) {
    .team-card:hover {
        transform: none;
    }
    
    .team-card:hover .team-photo img {
        transform: none;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .team-info h4 {
        font-size: 1.2rem;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .team-photo {
        padding-top: 100%;
    }
    
    .team-info {
        padding: 30px 25px;
    }
    
    .team-info h4 {
        font-size: 1.35rem;
    }
    
    .team-info .designation {
        font-size: 1rem;
    }
}

/* ============================================
   ACCORDION (FAQ & Methods)
   ============================================ */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 25px;
    background: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* ============================================
   TIMELINE (Process Page)
   ============================================ */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-marker {
        left: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar a {
        display: block;
        margin: 5px 0;
    }
    
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 1.85rem;
    }
    
    .floating-cta {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-call {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .cta-banner h2 {
        font-size: 1.75rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ============================================ */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 8px 0;
        font-size: 0.8rem;
    }
    
    .top-bar a {
        display: block;
        margin: 4px 0;
        padding: 4px 0;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        height: 35px;
        max-width: 140px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }
    
    .navbar-nav {
        padding: 15px 0;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 60px 0 50px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .badge-free {
        display: block;
        margin: 5px 0;
        font-size: 0.75rem;
    }
    
    /* Trust Strip */
    .trust-strip {
        margin-top: -20px;
        padding: 25px 15px;
    }
    
    .trust-item {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .trust-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .trust-item h5 {
        font-size: 0.9rem;
    }
    
    .trust-item p {
        font-size: 0.75rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title .subtitle {
        font-size: 0.9rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* CTA Banner */
    .cta-banner {
        padding: 40px 15px;
    }
    
    .cta-banner h2 {
        font-size: 1.4rem;
    }
    
    .cta-banner p {
        font-size: 0.9rem;
    }
    
    .cta-banner .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .footer ul li {
        margin-bottom: 8px;
    }
    
    .footer-logo {
        height: 45px;
        margin: 0 auto 15px;
    }
    
    .social-links {
        margin-top: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 25px;
        font-size: 0.8rem;
    }
    
    /* Floating CTAs */
    .floating-cta {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-call {
        bottom: 70px;
        right: 15px;
    }
    
    /* Gallery */
    .gallery-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    /* Accordion */
    .accordion-button {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Contact Page */
    .contact-info-item {
        margin-bottom: 20px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: 20px;
    }
    
    .timeline-marker {
        left: 15px;
        width: 30px;
        height: 30px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Page Headers */
    .py-5[style*="background"] h1 {
        font-size: 1.6rem;
    }
    
    .py-5[style*="background"] .lead {
        font-size: 0.95rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Alerts */
    .alert {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    /* Lists */
    ul li, ol li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    /* Sidebar on service pages */
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .trust-strip {
        margin-top: -30px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .navbar-brand img {
        height: 42px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .trust-item h5 {
        font-size: 0.95rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .filter-btn {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch */
    .service-card:hover {
        transform: none;
    }
    
    .process-step:hover {
        transform: none;
    }
    
    /* Better tap feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .floating-cta:active {
        transform: scale(0.95);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .floating-cta {
        width: 50px;
        height: 50px;
        font-size: 22px;
        z-index: 9999;
    }
    
    .floating-whatsapp {
        bottom: calc(15px + env(safe-area-inset-bottom));
        right: calc(15px + env(safe-area-inset-right));
    }
    
    .floating-call {
        bottom: calc(70px + env(safe-area-inset-bottom));
        right: calc(15px + env(safe-area-inset-right));
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Safe area for notched phones (iPhone X+) */
@supports (padding: max(0px)) {
    .top-bar {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    /* Floating buttons already use calc() with env() in media queries */
    /* This ensures minimum spacing even if media queries don't apply */
    .floating-whatsapp {
        right: max(30px, calc(30px + env(safe-area-inset-right)));
    }
    
    .floating-call {
        right: max(30px, calc(30px + env(safe-area-inset-right)));
    }
}

/* Print styles */
@media print {
    .floating-cta,
    .top-bar,
    .navbar {
        display: none !important;
    }
    
    .hero-section {
        background: #f5f5f5 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-light-custom {
    background: var(--light-bg);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.badge-free {
    background: #28a745;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.img-fluid {
    border-radius: 12px;
}

/* ============================================
   LOADING OPTIMIZATION
   ============================================ */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ============================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Smooth scrolling for all devices */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Hide horizontal overflow - Mobile Viewport Fix */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

/* Ensure all containers respect viewport width */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Ensure sections don't overflow */
section,
header,
footer,
nav {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile-specific overflow prevention */
@media (max-width: 767.98px) {
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }
    
    body {
        overflow-x: hidden !important;
        overflow-y: auto;
        width: 100%;
        max-width: 100vw;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    
    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    /* Prevent horizontal scroll from media elements */
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto;
    }
    
    /* Ensure all sections stay within viewport */
    section,
    header,
    footer,
    nav,
    main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Better text rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Mobile tap highlight */
a, button, .btn {
    -webkit-tap-highlight-color: rgba(74, 144, 226, 0.2);
}

/* Clickable phone numbers */
a[href^="tel:"] {
    white-space: nowrap;
}

/* Mobile-friendly tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Fix iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Mobile sticky header shadow */
@media (max-width: 991px) {
    .navbar.scrolled {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Improved mobile card spacing */
@media (max-width: 767px) {
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}

/* Mobile-friendly icon sizing */
@media (max-width: 575px) {
    .fa-2x {
        font-size: 1.5em;
    }
    
    .fa-3x {
        font-size: 2em;
    }
}

/* Better mobile list display */
@media (max-width: 575px) {
    .list-unstyled li {
        padding: 5px 0;
    }
    
    .d-flex.mb-3,
    .d-flex.mb-4 {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.mb-3 .me-3,
    .d-flex.mb-4 .me-4 {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* Mobile page header improvements */
@media (max-width: 575px) {
    [style*="background: linear-gradient"] {
        padding: 30px 0 !important;
    }
    
    [style*="background: var(--primary-color)"] {
        padding: 30px 0 !important;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* ===== TABLET LANDSCAPE (1024px and below) ===== */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* ===== TABLET PORTRAIT (991px and below) ===== */
@media (max-width: 991.98px) {
    /* Navigation */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-radius: 8px;
        margin: 2px 0;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: var(--light-bg);
    }
    
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: transparent;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 15px;
        border-radius: 6px;
    }
    
    .navbar .btn {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 90px 0 70px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services Grid */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Stats Section */
    .stat-item {
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer .row > div {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    /* Gallery */
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-filters .btn {
        margin: 5px;
        font-size: 0.9rem;
    }
}

/* ===== MOBILE LARGE (767px and below) ===== */
@media (max-width: 767.98px) {
    /* Base Typography */
    html {
        font-size: 15px;
    }
    
    body {
        line-height: 1.6;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    p {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Top Bar - Hide on mobile */
    .top-bar {
        display: none !important;
    }
    
    /* Navbar */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand img {
        height: 38px;
        max-width: 150px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 32px;
        max-width: 130px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        font-size: 1.1rem;
        border: 2px solid var(--primary-color);
        border-radius: 6px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: 2px solid var(--accent-color);
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Trust Badges */
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .trust-badge {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 15px;
    }
    
    .service-card .card-body {
        padding: 20px;
    }
    
    .service-card h4 {
        font-size: 1.15rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-item {
        margin-bottom: 25px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Process Steps */
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .process-step .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 30px;
    }
    
    .timeline-item::before {
        left: 10px;
        width: 20px;
        height: 20px;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-filters {
        margin-bottom: 25px;
    }
    
    .gallery-filters .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 4px;
    }
    
    /* Before/After Slider */
    .before-after-container {
        margin-bottom: 20px;
    }
    
    /* FAQ Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 15px;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 12px 15px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 14px;
    }
    
    /* Contact Info Cards */
    .contact-info-card {
        padding: 20px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .contact-info-card i {
        font-size: 2rem;
    }
    
    /* CTA Banner */
    .cta-banner {
        padding: 40px 20px;
        text-align: center;
    }
    
    .cta-banner h2 {
        font-size: 1.6rem;
    }
    
    .cta-banner p {
        font-size: 1rem;
    }
    
    .cta-banner .btn {
        width: 100%;
        max-width: 280px;
        margin: 8px auto;
    }
    
    /* Floating CTAs */
    .floating-cta {
        position: fixed !important;
        width: 56px;
        height: 56px;
        font-size: 24px;
        z-index: 9999;
        /* Ensure touch-friendly size (minimum 44x44px) */
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px;
        left: auto !important;
    }
    
    .floating-whatsapp {
        bottom: calc(130px + env(safe-area-inset-bottom));
        right: calc(50px + env(safe-area-inset-right));
        left: auto !important;
        /* Position much higher and shift left with more right spacing */
    }
    
    .floating-call {
        bottom: calc(195px + env(safe-area-inset-bottom));
        right: calc(50px + env(safe-area-inset-right));
        left: auto !important;
    }
    
    /* Free Inspection Badge */
    .free-inspection-badge {
        position: fixed;
        bottom: 150px;
        right: 20px;
        font-size: 0.75rem;
        padding: 8px 12px;
        max-width: 120px;
        text-align: center;
        z-index: 1000;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-logo img {
        height: 45px;
        max-width: 160px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-top: 25px;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
    
    .footer-contact p {
        font-size: 0.95rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .testimonial-card p {
        font-size: 0.95rem;
    }
    
    /* Why Us Cards */
    .why-us-card {
        padding: 25px 20px;
        margin-bottom: 15px;
    }
    
    /* Method Cards */
    .method-card {
        margin-bottom: 20px;
    }
    
    .method-card .card-body {
        padding: 20px;
    }
    
    /* Page Headers */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header .breadcrumb {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    /* Tables - Make responsive */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Cards general */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Lists */
    .list-group-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
}

/* ===== MOBILE SMALL (575px and below) ===== */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Container */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Hero */
    .hero-section {
        padding: 70px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 1.65rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 35px;
        max-width: 140px;
    }
    
    /* Cards */
    .card-body {
        padding: 15px;
    }
    
    .service-card .card-body {
        padding: 18px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 180px;
    }
    
    /* CTA Banner */
    .cta-banner h2 {
        font-size: 1.4rem;
    }
    
    /* Floating CTAs - Extra small mobile devices */
    .floating-cta {
        width: 56px;
        height: 56px;
        font-size: 24px;
        z-index: 9999;
        /* Touch-friendly size for small screens */
        min-width: 56px;
        min-height: 56px;
    }
    
    .floating-whatsapp {
        bottom: calc(130px + env(safe-area-inset-bottom));
        right: calc(45px + env(safe-area-inset-right));
        /* Position much higher and shift left with more right spacing */
    }
    
    .floating-call {
        bottom: calc(195px + env(safe-area-inset-bottom));
        right: calc(45px + env(safe-area-inset-right));
    }
    
    /* Free Inspection Badge */
    .free-inspection-badge {
        bottom: 135px;
        right: 15px;
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 100px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 20px 15px;
    }
    
    /* Footer */
    .footer {
        padding: 35px 0 15px;
    }
    
    .footer-logo img {
        height: 40px;
        max-width: 140px;
    }
    
    /* Page Header */
    .page-header {
        padding: 90px 0 35px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    /* Buttons */
    .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 15px;
    }
    
    .process-step .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .accordion-body {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 15px;
    }
}

/* ===== EXTRA SMALL DEVICES (400px and below) ===== */
@media (max-width: 400px) {
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    
    /* Hero */
    .hero-section h1 {
        font-size: 1.45rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 32px;
        max-width: 120px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Floating CTAs - Very small screens (360px and below) */
    .floating-cta {
        width: 56px;
        height: 56px;
        font-size: 24px;
        z-index: 9999;
        min-width: 56px;
        min-height: 56px;
    }
    
    .floating-whatsapp {
        bottom: max(130px, calc(130px + env(safe-area-inset-bottom)));
        right: max(45px, calc(45px + env(safe-area-inset-right)));
        /* Position much higher and shift left with more right spacing */
    }
    
    .floating-call {
        bottom: max(195px, calc(195px + env(safe-area-inset-bottom)));
        right: max(45px, calc(45px + env(safe-area-inset-right)));
    }
    
    /* Free Inspection Badge */
    .free-inspection-badge {
        display: none; /* Hide on very small screens */
    }
    
    /* Gallery */
    .gallery-item img {
        height: 160px;
    }
}

/* ===== SPECIFIC FIX FOR 360PX SCREENS (Samsung Galaxy, etc.) ===== */
@media (max-width: 375px) {
    .floating-whatsapp {
        bottom: max(130px, calc(130px + env(safe-area-inset-bottom))) !important;
        right: max(45px, calc(45px + env(safe-area-inset-right))) !important;
        /* Position much higher and shift left with more right spacing */
    }
    
    .floating-call {
        bottom: max(195px, calc(195px + env(safe-area-inset-bottom))) !important;
        right: max(45px, calc(45px + env(safe-area-inset-right))) !important;
    }
}

/* ===== LANDSCAPE MODE ADJUSTMENTS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-cta .btn {
        width: auto;
        padding: 10px 20px;
    }
    
    .floating-cta {
        width: 50px;
        height: 50px;
        font-size: 22px;
        z-index: 9999;
    }
    
    .floating-whatsapp {
        bottom: calc(15px + env(safe-area-inset-bottom));
        right: calc(15px + env(safe-area-inset-right));
    }
    
    .floating-call {
        bottom: calc(70px + env(safe-area-inset-bottom));
        right: calc(15px + env(safe-area-inset-right));
    }
    
    section {
        padding: 30px 0;
    }
    
    .navbar-collapse {
        max-height: 60vh;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .service-card:hover,
    .gallery-item:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Add active states instead */
    .service-card:active,
    .gallery-item:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Prevent text selection on interactive elements */
    .btn,
    .nav-link,
    .floating-cta {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Faster transitions for touch */
    .service-card,
    .gallery-item,
    .btn {
        transition: transform 0.15s ease;
    }
}

/* ===== iOS SAFE AREA SUPPORT ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .floating-whatsapp {
        right: max(15px, env(safe-area-inset-right));
        bottom: max(15px, env(safe-area-inset-bottom));
    }
    
    .floating-call {
        right: max(15px, env(safe-area-inset-right));
        bottom: calc(max(15px, env(safe-area-inset-bottom)) + 60px);
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* ===== PREVENT iOS INPUT ZOOM ===== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-cta {
        animation: none;
    }
    
    .service-card,
    .gallery-item,
    .testimonial-card {
        transition: none;
    }
}

/* ===== DARK MODE SUPPORT (optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Only apply if you want automatic dark mode */
    /* Currently disabled - remove comments to enable */
    /*
    :root {
        --white: #1a1a1a;
        --light-bg: #2d2d2d;
        --dark-text: #f5f5f5;
    }
    */
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .service-card,
    .card {
        border: 2px solid var(--primary-color);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .floating-cta,
    .floating-whatsapp,
    .floating-call,
    .free-inspection-badge,
    .cta-banner,
    footer {
        display: none !important;
    }
    
    /* Reset backgrounds */
    body,
    .hero-section,
    section {
        background: white !important;
        color: black !important;
    }
    
    /* Show links */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Ensure content fits page */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .card {
        page-break-inside: avoid;
    }
}

/* ===== UTILITY CLASSES FOR MOBILE ===== */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 767.98px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-mobile-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .p-mobile-3 {
        padding: 1rem !important;
    }
    
    .order-mobile-first {
        order: -1 !important;
    }
    
    .order-mobile-last {
        order: 999 !important;
    }
}

/* ===== SCROLLBAR STYLING (Mobile-friendly) ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 767.98px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* ===== FIX FOR 100VH ON MOBILE ===== */
.full-height {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

.min-full-height {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============================================
   LAPTOP & DESKTOP RESPONSIVE STYLES
   ============================================ */

/* ===== LAPTOP / SMALL DESKTOP (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    .hero-section {
        padding: 110px 0 90px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.15rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .cta-banner {
        padding: 50px 0;
    }
    
    .cta-banner h2 {
        font-size: 2rem;
    }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section {
        padding: 120px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 3.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px !important;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .floating-cta {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .floating-whatsapp {
        bottom: 30px;
        right: 30px;
    }
    
    .floating-call {
        bottom: 100px;
        right: 30px;
    }
}

/* ===== LARGE DESKTOP (1400px - 1599px) ===== */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .container {
        max-width: 1320px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.85rem; }
    
    .hero-section {
        padding: 130px 0 110px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 18px !important;
        font-size: 1.05rem;
    }
    
    .service-card {
        padding: 35px;
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }
    
    .stat-number {
        font-size: 4rem;
    }
    
    .gallery-item img {
        height: 320px;
    }
    
    .cta-banner {
        padding: 70px 0;
    }
    
    .cta-banner h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 90px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .floating-cta {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .floating-whatsapp {
        bottom: 35px;
        right: 35px;
    }
    
    .floating-call {
        bottom: 110px;
        right: 35px;
    }
}

/* ===== EXTRA LARGE DESKTOP (1600px and above) ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    html {
        font-size: 18px;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    h3 { font-size: 2rem; }
    h4 { font-size: 1.75rem; }
    
    p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .hero-section {
        padding: 150px 0 130px;
        min-height: 95vh;
    }
    
    .hero-section h1 {
        font-size: 4rem;
        line-height: 1.15;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    .navbar {
        padding: 18px 0;
    }
    
    .navbar-brand img {
        height: 55px;
        max-width: 220px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 45px;
        max-width: 180px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 20px !important;
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 40px;
    }
    
    .service-card h4 {
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 85px;
        height: 85px;
        font-size: 38px;
    }
    
    .stat-number {
        font-size: 4.5rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
    }
    
    .gallery-item img {
        height: 380px;
    }
    
    .process-step {
        padding: 40px;
    }
    
    .process-number {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .cta-banner h2 {
        font-size: 3rem;
    }
    
    .cta-banner p {
        font-size: 1.25rem;
    }
    
    .cta-banner .btn {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 50px 45px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    .footer {
        padding: 80px 0 30px;
    }
    
    .footer-logo {
        height: 65px;
        max-width: 250px;
    }
    
    .footer h5 {
        font-size: 1.35rem;
    }
    
    section {
        padding: 100px 0;
    }
    
    .section-title {
        margin-bottom: 70px;
    }
    
    .section-title h2 {
        font-size: 2.75rem;
    }
    
    .section-title .subtitle {
        font-size: 1.25rem;
    }
    
    .floating-cta {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .floating-whatsapp {
        bottom: 40px;
        right: 40px;
    }
    
    .floating-call {
        bottom: 120px;
        right: 40px;
    }
    
    .accordion-button {
        font-size: 1.15rem;
        padding: 22px;
    }
    
    .accordion-body {
        padding: 25px;
        font-size: 1.05rem;
    }
    
    .btn {
        padding: 16px 36px;
        font-size: 1.05rem;
    }
    
    .btn-lg {
        padding: 18px 42px;
        font-size: 1.15rem;
    }
}

/* ===== 4K / ULTRA-WIDE SCREENS (1920px and above) ===== */
@media (min-width: 1920px) {
    .container {
        max-width: 1700px;
    }
    
    html {
        font-size: 19px;
    }
    
    .hero-section {
        padding: 160px 0 140px;
    }
    
    .hero-section h1 {
        font-size: 4.5rem;
    }
    
    .navbar-brand img {
        height: 60px;
        max-width: 240px;
    }
    
    .service-card {
        padding: 45px;
    }
    
    .service-icon {
        width: 90px;
        height: 90px;
        font-size: 42px;
    }
    
    .gallery-item img {
        height: 420px;
    }
    
    .floating-cta {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }
    
    .floating-whatsapp {
        bottom: 45px;
        right: 45px;
    }
    
    .floating-call {
        bottom: 130px;
        right: 45px;
    }
}

/* ============================================
   ENHANCED FLOATING CTA BUTTONS
   ============================================ */

/* WhatsApp Button Enhancements */
.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

/* Phone Button Enhancements */
.floating-call {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3b5e 100%);
    box-shadow: 0 4px 15px rgba(10, 42, 67, 0.4);
}

.floating-call:hover {
    background: linear-gradient(135deg, #0d3b5e 0%, #06253a 100%);
    box-shadow: 0 6px 25px rgba(10, 42, 67, 0.6);
    color: var(--white);
}

/* Pulse Animation for WhatsApp */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Pulse Animation for Phone */
@keyframes phone-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(10, 42, 67, 0.7), 0 4px 15px rgba(10, 42, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(10, 42, 67, 0), 0 4px 15px rgba(10, 42, 67, 0.4);
    }
}

.floating-whatsapp {
    animation: whatsapp-pulse 2s infinite;
}

.floating-call {
    animation: phone-pulse 2s infinite;
    animation-delay: 1s;
}

.floating-whatsapp:hover,
.floating-call:hover {
    animation: none;
}

/* Floating CTA Tooltip */
.floating-cta::before {
    content: attr(title);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.floating-cta::after {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-cta:hover::before,
.floating-cta:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide tooltips on mobile */
@media (max-width: 767.98px) {
    .floating-cta::before,
    .floating-cta::after {
        display: none;
    }
}

/* ============================================
   TABLET-SPECIFIC UTILITIES
   ============================================ */
.tablet-only {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tablet-only {
        display: block !important;
    }
    
    .mobile-only,
    .desktop-only {
        display: none !important;
    }
}

/* ============================================
   LARGE SCREEN UTILITIES
   ============================================ */
.large-screen-only {
    display: none !important;
}

@media (min-width: 1400px) {
    .large-screen-only {
        display: block !important;
    }
}

/* ============================================
   RESPONSIVE IMAGES & MEDIA
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

.img-responsive {
    width: 100%;
    height: auto;
}

/* Responsive video container */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive map container */
.map-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   RESPONSIVE TABLES
   ============================================ */
.table-responsive-custom {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .table-stack {
        display: block;
    }
    
    .table-stack thead {
        display: none;
    }
    
    .table-stack tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }
    
    .table-stack tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table-stack tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .table-stack tbody td:last-child {
        border-bottom: none;
    }
}

/* ============================================
   FLUID TYPOGRAPHY (CLAMP)
   ============================================ */
@supports (font-size: clamp(1rem, 2vw, 2rem)) {
    h1 {
        font-size: clamp(1.75rem, 4vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    }
    
    h3 {
        font-size: clamp(1.25rem, 3vw, 2rem);
    }
    
    .hero-section h1 {
        font-size: clamp(1.75rem, 5vw, 4rem);
    }
    
    .section-title h2 {
        font-size: clamp(1.5rem, 4vw, 2.75rem);
    }
    
    .cta-banner h2 {
        font-size: clamp(1.4rem, 3.5vw, 3rem);
    }
}

