/* ================= ROOT ================= */
:root {
  --green: #1e7f4d;
  --green-dark: #16613b;
  --green-light: #2ea866;
  --green-glow: rgba(30, 127, 77, 0.4);
  --text: #333;
  --muted: #666;
  --bg: #ffffff;
  --light: #f5f9f7;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(30, 127, 77, 0.2);
  --gradient-hero: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================= HEADER ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.topbar:hover {
  background: rgba(255, 255, 255, 0.98);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 42px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NAV */
.nav a {
  margin: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--green);
}

.nav a:hover::after {
  width: 100%;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.burger:hover {
  background: var(--light);
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

/* BACKGROUND IMAGE with animation */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.85) 40%,
      rgba(255,255,255,0.3) 70%,
      rgba(255,255,255,0.05) 100%
    ),
    url("images/hero.png") center / cover no-repeat;
  z-index: 1;
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02) translateY(-10px); }
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 32px;
  animation: slideUp 0.8s ease-out;
}

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

/* BADGE with pulse */
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #e9f5ef 0%, #d4ede0 100%);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(30, 127, 77, 0.15);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(30, 127, 77, 0.15); }
  50% { box-shadow: 0 4px 25px rgba(30, 127, 77, 0.3); }
}

/* LOCATION */
.hero-location-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(31, 127, 85, 0.12);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 127, 85, 0.2);
  transition: all 0.3s ease;
}

.hero-location-box i {
  font-size: 15px;
  animation: locationBounce 2s ease-in-out infinite;
}

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

.hero-location-box:hover {
  background: rgba(31, 127, 85, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 127, 77, 0.2);
}

/* TITLE with gradient */
.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 54px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #2b1e14;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-content h1 span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* TEXT */
.hero-content p {
  font-size: 17px;
  color: #555;
  max-width: 560px;
  animation: slideUp 0.8s ease-out 0.4s both;
}

/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.6s both;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 8px 25px rgba(30, 127, 77, 0.3);
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(30, 127, 77, 0.4);
}

.btn.outline {
  border: 2px solid #ddd;
  color: #333;
  background: #fff;
}

.btn.outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(30, 127, 77, 0.05);
  transform: translateY(-4px);
}

/* ================= TRUST STRIP ================= */
.trust-strip {
  background: var(--gradient-hero);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
  padding: 26px 20px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.trust-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.trust-strip > div {
  padding: 10px 15px;
  transition: transform 0.3s ease;
}

.trust-strip > div:hover {
  transform: scale(1.05);
}

/* ================= SECTIONS ================= */
.section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.section.light {
  background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
}

.section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: 4px;
}

.section p {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
}

/* ================= FEATURES ================= */
.features {
  list-style: none;
  padding: 0;
}

.features li {
  font-size: 18px;
  margin: 14px 0;
  padding: 12px 20px;
  background: rgba(30, 127, 77, 0.05);
  border-radius: 12px;
  display: inline-block;
  transition: all 0.3s ease;
}

