/* ============================================
   100Corp. Corporate Site – Custom Stylesheet
   ============================================ */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---- Hero Gradient ---- */
.hero-gradient {
  background: linear-gradient(135deg, #0058ba 0%, #6c9fff 100%);
}

/* ---- Material Icons ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   Navigation
   ============================================ */
#topnav {
  transition: box-shadow 0.3s ease;
}
#topnav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Active nav link */
nav a.nav-active {
  color: #0058ba;
  font-weight: 700;
  border-bottom: 2px solid #0058ba;
}

/* ---- Hamburger Button ---- */
#hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}
#hamburger:hover { background: #f1f5f9; }

#hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 3px 0;
}
#hamburger.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .bar:nth-child(2) { opacity: 0; }
#hamburger.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
#mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  padding: 16px 0 24px;
  z-index: 49;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  padding: 14px 24px;
  color: #475569;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
#mobile-menu a:hover { background: #f1f5f9; color: #0058ba; }
#mobile-menu a.nav-active { color: #0058ba; background: #eff4ff; }
#mobile-menu .mobile-cta {
  margin: 12px 24px 0;
  display: block;
  padding: 12px 24px;
  border-radius: 9999px;
  background: #0058ba;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
#mobile-menu .mobile-cta:hover { background: #004da4; }

/* ============================================
   Contact Form
   ============================================ */
.form-field {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field:focus {
  border-color: #0058ba;
  box-shadow: 0 0 0 3px rgba(0,88,186,0.12);
}
.form-field.error {
  border-color: #b31b25;
  box-shadow: 0 0 0 3px rgba(179,27,37,0.10);
}
.form-field.success {
  border-color: #16a34a;
}
.form-error-msg {
  display: none;
  color: #b31b25;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}
.form-error-msg.visible { display: block; }

/* Select field arrow */
select.form-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ---- Thank-you Banner ---- */
#thankyou-banner {
  display: none;
  background: linear-gradient(135deg, #0058ba, #6c9fff);
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}
#thankyou-banner.show { display: block; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }

/* ============================================
   Responsive – Hero Section
   ============================================ */
@media (max-width: 1023px) {
  .hero-images-wrap {
    position: relative;
    height: 320px;
    margin-top: 24px;
  }
}
@media (max-width: 640px) {
  .hero-images-wrap {
    height: 260px;
  }
  /* Hide floating glassmorphism badge on very small screens */
  .hero-badge { display: none !important; }
}

/* ============================================
   Responsive – Bento Grid
   ============================================ */
@media (max-width: 767px) {
  .bento-strength-img { height: 200px !important; }
}

/* ============================================
   Services Cards Hover
   ============================================ */
.service-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,88,186,0.12);
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  padding-top: 112px;
  padding-bottom: 64px;
  background: linear-gradient(135deg, #0058ba 0%, #6c9fff 100%);
  color: #fff;
}
@media (max-width: 640px) {
  .page-hero { padding-top: 96px; padding-bottom: 48px; }
}

/* ============================================
   FAB
   ============================================ */
.fab-btn {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0,88,186,0.35);
}
.fab-btn:active { transform: scale(0.95); }

/* ============================================
   Footer
   ============================================ */
footer a { transition: color 0.2s; }

/* ============================================
   Micro-interactions & Micro-animations
   ============================================ */

/* ---- Hero stagger ---- */
.hero-text-1 { animation: fadeInUp 0.7s ease 0.05s both; }
.hero-text-2 { animation: fadeInUp 0.7s ease 0.25s both; }
.hero-text-3 { animation: fadeInUp 0.7s ease 0.45s both; }
.hero-img-anim { animation: fadeInUp 0.9s ease 0.15s both; }

/* ---- Scroll reveal ---- */
.reveal,
.reveal-left,
.reveal-right {
  will-change: transform, opacity;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0);
}

/* ---- Stagger delays ---- */
.d100 { transition-delay: 0.10s; }
.d200 { transition-delay: 0.20s; }
.d300 { transition-delay: 0.30s; }

/* ---- Feature cards hover ---- */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 88, 186, 0.13);
}
.feature-card .icon-wrap {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .icon-wrap {
  transform: scale(1.18) rotate(-6deg);
}

/* ---- Nav underline animation ---- */
.nav-link-anim {
  position: relative;
}
.nav-link-anim::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #0058ba;
  transition: width 0.25s ease;
}
.nav-link-anim:hover::after {
  width: 100%;
}
.nav-link-anim.nav-active::after {
  width: 100%;
}

/* ---- Service image zoom ---- */
.svc-img img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.svc-img:hover img {
  transform: scale(1.04);
}

/* ---- Section title underline pop ---- */
.section-title-line {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title-line.mx-auto {
  transform-origin: center center;
}
.section-title-line.in-view {
  transform: scaleX(1);
}

/* ---- CTA button pulse ---- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5), 0 25px 50px -12px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 25px 50px -12px rgba(0,0,0,0.25); }
}
.cta-btn-pulse {
  animation: ctaPulse 2.8s ease-in-out infinite;
}

/* ---- Reduced motion: disable all custom animations ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-text-1, .hero-text-2, .hero-text-3, .hero-img-anim {
    animation: none;
    opacity: 1;
  }
  .feature-card { transition: none; }
  .feature-card .icon-wrap { transition: none; }
  .svc-img img { transition: none; }
  .section-title-line { transform: scaleX(1); transition: none; }
  .cta-btn-pulse { animation: none; }
}
