/* ==========================================
   ZONG TECHNOLOGY PVT LTD - STYLESHEET
   Brand Colors:
   - Slate Dark Background: #0F172A (Slate-900)
   - Deep Purple: #7E22CE / #A855F7
   - Vibrant Cyan: #06B6D4 / #22D3EE
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0F172A;
  --purple-primary: #7E22CE;
  --purple-bright: #A855F7;
  --cyan-primary: #06B6D4;
  --cyan-bright: #22D3EE;
}

html, body {
  font-family: 'Inter', sans-serif;
  background-color: #0F172A;
  color: #F8FAFC;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* --- Ambient Glow Orbs Background --- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.orb-purple {
  background: radial-gradient(circle, rgba(126, 34, 206, 0.45) 0%, rgba(126, 34, 206, 0) 70%);
}

.orb-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(6, 182, 212, 0) 70%);
}

/* --- Glassmorphism UI Effects --- */
.glass-header {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Text Glow Effects --- */
.text-glow-purple {
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.55);
}

.text-glow-cyan {
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.55);
}

.glow-purple {
  box-shadow: 0 0 30px -5px rgba(126, 34, 206, 0.5);
}

.glow-cyan {
  box-shadow: 0 0 30px -5px rgba(6, 182, 212, 0.5);
}

/* --- Interactive Card Hover Transitions --- */
.service-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px -15px rgba(126, 34, 206, 0.35);
}

.service-card-cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.35);
}

/* --- Scrolling Logo Marquee Animation --- */
@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

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

.animate-marquee-reverse {
  display: flex;
  width: max-content;
  animation: marquee-reverse 35s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

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

/* Client logo image wrapper */
.client-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.client-logo-img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  transition: all 0.35s ease;
}

@media (min-width: 640px) {
  .client-logo-img {
    height: 44px;
    max-width: 140px;
  }
  .client-logo-wrap {
    min-width: 120px;
    padding: 0.625rem 1.25rem;
  }
}

/* Grayscale logo filter that converts to color on hover */
.logo-grayscale {
  filter: grayscale(100%) brightness(0.7) opacity(0.65);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.logo-grayscale:hover {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
}

/* --- Floating Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0F172A;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7E22CE;
}

/* --- Code font for tech badges --- */
.code-font {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

/* --- Active Navigation Highlight --- */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link.active-nav {
  color: #A855F7 !important;
  font-weight: 800 !important;
  background: rgba(126, 34, 206, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 15px rgba(126, 34, 206, 0.35);
  padding: 0.375rem 0.85rem !important;
  border-radius: 0.625rem;
}

.mobile-nav-link.active-mobile-nav {
  color: #A855F7 !important;
  font-weight: 800 !important;
  background: rgba(126, 34, 206, 0.22) !important;
  border-left: 4px solid #A855F7 !important;
  padding-left: 1rem !important;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* --- Full Site Fix for 15-inch / Short Viewport Laptop Screens --- */
@media screen and (max-height: 900px) and (min-width: 1024px) {

  /* ---- HERO SECTION ---- */
  section#home {
    padding-top: 5rem;
    padding-bottom: 0.25rem;
    min-height: 100vh;
  }

  section#home h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  section#home > div > div.grid {
    gap: 0.75rem;
  }

  .hero-left {
    gap: 0.5rem !important;
  }

  .hero-left > * + * {
    margin-top: 0.5rem !important;
  }

  .hero-stats {
    padding-top: 0.5rem !important;
    gap: 0.375rem !important;
  }

  .hero-stats > div {
    padding: 0.375rem 0.5rem;
  }

  .hero-card {
    max-width: 440px !important;
    aspect-ratio: 9 / 10 !important;
  }

  /* ---- ABOUT SECTION ---- */
  section#about {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#about h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section#about h4 {
    font-size: 0.875rem;
  }

  section#about p {
    font-size: 0.8125rem;
  }

  /* ---- SERVICES SECTION ---- */
  section#services {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#services h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section#services h3 {
    font-size: 1.25rem;
  }

  section#services p {
    font-size: 0.8125rem;
  }

  /* ---- KEY STATS SECTION ---- */
  section#key-stats {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  section#key-stats .stat-counter {
    font-size: 2rem;
  }

  /* ---- TESTIMONIALS SECTION ---- */
  section#testimonials {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#testimonials h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section#testimonials p {
    font-size: 0.875rem;
  }

  /* ---- PROCESS SECTION ---- */
  section#process {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#process h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section#process h3 {
    font-size: 1.1rem;
  }

  section#process p {
    font-size: 0.8125rem;
  }

  /* ---- CONTACT SECTION ---- */
  section#contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#contact h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section#contact h3 {
    font-size: 1.25rem;
  }

  /* ---- FOOTER ---- */
  footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}

