@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
    --bg-dark: #07080c;
    --bg-surface: #0e111a;
    --bg-card: rgba(18, 23, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 60, 0.85);
    --border-card: rgba(0, 240, 255, 0.15);
    --border-glow: rgba(0, 240, 255, 0.4);
    
    --neon-cyan: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-magenta: #ff007f;
    --neon-green: #00ff88;
    --gold-accent: #ffb703;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --shadow-neon: 0 0 25px rgba(0, 240, 255, 0.25);
    --shadow-purple: 0 0 25px rgba(138, 43, 226, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.07) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    transition: var(--transition);
}

.logo:hover .brand-logo-img {
    transform: scale(1.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.brand-logo-footer {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-neon);
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    font-family: var(--font-body);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--neon-magenta);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--neon-magenta);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4rem 2rem;
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
}

.hero-title span {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #0099ff);
    color: #000;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--text-main);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-purple);
    transform: translateY(-3px);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(138, 43, 226, 0.25) 50%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

.hero-img {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 35px rgba(0, 240, 255, 0.3));
    transition: var(--transition);
    border-radius: var(--radius-lg);
}

.hero-img:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* Category Filter Bar */
.filter-section {
    max-width: 1350px;
    margin: 1rem auto 2rem;
    padding: 0 2rem;
}

.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cpu-pills {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
}

.cpu-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cpu-pill:hover {
    color: var(--text-main);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
}

.cpu-pill.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* Products Grid */
.products-section {
    max-width: 1350px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--neon-cyan);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.9), rgba(138, 43, 226, 0.9));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-img-wrap {
    height: 220px;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.product-card:hover .card-img {
    transform: scale(1.08);
}

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

.card-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 40px;
}

.specs-mini-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.spec-item {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item i {
    color: var(--neon-cyan);
    width: 16px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-decoration: line-through;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--neon-green);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-card-action {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-action:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* PC Builder Section */
.builder-section {
    max-width: 1350px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.builder-card {
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.builder-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.builder-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.builder-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.part-selector-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.part-label {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 140px;
    color: var(--text-main);
}

.part-label i {
    color: var(--neon-cyan);
}

.part-select {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.9rem;
}

.part-price-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--neon-green);
    min-width: 90px;
    text-align: right;
}

.builder-summary {
    background: rgba(10, 14, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.wattage-meter {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 1.5rem;
}

.wattage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.wattage-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.summary-total {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    margin: 1rem 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
    background: var(--neon-magenta);
}

.fps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.fps-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    text-align: center;
}

.fps-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
}

.fps-game {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Comparison Drawer */
.comparison-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 17, 26, 0.95);
    backdrop-filter: blur(16px);
    border-top: 2px solid var(--neon-cyan);
    padding: 1rem 2rem;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-drawer.active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #040508;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem 1.5rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-bottom {
    max-width: 1350px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .builder-grid {
        grid-template-columns: 1fr;
    }
    .fps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
