/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --primary-dark: #282661;
  --primary: #32538f;
  --primary-light: #4dabe0;
  --accent: #cd2028;
  --accent-dark: #941b1f;
  --highlight: #f89921;
  --bg-dark: #0f0e2a;
  --bg-card: rgba(40, 38, 97, 0.25);
  --bg-card-solid: #1a1848;
  --glass: rgba(77, 171, 224, 0.08);
  --glass-border: rgba(77, 171, 224, 0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.48);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* ===== Animated Background ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(50, 83, 143, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(205, 32, 40, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(15, 14, 42, 0.9) 0%, var(--bg-dark) 100%);
  pointer-events: none;
}

/* ===== Main Container ===== */
.card-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ===== Section Styling ===== */
.section {
  padding: 24px 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 48px 20px 28px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.logo-wrapper {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.logo-wrapper img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(77, 171, 224, 0.3));
}

.profile-photo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--highlight));
  box-shadow: 0 4px 30px rgba(77, 171, 224, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 30px rgba(77, 171, 224, 0.3); }
  50% { box-shadow: 0 4px 50px rgba(77, 171, 224, 0.5), 0 0 20px rgba(205, 32, 40, 0.2); }
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== CTA Buttons ===== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px 20px 0;
}

.cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-btn:active {
  transform: scale(0.95);
}

.cta-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.cta-btn span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cta-btn.call { background: linear-gradient(135deg, rgba(77, 171, 224, 0.15), rgba(50, 83, 143, 0.15)); border-color: rgba(77, 171, 224, 0.3); }
.cta-btn.call svg { color: var(--primary-light); }

.cta-btn.whatsapp { background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.05)); border-color: rgba(37, 211, 102, 0.25); }
.cta-btn.whatsapp svg { color: #25d366; }

.cta-btn.email { background: linear-gradient(135deg, rgba(248, 153, 33, 0.12), rgba(248, 153, 33, 0.05)); border-color: rgba(248, 153, 33, 0.25); }
.cta-btn.email svg { color: var(--highlight); }

.cta-btn.share { background: linear-gradient(135deg, rgba(205, 32, 40, 0.12), rgba(205, 32, 40, 0.05)); border-color: rgba(205, 32, 40, 0.25); }
.cta-btn.share svg { color: var(--accent); }

/* ===== Social Media ===== */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: var(--transition);
}

.social-btn:active {
  transform: scale(0.9);
}

.social-btn svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.social-btn.instagram {
  background: linear-gradient(135deg, rgba(228, 64, 95, 0.12), rgba(131, 58, 180, 0.12));
  border-color: rgba(228, 64, 95, 0.3);
}
.social-btn.instagram svg { color: #e4405f; }

.social-btn.linkedin {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.12), rgba(0, 119, 181, 0.05));
  border-color: rgba(0, 119, 181, 0.3);
}
.social-btn.linkedin svg { color: #0077b5; }

.social-btn.facebook {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.12), rgba(24, 119, 242, 0.05));
  border-color: rgba(24, 119, 242, 0.3);
}
.social-btn.facebook svg { color: #1877f2; }

.social-btn.youtube {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.05));
  border-color: rgba(255, 0, 0, 0.25);
}
.social-btn.youtube svg { color: #ff0000; }

/* ===== Contact / Address ===== */
.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-card:active {
  transform: scale(0.98);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.phone {
  background: linear-gradient(135deg, rgba(77, 171, 224, 0.2), rgba(50, 83, 143, 0.2));
}
.contact-icon.phone svg { color: var(--primary-light); }

.contact-icon.address {
  background: linear-gradient(135deg, rgba(205, 32, 40, 0.15), rgba(248, 153, 33, 0.15));
}
.contact-icon.address svg { color: var(--accent); }

.contact-icon.email-icon {
  background: linear-gradient(135deg, rgba(248, 153, 33, 0.2), rgba(248, 153, 33, 0.1));
}
.contact-icon.email-icon svg { color: var(--highlight); }

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Photo Gallery ===== */
.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 260px;
  height: 175px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--glass-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:active img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 14, 42, 0.6));
  pointer-events: none;
}

/* ===== Video Gallery ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--bg-card-solid);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:active img {
  transform: scale(1.03);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(205, 32, 40, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(205, 32, 40, 0.4);
  transition: var(--transition);
  z-index: 2;
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 14, 42, 0.7));
  pointer-events: none;
  z-index: 1;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:active::before {
  opacity: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(77, 171, 224, 0.15), rgba(50, 83, 143, 0.15));
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}

.service-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== About ===== */
.about-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--primary-light);
  font-weight: 600;
}

/* ===== Payment ===== */
.payment-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qr-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Brochure ===== */
.brochure-section {
  text-align: center;
}

.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(77, 171, 224, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.brochure-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
}

.brochure-btn:active::before {
  left: 100%;
}

.brochure-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Save Contact Button ===== */
.save-contact-bar {
  padding: 20px;
  text-align: center;
}

.save-contact-btn {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  /*background: linear-gradient(135deg, var(--accent), var(--accent-dark));*/
  background: linear-gradient(135deg, #4b51fd, var(--accent-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(205, 32, 40, 0.35);
  transition: var(--transition);
}

.save-contact-btn:active {
  transform: scale(0.97);
}

.save-contact-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--glass-border);
}

.footer p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer .heart {
  color: var(--accent);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border: none;
}

/* ===== Media Queries ===== */
@media (min-width: 481px) {
  .card-container {
    padding-top: 20px;
  }

  .hero {
    padding-top: 25px;
  }

  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  .contact-card:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
  }

  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .service-card:hover::before {
    opacity: 1;
  }

  .video-card:hover img {
    transform: scale(1.05);
  }

  .video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
  }

  .brochure-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(77, 171, 224, 0.45);
  }

  .save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(205, 32, 40, 0.45);
  }
}

@media (min-width: 768px) {
  .card-container {
    margin-top: 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 14, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
