@import "tailwindcss";

@theme {
  --color-brand-dark: #0a0a0a;
  --color-brand-charcoal: #1a1a1a;
  --color-brand-steel: #4682B4;
  --color-brand-deep-blue: #1E3A5F;
  --color-brand-red: #E63946;
  --font-display: 'Inter', sans-serif;
}

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent-gradient: linear-gradient(135deg, #4682B4, #1E3A5F);
  --cta-red: #E63946;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(70, 130, 180, 0.2);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 70px; /* Space for sticky mobile bar */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background-color: var(--cta-red);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
  background-color: #ff4d5a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.4s ease;
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline:hover {
  background: rgba(70, 130, 180, 0.1);
  border-color: var(--color-brand-steel);
  color: var(--color-brand-steel);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  h1 { font-size: 2.25rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.75rem !important; line-height: 1.2 !important; }
  .btn-primary, .btn-outline { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .container { px-4; }
  .card { padding: 1.25rem; }
  .top-bar { font-size: 0.65rem; }
  #main-header { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Service Card Enhancements */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--color-brand-steel);
  transform: translateY(-12px);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(70, 130, 180, 0.1);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.8s;
  z-index: 2;
}

.card:hover::after {
  left: 150%;
}

.card img {
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
  transform: scale(1.1);
}

.card .btn-outline {
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.card:hover .btn-outline {
  background: var(--color-brand-steel);
  color: white;
  border-color: var(--color-brand-steel);
  box-shadow: 0 0 15px rgba(70, 130, 180, 0.4);
}

/* Mobile Submenu */
.mobile-submenu {
    display: none;
    padding-left: 1rem;
    border-left: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.mobile-submenu.active {
    display: block;
}

/* Glassmorphism Header */
#site-header {
  z-index: 1000;
  width: 100%;
}

#main-header.scrolled {
  background: #000;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

#main-header.scrolled .btn-primary {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* Sticky Mobile Call Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-top: 2px solid var(--color-brand-steel);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.mobile-sticky-bar a {
  width: 100%;
  max-width: 400px;
  background: var(--color-brand-red);
  color: white;
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes pulse-steel {
  0% { box-shadow: 0 0 0 0 rgba(70, 130, 180, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(70, 130, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 130, 180, 0); }
}

@keyframes whatsapp-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  5%, 15%, 25% { transform: rotate(5deg) scale(1.1); }
  10%, 20% { transform: rotate(-5deg) scale(1.1); }
  30% { transform: rotate(0deg) scale(1); }
}

.animate-whatsapp {
  animation: whatsapp-shake 5s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.animate-float {
  animation: float 15s ease-in-out infinite;
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #fff 0%, #E63946 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

@keyframes shine {
  to { background-position: 200% center; }
}

@keyframes shimmer {
  0% { left: -100%; }
  30% { left: 200%; }
  100% { left: 200%; }
}

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

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

@keyframes reveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-text {
  opacity: 0;
  animation: reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.animate-pulse-red {
  animation: pulse-red 2s infinite;
}

.animate-pulse-steel {
  animation: pulse-steel 2s infinite;
}

.cta-glow {
  position: relative;
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-brand-red), var(--color-brand-steel), var(--color-brand-red));
  background-size: 400%;
  z-index: -1;
  filter: blur(12px);
  border-radius: 50px;
  opacity: 0.3;
  animation: glow-pulse 4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.cta-glow:hover::before {
  opacity: 0.8;
  animation: glow-move 4s linear infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes glow-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.top-bar {
  background: #000;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

/* Dynamic Section Styles */
.problem-card {
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(13, 13, 13, 0.95));
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-brand-steel), var(--color-brand-deep-blue));
  transition: height 0.4s ease;
  z-index: 2;
}

.problem-card:hover::before {
  height: 100%;
}

.problem-card:hover {
  border-color: rgba(70, 130, 180, 0.5);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.7), 
    0 0 20px rgba(70, 130, 180, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(20, 20, 20, 0.98));
}

.problem-card:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 2s infinite;
  z-index: 3;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.problem-card.active {
  border-color: var(--color-brand-red);
  background: rgba(230, 57, 70, 0.15);
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.2);
  transform: scale(1.04);
  animation: active-pulse 3s infinite ease-in-out;
}

@keyframes active-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.2); }
  50% { box-shadow: 0 0 60px rgba(230, 57, 70, 0.4); }
}

.problem-card.active::before {
  background: var(--color-brand-red);
  height: 100%;
}

.problem-card .select-indicator {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-brand-steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.problem-card:hover .select-indicator {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.problem-card.active .select-indicator {
  background: var(--color-brand-red);
  opacity: 1;
  transform: scale(1) rotate(0deg);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
  animation: indicator-pulse 2s infinite;
}

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

.problem-card .problem-number {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 0.8;
  opacity: 0.03;
  position: absolute;
  top: 0;
  right: 1rem;
  transition: all 0.4s ease;
  color: white;
  letter-spacing: -0.05em;
}

.problem-card:hover .problem-number {
  opacity: 0.1;
  color: var(--color-brand-steel);
  transform: translateY(-5px) scale(1.05);
}

.problem-card.active .problem-number {
  opacity: 0.2;
  color: var(--color-brand-red);
}

.problem-card h3 {
  transition: color 0.3s ease;
}

.problem-card:hover h3 {
  color: var(--color-brand-steel);
}

.problem-card.active h3 {
  color: white;
}

.follow-up-section {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

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

input:focus, select:focus, textarea:focus {
  border-color: var(--color-brand-steel) !important;
  box-shadow: 0 0 15px rgba(70, 130, 180, 0.2);
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Partners Section */
.partner-logo {
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.3s ease;
  max-height: 40px;
}

.partner-logo:hover {
  filter: grayscale(0) brightness(1);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}

/* Graphical Numbers */
.stat-box {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-box:hover {
  border-color: var(--color-brand-steel);
  box-shadow: 0 0 30px rgba(70, 130, 180, 0.15);
  transform: translateY(-5px);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.stat-number {
  font-size: 2.5rem;
  @media (min-width: 768px) {
    font-size: 3.5rem;
  }
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  border-color: var(--color-brand-steel);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.testimonial-stars {
  color: #FFD700;
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  color: #e0e0e0;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-size: 4rem;
  color: rgba(70, 130, 180, 0.1);
  font-family: serif;
  z-index: -1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-brand-steel);
}

.testimonial-info h4 {
  font-size: 1rem;
  margin: 0;
  color: white;
}

.testimonial-info p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* Service Area Hub */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.area-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.area-link:hover {
  color: var(--color-brand-steel);
}

.nav-link.active {
    color: var(--color-brand-steel);
    font-weight: 800;
}

.nav-link-mobile {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.nav-link-mobile.active {
    background: rgba(70, 130, 180, 0.1);
    color: var(--color-brand-steel);
    border-left: 4px solid var(--color-brand-steel);
}

/* Custom Scrollbar for Submenu */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-brand-steel);
    border-radius: 10px;
}

#mobile-menu {
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-submenu-container {
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}
