/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #D4AF37; /* Elegant Gold */
    --primary-hover: #F3E5AB;
    --bg-color: #020c1b; /* Deep Dark Navy */
    --bg-lighter: #112240;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fff;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Header */
.header {
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border: none;
    text-align: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/images/banner.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 12, 27, 0.4), rgba(2, 12, 27, 0.7));
    transition: background 0.5s ease;
}

.hero:hover .hero-overlay {
    background: linear-gradient(to bottom, rgba(2, 12, 27, 0.2), rgba(2, 12, 27, 0.5));
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b8912d);
    color: var(--bg-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

/* Features */
.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-box {
    flex: 1;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Products */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    opacity: 1;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-video {
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .btn-video {
    transform: translateY(0);
}

.btn-video i {
    margin-left: 5px;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-actions {
    margin-top: auto;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.action-buttons-compact {
    display: flex;
    gap: 10px;
}

.btn-sm {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
}

.btn-trial { background: #2b5c8f; }
.btn-trial:hover { background: #3b7cb5; }

.btn-installments { background: #b87c4c; }
.btn-installments:hover { background: #d9935a; }

.btn-buy { background: #28a745; }
.btn-buy:hover { background: #34ce57; }

/* Footer */
.footer {
    background: var(--bg-lighter);
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-info span {
    color: var(--primary-color);
}

.slogan {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-contact h4, .footer-social h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-left: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: #01060e;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        flex-direction: column;
        gap: 20px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        background: rgba(2, 12, 27, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 14px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--glass-border);
    }
    /* Show hamburger on mobile */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }
    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: var(--transition);
    }
}

/* Hide hamburger by default on desktop */
.hamburger-btn {
    display: none;
}

/* Cart Sidebar Styles */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-sidebar {
    position: fixed;
    top: 0; right: -400px; /* Hidden offscreen - RTL: slides in from right */
    width: 380px;
    height: 100vh;
    background: rgba(2, 12, 27, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
}
.cart-active .cart-overlay {
    opacity: 1; visibility: visible;
}
.cart-active .cart-sidebar {
    right: 0;
    box-shadow: -5px 0 30px rgba(0,0,0,0.6);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    position: relative;
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item-info {
    flex: 1;
    color: #fff;
}
.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}
.btn-remove-item {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.1rem;
}

@media (max-width: 400px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .cart-active .cart-sidebar { right: 0; }
}


.cart-item-plan {
    width: 100%;
    margin: 5px 0 10px;
    padding: 5px;
    background: rgba(2, 12, 27, 0.8);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}
.cart-item-plan:focus {
    border-color: var(--primary-color);
}

/* Custom Styles for Form Placeholders */
::placeholder {
    color: #ffffff !important;
    font-weight: 800 !important;
    opacity: 1; /* Fix for Firefox default transparency */
}

:-ms-input-placeholder {
    color: #ffffff !important;
    font-weight: 800 !important;
}

::-ms-input-placeholder {
    color: #ffffff !important;
    font-weight: 800 !important;
}

