/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --text-gray: #4b5563;
    --success: #10b981;
    --error: #ef4444;
    --hot: #e11d48;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0; overflow: hidden; }
.section-padding { padding: 80px 0; }
h1, h2, h3 { font-weight: 700; margin-bottom: 20px; }
p { margin-bottom: 15px; color: var(--text-gray); }

/* --- NAVIGATION --- */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 500; color: var(--dark); font-size: 0.95rem;}
.nav-links a:hover { color: var(--primary); }
.login-link { color: var(--primary) !important; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.btn-cta { background-color: var(--primary); color: var(--white); padding: 10px 25px; border-radius: 5px; font-weight: 600; }
.btn-cta:hover { background-color: var(--secondary); color: var(--white); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--white); min-width: 220px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-radius: 5px; padding: 10px 0; flex-direction: column; z-index: 1000; }
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a { color: var(--dark); padding: 12px 20px; display: block; font-size: 0.9rem; border-bottom: 1px solid #f3f4f6; }
.dropdown-menu a:hover { background-color: var(--light); color: var(--primary); }

/* --- TRENDING NOW SECTION --- */
.trending-section { margin-top: 80px; padding: 20px 0; background: #fff; border-bottom: 1px solid #f3f4f6; overflow: hidden; }
.section-title-small h3 { font-size: 1.2rem; text-align: center; color: var(--hot); margin-bottom: 15px; }
.trending-marquee { overflow: hidden; white-space: nowrap; width: 100%; }
.trending-track { display: flex; gap: 20px; width: max-content; animation: scrollRightToLeft 40s linear infinite; }
@keyframes scrollRightToLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.trending-track:hover { animation-play-state: paused; }

.mini-card { width: 200px; min-width: 200px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.mini-card .product-image { height: 120px; }
.mini-content { padding: 10px; text-align: center; }
.mini-content h4 { font-size: 0.9rem; margin-bottom: 5px; white-space: normal; }
.btn-mini { padding: 5px; font-size: 0.8rem; }

/* --- HERO SECTION --- */
.hero { background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80'); background-size: cover; background-position: center; height: 50vh; display: flex; align-items: center; text-align: center; color: var(--white); padding-top: 0; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { color: #e5e7eb; font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

/* --- SERVICES & VALUE SECTION --- */
.services-bg { background-color: var(--light); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); }
.section-title span { color: var(--primary); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-bottom: 50px; }
.service-card { background: var(--white); padding: 40px 20px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center; transition: 0.4s ease-in-out; border-top: 4px solid var(--primary); position: relative; overflow: hidden; z-index: 1; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); transition: 0.4s ease-in-out; z-index: -1; }
.service-card:hover { transform: translateY(-10px); border-top-color: transparent; box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2); }
.service-card:hover::before { height: 100%; }
.service-card:hover h3, .service-card:hover p, .service-card:hover i { color: var(--white); }
.service-card i { font-size: 45px; color: var(--primary); margin-bottom: 20px; transition: 0.4s; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; transition: 0.4s; }
.service-card p { font-size: 0.9rem; transition: 0.4s; }

.membership-value-box { background: linear-gradient(135deg, var(--dark), var(--secondary)); color: var(--white); padding: 50px 30px; border-radius: 20px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
.membership-value-box h3 { font-size: 2.2rem; margin-bottom: 15px; color: var(--white); }
.membership-value-box p { color: #e5e7eb; font-size: 1.1rem; max-width: 800px; margin: 0 auto 30px; line-height: 1.8; }
.membership-value-box strong { color: var(--accent); }

.btn-access { display: inline-block; background: var(--hot); color: var(--white); padding: 15px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); animation: pulse-red 2s infinite; transition: 0.3s; }
.btn-access i { margin-right: 10px; }
.btn-access:hover { background: #be123c; color: var(--white); transform: scale(1.05); }

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* --- PRODUCTS GRID --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.product-card { background: var(--white); border: 1px solid #e5e7eb; border-radius: 15px; overflow: hidden; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--primary); }
.card-badge { position: absolute; top: 15px; right: 15px; background: var(--hot); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 10; }
.product-image { position: relative; overflow: hidden; height: 220px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-summary { font-size: 0.9rem; margin-bottom: 15px; color: var(--text-gray); flex-grow: 1; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f3f4f6; }
.value-price { font-size: 0.9rem; color: #9ca3af; text-decoration: line-through; }
.member-price { font-size: 1rem; color: var(--success); font-weight: 700; }
.product-benefits { margin-bottom: 20px; display: none; }
.btn-product { display: block; width: 100%; padding: 12px; text-align: center; background: var(--dark); color: var(--white); border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: 0.3s; }
.btn-product:hover { background: var(--primary); transform: scale(1.02); }

/* --- PRICING --- */
.pricing-toggle-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 40px; }
.toggle-label.active { color: var(--primary); font-weight: bold; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 40px; text-align: center; position: relative; background: #fff; transition: 0.3s; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15); transform: scale(1.05); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.price { font-size: 3rem; font-weight: 700; color: var(--dark); margin: 20px 0; }
.features-list { margin: 30px 0; text-align: left; }
.features-list li { margin-bottom: 10px; color: var(--text-gray); }
.features-list li i { color: var(--primary); margin-right: 10px; }

/* --- REVIEWS MARQUEE --- */
.reviews-marquee { overflow: hidden; position: relative; width: 100%; padding: 20px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.reviews-track { display: flex; gap: 30px; width: max-content; animation: scrollLeftToRight 40s linear infinite; }
@keyframes scrollLeftToRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.reviews-track:hover { animation-play-state: paused; }
.review-card { min-width: 350px; max-width: 350px; background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.stars { color: var(--accent); margin-bottom: 20px; }

/* --- CONTACT FORM --- */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 5px; margin-bottom: 20px; }
.submit-btn { width: 100%; background: var(--primary); color: var(--white); border: none; padding: 15px; border-radius: 5px; cursor: pointer; font-weight: 600; }

/* Form Alert Messages */
#form-message { padding: 0; border-radius: 5px; margin-bottom: 15px; font-weight: 600; text-align: center; transition: 0.3s; }
.message-success { padding: 15px !important; background-color: #d1fae5; color: var(--success); border: 1px solid #10b981; }
.message-error { padding: 15px !important; background-color: #fee2e2; color: var(--error); border: 1px solid #ef4444; }

/* --- FOOTER & SEARCH --- */
footer { background: var(--dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.copyright { text-align: center; border-top: 1px solid #374151; padding-top: 20px; margin-top: 40px; color: #9ca3af; }

.footer-search { display: flex; margin-top: 20px; }
.footer-search input { width: 100%; padding: 12px 15px; border: none; border-radius: 5px 0 0 5px; outline: none; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
.footer-search button { background: var(--primary); color: var(--white); border: none; padding: 12px 20px; border-radius: 0 5px 5px 0; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.footer-search button:hover { background: var(--accent); }

/* --- MODAL --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); animation: fadeIn 0.3s; }
.modal-content { background-color: var(--white); margin: 5% auto; width: 90%; max-width: 900px; border-radius: 15px; position: relative; overflow: hidden; animation: slideUp 0.3s; display: flex; flex-direction: column; }
.close-btn { color: #555; position: absolute; top: 15px; right: 25px; font-size: 35px; font-weight: bold; cursor: pointer; z-index: 20; transition: 0.3s; }
.close-btn:hover { color: var(--hot); }
.modal-body { display: flex; flex-wrap: wrap; }
.modal-image-container { flex: 1; min-width: 400px; background: #f3f4f6; position: relative; }
.modal-image-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-category-badge { position: absolute; top: 20px; left: 20px; background: var(--primary); color: white; padding: 8px 15px; font-weight: 700; text-transform: uppercase; border-radius: 5px; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.modal-info { flex: 1; min-width: 300px; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.sales-word { color: var(--hot); font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.modal-info h3 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; color: var(--dark); }
.modal-info p { margin-bottom: 25px; font-size: 1.05rem; color: #555; }
.modal-benefits ul { margin-bottom: 30px; }
.modal-benefits li { margin-bottom: 12px; font-size: 1rem; color: var(--dark); display: flex; align-items: center; }
.modal-benefits li i { color: var(--success); margin-right: 12px; font-size: 1.2rem; }
.modal-info .btn-cta { display: inline-block; text-align: center; background: linear-gradient(45deg, var(--primary), var(--secondary)); padding: 15px; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); transition: 0.3s; }
.modal-info .btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4); }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 80px; width: 100%; background: white; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .trending-section { margin-top: 80px; }
    .membership-value-box { padding: 40px 20px; }
    .membership-value-box h3 { font-size: 1.6rem; }
    .btn-access { font-size: 1rem; padding: 12px 30px; }
    .modal-body { flex-direction: column; }
    .modal-image-container { min-width: 100%; height: 250px; }
    .modal-info { padding: 30px 20px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#backToTop { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: none; outline: none; background-color: var(--primary); color: var(--white); cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: background-color 0.3s, transform 0.3s; }
#backToTop:hover { background-color: var(--secondary); transform: translateY(-5px); }