/* ═══════════════════════════════════════════════
   NewYug Marketing Website — style.css
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --navy:       #0B1930;
  --navy-light: #112244;
  --brand:      #1B4FD8;
  --brand-bright: #2E63F0;
  --mint:       #3DFFC0;
  --off-white:  #F0F4FF;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Selection ── */
::selection {
  background: var(--mint);
  color: var(--navy);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(11, 25, 48, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-new {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.footer-new {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  transition: transform 0.3s ease;
}
.logo-mark:hover { transform: rotate(-5deg) scale(1.05); }

/* ══════════════════════════════════════
   HERO — Canvas / Grid
══════════════════════════════════════ */
.grid-overlay {
  background-image:
    linear-gradient(rgba(27,79,216,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,79,216,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

/* ── Headline sizes ── */
.hero-h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--mint) 0%, var(--brand-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-pill  { animation: heroFadeUp 0.7s ease 0.2s forwards; }
.hero-h1    { animation: heroFadeUp 0.8s ease 0.4s forwards; }
.hero-tagline { animation: heroFadeUp 0.8s ease 0.6s forwards; }
.hero-ctas  { animation: heroFadeUp 0.8s ease 0.8s forwards; }
.hero-scroll { animation: heroFadeUp 0.8s ease 1.1s forwards; }

@keyframes pingSlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0; }
}
.animate-ping-slow { animation: pingSlow 2s ease-in-out infinite; }

@keyframes pulseSlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.animate-pulse-slow { animation: pulseSlow 5s ease-in-out infinite; }
.animate-pulse-slow-delay { animation: pulseSlow 5s ease-in-out 2.5s infinite; }

/* ── Scroll line animation ── */
@keyframes scrollFade {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0.4; }
}
.scroll-line { animation: scrollFade 2s ease-in-out infinite; }

/* ── Stats bar ── */
.stats-bar .stat-item .counter {
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS (Scroll-triggered)
══════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */
.about-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(27, 79, 216, 0.15);
}

/* ══════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════ */
.services-bg {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(27,79,216,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(61,255,192,0.05) 0%, transparent 60%);
}

/* ══════════════════════════════════════
   PACKAGES
══════════════════════════════════════ */
.pkg-featured {
  position: relative;
  z-index: 1;
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .pkg-featured { transform: scale(1); }
}

/* ══════════════════════════════════════
   CONTACT FORM — Custom Select
══════════════════════════════════════ */
select {
  background-color: var(--navy-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
select option { background-color: var(--navy-light); color: white; }

/* ══════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════ */
#floatingWA {
  animation: floatWA 3s ease-in-out infinite;
}
@keyframes floatWA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#floatingWA:hover {
  animation: none;
  transform: scale(1.1);
}

/* ══════════════════════════════════════
   MOBILE MENU ANIMATION
══════════════════════════════════════ */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}
#mobileMenu:not(.hidden) { display: block !important; }

/* Hamburger animation */
#menuBtn.active .ham-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
#menuBtn.active .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active .ham-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ══════════════════════════════════════
   CANVAS PARTICLES
══════════════════════════════════════ */
#heroCanvas {
  pointer-events: none;
}

/* ══════════════════════════════════════
   TYPOGRAPHY HELPERS
══════════════════════════════════════ */
strong { font-weight: 600; }

/* ══════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: -0.02em;
  }
  .stats-bar { padding: 16px; }
  .stat-item .counter, .stat-item .font-display { font-size: 1.4rem; }
}

/* ══════════════════════════════════════
   PRINT (SEO)
══════════════════════════════════════ */
@media print {
  #floatingWA, #navbar, canvas { display: none; }
  body { background: white; color: black; }
}
