:root {
  --brand: #0EA5E9;
  --brand-light: #38bdf8;
  --secondary: #6366F1;
  --secondary-dark: #4f46e5;
  --accent: #F97316;
  --accent-dark: #ea580c;
  --accent-pink: #F43F5E;
  --dark: #0F172A;
  --muted: #64748b;
  --bg: #F8FAFC;
  --hero-img-1: url('../img/boya-back1.jpg');
  --hero-img-2: url('../img/boya-back2.jpg');
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mobile Call Bar */
.mobile-call-bar {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent));
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mobile-call-bar a {
  font-size: 0.95rem;
}

.mobile-call-bar:active {
  transform: scale(0.98);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--brand) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s;
  color: var(--dark) !important;
}

.nav-link:hover {
  color: var(--brand) !important;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero.bg-1 {
  background-image: linear-gradient(135deg, rgba(14,165,233,0.85), rgba(99,102,241,0.75)), var(--hero-img-1);
}

.hero.bg-2 {
  background-image: linear-gradient(135deg, rgba(14,165,233,0.85), rgba(99,102,241,0.75)), var(--hero-img-2);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(249,115,22,0.15) 0%, transparent 50%);
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero .btn {
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease 0.4s backwards;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    display: block;
  }

  .hero-buttons .btn + .btn {
    margin-top: 1rem;
  }
}

.hero .btn-light { 
  color: var(--brand); 
  font-weight: 600;
  background: white;
}

.hero .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero .btn-outline-light:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
}

/* Services */
#services {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  background: white;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(14,165,233,0.25);
}

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

.service-card .icon {
  width: 80px; 
  height: 80px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--secondary) 100%);
  margin: 0 auto;
  transition: all 0.3s;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

/* Gallery */
#gallery {
  padding: 5rem 0;
  background: white;
}

.gallery-img { 
  cursor: pointer; 
  height: 220px; 
  object-fit: cover; 
  width: 100%;
  border-radius: 8px;
  transition: all 0.4s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Testimonials */
#testimonials {
  padding: 5rem 0;
  background: #f8f9fa;
}

#testimonials .card {
  border-left: 4px solid var(--accent-pink);
  transition: all 0.3s;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

#testimonials .card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

/* Contact */
#contact { 
  background: linear-gradient(135deg, var(--brand) 0%, var(--secondary) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

#contact .card { 
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: none;
}

#contact .form-control,
#contact .form-select {
  border-radius: 8px;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s;
}

#contact .form-control:focus,
#contact .form-select:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 0.2rem rgba(244,63,94,0.2);
}

#contact .btn-success {
  background: var(--accent);
  border: none;
  padding: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

#contact .btn-success:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(249,115,22,0.4);
}

.card { 
  border: none; 
  border-radius: 12px; 
}

footer { 
  background: var(--dark);
  color: white;
  padding: 2rem 0;
}

footer .text-muted {
  color: rgba(255,255,255,0.6) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-img { height: 180px; }
  .hero { padding: 4rem 0; min-height: 60vh; }
  .hero h1 { font-size: 2rem; }
  #services, #gallery, #testimonials, #contact { padding: 3rem 0; }
  .hero { background-attachment: scroll; }
}

@media (max-width: 576px) {
  .gallery-img { height: 140px; }
  .hero { padding: 3rem 0; }
  .service-card .icon { width: 64px; height: 64px; font-size: 24px; }
}