/* 
Theme Colors:
- Dark BG: #0f1115
- Secondary Dark: #1a1d24
- Cyan/Neon Blue: #00d2ff
*/

:root {
    --bg-dark: #0f1115;
    --bg-secondary: #1a1d24;
    --text-white: #ffffff;
    --text-muted: #a0a5b1;
    --cyan: #00d2ff;
    --cyan-hover: #00a8cc;
    --cyan-glass: rgba(0, 210, 255, 0.1);
    --border-color: #2a2e37;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.bg-dark { background-color: var(--bg-dark) !important; }
.bg-secondary-dark { background-color: var(--bg-secondary) !important; }
.bg-black { background-color: #000 !important; }
.text-cyan { color: var(--cyan) !important; }
.bg-cyan { background-color: var(--cyan) !important; }
.text-cyan-glass { color: var(--cyan-glass) !important; }
.border-secondary { border-color: var(--border-color) !important; }

/* Buttons */
.btn-cyan {
    background: linear-gradient(45deg, #0082c8, #00d2ff);
    color: #121212 !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    color: #000 !important;
}

.btn-outline-cyan {
    color: var(--cyan);
    border: 1px solid var(--cyan);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
    background: var(--cyan);
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 210, 255, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); }
}

/* Typography & General */
.page-section {
    padding: 6rem 0;
}
.section-heading {
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.heading-divider {
    width: 60px;
    height: 4px;
    background: var(--cyan);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 1.5rem 0;
    background-color: transparent !important;
}

.navbar.navbar-shrink {
    padding: 0.8rem 0;
    background-color: rgba(15, 17, 21, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar-brand.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0 !important;
}

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

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

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

.navbar-toggler {
    border: none;
    outline: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.9)), 
                url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

/* Animations */
.animation-fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filters */
.filter-controls {
    display: inline-flex;
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 5px 15px;
    border: 1px solid var(--border-color);
}

.list-inline-item {
    cursor: pointer;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.list-inline-item:hover, .list-inline-item.filter-active {
    color: #121212;
    background: var(--cyan);
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
}

/* Products */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border: 1px solid var(--cyan-glass) !important;
}

.product-img-wrapper {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper .placeholder-icon {
    transform: scale(1.1);
    color: var(--cyan) !important;
}

.placeholder-icon {
    transition: all 0.3s ease;
    color: #e0e0e0 !important;
}

/* Deals */
.deals-section {
    background: linear-gradient(rgba(0, 210, 255, 0.1), rgba(15, 17, 21, 0.9)),
                url('https://images.unsplash.com/photo-1605810230434-7631ac76ec81?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 8rem 0;
}

.timer-box {
    min-width: 90px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.timer-box:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* Features */
.feature-icon {
    transition: transform 0.3s ease;
}
.feature-icon:hover {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--cyan);
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus {
    background-color: #12151b !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Form floating fix for dark background */
.form-floating > label {
    color: #a0a5b1 !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--cyan) !important;
}

.form-floating > .form-control:focus ~ label::after, 
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-control:-webkit-autofill ~ label::after {
    background-color: transparent !important;
}

/* Footer */
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, padding-right 0.3s;
}
.footer-links a:hover {
    color: var(--cyan);
    padding-right: 10px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.social-icon:hover {
    background: var(--cyan);
    color: #121212;
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--cyan);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #fff;
    color: var(--cyan);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .deals-section h2 { font-size: 2rem; }
    .timer-box { min-width: 60px; padding: 10px !important; }
    #countdown .fs-1 { font-size: 1.5rem !important; }
    .hero h1 { font-size: 2.5rem; }
}
