/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --teal:       #1ABCBD;
  --teal-dark:  #129fa0;
  --coral:      #E8665A;
  --coral-dark: #cc5248;
  --white:      #ffffff;
  --off-white:  #f7f8f9;
  --dark:       #111827;
  --gray-600:   #4b5563;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;

  --font-head:  'Nunito', sans-serif;
  --font-body:  'Nunito Sans', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.16);

  --header-h:   88px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(.8rem, 1.5vw, .95rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.accent { color: var(--coral); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5a; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--transition);
  overflow: visible;
}
#header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { height: 230px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--dark);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--teal); }

.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--coral-dark) !important; transform: translateY(-1px); }

.lang-toggle {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 50px;
  padding: .3rem .85rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--teal);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 20, .75) 0%,
    rgba(10, 10, 20, .45) 60%,
    rgba(26, 188, 189, .2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 6rem 5rem;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--coral); }

.hero-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: .7;
  animation: bounce 2s infinite;
}
.scroll-down svg { width: 32px; height: 32px; }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-services {
  padding-block: 6rem;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: .5rem;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--dark);
}

.service-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.section-portfolio {
  padding-block: 6rem;
  background: var(--dark);
}

.section-portfolio .section-eyebrow { color: var(--teal); }
.section-portfolio .section-title   { color: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: .5rem;
}

.portfolio-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #1e2535;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(.8);
}
.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.05);
  filter: brightness(.6);
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-item:hover .play-icon { opacity: 1; }
.play-icon svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Placeholder gradient for thumbs with no real image yet */
.portfolio-thumb:not(:has(img[src$=".jpg"])) {
  background: linear-gradient(135deg, #1e2535 0%, #232d42 100%);
}

.portfolio-caption {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  padding: .6rem .25rem .25rem;
  transition: color var(--transition);
}
.portfolio-item:hover .portfolio-caption { color: var(--teal); }

.portfolio-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portfolio-cta-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   ADVANTAGE
   ============================================================ */
.section-advantage {
  padding-block: 6rem;
  background: var(--white);
}

.advantage-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.advantage-title { margin-bottom: 1rem; }

.advantage-body {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.advantage-icons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.advantage-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--teal);
}
.advantage-icon-item svg {
  width: 48px;
  height: 48px;
}
.advantage-icon-item span {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* DUBSOL block */
.dubsol-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, #0d1117 0%, #111827 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  color: var(--white);
  margin-bottom: 4rem;
}

.dubsol-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.dubsol-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.dubsol-logo-inline {
  height: 100px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-block: -30px;
}

.dubsol-body {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.dubsol-body strong { color: var(--teal); }

.dubsol-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dubsol-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.dubsol-list li svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Screen mockup */
.dubsol-screen-mock {
  background: #1e2535;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}

.mock-bar {
  height: 32px;
  background: #161c28;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  opacity: .4;
}
.mock-bar span:nth-child(1) { background: #ff5f57; opacity: 1; }
.mock-bar span:nth-child(2) { background: #febc2e; opacity: 1; }
.mock-bar span:nth-child(3) { background: #28c840; opacity: 1; }

.mock-body {
  display: flex;
  height: 220px;
}

.mock-sidebar {
  width: 48px;
  background: #161c28;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-nav-item {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
}
.mock-nav-item.active { background: var(--teal); opacity: .7; }

.mock-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.1);
}
.mock-row.short  { width: 55%; }
.mock-row.medium { width: 75%; }

.mock-cards {
  display: flex;
  gap: 8px;
  flex: 1;
}
.mock-card {
  flex: 1;
  border-radius: 8px;
}
.mock-card.teal  { background: rgba(26,188,189,.3); }
.mock-card.coral { background: rgba(232,102,90,.3); }
.mock-card.light { background: rgba(255,255,255,.08); }

/* Tagline */
.tagline-block {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--teal) 0%, #129fa0 100%);
  border-radius: var(--radius-lg);
}

.tagline-text {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
}
.tagline-text strong { font-weight: 900; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  padding-block: 6rem;
  background: var(--off-white);
  text-align: center;
}

.contact-inner { max-width: 640px; }

.section-contact .section-eyebrow { color: var(--coral); }

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: color var(--transition);
}
.contact-info-item svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.contact-info-item:hover { color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--dark);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo { height: 36px; width: auto; }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-head);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .dubsol-block {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  .dubsol-visual { order: -1; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-cta {
    margin: 1rem 2rem 0;
    width: calc(100% - 4rem);
    justify-content: center;
    border-radius: 50px;
    padding: .85rem 1.5rem;
  }

  .nav-toggle { display: flex; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .advantage-icons-row { gap: 1.5rem; }
  .dubsol-block { padding: 1.75rem 1.5rem; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ANIMATIONS ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
