.service-card-hover:hover h3,
.service-card-hover:hover p {
    color: #f3f4f6 !important; /* Tailwind's gray-100 */
    transition: color 0.3s cubic-bezier(0.4,0,0.2,1);
}
/* Page Loader Overlay */
#pageLoader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.95);
    transition: opacity 0.5s;
}

/* When loader is hidden (opacity 0), allow clicks through */
#pageLoader[style*="opacity: 0"] {
    pointer-events: none;
}

.animate-spin-slow {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Import Inter & Poppins Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700;800;900&display=swap');

/* Custom CSS Styles */
:root {
    --brand-primary: #1e40af;
    --brand-secondary: #0891b2;
    --brand-accent: #3b82f6;
    --brand-dark: #1e293b;
    --brand-light: #f8fafc;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Fade transition for smooth page changes */
.fade-transition {
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
}
.fade-out {
    opacity: 0 !important;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(30, 64, 175, 0.25);
}

/* Small utility used for popup buttons to match site button sizing */
.btn-popup {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Outline variation that matches other page outline buttons */
.btn-outline {
    background: #ffffff;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    transition: all 0.25s ease;
}
.btn-outline:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(30, 64, 175, 0.18);
}

/* Premium gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e1e7ef 50%, #dbeafe 100%);
}

/* Logo hover effect */
.logo-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Brand wordmark styles */
.brand-wordmark {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: brandFadeIn 500ms ease-out both;
}
.brand-begon { color: #0097b2; }
.brand-tech  { color: #002b64; }

/* Responsive header helpers to prevent brand & nav overlap on smaller screens */
.logo-container { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Allow brand to shrink slightly on tablet widths and ensure nav items wrap/align properly */
@media (max-width: 1024px) {
    .logo-container img { height: 48px; }
    .brand-wordmark { font-size: 1rem; }
    /* Ensure nav container doesn't push over the logo */
    nav .flex-1 { flex: 1 1 auto; }
    nav a { white-space: nowrap; }
}

/* On smaller than typical tablet, make brand compact and allow nav to hide behind mobile menu */
@media (max-width: 768px) {
    .logo-container img { height: 40px; }
    .brand-wordmark { font-size: 0.95rem; }
    /* Hide desktop nav on smaller screens (should already be hidden by md:hidden), but add extra safety */
    .md\:flex { display: none; }
}

/* Subtle wordmark hover shimmer */
.logo-container:hover .brand-wordmark {
    animation: brandHover 1200ms ease-in-out 1;
}

@keyframes brandFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes brandHover {
    0%   { text-shadow: 0 0 0 rgba(0,0,0,0); }
    50%  { text-shadow: 0 6px 18px rgba(0, 43, 100, 0.25); }
    100% { text-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* Service card animations */
.service-card {
    transition: all 0.3s ease;
}

/* Service card hover background animation */
.service-card-hover .service-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.7);
}
.service-card-hover:hover .service-bg {
    opacity: 1;
    transform: scale(1.05);
}
.service-card-hover > *:not(.service-bg) {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(30, 64, 175, 0.15);
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-show {
    animation: slideDown 0.3s ease;
}

/* Smart Home Simulation Styles */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.hotspot:hover {
    background: #2563eb;
    transform: translate(-50%, -50%) scale(1.1);
}

.hotspot-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    animation: ping 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes ping {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    75%, 100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Smart Home Panel Animations */
#controlPanel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating WhatsApp Button Styles */
.whats-float {
    position: fixed;
    transform:translate(108px,0px);
    top:85%;
    right:0;
    width:150px;
    overflow: hidden;
    background-color: #25d366;
    color: #FFF;
    border-radius: 4px 0 0 4px;
    z-index: 10;
    transition: all 0.5s ease-in-out;
    vertical-align: middle
}
.whats-float a span {
    color: white;
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 10px;
    position: absolute;
    line-height: 16px;
    font-weight: bolder;
}

.whats-float i {
    font-size: 30px;
    color: white;
    line-height: 30px;
    padding: 10px;
    transform:rotate(0deg);
    transition: all 0.5s ease-in-out;
    text-align:center;

}

.whats-float:hover {
    color: #FFFFFF;
    transform:translate(0px,0px);
}

.whats-float:hover i  {
    transform:rotate(360deg);
}

/* Modern Header Styles */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.08);
}

.modern-header nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}