:root {
    --bg-dark: #0b111a;
    --bg-card: #131c2a;
    --bg-card-hover: #1a2638;
    --bg-header: #ffffff;
    
    --text-header: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --teal-primary: #00cca3;
    --teal-hover: #00b38f;
    --teal-glow: rgba(0, 204, 163, 0.2);
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 204, 163, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ==========================================
   Header Navbar (White Header Style)
========================================== */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    color: var(--text-header);
    letter-spacing: 0.5px;
}
.logo-bold { font-weight: 800; }
.logo-light { font-weight: 300; opacity: 0.85; }
.teal-text { color: var(--teal-primary); }

/* Navigation links - Strictly NO UNDERLINE, Dynamic Background fill */
.nav-links {
    display: flex;
    gap: 0.5rem;
}

.brand-link {
    text-decoration: none !important;
    color: var(--text-header);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Hover & Active background color change */
.brand-link:hover,
.brand-link.active {
    text-decoration: none !important;
    background-color: rgba(0, 204, 163, 0.12);
    color: var(--teal-hover);
    border-color: rgba(0, 204, 163, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Dropdown Selector */
.brand-select-wrapper select {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-header);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.brand-select-wrapper select:hover {
    background: #e2e8f0;
    border-color: var(--teal-primary);
}

.pill-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-header);
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.pill-btn:hover {
    background: var(--teal-primary);
    color: #ffffff;
    border-color: var(--teal-primary);
}

.primary-pill-btn {
    background: var(--text-header);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.primary-pill-btn:hover {
    background: var(--teal-primary);
    color: #ffffff;
}

/* ==========================================
   Hero Section & Header Photo
========================================== */
.hero-section {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--teal-primary);
    background: var(--teal-glow);
    color: var(--teal-primary);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 1.2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal-primary);
}

.hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 26, 0.1) 0%, rgba(11, 17, 26, 0.6) 100%);
}

/* Button UI Components */
.btn-teal {
    background: var(--teal-primary);
    color: #0b111a;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-teal:hover {
    background: var(--teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--teal-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-dark);
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--teal-primary);
    color: var(--teal-primary);
}

.btn-outline-danger {
    background: transparent;
    color: #f87171;
    border: 1px solid #f87171;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-danger:hover {
    background: #f87171;
    color: #fff;
}

/* ==========================================
   Brand Partitions & Product Cards
========================================== */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.category-partition {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.partition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-dark);
}

.partition-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partition-title::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--teal-primary);
    border-radius: 4px;
}

.partition-tag {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--teal-primary);
    box-shadow: 0 12px 25px var(--teal-glow);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal-primary);
    margin-bottom: 1rem;
}

/* ==========================================
   Modals (Cart & Login) - Glassmorphism UI
========================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}
.close-modal:hover { color: var(--text-main); }

.styled-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
    outline: none;
}

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

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.full-width { width: 100%; }

/* ==========================================
   Admin Section & Floating Button
========================================== */
.admin-dashboard {
    display: none;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--teal-primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--teal-primary);
    color: #0b111a;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--teal-glow);
    z-index: 999;
}

/* ==========================================
   Modern Footer
========================================== */
.modern-footer {
    background: #060a10;
    border-top: 1px solid var(--border-dark);
    padding: 4rem 1.5rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    border-left: 3px solid var(--teal-primary);
    padding-left: 0.6rem;
}

.contact-list, .solutions-list {
    list-style: none;
}

.contact-list li, .solutions-list li {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

/* Mobile Responsive Media Queries */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}