/* ============================================
   Corvex Technologies - LinkedTech-inspired Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Root Variables */
:root {
    --primary-color: #c9a962;
    --secondary-color: #e5d4a1;
    --dark-color: #0a0a0a;
    --dark-secondary: #111111;
    --light-color: #ffffff;
    --success-color: #28a745;
    --text-dark: #1a1a1a;
    --text-light: #333333;
    --text-muted: #6c757d;
    --text-on-light: #1a1a1a;
    --text-on-light-muted: #444;
    --gradient-primary: linear-gradient(135deg, #c9a962 0%, #e5d4a1 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Override Bootstrap text-muted for light theme */
.text-muted {
    color: #6c757d !important;
}

/* Contrast utilities: text color based on background */
.text-on-light {
    color: var(--text-on-light) !important;
}
.text-on-light-muted {
    color: var(--text-on-light-muted) !important;
}

/* h2 for light theme */
h2 {
    color: #1a1a1a !important;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent !important;
    box-shadow: none;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Navbar text: white before scroll, dark when scrolled */
.navbar:not(.scrolled) .navbar-brand,
.navbar:not(.scrolled) .brand-text,
.navbar:not(.scrolled) .nav-link {
    color: #ffffff !important;
}
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--secondary-color) !important;
}
.navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
.navbar:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .brand-text,
.navbar.scrolled .nav-link {
    color: #1a1a1a !important;
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar on mobile/tablet */
@media (max-width: 991.98px) {
    /* Before scroll: black navbar, white text */
    .navbar:not(.scrolled) {
        background-color: rgba(0, 0, 0, 0.98) !important;
        box-shadow: none;
    }
    .navbar:not(.scrolled) .navbar-brand,
    .navbar:not(.scrolled) .brand-text,
    .navbar:not(.scrolled) .nav-link {
        color: #ffffff !important;
    }
    .navbar:not(.scrolled) .nav-link:hover,
    .navbar:not(.scrolled) .nav-link.active {
        color: var(--secondary-color) !important;
    }
    .navbar:not(.scrolled) .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
        color: #ffffff;
    }
    .navbar:not(.scrolled) .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    /* After scroll: white navbar, dark text */
    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: var(--shadow-md);
    }
    .navbar.scrolled .navbar-brand,
    .navbar.scrolled .brand-text,
    .navbar.scrolled .nav-link {
        color: #1a1a1a !important;
    }
    .navbar.scrolled .nav-link:hover,
    .navbar.scrolled .nav-link.active {
        color: var(--primary-color) !important;
    }
    .navbar.scrolled .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.2);
        color: #1a1a1a;
    }
    .navbar.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Navbar toggler - dark for light theme */
.navbar-dark .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a !important;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.brand-text {
    color: #1a1a1a;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    background: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
}

/* Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Mobile: hero section flush under navbar (landing page) */
@media (max-width: 991.98px) {
    .hero-section {
        margin-top: 76px; /* start directly below fixed navbar */
        padding-top: 0;
    }
}

.hero-section .container {
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
    color: #0a0a0a !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Floating Cards Animation */
.hero-image-container {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.floating-card i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.floating-card span {
    font-size: 1.2rem;
    font-weight: 600;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LinkedTech-style solution cards */
.solution-card-linkedtech {
    transition: var(--transition);
}
.solution-card-linkedtech:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.solution-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.solution-card-linkedtech:hover .solution-card-img {
    transform: scale(1.03);
}
.solution-card-body {
    transition: var(--transition);
}
.solution-card-linkedtech:hover .solution-card-body {
    background: #ffffff !important;
}
.text-primary-accent {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
}
.stat-item h3.stat-number {
    display: inline;
}
.stat-suffix {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-left: 2px;
}

/* Light theme section overrides */
#solutions {
    background: #ffffff;
}
#solutions .solution-card-body {
    background: #ffffff !important;
}
.solution-card-linkedtech:hover .solution-card-body {
    background: #ffffff !important;
}
.detailed-solutions {
    background: #ffffff !important;
}
.benefits-section {
    background: #ffffff !important;
}
.detailed-solutions .solution-detail-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
}
.benefits-section .benefit-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
}
.detailed-solutions .section-title {
    color: #1a1a1a !important;
}
.detailed-solutions .section-subtitle {
    color: #333 !important;
}
.detailed-solutions h4,
.detailed-solutions p,
.detailed-solutions li {
    color: #1a1a1a !important;
}
.benefits-section .section-title,
.benefits-section .section-subtitle {
    color: #1a1a1a !important;
}
.benefits-section .benefit-card h5 {
    color: #1a1a1a !important;
}
.benefits-section .benefit-card p {
    color: #333 !important;
}

