/* ========== DESIGN SYSTEM ========== */
:root {
  --bg: #0A1628;
  --bg-alt: #0E1E35;
  --bg-card: #122241;
  --bg-card-hover: #183058;
  --bg-footer: #060C18;
  --text: #EDF1F7;
  --text-muted: #8A9BBF;
  --text-dim: #4A5B7A;
  --yellow: #FFD600;
  --yellow-hover: #E6C100;
  --blue: #3B9BFF;
  --blue-hover: #5BB0FF;
  --green: #3CB34A;
  --error: #F43F5E;
  --border: #1A2D4D;
  --whatsapp: #25D366;
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-input: 6px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 8px 36px rgba(0,0,0,0.45);
  --max-width: 1100px;
  --header-h: 76px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; font-family: 'Barlow', sans-serif;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: var(--radius-btn); transition: all 0.3s ease; cursor: pointer;
  border: none; white-space: nowrap;
}
.btn--primary {
  background: var(--yellow); color: var(--bg);
  padding: 15px 32px;
  box-shadow: 0 0 16px rgba(255,214,0,0.2);
}
.btn--primary:hover { background: var(--yellow-hover); box-shadow: 0 0 28px rgba(255,214,0,0.3); }
.btn--secondary {
  background: transparent; color: var(--blue);
  padding: 13px 30px;
  border: 1.5px solid var(--blue);
}
.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 10px 24px; font-size: 13px; }
.btn--full { width: 100%; }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header__logo {
  font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 700; color: var(--text);
}
.header__logo span { color: var(--yellow); }
.header__nav { display: flex; gap: 32px; }
.header__link {
  font-family: 'Barlow', sans-serif; font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); position: relative; transition: color 0.3s;
}
.header__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.header__link:hover { color: var(--text); }
.header__link:hover::after { transform: scaleX(1); }
.header__cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 10002; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: all 0.3s; transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== MOBILE DRAWER ========== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--bg); border-left: 1px solid var(--border);
  z-index: 10001; padding: 80px 32px 32px;
  transform: translateX(100%); transition: transform 0.35s ease;
}
.drawer.open { transform: translateX(0); }
.drawer__close {
  position: absolute; top: 20px; right: 20px;
  font-size: 28px; color: var(--text-muted); transition: color 0.3s;
}
.drawer__close:hover { color: var(--text); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  font-family: 'Barlow', sans-serif; font-size: 18px; font-weight: 600;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 24px; transition: color 0.3s;
}
.drawer__link:hover { color: var(--yellow); }
.drawer__cta { margin-top: 16px; }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1920&q=80') center/cover no-repeat fixed;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.8) 55%, #0A1628 100%);
}
.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 800px; padding: 0 20px; text-align: center;
}
.hero__line { width: 1px; height: 60px; background: var(--yellow); margin-bottom: 20px; }
.hero__label {
  font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero__label-code {
  opacity: 0.5; font-weight: 600;
}
.hero__title {
  font-family: 'Barlow', sans-serif; font-size: 52px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); margin-bottom: 20px;
}
.hero__sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero animations */
.anim-fade {
  opacity: 0; transform: translateY(24px);
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ========== SECTIONS ========== */
.section { padding: 96px 0; position: relative; }
.section--alt {
  background: var(--bg-alt);
  background-image:
    linear-gradient(rgba(26,45,77,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,45,77,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}
.section__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--yellow); margin-bottom: 12px;
}
.section__label::before {
  content: ''; display: inline-block; width: 28px; height: 1.5px; background: var(--yellow);
}
.section__label::after {
  content: ''; display: inline-block; width: 28px; height: 1.5px; background: var(--yellow);
}
.section__title {
  font-family: 'Barlow', sans-serif; font-size: 38px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--text); margin-bottom: 16px;
  position: relative;
}
/* Energy glow behind section titles */
.section__title::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 120px;
  background: radial-gradient(ellipse at center, rgba(255,214,0,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.section__sub {
  font-size: 16.5px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 48px;
}

/* ========== STATS BAR ========== */
.stats {
  padding: 48px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stats__item {
  padding: 24px 16px;
  position: relative;
}
.stats__item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; height: 60%;
  width: 1px; background: var(--border);
}
.stats__number {
  display: block;
  font-family: 'Barlow', sans-serif; font-size: 40px; font-weight: 800;
  color: var(--yellow); line-height: 1.1; margin-bottom: 8px;
}
.stats__label {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ========== ABOUT ========== */
.about {
  display: grid; grid-template-columns: 55% 1fr; gap: 48px;
  text-align: left; margin-top: 48px;
}
.about__image { position: relative; }
.about__image img {
  width: 100%; border-radius: var(--radius-card);
  border: 1px solid var(--border); object-fit: cover; aspect-ratio: 5/4;
}
/* Decorative corner lines on image */
.about__image::before {
  content: ''; position: absolute; top: -8px; left: -8px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--yellow); border-left: 2px solid var(--yellow);
  border-radius: 2px 0 0 0;
  opacity: 0.5; pointer-events: none;
}
.about__image::after {
  content: ''; position: absolute; bottom: -8px; right: -8px;
  width: 40px; height: 40px;
  border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue);
  border-radius: 0 0 2px 0;
  opacity: 0.3; pointer-events: none;
}
.about__text p { margin-bottom: 20px; }
.about__checks { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about__checks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 600;
}
.check-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 6px; background: rgba(60,179,74,0.12); color: var(--green);
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  text-align: left;
}
.card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 32px 24px;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: all 0.3s ease; border-bottom: 2px solid transparent;
  overflow: hidden;
}
/* Subtle top accent line */
.card::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.2; transition: opacity 0.3s;
}
.card:hover::before { opacity: 0.5; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-bottom-color: var(--yellow);
  background: var(--bg-card-hover);
}
.card:hover .card__icon { stroke: var(--yellow); }
.card__icon { stroke: var(--blue); transition: stroke 0.3s; margin-bottom: 20px; }
.card__title {
  font-family: 'Barlow', sans-serif; font-size: 21px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.card__desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.card__badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  background: rgba(60,179,74,0.15); color: var(--green);
  padding: 4px 10px; border-radius: 4px;
}
/* Center last card when odd */
.services-grid > .card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

