/* 
    Sarhad Electrics - Premium Modern eCommerce Stylesheet
    Author: Sarhad Electrics Team
    Mood: Modern, Dark, Glassmorphism, Neon Accents
*/

:root {
    --bg: #05070a;
    --accent: #00d2ff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-dim: #94a3b8;
    --text-primary: #ffffff;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor everywhere */
}

html {
    scroll-behavior: smooth;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn-neon {
    background: linear-gradient(90deg, rgb(0, 180, 255), rgb(140, 0, 255));
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(140, 0, 255, 0.6);
}

.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body {

    background: linear-gradient(135deg, rgb(8, 10, 25), rgb(15, 20, 45), rgb(0, 140, 255));
    color: #fff;

    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Atmospheric Backgrounds */
.gradient-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.gradient-bg-alt {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-outer {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-inner {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff !important;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim) !important;
    transition: var(--transition-smooth);
    margin: 0 15px;
}

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

/* Hero Grid Pattern */
.hero-grid {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    will-change: transform;
}

/* Background Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 10%;
    right: 15%;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #9333ea 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation: orbFloat 15s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

.highlight-text {
    background: linear-gradient(90deg, #00d2ff, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

/* Hero Stats Section */
.hero-stats-row {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar Brand Animation */
.navbar-brand::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 100px 60px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.7) contrast(1.1);
    animation: cinematicZoom 60s infinite alternate ease-in-out;
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg) 20%, transparent 80%),
        radial-gradient(circle at center, transparent 0%, var(--bg) 90%);
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.3);
    }
}

.hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff 50%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 550px;
}

/* Buttons */
.btn {
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-premium.btn-blue {
    background: var(--accent);
    color: #000;
    z-index: 1;
}

.btn-premium.btn-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-premium.btn-blue:hover::before {
    left: 100%;
}

.btn-premium.btn-blue:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.4);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.1);
}

/* --- Advanced UI Enhancements --- */

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Card Hover Effects */
.glass-card {
    background: var(--glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Category Card Polish */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: background 0.4s ease;
}

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

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 210, 255, 0.3) 0%, transparent 80%);
}

.category-card h3 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.category-card:hover h3 {
    transform: translateY(0);
}

/* Glow Effects */
.btn-blue {
    box-shadow: 0 0 0 rgba(0, 210, 255, 0);
}

.btn-blue:hover {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.price-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Floating Animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 4s infinite ease-in-out;
}

/* Scan Line Effect */
.glass-card .product-image {
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 210, 255, 0.2), transparent);
    animation: scanning 4s infinite linear;
    pointer-events: none;
}

@keyframes scanning {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

/* Enhanced Typography */
.hero-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 800;
}

/* Navbar Scrolled Glass */
.navbar.scrolled {
    padding: 16px 60px;
    background: rgba(5, 7, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Product Image Glow */
.product-image {
    width: 100%;
    height: 180px;
    /* increased */
    object-fit: contain;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05) rotate(2deg);
}


/* --- Premium Branding & Marketing UI --- */

/* Infinite Brand Marquee */
.brands-marquee {
    padding: 80px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    user-select: none;
}

.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.brands-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-content {
    display: flex;
    gap: 120px;
    animation: marquee 40s linear infinite;
    width: max-content;
    align-items: center;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dim);
    opacity: 0.2;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.brand-item:hover {
    opacity: 0.8;
    color: var(--accent);
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
}

/* Premium Newsletter Card */
.newsletter-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Special Offer Enhancements */
.special-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.special-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.15);
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Performance Optimization */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.hero-section {
    content-visibility: visible;
}


/* --- Premium Form Styles --- */
.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2) !important;
    outline: none !important;
}

.form-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Checkout Step Progress */
.checkout-steps-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
}

.step-item {
    width: 30px;
    height: 30px;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.step-item.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.5rem;
}

.header-accent {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin-top: 15px;
    border-radius: 1px;
}

/* Enhanced Dynamic Footer */
footer {
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--glass-border);
    padding: 100px 60px 40px !important;
    position: relative;
    z-index: 10;
    font-size: 14px;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-link {
    color: var(--text-dim) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 12px;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    padding: 0 !important;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero-section {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }
}