/* Services offered - images auto-fit the card */
.services-offered-section .card-img-top {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

.cta-section.bg-light {
    background: #ffffff !important;
}

/* Light theme: ensure dark text on light sections */
#cctv .section-title {
    color: #1a1a1a !important;
}

/* Dark section overrides (background: var(--dark-color) / var(--dark-secondary)) */
#about,
#cctv,
section[style*="var(--dark-color)"] {
    color: rgba(255, 255, 255, 0.9);
}
#about .section-title,
#cctv .section-title,
section[style*="var(--dark-color)"] .section-title,
section[style*="var(--dark-color)"] h2,
section[style*="var(--dark-color)"] h3 {
    color: #ffffff !important;
}
#about .text-muted,
#cctv .text-muted,
section[style*="var(--dark-color)"] .text-muted,
section[style*="var(--dark-color)"] .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}
#about p,
#cctv p,
#cctv li,
section[style*="var(--dark-color)"] p {
    color: rgba(255, 255, 255, 0.85);
}
#cctv .small {
    color: var(--primary-color) !important;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-image img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
}

.feature-box {
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
    background: transparent;
}

.feature-box:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border: 1px solid #dee2e6;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* We Provide Section */
.we-provide-section {
    padding: 100px 0;
    background: var(--light-color);
}

.we-provide-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Light-background elements: use dark text for contrast */
.provide-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    color: var(--text-on-light);
}

.provide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provide-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.provide-card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.provide-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin: 0;
}

.provide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.provide-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: var(--text-on-light-muted);
    font-size: 0.95rem;
}

.provide-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.we-provide-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    color: #fff;
}

.we-provide-scope {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.95;
}

.we-provide-cta {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Services Offered - Card Section */
.services-offered-section {
    background: #ffffff;
}
.service-offered-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    height: 100%;
}
.service-offered-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
    color: inherit;
}
.service-offered-card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-offered-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.service-offered-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}
.service-offered-card .btn {
    margin-top: auto;
}

/* Services Section */
.services-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/shade.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.112);
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    color: var(--text-on-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
}

.badge-featured {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.service-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-on-light);
}

.service-card > p {
    text-align: center;
    color: var(--text-on-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-on-light);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Brands Section */
.brands-section {
    padding: 100px 0;
    background: #ffffff !important;
}
.brands-section .section-title,
.brands-section .section-subtitle {
    color: #1a1a1a !important;
}
.brands-section .category-title {
    color: #333 !important;
}

.brand-category {
    margin-bottom: 4rem;
}

/* Automation brands: 4+3 layout, same card size as other sections */
.brand-category-automation .automation-brands-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.brand-category-automation .brand-item {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.brand-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Footer - white theme */
.footer.bg-dark {
    position: relative;
    background: #0a0a0a !important;
}
.footer.bg-dark.text-white,
.footer.bg-dark h5,
.footer.bg-dark p,
.footer.bg-dark .footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.footer.bg-dark .footer-links a:hover {
    color: var(--primary-color) !important;
}
.footer.bg-dark .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.footer.bg-dark .social-link:hover {
    background: var(--primary-color);
    color: #0a0a0a;
}
.footer.bg-dark .newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.footer.bg-dark .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.footer.bg-dark hr {
    border-color: rgba(255, 255, 255, 0.15);
}
.footer.bg-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Light theme - white overrides */
.bg-light {
    background: #ffffff !important;
}
.bg-white {
    background: #ffffff !important;
}
.mission-card,
.vision-card,
.mission-card h3,
.mission-card p,
.vision-card h3,
.vision-card p {
    color: #1a1a1a !important;
}
.mission-card,
.vision-card {
    border: 1px solid #dee2e6 !important;
}
.bg-white,
.mission-card,
.vision-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
}
.bg-white .section-title,
.bg-white h3,
.bg-white h4,
.mission-card h3,
.mission-card p,
.vision-card h3,
.vision-card p {
    color: #1a1a1a !important;
}
.about-section,
.contact-section {
    background: #ffffff !important;
}
.about-section .section-title,
.about-section .lead,
.about-section p,
.about-section h5 {
    color: #1a1a1a !important;
}
.about-section .feature-box p {
    color: #333 !important;
}
.contact-section .contact-card,
.contact-info-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
}
.contact-section .contact-form label,
.contact-section h5,
.contact-section p {
    color: #1a1a1a !important;
}
.contact-section .form-control,
.contact-section .form-select {
    background: #fff !important;
    border-color: #dee2e6 !important;
    color: #1a1a1a !important;
}
.contact-section .form-control::placeholder {
    color: #6c757d;
}
.work-section {
    background: #ffffff !important;
}
.work-section .section-title,
.work-section .section-subtitle {
    color: #1a1a1a !important;
}
.work-card {
    background: #ffffff;
}
.work-card-overlay h5 {
    color: #fff !important;
}