/* ========== GALLERY ========== */
.filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter {
  font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 20px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); transition: all 0.3s;
  position: relative;
}
.filter:hover { color: var(--text); border-color: var(--text-muted); }
.filter.active {
  background: transparent; color: var(--yellow); border-color: var(--yellow);
  box-shadow: 0 0 12px rgba(255,214,0,0.1);
}
.filter.active::after {
  content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%;
  height: 2px; background: var(--yellow);
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery__item.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; position: absolute; width: 0; height: 0; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__overlay {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay span {
  font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--yellow);
}
.gallery__overlay svg { color: var(--text); }

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,22,40,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 85vw; max-height: 85vh; object-fit: contain; border-radius: 10px;
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  font-size: 36px; color: var(--text-muted); transition: color 0.3s;
}
.lightbox__close:hover { color: var(--text); }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ========== CONTACT ========== */
.contact {
  display: grid; grid-template-columns: 60% 1fr; gap: 32px; text-align: left;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 6px;
  font-family: 'Source Sans 3', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-input);
  padding: 13px 16px; font-size: 16px; transition: all 0.3s; outline: none;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9BBF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,214,0,0.12);
}
.form-group.error input,
.form-group.error select { border-color: var(--error); }
.form-error { font-size: 13px; color: var(--error); margin-top: 4px; display: block; min-height: 18px; }

.contact__info {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 32px 28px; border: 1px solid var(--border); align-self: start;
  position: relative; overflow: hidden;
}
/* Decorative glow */
.contact__info::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(59,155,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact__info h3 {
  font-family: 'Barlow', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 28px;
}
.contact__item {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.contact__item a { transition: color 0.3s; }
.contact__item a:hover { color: var(--yellow); }
.contact__info hr {
  border: none; border-top: 1px solid var(--border); margin: 28px 0;
}
.contact__note { font-size: 14px; color: var(--text-muted); font-style: italic; }

.contact__map { margin-top: 48px; }
.contact__map-title {
  font-family: 'Barlow', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; text-align: left;
}
.contact__map-sub {
  font-size: 15px; color: var(--text-muted); margin-bottom: 20px; text-align: left;
}
.contact__map-wrapper {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact__map-wrapper iframe { display: block; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-footer); border-top: 1px solid var(--border); padding: 48px 0 0;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px; background: var(--yellow); opacity: 0.4;
}
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer__col p { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer__col h4 {
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 16px;
}
.footer__col a {
  display: block; font-size: 15px; color: var(--text-muted);
  margin-bottom: 10px; transition: color 0.3s;
}
.footer__col a:hover { color: var(--yellow); }
.footer__brand {
  font-family: 'Barlow', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text); display: block; margin-bottom: 8px;
}
.footer__brand span { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid var(--border); margin-top: 32px; padding: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer__bottom p { font-size: 13px; color: var(--text-dim); }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { color: var(--text-dim); transition: color 0.3s; }
.footer__socials a:hover { color: var(--yellow); }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s, opacity 0.5s;
  opacity: 0; transform: translateY(20px);
}
.whatsapp-float.visible {
  opacity: 1; transform: translateY(0);
  animation: pulse 4s infinite 0.5s;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}


/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger cards */
.services-grid .card:nth-child(1) { transition-delay: 0s; }
.services-grid .card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .card:nth-child(4) { transition-delay: 0.24s; }
.services-grid .card:nth-child(5) { transition-delay: 0.32s; }
.services-grid .card:nth-child(6) { transition-delay: 0.4s; }
.services-grid .card:nth-child(7) { transition-delay: 0.48s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2)::after { display: none; }
  .about { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > .card:last-child:nth-child(3n+1) { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header__nav, .header__cta { display: none; }
  .hamburger { display: flex; }

  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 16px; }
  .hero__line { height: 40px; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100%; max-width: 300px; }

  .section { padding: 56px 0; }
  .section__title { font-size: 26px; }

  .about { grid-template-columns: 1fr; }
  .about__image img { max-height: 280px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats__number { font-size: 32px; }
  .stats__item:nth-child(2)::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }


  .whatsapp-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
}
