@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --secondary: #0ea5e9;
    --accent: #38bdf8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(15, 23, 42, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Responsive Typography */
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
p { font-size: clamp(0.9rem, 2vw, 1.1rem); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: #ffffff !important;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.top-bar { 
    background: #00BFFF !important; 
    background-color: #00BFFF !important;
    color: #000000 !important; 
    padding: 8px 0; 
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.top-bar i {
    margin-right: 6px;
    font-size: 0.95rem;
    display: inline-block;
    vertical-align: middle;
}

/* Precise Flat Icon Colors */
.top-bar .fa-map-marker-alt { color: #d0021b !important; }
.top-bar .fa-phone-alt { color: #008000 !important; }
.top-bar .fa-envelope { color: #f5a623 !important; }
.top-bar .fa-check-circle { color: #4a90e2 !important; }
.top-bar .fa-truck { color: #7b8e9b !important; }

.top-bar a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: #000000 !important;
}

.top-bar a:hover {
    color: #333333 !important;
    opacity: 0.8;
}

/* Social Icon Colors */
.top-bar .fa-facebook-f { color: #1877F2 !important; }
.top-bar .fa-twitter { color: #1DA1F2 !important; }
.top-bar .fa-instagram { color: #E4405F !important; }
.top-bar .fa-linkedin-in { color: #0A66C2 !important; }
.top-bar .fa-youtube { color: #FF0000 !important; }

.nav-link {
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 10px 15px !important;
}

.nav-link.active {
    color: #00BFFF !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.hover-secondary:hover {
    color: var(--secondary) !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 140px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../assets/images/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-contact-badge {
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Mobile Mega Menu Adjustments */
@media (max-width: 991.98px) {
    .top-bar {
        text-align: center;
        padding: 5px 0;
    }
    
    .top-bar .d-flex {
        justify-content: center;
        gap: 10px !important;
    }

    .top-bar .border-start {
        border: none !important;
        padding-left: 0 !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .top-bar .social-top {
        display: none !important;
    }
    
    .top-bar .d-flex span:not(:first-child) {
        display: none;
    }
}

/* Hero Ticker */
.hero-ticker-container {
    background: var(--secondary);
    padding: 12px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.hero-ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: heroScroll 20s linear infinite;
}

.hero-ticker-item {
    padding: 0 40px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

@keyframes heroScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.hero-services-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-mini {
    background: white;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card-mini h6 {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Cards */
.custom-card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Colorful Icons */
.icon-box.color-1 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.icon-box.color-2 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.icon-box.color-3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); }
.icon-box.color-4 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }
.icon-box.color-5 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3); }

/* Image Effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 20px;
}
.img-hover-zoom img {
    transition: transform 0.5s ease;
}
.img-hover-zoom:hover img {
    transform: scale(1.1);
}

.service-img {
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* Brands Carousel Scroll */
.brands-ticker {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    position: relative;
}

.brands-ticker::before, .brands-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.brands-ticker::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.brands-ticker::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.ticker-wrapper {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 30s linear infinite;
}

.ticker-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.ticker-item h4 {
    transition: var(--transition);
    font-weight: 800;
}

.ticker-item:hover h4 {
    transform: scale(1.1);
}

/* Brand Specific Colors */
.brand-hikvision { color: #ed1c24; }
.brand-samsung { color: #034ea2; }
.brand-dahua { color: #e4002b; }
.brand-axis { color: #b8860b; }
.brand-bosch { color: #005691; }
.brand-cpplus { color: #004a99; }
.brand-grandstream { color: #0078d7; }
.brand-vivotek { color: #00a1e1; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 8)); }
}

/* Footer */
footer {
    background: #0b0f19;
    color: white;
    padding: 100px 0 40px;
    position: relative;
    border-top: 5px solid var(--secondary);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(15deg);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}
/* More Content Section */
.more-content-section {
    background: #ffffff;
}

.directory-badge {
    display: inline-block;
    padding: 6px 15px;
    margin: 4px;
    background: #f1f5f9;
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.directory-badge:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.brand-card-overlay {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.brand-card-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.brand-card-overlay:hover img {
    transform: scale(1.1);
}

.brand-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
}

.brand-card-content h5 {
    color: white;
    margin: 0;
}

.brand-card-content p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin: 5px 0 0;
}

.service-directory-box {
    background: var(--bg-light);
    border-radius: 30px;
    padding: 50px;
}

.text-justify {
    text-align: justify;
}

@media (max-width: 768px) {
    .service-directory-box {
        padding: 30px 20px;
    }
}
.brand-icon-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.brand-icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.brand-icon-card .icon-box {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.brand-icon-card h5 {
    margin-bottom: 12px;
    font-weight: 800;
}

.brand-icon-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}