/* Portfolio category sections */
.portfolio-category {
    padding-bottom: 3rem;
}
.portfolio-category:last-child {
    padding-bottom: 0;
}
.portfolio-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(201, 169, 98, 0.3);
    display: flex;
    align-items: center;
}
.portfolio-category-title i {
    font-size: 1.25rem;
}

/* Gallery-style portfolio (Our Work page) */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.portfolio-card {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dee2e6;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}
.portfolio-card:hover {
    color: inherit;
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ffffff;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 40%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.portfolio-overlay .btn {
    align-self: flex-start;
}

/* Products section - Homepage slider (same dimensions as product page) */
.products-section {
    background: #ffffff !important;
    border-top: 1px solid #dee2e6;
}
.products-slider-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991px) {
    .products-slider-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .products-slider-gallery {
        grid-template-columns: 1fr;
    }
}
#productsCarousel .carousel-control-prev,
#productsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    opacity: 0.8;
}
#productsCarousel .carousel-control-prev { left: -25px; }
#productsCarousel .carousel-control-next { right: -25px; }
#productsCarousel .carousel-control-prev:hover,
#productsCarousel .carousel-control-next:hover {
    background: var(--primary-color);
    opacity: 1;
}

.brand-item {
    text-align: center;
    padding: 2rem 1rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.brand-logo {
    width: 100%;
    height: 120px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 1rem;
    background: #ffffff;
    border-radius: 10px;
}

.brand-item:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-item:hover .brand-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    transition: var(--transition);
}

.brand-item:hover h6 {
    color: var(--primary-color);
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
}

.solution-item {
    padding: 2rem;
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-5px);
}

.solution-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.solution-item h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #ffffff !important;
    border-top: 1px solid rgba(201, 169, 98, 0.3);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    color: var(--primary-color) !important;
}

.stat-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-card {
    background: #fff;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-floating {
    margin-bottom: 1rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}

.contact-form label {
    color: var(--text-light);
}

.contact-info-card {
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info-card p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    padding: 60px 0 20px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    margin-top: 1.5rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #1a1a1a;
    margin-right: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #0a0a0a;
}

.newsletter-form .input-group {
    margin-top: 1rem;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #1a1a1a;
}

.newsletter-form .form-control::placeholder {
    color: #6c757d;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card {
        padding: 1.5rem;
    }
    
    .floating-card i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-image-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 30px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Page Header */
.page-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
    background-image: url('../img/night_vision.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-bottom: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.page-header .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}
.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile: page header flush under navbar (all other pages) */
@media (max-width: 991.98px) {
    .page-header {
        margin-top: 76px; /* start directly below fixed navbar */
        padding-top: 0;
    }
}

/* Solution Step Number */
.solution-step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Solution Detail Card */
.solution-detail-card {
    transition: var(--transition);
}

.solution-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Benefit Card */
.benefit-card {
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Mission/Vision Cards */
.mission-card,
.vision-card {
    transition: var(--transition);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Image */
.service-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service Details Section - Card Layout (light bg = dark text) */
.service-detail-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-detail-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ffffff;
}

.service-detail-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-detail-card-body {
    padding: 1.5rem;
}

.service-detail-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--text-on-light);
}

.service-detail-card-desc {
    font-size: 0.95rem;
    color: var(--text-on-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-on-light);
}

.service-detail-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Map section */
.map-section .bg-light {
    background: #ffffff !important;
}
.map-section h4,
.map-section p {
    color: #1a1a1a !important;
}

/* FAQ section */
.faq-section .section-title,
.faq-section .section-subtitle {
    color: #1a1a1a !important;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

/* FAQ Accordion */
.accordion-item {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
}
.accordion-button {
    font-weight: 600;
    color: #1a1a1a !important;
    background: #ffffff !important;
    border-color: #dee2e6 !important;
}
.accordion-button:not(.collapsed) {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}
.accordion-body {
    background: #ffffff !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(201, 169, 98, 0.25);
    border-color: var(--primary-color);
}

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-section {
    background: #ffffff !important;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #333;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}
