@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #060d1a;
    --bg-panel: rgba(15, 31, 58, 0.75);
    --bg-panel-hover: rgba(22, 45, 84, 0.85);
    --primary-blue: #1e40af;
    --primary-blue-glow: rgba(30, 64, 175, 0.5);
    --accent-cyan: #38bdf8;
    --accent-gold: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-glass: rgba(56, 189, 248, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

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

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0e1b34 0%, #060d1a 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.4));
    animation: preloaderPulse 2s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.6)); }
}

.preloader-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-cyan), #ffffff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.preloader-bar-wrap {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan), var(--accent-gold));
    transition: width 0.4s ease;
}

/* ================= NAVBAR ================= */
.navbar-custom {
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 12px 0;
    background: rgba(6, 13, 26, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand img {
    height: 44px;
    transition: transform 0.3s ease;
}

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

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
}

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

.btn-glow {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, #2563eb, var(--accent-cyan));
}

/* ================= HERO SECTION SLIDER ================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 90px;
}

.swiper.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(6, 13, 26, 0.94) 0%, rgba(6, 13, 26, 0.78) 55%, rgba(6, 13, 26, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 60px 0;
}

.badge-slogan {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 620px;
}

.slogan-highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

/* ================= SECTION STYLES ================= */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ================= GLASS CARDS & PRODUCTS ================= */
.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: var(--bg-panel-hover);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.2);
}

.product-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    margin-bottom: 20px;
    background: #091326;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.product-sku {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.25rem;
    margin: 8px 0 12px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.feature-pill {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 8px;
    margin: 3px 3px 3px 0;
}

/* ================= CATEGORY PILLS ================= */
.category-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.category-icon {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

/* ================= TESTIMONIALS SLIDER ================= */
.testimonial-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 35px;
    margin: 15px 0;
    position: relative;
}

.stars-rating {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 24px;
}

.client-role {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* ================= WHY BROTHERS SECTION ================= */
.stat-box {
    background: rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* ================= FOOTER ================= */
.footer-custom {
    background: #040810;
    border-top: 1px solid var(--border-glass);
    padding: 70px 0 30px;
}

.footer-logo img {
    height: 48px;
    margin-bottom: 15px;
}

/* ================= ADMIN STYLES ================= */
.admin-sidebar {
    background: rgba(10, 20, 40, 0.95);
    border-right: 1px solid var(--border-glass);
    min-height: 100vh;
}

.admin-nav-link {
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
}

/* ================= MOBILE & OVERFLOW SAFEGUARDS ================= */
section, 
header, 
footer, 
.section-padding, 
.hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    /* Prevent mobile horizontal overflow from AOS animations, Bootstrap rows, or wide elements */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
    }

    .container, .container-fluid {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    img, video, iframe, svg {
        max-width: 100%;
        height: auto;
    }

    p, h1, h2, h3, h4, h5, h6, span, a, small, div {
        overflow-wrap: break-word;
    }
}
