/* --- GLOBAL VARIABLES (NEW RED/BLUE/GREY PALETTE) --- */
:root {
    /* GREY BACKGROUNDS */
    --bg-color: #121212;           /* Deep Dark Grey */
    --surface-color: #1e1e24;      /* Lighter Grey Surface */
    
    /* TEXT */
    --text-main: #e0e0e0;          /* Light Grey Text */
    --text-muted: #a0a0a0;         /* Muted Grey Text */
    
    /* MAIN ACCENT: NEON RED (Replaces the old glossy blue) */
    --accent-red: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    --red-glow: 0 0 30px rgba(255, 75, 43, 0.5);
    --red-solid: #ff416c;

    /* SECONDARY ACCENT: ELECTRIC BLUE (For contrast highlights) */
    --accent-blue: #00e5ff;

    /* GLASS EFFECT */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
}

/* FIX: Scrolls to correct position so header doesn't cover title */
section {
    scroll-margin-top: 100px; 
}

body { 
    font-family: 'Inter', 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); }
/* Standard links get the blue accent for contrast */
a:hover { color: var(--accent-blue); } 

img { max-width: 100%; display: block; }

/* --- HEADER --- */
header {
    background: rgba(18, 18, 18, 0.85); /* Dark grey blend */
    backdrop-filter: blur(20px);
    padding: 1.2rem 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: var(--glass-border); display: flex; justify-content: space-between; align-items: center;
}
/* Update the .logo style */
.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    color: #fff; 
    
    /* New Alignment Settings */
    display: flex; 
    align-items: center; 
    gap: 12px; /* Space between image and text */
    text-decoration: none;
}

/* Style the new logo image */
.logo img {
    height: 45px; /* Adjust height to match text size */
    width: auto;
    filter: none !important; /* Prevents global filters from affecting it */
}

