/* ==========================================================================
   NEW INDIA WORKS — Custom Styles
   Complements Tailwind CSS utilities
   ========================================================================== */

:root {
  --gold: #d4af37;
  --gold-light: #f0d98c;
  --gold-dark: #a8842a;
  --ink: #0a0a0f;
  --ink-2: #101018;
  --ink-3: #16161f;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #0a0a0f;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), #6b5518);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.gold-gradient-text {
  background: linear-gradient(120deg, #f5e08c 0%, #d4af37 35%, #b8860b 60%, #f0d98c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-eyebrow {
  letter-spacing: 0.35em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(212, 175, 55, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

#mobile-menu.open {
  max-height: 480px;
}

/* Hamburger */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(139, 101, 20, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fdfcf8 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px; height: 480px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 70%);
}

.orb-2 {
  width: 380px; height: 380px;
  bottom: -80px; left: -120px;
  background: radial-gradient(circle, rgba(160, 110, 20, 0.22), transparent 70%);
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.12); }
}

/* Rotating conic ring behind hero badge/logo */
.gold-ring {
  background: conic-gradient(from 0deg, transparent 0%, rgba(212,175,55,0.8) 12%, transparent 28%, transparent 55%, rgba(212,175,55,0.5) 68%, transparent 82%);
  animation: spinSlow 9s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #b8860b, #d4af37 45%, #b8860b);
  background-size: 200% auto;
  color: #0a0a0f;
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.40);
}

.btn-outline-gold {
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-dark);
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.capability-card {
  position: relative;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.capability-card:hover::before {
  opacity: 1;
}

.icon-badge {
  background: linear-gradient(140deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

/* --------------------------------------------------------------------------
   Certificates gallery
   -------------------------------------------------------------------------- */
.cert-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cert-card img {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.cert-card:hover img {
  transform: scale(1.06);
}

.cert-overlay {
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.35) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

/* Lightbox */
#lightbox {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lightbox.open img {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline-line {
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.5) 12%, rgba(212, 175, 55, 0.5) 88%, transparent);
}

.timeline-dot {
  background: #ffffff;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12), 0 0 18px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------------------------
   Skill bars
   -------------------------------------------------------------------------- */
.skill-track {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.skill-fill {
  width: 0;
  background: linear-gradient(90deg, #8a6a1a, #d4af37 60%, #f0d98c);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-zoom  { transform: scale(0.88); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.visible > * {
  opacity: 1;
  transform: none;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .orb, .gold-ring {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Divider ornament
   -------------------------------------------------------------------------- */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

/* --------------------------------------------------------------------------
   Marquee (countries strip)
   -------------------------------------------------------------------------- */
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
  display: none;
}

.field-error.show {
  display: block;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.map-frame {
  filter: grayscale(1) contrast(1.02) sepia(0.08);
}

/* --------------------------------------------------------------------------
   Back-to-top
   -------------------------------------------------------------------------- */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   WhatsApp float
   -------------------------------------------------------------------------- */
.whatsapp-float {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.6); }
}
