/* Banner Slider */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-top: 80px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 40%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.slider-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .banner-slider {
    margin-top: 80px;
  }
  
  .slider-wrapper {
    padding-bottom: 50%;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-btn.prev {
    left: 10px;
  }
  
  .slider-btn.next {
    right: 10px;
  }
  
  .slider-dots {
    bottom: 10px;
    gap: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
  
  .dot.active {
    width: 24px;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Soft Button */
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3), -6px -6px 12px rgba(255, 255, 255, 0.03);
}

.btn-soft:hover {
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-soft:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.02);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: all 0.4s var(--transition-smooth);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Tech Badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  opacity: 1 !important;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tech-badge:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  color: var(--primary-300);
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Code Preview */
.code-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  overflow-x: auto;
}

.code-line {
  color: var(--text-secondary);
}

.code-keyword {
  color: #c792ea;
}

.code-class {
  color: #ffcb6b;
}

.code-function {
  color: #82aaff;
}

.code-param {
  color: #f07178;
}

.code-string {
  color: #c3e88d;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

/* Product Image Responsive */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-soft,
  .tech-badge,
  .tech-tag {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .nav-link {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .slider-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .dot {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
}

/* Tablet Responsive */
@media (max-width: 968px) {
  .banner-slider {
    margin-top: 70px;
  }
  
  .slider-wrapper {
    padding-bottom: 45%;
  }
  
  .glass-card {
    padding: var(--spacing-lg);
  }
  
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .product-badge {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.65rem;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .banner-slider {
    margin-top: 60px;
  }
  
  .slider-wrapper {
    padding-bottom: 56%;
  }
  
  .slider-btn {
    width: 36px;
    height: 36px;
    opacity: 0.9;
  }
  
  .slider-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .slider-btn.prev {
    left: 8px;
  }
  
  .slider-btn.next {
    right: 8px;
  }
  
  .slider-dots {
    bottom: 12px;
    gap: 6px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    border-width: 1px;
  }
  
  .dot.active {
    width: 20px;
    border-radius: 4px;
  }
  
  .glass-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }
  
  .btn-primary,
  .btn-soft {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
    width: 100%;
    justify-content: center;
  }
  
  .section-header {
    margin-bottom: var(--spacing-xl);
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
  
  .section-subtitle {
    font-size: var(--text-base);
  }
  
  .product-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  
  .code-preview {
    padding: var(--spacing-md);
    font-size: 0.75rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .slider-wrapper {
    padding-bottom: 60%;
  }
  
  .btn-primary,
  .btn-soft {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
  }
  
  .product-badge {
    position: static;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
  }
}

