/* PortiGaraj.ro - Custom Styles */

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

:root {
  --primary: #1a1a2e;
  --secondary: #e94560;
  --accent: #0f3460;
  --gold: #c9a84c;
  --light: #f8f9fa;
  --dark: #0a0a14;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Animated gradient background */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--dark) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--secondary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero parallax overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10,10,20,0.85) 0%, rgba(15,52,96,0.7) 50%, rgba(26,26,46,0.85) 100%);
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Animated border gradient */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--secondary), var(--gold), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Product card hover effect */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(233, 69, 96, 0.15);
}

.product-card .product-image {
  transition: transform 0.6s ease;
}

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

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #d63851);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 40px rgba(233, 69, 96, 0.6); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Counter animation */
.counter-box {
  background: linear-gradient(135deg, rgba(233,69,96,0.1), rgba(201,168,76,0.1));
  border: 1px solid rgba(233,69,96,0.2);
}

/* Nav styles */
.nav-fixed {
  transition: all 0.3s ease;
}

.nav-fixed.scrolled {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-fixed.nav-solid {
  background: #0a0a14;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Section divider */
.section-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  border-radius: 2px;
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Stars rating */
.stars {
  color: var(--gold);
}

/* Process step */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent);
}

.process-step:last-child::after {
  display: none;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-grid .span-2 {
  grid-row: span 2;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Tab active */
.tab-active {
  border-bottom: 3px solid var(--secondary);
  color: var(--secondary) !important;
}

/* Dashboard sidebar */
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(233,69,96,0.15), transparent);
  border-left: 3px solid var(--secondary);
  color: var(--secondary);
}

/* Checkout steps */
.checkout-step.active .step-number {
  background: var(--secondary);
  color: white;
}

.checkout-step.completed .step-number {
  background: #10b981;
  color: white;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  border-left: 4px solid var(--secondary);
}

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

/* Image shimmer loading */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Quantity input */
.qty-input {
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .process-step::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
