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

:root {
  --bg-primary: #0b0f14;
  --bg-secondary: #111827;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --accent-green: #00ff9c;
  --accent-cyan: #00d4ff;
  --accent-violet: #7c3aed;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 156, 0.3);
  
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 255, 156, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--spacing-desktop) 0;
}

@media (max-width: 1024px) {
  .section { padding: var(--spacing-tablet) 0; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Glass & Melting UI Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 15px 40px rgba(0, 255, 156, 0.15);
  border-color: rgba(0, 255, 156, 0.3);
}

.neon-text {
  background: linear-gradient(to right, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
}

.melting-border {
  position: relative;
}

.melting-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan), var(--accent-violet), var(--accent-green));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: border-flow 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.melting-border:hover::after, .active-glow::after {
  opacity: 1;
}

/* Animations */
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0,255,156,0.2); }
  50% { box-shadow: 0 0 25px rgba(0,255,156,0.6); }
  100% { box-shadow: 0 0 10px rgba(0,255,156,0.2); }
}

@keyframes liquid-ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
  color: #000;
  animation: pulse-glow 3s infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-green));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-green);
  box-shadow: inset 0 0 10px rgba(0,255,156,0.1);
}

.btn-outline:hover {
  background: rgba(0, 255, 156, 0.1);
  box-shadow: inset 0 0 20px rgba(0,255,156,0.3), 0 0 20px rgba(0,255,156,0.2);
  color: var(--accent-green);
}

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-violet), transparent);
  animation: border-flow 5s linear infinite;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0%; height: 2px;
  background: var(--accent-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-green);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

#menu-checkbox {
  display: none;
}

@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }
  
  #menu-checkbox:checked ~ .nav-links {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 255, 156, 0.15) 0%, rgba(124, 58, 237, 0.1) 40%, transparent 70%);
  z-index: -1;
  animation: border-flow 10s ease infinite;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-visual {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,156,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 40px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 2;
}

.product-image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
}

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

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent-violet);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.product-specs {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-specs span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs span::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent-cyan);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
}

/* Features / Why Us */
.feature-card {
  padding: 40px 30px;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background: rgba(0, 255, 156, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent-green);
  box-shadow: inset 0 0 20px rgba(0, 255, 156, 0.2), 0 0 20px rgba(0, 255, 156, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: inset 0 0 30px rgba(0, 255, 156, 0.4), 0 0 40px rgba(0, 255, 156, 0.3);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Testimonials */
.testimonial-card {
  padding: 30px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-violet);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #fff;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 15px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 25px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-green);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Internal Pages specific */
.page-header {
  padding: 150px 0 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, rgba(11, 15, 20, 0) 0%, var(--bg-primary) 100%),
              url('assets/images/gaming-abstract-bg.jpg') center/cover;
  position: relative;
}

.page-header h1 {
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 20px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.shop-sidebar .filter-group {
  margin-bottom: 30px;
}

.filter-group h4 {
  margin-bottom: 15px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-label input {
  accent-color: var(--accent-green);
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
}

/* Product Detail */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery .main-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-thumbs img {
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.gallery-thumbs img:hover {
  border-color: var(--accent-green);
}

.product-info-main h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.product-info-main .price {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--accent-green);
  margin-bottom: 30px;
}

.specs-list {
  margin: 30px 0;
}

.specs-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.specs-list li span:first-child {
  color: var(--text-secondary);
}

.quantity-add {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 15px;
}

.quantity-selector input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
}

.quantity-selector button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 992px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

/* PC Builder UI */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.builder-category {
  margin-bottom: 40px;
}

.builder-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.component-card {
  padding: 15px;
  text-align: center;
  cursor: pointer;
}

.component-card.selected {
  border-color: var(--accent-green);
  box-shadow: inset 0 0 20px rgba(0, 255, 156, 0.2);
}

.component-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border-radius: var(--radius-sm);
}

.component-card h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.component-card .price {
  color: var(--accent-green);
  font-weight: 700;
}

.builder-summary {
  position: sticky;
  top: 100px;
  padding: 30px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.summary-list li .name { color: var(--text-secondary); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 24px;
}

@media (max-width: 992px) {
  .builder-layout { grid-template-columns: 1fr; }
  .builder-summary { position: static; }
}

/* Cart & Checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th, .cart-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.cart-table th {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item-info img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.remove-btn {
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.2);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-table th, .cart-table td { padding: 10px; }
  .cart-item-info img { width: 50px; height: 50px; }
}

/* Text Pages (About, Terms, Privacy) */
.text-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
}

.text-content h2 {
  margin: 40px 0 20px 0;
  font-size: 28px;
}

.text-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.text-content ul {
  list-style: disc;
  margin: 20px 0 20px 40px;
  color: var(--text-secondary);
}

.text-content li {
  margin-bottom: 10px;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 40px 0;
  border: 1px solid var(--border-color);
}