/* ===========================
   Petsan Bentonit A.Ş. — Premium Portal
   Kırmızı & Beyaz Tema (Logo İlhamlı)
   =========================== */

:root {
  /* Kırmızı paleti (logodan) */
  --red-50: #fff1f2;
  --red-100: #ffe4e6;
  --red-200: #fecdd3;
  --red-300: #fda4af;
  --red-400: #fb7185;
  --red-500: #e11d2e;
  --red-600: #c8102e;
  --red-700: #a30d24;
  --red-800: #7f1d1d;
  --red-900: #450a0a;

  /* Nötr tonlar */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Birincil renkler */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-500);
  --accent: var(--red-500);
  --accent-dark: var(--red-600);
  --accent-light: var(--red-100);

  /* Efektler */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-red: 0 20px 40px -10px rgba(225, 29, 46, 0.25);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Reset & Base
   =========================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===========================
   Animated Background Particles
   =========================== */

.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-200), transparent);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ===========================
   Paw Decorations
   =========================== */

.paw-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.paw-print {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.04;
  color: var(--red-500);
  animation: pawFade 12s ease-in-out infinite;
}

@keyframes pawFade {
  0%, 100% { opacity: 0.02; transform: scale(0.9) rotate(-5deg); }
  50% { opacity: 0.06; transform: scale(1.1) rotate(5deg); }
}

/* ===========================
   Page Wrapper
   =========================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   Navbar
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: var(--transition-base);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--red-50);
  border-color: var(--red-200);
}

.nav-link-icon {
  font-size: 1rem;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
  position: relative;
  padding: 80px 32px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(225, 29, 46, 0.08) 0%,
    rgba(225, 29, 46, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: badgeSlideIn 0.8s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes badgeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: titleFadeIn 1s ease-out 0.2s both;
}

.title-line {
  display: block;
  color: var(--text-primary);
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--red-500), var(--red-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: descFadeIn 1s ease-out 0.4s both;
}

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

/* Hero Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: statsFadeIn 1s ease-out 0.6s both;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

/* ===========================
   Apps Section
   =========================== */

.apps-section {
  padding: 40px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: sectionFadeIn 0.8s ease-out;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* App Card */
.app-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.6s ease-out forwards;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Card red accent bar */
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card shimmer on hover */
.app-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(225, 29, 46, 0.03),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: var(--red-200);
  box-shadow: var(--shadow-red);
}

.app-card:hover::before {
  transform: scaleX(1);
}

.app-card:hover::after {
  left: 100%;
}

/* Card icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.3);
  transition: var(--transition-base);
  letter-spacing: 0.5px;
}

.app-card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(225, 29, 46, 0.4);
}

/* Card content */
.app-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Card action */
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.card-action-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition-base);
}

.card-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: var(--transition-base);
}

.app-card:hover .card-action-arrow {
  background: var(--accent);
  color: var(--white);
  transform: translateX(4px);
}

/* ===========================
   Footer
   =========================== */

.footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 32px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--white);
  border-color: rgba(225, 29, 46, 0.5);
  background: rgba(225, 29, 46, 0.1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apps-section {
    padding: 24px 20px 60px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    width: 100%;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-logo {
    height: 32px;
  }
}