/* ============================================
   UK Vision Professional Website CSS
   Modern B2B Design - Inspired by Hikvision/Dahua
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003d7a;
    --accent-color: #00a8e1;
    --dark-color: #1a1a1a;
    --light-color: #f5f7fa;
    --border-color: #e0e6ed;
    --text-color: #333333;
    --text-light: #666666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

/* === TOP BAR === */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    margin-right: 20px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--accent-color);
}

.top-bar i {
    margin-right: 5px;
}

.top-bar .btn-light {
    font-size: 13px;
    padding: 5px 15px;
    border-radius: 4px;
}

/* === NAVIGATION === */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

/* === BUTTONS === */
.btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.btn-light:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 600px;
    position: relative;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 22px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 204, 0.8);
    border-radius: 50%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
}

/* === STATS BAR === */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 0;
    margin-top: -1px;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* === SECTION HEADERS === */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* === PRODUCT CARDS === */
.products-section {
    padding: 80px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.product-content ul {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-content ul li {
    padding: 5px 0;
    color: var(--text-color);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.product-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* === SOLUTIONS SECTION === */
.solutions-section {
    padding: 80px 0;
}

.solution-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid transparent;
}

.solution-card:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.solution-icon i {
    font-size: 32px;
    color: white;
}

.solution-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.solution-card .learn-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.solution-card .learn-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.solution-card:hover .learn-more i {
    margin-left: 10px;
}

/* === WHY CHOOSE US === */
.why-choose-section {
    padding: 80px 0;
}

.content-box {
    padding: 40px;
}

.content-box h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.content-box .lead {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-item i {
    font-size: 28px;
    color: var(--success-color);
    margin-right: 15px;
    margin-top: 5px;
}

.feature-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
}

/* === SUPPORT SECTION === */
.support-section {
    padding: 80px 0;
}

.support-card {
    background: white;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.support-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.support-card i {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 80px 0;
    color: white;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.contact-info-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    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.15);
}

/* === FOOTER === */
.footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 40px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .navbar-nav .nav-link {
        margin: 10px 0;
    }
    
    .content-box {
        padding: 20px 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-section .carousel-item {
        height: 450px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .cta-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === LOADING ANIMATION === */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}
