:root {
  --color-bg: #1A1B26;
  --color-surface: #24283B;
  --color-primary: #F4A261;
  --color-primary-dark: #E76F51;
  --color-secondary: #2A9D8F;
  --color-text: #A9B1D6;
  --color-heading: #C0CAF5;
  --font-main: 'Outfit', sans-serif;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(231, 111, 81, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--color-heading);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 5%;
  min-height: 80vh;
  gap: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.badge {
  background: rgba(244, 162, 97, 0.1);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--color-heading);
}

.stat-item span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual & Animations */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.dog-container {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* SVG Animations */
.tail {
  transform-origin: 280px 250px;
  animation: wag 2s ease-in-out infinite;
}

@keyframes wag {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(15deg);
  }
}

.head-group {
  transform-origin: 200px 200px;
  animation: headTilt 5s ease-in-out infinite;
}

@keyframes headTilt {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.tongue {
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s;
}

.dog-container:hover .tongue,
.dog-container.petting .tongue {
  opacity: 1;
  transform: translateY(0);
}

.dog-container.petting .head-group {
  animation: happyShake 0.5s ease-in-out infinite;
}

@keyframes happyShake {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  25% {
    transform: translateY(-2px) rotate(-2deg);
  }

  75% {
    transform: translateY(2px) rotate(2deg);
  }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  transition: transform 0.3s;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.card h3 {
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

footer {
  text-align: center;
  padding: 3rem;
  color: var(--color-text);
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-group {
    justify-content: center;
  }

  .stats {
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
}