.features li:hover {
  background: rgba(30, 127, 77, 0.1);
  transform: translateX(10px);
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.card {
  background: #fff;
  padding: 36px 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

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

/* Card icons with animation */
.card i,
.card .icon {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.card:hover i,
.card:hover .icon {
  transform: scale(1.15) rotate(5deg);
}

/* ================= SOCIAL MEDIA ================= */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 50px auto 0;
}

.social-card {
  background: #fff;
  padding: 36px 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-card i {
  font-size: 42px;
  transition: all 0.4s ease;
}

.social-card.telegram { 
  --social-color: #229ed9;
}
.social-card.instagram { 
  --social-color: #e1306c;
}
.social-card.facebook { 
  --social-color: #1877f2;
}
.social-card.whatsapp { 
  --social-color: #25d366;
}

.social-card.telegram i { color: #229ed9; }
.social-card.instagram i { color: #e1306c; }
.social-card.facebook i { color: #1877f2; }
.social-card.whatsapp i { color: #25d366; }

.social-card:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: var(--social-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.social-card:hover i {
  transform: scale(1.2) rotate(-10deg);
}

/* ================= CONTACT ================= */
.contact-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 960px;
  margin: auto;
}

.contact-card {
  background: #fff;
  padding: 40px 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-card i {
  font-size: 42px;
  color: var(--green);
  margin-bottom: 16px;
  display: inline-block;
  padding: 20px;
  background: rgba(30, 127, 77, 0.1);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.contact-card:hover i {
  background: var(--gradient-hero);
  color: #fff;
  transform: rotate(10deg) scale(1.1);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(30, 127, 77, 0.25);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 127, 77, 0.35);
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(135deg, #1b1b1b 0%, #2d2d2d 100%);
  color: #ccc;
  text-align: center;
  padding: 50px 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

.footer-partners {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.85;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-partners span {
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.footer-partners span:hover {
  background: rgba(30, 127, 77, 0.3);
  color: #fff;
}

/* ================= STICKY TELEGRAM ================= */
.telegram-sticky {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #229ed9 0%, #1a8ac4 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.4);
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: float 3s ease-in-out infinite;
}

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

.telegram-sticky:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 40px rgba(34, 158, 217, 0.5);
}

.telegram-sticky::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 158, 217, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ================= SCROLL ANIMATION ================= */
.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for children */
.fade.show > *:nth-child(1) { animation-delay: 0.1s; }
.fade.show > *:nth-child(2) { animation-delay: 0.2s; }
.fade.show > *:nth-child(3) { animation-delay: 0.3s; }

/* =====================================================
   MOBILE RESPONSIVENESS
   ===================================================== */

/* ===== TABLET BREAKPOINT ===== */
@media (max-width: 992px) {
  .section {
    padding: 70px 20px;
  }

  .section h2 {
    font-size: 32px;
  }

  .hero-new {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 28px 20px;
  }
}

/* ===== MOBILE BREAKPOINT ===== */
@media (max-width: 768px) {

  /* ===== HEADER ===== */
  .topbar {
    padding: 12px 16px;
  }

  .logo img {
    height: 36px;
  }

  .logo span {
    font-size: 18px;
  }

  .burger {
    display: flex;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding-top: 40px;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }

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

  .nav a {
    font-size: 18px;
    padding: 16px 20px;
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav a:hover {
    background: var(--light);
  }

  .nav a::after {
    display: none;
  }

  /* ===== HERO ===== */
  .hero-new {
    min-height: 80vh;
    padding: 0;
    align-items: center;
  }

  .hero-bg {
    background:
      linear-gradient(
        to right,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.75) 40%,
        rgba(255,255,255,0.3) 70%,
        rgba(255,255,255,0.05) 100%
      ),
      url("images/hero.png") center right / cover no-repeat;
    animation: none; /* Disable animation on mobile for performance */
  }

  .hero-content {
    padding: 30px 20px;
    text-align: left;
    max-width: 70%;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .hero-location-box {
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 46px;
  }

  /* ===== TRUST STRIP ===== */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px;
    font-size: 14px;
  }

  .trust-strip::before {
    display: none;
  }

  /* ===== SECTIONS ===== */
  .section {
    padding: 50px 16px;
  }

  .section h2 {
    font-size: 26px;
  }

  /* ===== CARDS ===== */
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 28px 20px;
  }

  /* ===== SOCIAL GRID ===== */
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .social-card {
    padding: 24px 16px;
  }

  /* ===== CONTACT ===== */
  .contact-section {
    padding: 50px 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ===== FOOTER ===== */
  .footer {
    padding: 40px 16px;
  }

  /* ===== TELEGRAM STICKY ===== */
  .telegram-sticky {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    font-size: 24px;
    animation: none;
  }

  .telegram-sticky::before {
    display: none;
  }

  /* ===== ANIMATIONS ===== */
  .fade {
    transform: translateY(30px);
    transition-duration: 0.5s;
  }

  @keyframes heroFloat {
    0%, 100% { transform: none; }
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  .hero-content {
    max-width: 85%;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 22px;
  }

  .social-grid {
    gap: 12px;
  }

  .social-card {
    padding: 20px 12px;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-new {
    min-height: 100vh;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    max-height: calc(100vh - 60px);
    padding: 20px;
  }

  .nav a {
    width: auto;
    border-bottom: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
