/* ===============================
   PHERONIX AGENCY – FIRE THEME
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- VARIABLES ---------- */
:root {
  --bg-dark-1: #0b0b0b;
  --bg-dark-2: #140700;
  --fire-1: #ff3c00;
  --fire-2: #ff7a18;
  --card-bg: rgba(255, 255, 255, 0.04);
  --border-soft: rgba(255, 255, 255, 0.1);
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---------- BODY ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(
    circle at top,
    var(--bg-dark-2) 0%,
    var(--bg-dark-1) 45%,
    #000000 100%
  );
  color: white;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s ease;
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s ease;
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- TEXT ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  box-shadow: 0 0 20px rgba(255, 60, 0, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255, 120, 24, 0.6);
}

.btn-secondary {
  padding: 16px 32px;
  border: 2px solid white;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: white;
  color: black;
}

/* ---------- CARDS ---------- */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: 0.4s ease;
  backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  opacity: 0;
  border-radius: 20px;
  z-index: -1;
  transition: 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 50px rgba(255, 60, 0, 0.35);
}

/* ---------- ICON ---------- */
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: 0.6s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

/* ---------- STATS ---------- */
.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- NAVBAR ---------- */
.navbar-scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-btn {
  padding: 8px 16px;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  color: #FF5722;
  font-weight: 700;
  background: rgba(255, 87, 34, 0.1);
}

/* ---------- FORM ---------- */
input,
textarea,
select {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  color: white;
  padding: 16px;
  border-radius: 12px;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--fire-1);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.2);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

@keyframes whatsapp-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(11, 11, 11, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 60, 0, 0.2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  max-height: 600px;
  opacity: 1;
  padding: 8px 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: #d1d5db;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 12px;
  text-align: right;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  background: rgba(255, 60, 0, 0.15);
  color: #ff6b35;
  transform: translateX(-4px);
}

#mobile-menu-btn svg {
  transition: transform 0.3s ease;
}

#mobile-menu-btn.active svg {
  transform: rotate(90deg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below */
@media (max-width: 1024px) {
  .service-card {
    padding: 28px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* Hide mobile menu on desktop */
  .mobile-menu {
    display: block;
  }
  
  /* Typography */
  h1 {
    font-size: 32px !important;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 26px !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 20px !important;
  }
  
  p {
    font-size: 15px !important;
    line-height: 1.6;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
  
  /* Cards */
  .service-card {
    padding: 24px !important;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  /* Stats */
  .stat-number {
    font-size: 36px !important;
  }
  
  /* Forms */
  input,
  textarea,
  select {
    font-size: 14px;
    padding: 12px;
  }
  
  /* Floating buttons */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
  
  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  h1 {
    font-size: 26px !important;
  }
  
  h2 {
    font-size: 22px !important;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
  
  .stat-number {
    font-size: 28px !important;
  }
}

/* Desktop only - hide mobile menu */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}