/* Google Fonts - Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* Global Font Settings */
* {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Custom Styles - Professional Theme */
.hero-section {
    position: relative;
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundSlideshow 25s infinite;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: -1;
}

@keyframes backgroundSlideshow {
    0%, 16% { 
        background-image: url('/images/main-bg-image/cctv-2596537_1920.jpg');
    }
    20%, 36% { 
        background-image: url('/images/main-bg-image/valves-413713_1920.jpg');
    }
    40%, 56% { 
        background-image: url('/images/main-bg-image/vecteezy_engineers-are-checking-the-operation-of-the-control-panel_8178305.jpg');
    }
    60%, 76% { 
        background-image: url('/images/main-bg-image/vecteezy_lightning-rod-on-the-rooftop-of-condominium-with-cloudy-sky_2966507.jpg');
    }
    80%, 96% { 
        background-image: url('/images/main-bg-image/ai-generated-8211245_1920.jpg');
    }
    100% { 
        background-image: url('/images/main-bg-image/cctv-2596537_1920.jpg');
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-section p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
}

.navbar:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767.98px) {
    .navbar {
        width: calc(100% - 30px);
        border-radius: 30px;
        padding: 0.5rem 1rem;
    }
}

.navbar-brand {
    font-weight: 600;
    color: #334155 !important;
    text-decoration: none !important;
    padding: 0;
    margin-right: 2rem;
    font-family: 'Open Sans', sans-serif;
}

.company-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 2px;
    font-family: 'Open Sans', sans-serif;
}

.company-subtitle {
    font-size: 0.65rem;
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.8px;
    line-height: 1.1;
    margin-top: 0;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
}

.navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    color: #2c3e50 !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #3b82f6;
    color: white !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Professional Contact Button */
.btn-contact {
    background: #3b82f6;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
}

.btn-contact:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-contact i {
    font-size: 1em;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 12px;
    margin-top: 8px;
    min-width: 280px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 12px;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
}

.dropdown-divider {
    margin: 8px 0;
    opacity: 0.15;
}

/* Professional Card Styling */
.card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.card-body {
    padding: 1.75rem 1.5rem;
}

.card-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
}

.card-text {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.btn-primary {
    background: #3b82f6;
    border: none;
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-blue {
    background: #475569;
    border: none;
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.btn-blue:hover {
    background: #334155;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

/* Professional Services Section */
#services {
    background: #f8fafc;
}

#services h2 {
    color: #1e293b;
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
    font-family: 'Open Sans', sans-serif;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Clean Icon styling */
.card i {
    color: #3b82f6;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.05);
}

.btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.text-primary {
    color: #3b82f6 !important;
}

.bg-primary {
    background-color: #3b82f6 !important;
}

.navbar-dark {
    background-color: #1e293b !important;
}

.bg-dark {
    background-color: #1e293b !important;
}

/* Professional color palette */
.text-blue {
    color: #3b82f6 !important;
}

.text-red {
    color: #ef4444 !important;
}

/* Professional Footer styling */
footer {
    background: #1e293b;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    scroll-margin-top: 100px;
}

/* Professional Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.modal-header {
    background: white;
    color: #1e293b;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    font-family: 'Open Sans', sans-serif;
}

.modal-header .btn-close {
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    background: #fafbfc;
}

.brand-card, .component-card, .feature-card, .type-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
}

.brand-card:hover, .component-card:hover, .feature-card:hover, .type-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.carousel-inner img {
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    border-radius: 0 0 12px 12px;
}

.text-primary { color: #3b82f6 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #0ea5e9 !important; }
.text-success { color: #10b981 !important; }

/* Clean Carousel improvements */
.carousel-indicators {
    bottom: -35px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

.feature-highlight {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.feature-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Professional Brand Logo Scrolling */
.brand-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.brand-scroll-track {
    display: flex;
    animation: scroll-left 40s linear infinite;
    gap: 30px;
    align-items: center;
}

.brand-logo {
    flex-shrink: 0;
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.brand-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.brand-scroll-container:hover .brand-scroll-track {
    animation-play-state: paused;
}

/* Professional Footer Enhancements */
footer {
    background: #1e293b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    width: 20px;
    margin-top: 2px;
    color: #3b82f6;
}

footer a:hover {
    text-decoration: underline !important;
    color: #3b82f6 !important;
}

footer .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

footer .btn-outline-light:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

footer .btn-warning {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

footer .btn-warning:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white !important;
}

/* Social icons hover effect */
footer .fs-5:hover {
    color: #3b82f6 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}