.logo span { 
    background: var(--accent-red); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; color: #fff; }
/* Logo dot is now RED */
.logo span { background: var(--accent-red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

nav ul { display: flex; gap: 2.5rem; }
nav a { font-size: 0.85rem; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
/* Nav hover gets the RED glow */
nav a:hover { opacity: 1; color: var(--red-solid); text-shadow: 0 0 15px rgba(255, 65, 108, 0.6); }
.mobile-menu-btn { display: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn-glossy {
    background: var(--accent-red); color: white; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 700; border: none; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--red-glow);
}
.btn-glossy:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(255, 65, 108, 0.8); color: white; }

.btn-outline {
    background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--text-main);
    padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700;
}
/* Outline button hover turns RED */
.btn-outline:hover { background: var(--accent-red); color: white; border-color: transparent; box-shadow: var(--red-glow); }

/* --- HERO --- */
.hero {
    height: 100vh;
    /* Red tint in the dark grey gradient */
    background: radial-gradient(circle at center, rgba(255, 75, 43, 0.15) 0%, var(--bg-color) 70%), url('../images/hero-bg.jpg');
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%;
}
.hero-content h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; color: #ffffff; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin: 0 auto 2.5rem auto; max-width: 650px; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }

/* --- MARQUEE (BRANDS) - HIGH VISIBILITY FIX --- */
.brands-section { 
    padding: 3rem 0; 
    background: var(--bg-color); /* Dark Grey Background */
    border-top: var(--glass-border); 
    border-bottom: var(--glass-border); 
    overflow: hidden; 
}

.marquee-container { display: flex; overflow: hidden; }

.marquee-track { 
    display: flex; 
    animation: scroll 30s linear infinite; 
    align-items: center; 
}

.brand-item { 
    display: block; 
    margin: 0 4rem; 
    flex-shrink: 0; 
}

.brand-item img {
    height: 85px; 
    width: auto; 
    
    /* THE FIX: 
       1. brightness(0): Turns logo black
       2. invert(1): Turns that black into Pure White 
       Result: A clean white logo that is 100% visible on dark backgrounds
    */
    filter: brightness(0) invert(1);
    
    opacity: 0.8; /* Slight transparency for a sleek look */
    transition: all 0.4s ease;
}

/* Hover Effect: Restore Original Colors + Neon Red Glow */
.brand-item:hover img { 
    opacity: 1; 
    /* Remove filters to show original brand colors */
    filter: none; 
    /* Add the Red Glow */
    filter: drop-shadow(0 0 15px rgba(255, 65, 108, 0.8)); 
    transform: scale(1.1); 
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .brand-item img { height: 50px; } 
    .brand-item { margin: 0 2rem; }
}
/* --- PRODUCTS --- */
.products { padding: 8rem 5%; background: var(--bg-color); }
.section-title { text-align: center; margin-bottom: 5rem; }
.section-title h2 { font-size: 3rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 1rem; color: #fff; }
/* Title spans are now RED */
.section-title span { background: var(--accent-red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title p { color: var(--text-muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.product-card {
    background: var(--surface-color); border: var(--glass-border); border-radius: 20px; padding: 2rem;
    text-align: center; transition: var(--transition);
}
/* Product hover border is RED */
.product-card:hover { transform: translateY(-10px); border-color: var(--red-solid); box-shadow: 0 10px 40px rgba(255, 75, 43, 0.2); }
.product-image { height: 200px; margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; }
.product-image img { max-height: 100%; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 700; color: #fff; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
/* Brand tag is dark grey with white text */
.product-brand { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; background: #333; color: #fff; padding: 4px 12px; border-radius: 4px; margin-bottom: 1rem; }

.view-btn { color: var(--text-main); font-size: 0.9rem; font-weight: 600; opacity: 0.7; transition: 0.3s; }
/* View button hover becomes RED */
.product-card:hover .view-btn { opacity: 1; color: var(--red-solid); }

/* --- NEWS & TECH RADAR --- */
.news-section { padding: 6rem 5%; background: var(--surface-color); border-bottom: var(--glass-border); border-top: var(--glass-border); }
.news-ticker-container {
    background: var(--bg-color); border: 1px solid #333; border-radius: 8px; display: flex;
    overflow: hidden; margin-bottom: 4rem; box-shadow: var(--red-glow);
}
/* Breaking label is bright RED */
.ticker-label {
    background: var(--red-solid); color: white; font-weight: 800; padding: 0.8rem 1.5rem;
    font-size: 0.9rem; display: flex; align-items: center; z-index: 2;
}
.ticker-track {
    display: flex; align-items: center; white-space: nowrap; padding-left: 100%;
    animation: tickerScroll 30s linear infinite; flex: 1;
}
.ticker-item { color: var(--text-muted); font-size: 0.9rem; margin-right: 4rem; display: flex; align-items: center; gap: 10px; }
/* Ticker Source and Icon are BLUE for contrast */
.ticker-item span {
    color: var(--accent-blue); font-weight: 700; text-transform: uppercase; font-size: 0.8rem;
    border: 1px solid var(--accent-blue); padding: 2px 6px; border-radius: 4px;
}
.ticker-item i { color: var(--accent-blue) !important; }


.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.news-card {
    background: var(--bg-color); border: 1px solid #333; border-radius: 12px; padding: 1.5rem;
    position: relative; transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between;
}
/* News card hover border is RED */
.news-card:hover { border-color: var(--red-solid); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(255, 75, 43, 0.2); }
.news-source {
    font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 1rem; display: flex; justify-content: space-between;
}
/* News Source Name is BLUE */
.news-source span:first-child { color: var(--accent-blue) !important; }

.news-date { color: var(--text-muted); }
.news-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin-bottom: 1rem; color: #fff; }
/* News link is BLUE */
.news-link {
    color: var(--accent-blue); font-size: 0.9rem; font-weight: 600; display: inline-flex;
    align-items: center; gap: 5px;
}
.news-link:hover { text-decoration: underline; color: var(--red-solid); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- REVIEWS SECTION --- */
.reviews-section {
    padding: 6rem 0;
    /* Grey gradient background */
    background: linear-gradient(to bottom, var(--bg-color), var(--surface-color));
    border-bottom: var(--glass-border);
    overflow: hidden;
}
/* Reviews link becomes BLUE */
.reviews-section a { color: var(--accent-blue) !important; }

.reviews-track {
    display: flex; gap: 2rem; animation: scroll 40s linear infinite; padding: 2rem 0;
}
.reviews-track:hover { animation-play-state: paused; }
.review-card {
    background: rgba(30, 30, 36, 0.8); /* Grey glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px;
    padding: 1.5rem; min-width: 350px; max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: var(--transition);
}
/* Review hover gets RED border/glow */
.review-card:hover {
    transform: translateY(-5px); border-color: var(--red-solid);
    box-shadow: 0 10px 40px rgba(255, 75, 43, 0.15);
}
.review-header { display: flex; align-items: center; margin-bottom: 1rem; position: relative; }
.reviewer-icon {
    width: 45px; height: 45px; background: linear-gradient(135deg, #333, #111);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; color: #888; border: 1px solid #444;
}
.reviewer-info h4 { font-size: 1rem; color: #fff; margin-bottom: 3px; font-weight: 600; }
.stars { color: #FFD700; font-size: 0.8rem; }
/* Facebook Icon is BLUE */
.f-icon { position: absolute; right: 0; top: 5px; color: var(--accent-blue); font-size: 1.2rem; }
.review-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; font-style: italic; }

/* --- CONTACT SECTION --- */
.contact-section { padding: 6rem 5%; background: var(--bg-color); border-top: var(--glass-border); }
.contact-grid { display: flex; gap: 4rem; flex-wrap: wrap; margin-top: 3rem; }
/* Map filter changed to match grey theme */
.contact-map { flex: 1 1 400px; height: 350px; border-radius: 20px; overflow: hidden; border: var(--glass-border); filter: grayscale(100%) contrast(1.2) brightness(0.8); }
.contact-details { flex: 1 1 300px; display: flex; flex-direction: column; gap: 2rem; justify-content: center; }
.contact-item { display: flex; align-items: flex-start; gap: 1.5rem; }
/* Contact Icons are BLUE */
.contact-item i { font-size: 1.5rem; color: var(--accent-blue); margin-top: 5px; }
.contact-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.contact-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.contact-item span { color: #fff; font-weight: 600; margin-right: 5px; }

/* --- ANIMATIONS & FOOTER --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
footer { border-top: 1px solid #222; padding: 4rem 5%; text-align: center; color: var(--text-muted); background: var(--surface-color); }
.footer-logo { font-size: 1.5rem; color: #fff; font-weight: 800; margin-bottom: 1rem; display: block; }

/* --- MOBILE SPECIFIC STYLES --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-color); padding: 2rem; border-bottom: 1px solid var(--red-solid); }
    nav.active { display: block; }
    nav ul { flex-direction: column; text-align: center; }
    .mobile-menu-btn { display: block; }
    .brand-item img { height: 60px; }
    .brand-item { margin: 0 2rem; }
}

/* --- RMA PAGE STYLING (Red/Grey Theme) --- */
.rma-hero {
    padding: 160px 5% 60px;
    text-align: center;
    /* Red tint in background */
    background: radial-gradient(circle at center, rgba(255, 75, 43, 0.15) 0%, var(--bg-color) 80%);
}
.rma-hero h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-bottom: 1rem; color: #fff; }
.rma-hero span { background: var(--accent-red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rma-hero p { color: var(--text-muted); font-size: 1.1rem; }

.rma-form-section { padding: 0 5% 8rem; display: flex; justify-content: center; background: var(--bg-color); }

.form-container {
    width: 100%; max-width: 800px;
    background: var(--surface-color); border: var(--glass-border); border-radius: 20px;
    padding: 3rem; box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.form-header-text { text-align: center; margin-bottom: 3rem; border-bottom: 1px solid #333; padding-bottom: 2rem; }
.form-header-text h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
/* Form header icon is RED */
.form-header-text h3 i { color: var(--red-solid); margin-right: 10px; }
.form-header-text p { color: var(--text-muted); font-size: 0.9rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.full-width { grid-column: 1 / -1; }

label { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-left: 5px; }

input, select, textarea {
    background: var(--bg-color); border: 1px solid #333; padding: 1rem; border-radius: 8px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; transition: 0.3s;
}
/* Input focus is RED */
input:focus, select:focus, textarea:focus {
    border-color: var(--red-solid); box-shadow: 0 0 15px rgba(255, 75, 43, 0.2); background: #1a1a1a;
}

/* Custom File Upload Box */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    transition: 0.3s;
    background: var(--bg-color);
}
/* Upload hover is RED */
.file-upload-wrapper:hover { border-color: var(--red-solid); color: #fff; }
.file-upload-wrapper input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-upload-wrapper i { font-size: 1.5rem; margin-right: 10px; color: var(--red-solid); }

.form-footer { margin-top: 2rem; text-align: center; }
.submit-btn { width: 100%; font-size: 1.1rem; padding: 1rem; margin-bottom: 1rem; }
.terms { color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-container { padding: 1.5rem; }
}
/* --- RESELLERS SECTION --- */
.resellers-section {
    padding: 6rem 5%;
    background: var(--bg-color); /* Dark Grey */
    border-bottom: var(--glass-border);
}

.resellers-grid {
    display: grid;
    /* Auto-fit creates a responsive grid that wraps automatically */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reseller-card {
    background: var(--surface-color);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Glow Red */
.reseller-card:hover {
    border-color: var(--red-solid);
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 65, 108, 0.15);
}

/* Icon Style */
.reseller-card i {
    font-size: 2rem;
    color: var(--accent-blue); /* Electric Blue Icon */
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

/* Text Style */
.reseller-card h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* Link Text Style */
.visit-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Pushes link to bottom */
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

/* Hover Interactions */
.reseller-card:hover i { color: #fff; transform: scale(1.1); }
.reseller-card:hover h3 { color: var(--red-solid); }
.reseller-card:hover .visit-link { color: #fff; border-bottom-color: var(--red-solid); }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .resellers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Smaller cards on mobile */
    }
    .reseller-card { padding: 1.5rem; }
    .reseller-card i { font-size: 1.5rem; }
    .reseller-card h3 { font-size: 1rem; }
}