@media screen and (max-height: 750px) and (min-width: 1024px) {

  /* ---- HERO (extra tight) ---- */
  section#home {
    padding-top: 4.5rem;
    padding-bottom: 0;
  }

  section#home h1 {
    font-size: 2rem;
  }

  .hero-left > * + * {
    margin-top: 0.375rem !important;
  }

  .hero-card {
    max-width: 380px !important;
    aspect-ratio: 9 / 10 !important;
  }

  /* ---- ALL SECTIONS (extra tight) ---- */
  section#about,
  section#services,
  section#testimonials,
  section#process,
  section#contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  section#about h2,
  section#services h2,
  section#testimonials h2,
  section#process h2,
  section#contact h2 {
    font-size: 1.75rem;
  }

  section#key-stats {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  section#key-stats .stat-counter {
    font-size: 1.75rem;
  }

  footer {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
}

/* --- Futuristic Hero Logo Animations --- */
@keyframes tech-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tech-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes tech-scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.animate-tech-spin {
  animation: tech-spin 25s linear infinite;
}

.animate-tech-spin-reverse {
  animation: tech-spin-reverse 15s linear infinite;
}

.animate-tech-scan {
  animation: tech-scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-logo-glow {
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.35)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.2));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .hero-logo-glow {
  filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 55px rgba(6, 182, 212, 0.45));
  transform: scale(1.06);
}

/* --- Mobile Drawer Menu Animations --- */

/* Closed state (default) */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open state */
#mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  pointer-events: auto;
}

/* Staggered fade-in for each menu link */
#mobile-menu .mobile-nav-link,
#mobile-menu > a:last-child {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-nav-link,
#mobile-menu.open > a:last-child {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1),
#mobile-menu.open > a:nth-child(1) { transition-delay: 0.06s; }
#mobile-menu.open .mobile-nav-link:nth-child(2),
#mobile-menu.open > a:nth-child(2) { transition-delay: 0.12s; }
#mobile-menu.open .mobile-nav-link:nth-child(3),
#mobile-menu.open > a:nth-child(3) { transition-delay: 0.18s; }
#mobile-menu.open .mobile-nav-link:nth-child(4),
#mobile-menu.open > a:nth-child(4) { transition-delay: 0.24s; }
#mobile-menu.open > a:nth-child(5) { transition-delay: 0.30s; }

/* --- Hamburger → X Morphing Animation --- */
#mobile-menu-btn svg path {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

#mobile-menu-btn.open svg #menu-line-top {
  d: path("M6 6L18 18");
}

#mobile-menu-btn.open svg #menu-line-middle {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.open svg #menu-line-bottom {
  d: path("M6 18L18 6");
}

#mobile-menu-btn.open {
  background: rgba(126, 34, 206, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #A855F7;
}

/* --- Custom Animated Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #A855F7;
  box-shadow: 0 0 12px 3px rgba(168, 85, 247, 0.6),
              0 0 24px 6px rgba(6, 182, 212, 0.25);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(168, 85, 247, 0.45);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}

/* Hover state when over clickable elements */
.cursor-ring.cursor-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(6, 182, 212, 0.6);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

.cursor-dot.cursor-hover {
  background: #22D3EE;
  box-shadow: 0 0 16px 4px rgba(6, 182, 212, 0.7),
              0 0 32px 8px rgba(168, 85, 247, 0.3);
}

/* Click pulse animation */
@keyframes cursor-click-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.8); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.cursor-ring.cursor-click {
  animation: cursor-click-pulse 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hide custom cursor on touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* Quote Form - Select Dropdown Arrow Spacing */
#contact-form select {
  padding-right: 2.5rem;
  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='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
