/**
 * AquaNexus Main Stylesheet
 * Blue & Navy Color Theme
 */

:root {
    --primary-blue: #0066CC;
    --navy: #003366;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --border-light: #E0E0E0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--navy);
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header.bg-navy {
    background: var(--navy) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 0.75rem 1rem;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: var(--white) !important;
}

.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Force white color for all nav links in dark navbar */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-item > a,
.navbar-dark .nav-link {
    color: #FFFFFF !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item > a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white on dark background */
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.navbar-dark .nav-link:hover::after,
.navbar-dark .nav-link.active::after {
    width: 80%;
}

.navbar-dark .nav-link.active {
    color: var(--white) !important;
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    /* margin-top: 0.5rem; */
}

/* Hover Dropdown for Desktop Navigation */
@media (min-width: 1200px) {
    .navbar-nav .nav-item.dropdown-hover:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease-in-out;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        animation: fadeInRight 0.3s ease-in-out;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--navy);
    padding-left: 1.75rem;
}

.dropdown-item:active,
.dropdown-item:focus {
    background-color: var(--light-gray);
    color: var(--navy);
}

.dropdown-item i.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.6;
}

.dropdown-item i.fa-check {
    font-size: 0.9rem;
    color: var(--primary-blue) !important;
}

/* Nested Dropdown (2nd level) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* RTL Support for Dropdowns */
[dir="rtl"] .dropdown-submenu .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: -1px;
}

/* Language Switcher Dropdown */
.language-switcher .dropdown-toggle {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
}

.language-switcher .dropdown-menu {
    min-width: 180px;
}

.language-switcher .dropdown-item {
    padding: 0.6rem 1rem;
}

.language-switcher .dropdown-item:hover {
    background-color: var(--light-gray);
}

/* Language button - no border */
.btn-lang {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.btn-lang:hover,
.btn-lang:focus,
.btn-lang:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

.btn-lang.show {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

/* Remove Bootstrap's default dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* Search Toggle Button */
.search-toggle {
    font-size: 1.2rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-dark .search-toggle.text-white:hover {
    color: var(--primary-blue) !important;
    transform: scale(1.1);
}

/* ========== HERO SECTION WITH VIDEO ========== */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Video Overlay for better text visibility */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 102, 0.85) 0%,
        rgba(0, 102, 204, 0.75) 100%
    );
    z-index: 1;
}

/* Hero Content */
.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .fs-4 {
    font-size: 1.35rem !important;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Buttons */
.hero-section .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

/* Features Bar */
.features-bar {
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.feature-item i {
    display: block;
    margin: 0 auto;
}

.feature-item h5 {
    font-weight: 700;
    color: var(--navy);
    margin-top: 0.75rem;
}

.feature-item .text-muted {
    font-size: 0.9rem;
}

/* ========== BUTTONS ========== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========== SECTIONS ========== */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-navy {
    color: var(--navy) !important;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover,
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.shadow-hover {
    transition: all 0.4s ease;
}

.shadow-hover:hover {
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.2) !important;
}

.card-title {
    /* color: var(--navy); */
    font-weight: 700;
}

.border-primary {
    border: 2px solid var(--primary-blue) !important;
}

/* Quick Links Cards */
.quick-links .card {
    transition: all 0.4s ease;
}

.quick-links .card:hover {
    transform: translateY(-10px);
    border-color: var(--navy) !important;
    background-color: var(--navy);
}

.quick-links .card:hover h3,
.quick-links .card:hover p,
.quick-links .card:hover i {
    color: var(--white) !important;
}

/* ========== CONTACT FORM ========== */
.contact-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.contact-form label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
    color: var(--white);
    background-color: var(--navy);
}

.site-footer a {
    color: var(--white);
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-blue);
}

.site-footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.reseller-section h5 {
    color: var(--white);
    font-weight: 600;
}

.contact-info {
    text-align: center;
}

.contact-info h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.8;
}

.contact-info i {
    color: var(--primary-blue);
    min-width: 20px;
}

.contact-info a:hover {
    text-decoration: underline !important;
}

/* ========== UTILITY CLASSES ========== */
.min-vh-50 {
    min-height: 50vh;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-white {
    color: var(--white) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .navbar-collapse {
        background: var(--navy);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .navbar-dark .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .fs-4 {
        font-size: 1.1rem !important;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.85rem;
    }
    
    .display-2 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    animation: fadeInUp 0.8s ease-out;
}

/* ========== BREAKTHROUGH SECTION ========== */
.breakthrough-section {
    background-color: var(--light-gray);
}

.breakthrough-section .text-primary-blue {
    color: var(--primary-blue) !important;
}

/* ========== STATS COUNTER SECTION ========== */
.stats-section {
    background-color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 0 auto 1rem auto;
}

.stat-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.stat-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ========== RO PROBLEM SECTION ========== */
.ro-problem-section {
    background-color: var(--light-gray);
}

.ro-problem-box {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.ro-problem-box-header {
    background-color: #003366 !important;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #FFFFFF !important;
}

.ro-problem-box-header h5 {
    color: #FFFFFF !important;
}

.ro-problem-box ul {
    font-size: 0.95rem;
    line-height: 1.6;
}

.ro-problem-box ul li {
    color: var(--text-dark);
}

.ro-problem-section a {
    font-weight: 600;
    text-decoration: none;
}

.ro-problem-section a:hover {
    text-decoration: none;
}

@media (max-width: 992px) {
    .ro-problem-box {
        margin-bottom: 1.5rem;
    }
}

/* ========== RESPONSIVE HERO SECTION ========== */
@media screen and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section {
        min-height: 80vh !important;
    }
}

@media screen and (max-width: 470px) {
    .hero-section h1 {
        font-size: 1.875rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-section {
        min-height: 70vh !important;
    }
    
    .case-content h2 {
        font-size: 1.75rem !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .site-header,
    .site-footer,
    .search-overlay,
    .btn {
        display: none !important;
    }
}
