/* style.css - EFRA B2B Wholesale Laboratory */

:root {
    --primary-color: #0A2540; /* Deep tech blue */
    --secondary-color: #00D4FF; /* Cyan accent */
    --bg-color: #F8FAFC;
    --text-color: #1E293B;
    --light-text: #F1F5F9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #113f6e);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--light-text);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 20px; }

/* Top Bar Utility Nav */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #f1f5f9; /* Light grey-blue background */
    border-bottom: 1px solid #cbd5e1;
    z-index: 1002; /* Must be higher than navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-tabs {
    display: flex;
    height: 100%;
}

.top-bar-tabs .tab-btn {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #475569;
    text-decoration: none;
    height: 100%;
    position: relative;
    transition: all 0.2s ease;
    border-right: 1px solid #e2e8f0;
}

.top-bar-tabs .tab-btn:first-child {
    border-left: 1px solid #e2e8f0;
}

.top-bar-tabs .tab-btn:hover {
    color: var(--primary-color);
    background-color: #e2e8f0;
}

.top-bar-tabs .tab-btn.active {
    color: var(--primary-color);
    font-weight: 700;
    background-color: #ffffff;
}

.top-bar-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.top-bar-info a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    font-weight: 600;
}

.top-bar-info a:hover {
    color: #25d366; /* WhatsApp green */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 40px; /* Offset for top utility bar */
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
    height: 48px;
}

.navbar .logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.navbar nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled nav ul li a {
    color: #e2e8f0;
}

.navbar nav ul li a:hover {
    color: var(--secondary-color);
}

/* Dropdown Mega Menu */
.navbar nav ul li.has-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.navbar nav ul li .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.navbar nav ul li.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: max-content;
}

.navbar nav ul li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-col h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.dropdown-col a {
    display: block;
    color: #475569 !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.2s ease, transform 0.2s ease !important;
    font-weight: 400 !important;
}

.dropdown-col a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 18s infinite linear;
}

.slide-1 {
    background-image: url('images/hero-1.jpg');
    animation-delay: 0s;
}
.slide-2 {
    background-image: url('images/hero-2.jpg');
    animation-delay: 6s;
}
.slide-3 {
    background-image: url('images/hero-3.jpg');
    animation-delay: 12s;
}

@keyframes slideFade {
    0% { opacity: 0; transform: translateX(-5%); }
    10% { opacity: 1; }
    25% { opacity: 1; }
    33.33% { opacity: 0; transform: translateX(5%); }
    100% { opacity: 0; transform: translateX(5%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    padding: 40px 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
    border-color: transparent;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.tech-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
}

.tech-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Wholesale Section */
.wholesale {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.wholesale-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.wholesale-text {
    flex: 1;
}

.wholesale-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.wholesale-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.wholesale-text ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wholesale-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: url('images/lens-wholesale.jpg') center/cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Contact / Glassmorphism Form */
.contact {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1554774853-719586f82d77?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
}

.contact .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.contact-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.contact-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-box p {
    margin-bottom: 30px;
    color: #64748b;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #061626;
    color: #94a3b8;
    text-align: center;
    padding: 30px;
}

/* Mobile Menu Toggle button */
.menu-toggle {
    display: none;
    color: var(--light-text);
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}
.menu-toggle:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 15px;
    }
    .top-bar-info {
        display: none; /* Hide support on mobile to fit tabs */
    }
    .top-bar-tabs .tab-btn {
        padding: 0 12px;
        font-size: 0.75rem;
    }

    .navbar {
        padding: 15px 25px;
        top: 40px; /* Offset for top-bar */
    }
    .navbar.scrolled {
        padding: 12px 25px;
        top: 40px;
    }
    .menu-toggle {
        display: block;
    }
    
    .navbar nav .nav-links {
        display: flex;
        position: fixed;
        top: 110px; /* 40px (top-bar) + 70px (navbar mobile height) */
        right: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background: rgba(10, 37, 64, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar nav .nav-links.active {
        right: 0;
    }
    
    .navbar nav .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .navbar nav .nav-links li.has-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .navbar nav .nav-links li.has-dropdown:hover .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        pointer-events: auto;
        box-shadow: none;
        min-width: 100%;
    }
    
    .dropdown-col h4 {
        color: var(--secondary-color);
        font-size: 0.95rem;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 5px;
    }
    
    .dropdown-col a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .dropdown-col a:hover {
        color: var(--secondary-color) !important;
        transform: translateX(3px);
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 12px;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .wholesale-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-placeholder {
        height: 250px;
    }
    
    .contact-box {
        padding: 30px 20px;
    }
}
