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

:root {
  --background: 30 20% 97%;
  --foreground: 20 10% 15%;

  --card: 0 0% 100%;
  --card-foreground: 20 10% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 20 10% 15%;

  --primary: 5 45% 38%;
  --primary-foreground: 30 30% 98%;

  --secondary: 30 20% 92%;
  --secondary-foreground: 20 10% 20%;

  --muted: 30 15% 90%;
  --muted-foreground: 20 8% 45%;

  --accent: 25 70% 50%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 30 20% 88%;
  --input: 30 20% 88%;
  --ring: 5 45% 38%;

  --radius: 0.75rem;

  --gradient-hero: linear-gradient(180deg, hsl(5 45% 38%) 0%, hsl(5 50% 28%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(30 20% 97%) 100%);
  --gradient-action: linear-gradient(145deg, hsl(5 45% 42%) 0%, hsl(5 45% 34%) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, hsl(5 45% 20% / 0.8) 100%);
  --gradient-shine: linear-gradient(120deg, transparent 0%, hsl(0 0% 100% / 0.2) 50%, transparent 100%);

  --shadow-soft: 0 4px 20px -4px hsl(5 45% 38% / 0.15);
  --shadow-card: 0 8px 32px -8px hsl(20 10% 15% / 0.1);
  --shadow-button: 0 4px 16px -4px hsl(5 45% 38% / 0.4);
  --shadow-glow: 0 0 30px hsl(5 45% 38% / 0.2);
  --shadow-elevated: 0 20px 40px -12px hsl(20 10% 15% / 0.15);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

.dark {
  --background: 20 15% 10%;
  --foreground: 30 20% 95%;

  --card: 20 15% 13%;
  --card-foreground: 30 20% 95%;

  --popover: 20 15% 13%;
  --popover-foreground: 30 20% 95%;

  --primary: 5 50% 50%;
  --primary-foreground: 30 30% 98%;

  --secondary: 20 15% 18%;
  --secondary-foreground: 30 20% 90%;

  --muted: 20 15% 20%;
  --muted-foreground: 30 15% 60%;

  --accent: 25 70% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 62.8% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 20 15% 22%;
  --input: 20 15% 22%;
  --ring: 5 50% 50%;

  --gradient-hero: linear-gradient(180deg, hsl(5 50% 30%) 0%, hsl(5 45% 18%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(20 15% 13%) 0%, hsl(20 15% 10%) 100%);
  --gradient-action: linear-gradient(145deg, hsl(5 50% 45%) 0%, hsl(5 50% 35%) 100%);

  --shadow-soft: 0 4px 20px -4px hsl(0 0% 0% / 0.3);
  --shadow-card: 0 8px 32px -8px hsl(0 0% 0% / 0.4);
  --shadow-button: 0 4px 16px -4px hsl(5 50% 50% / 0.4);
}

* {
  border-color: hsl(var(--border));
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--primary));
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: expandWidth 0.6s ease-out forwards;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 3rem; }
}

.glass-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-button);
  text-decoration: none;
}

.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left 0.5s ease;
}

.action-button:hover::before {
  left: 100%;
}

.action-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.action-button:active {
  transform: scale(0.98);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  border: none;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: hsl(var(--primary));
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: hsl(var(--primary));
  transform: translateY(-2px);
}

.nav-item.active {
  color: hsl(var(--primary));
}

.nav-item.active::before {
  opacity: 1;
}

.social-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: inherit;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icon:hover {
  transform: scale(1.15) translateY(-3px);
}

.social-icon:hover::before {
  opacity: 0.5;
}

.input-animated {
  transition: all 0.3s ease;
}

.input-animated:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
  transform: scale(1.01);
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, hsl(var(--primary-foreground)) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.floating-slow {
  animation: float 4s ease-in-out infinite;
}

.floating-slower {
  animation: float 5s ease-in-out infinite;
}

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

.spin-slow {
  display: inline-flex;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse-slow {
  display: inline-flex;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.wiggle {
  display: inline-flex;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  100% { transform: rotate(0); }
}

.bounce-subtle {
  display: inline-flex;
  animation: bounceSubtle 1.5s ease-in-out infinite;
}

@keyframes bounceSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.shimmer-line {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, transparent, hsl(var(--primary-foreground) / 0.1), transparent);
  background-size: 200% 100%;
}

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

.save-phone {
  box-shadow: var(--shadow-card);
}

.expand-bar {
  animation: expandWidth 0.5s ease forwards;
}

.scale-in-delayed {
  animation: scaleIn 0.5s ease forwards 0.2s;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.hidden { display: none !important; }

