/* Subliheart - Custom Styles */
:root {
  --primary: #ff2d95;
  --secondary: #7b2cbf;
  --accent: #00d4ff;
  --orange: #ff6b35;
  --yellow: #ffd166;
  --dark: #0a0a12;
  --darker: #05050a;
  --card: rgba(20, 15, 30, 0.85);
  --text: #ffffff;
  --muted: #b8b8d0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--darker);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(123, 44, 191, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 45, 149, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 70%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ff2d95, #7b2cbf, #00d4ff, #ff6b35);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 45, 149, 0.2);
}

.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff2d95, #7b2cbf);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 45, 149, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 45, 149, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 45, 149, 0.15);
  border-color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

/* Cards */
.product-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 45, 149, 0.4);
  box-shadow: 0 20px 40px rgba(123, 44, 191, 0.3);
}

.product-card img {
  transition: transform 0.5s;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/logo.png') center/cover no-repeat;
  opacity: 0.15;
  filter: blur(2px);
}

/* Language switcher */
.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.lang-btn.active {
  background: linear-gradient(135deg, #ff2d95, #7b2cbf);
  color: white;
}

.lang-btn:not(.active) {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}

.lang-btn:not(.active):hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(255, 45, 149, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 45, 149, 0.05);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(255, 45, 149, 0.12);
}

/* Portfolio grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1;
}

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

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* Footer */
.footer {
  background: rgba(5, 5, 10, 0.95);
  border-top: 1px solid rgba(255, 45, 149, 0.15);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--darker);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 4px;
}

/* Modal */
.modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #7b2cbf, #ff2d95);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
}