:root {
    --bg-color: #0a0a0a;
    --neon-blue: #3b82f6;
    --purple-glow: #8b5cf6;
    --cyan-accent: #06b6d4;
    --neon-pink: #ec4899;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo {
    font-family: 'Orbitron', sans-serif;
}

/* Background Animation */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(120deg, #0a0a0a, #111827, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientFlow 15s infinite ease-in-out;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--purple-glow);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--neon-blue);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--neon-pink);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--cyan-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-accent), var(--neon-pink));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--neon-pink);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Glassmorphism Classes */
.glass-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    transition: 0.35s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--purple-glow), var(--neon-pink));
    background-size: 200% 200%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.7);
    background-position: 100% 50%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--cyan-accent);
    color: var(--cyan-accent);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.neon-text {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px var(--neon-blue);
}

.subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Gadget Cards */
.gadget-card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--cyan-accent);
    border: 1px solid var(--cyan-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rating span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.btn-card:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--purple-glow));
    border-color: transparent;
}

/* Trending Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.trending-card {
    min-width: 280px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}

.trending-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--cyan-accent);
    color: var(--cyan-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.slider-btn:hover {
    background: var(--cyan-accent);
    color: #000;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Categories */
.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    text-align: center;
    padding: 2rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    transition: transform 0.3s;
}

.category-card:hover .cat-icon {
    transform: scale(1.2);
}

/* Newsletter */
.newsletter-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
}

.newsletter-box {
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

.newsletter-box h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    outline: none;
    transition: 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Footer */
.glass-footer {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--cyan-accent);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations & Micro-interactions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .neon-text {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}