/* ========================================
   Texma ERP — Custom Styles
   Tailwind handles utilities; this file
   covers animations, transitions, and
   overrides that CDN Tailwind can't do.
   ======================================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Body font baseline */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar ---- */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}
/* When navbar scrolls on homepage, switch text to dark */
.navbar.scrolled a:not(.btn-amber) {
  color: #374151 !important;
}
.navbar.scrolled a:not(.btn-amber):hover {
  color: #3B82F6 !important;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Hero ---- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.03) 0%, transparent 45%);
}

.dot-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---- Animated gradient text shimmer ---- */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Stat Counter ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---- Feature Cards ---- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
  border-color: #CCFBF1;
}
.feature-card:hover::before {
  transform: scaleX(1);
}

/* ---- Module Cards ---- */
.module-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.module-card:hover {
  border-color: #3B82F6;
  box-shadow: 0 12px 32px -6px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}
.module-card:hover::after {
  transform: scaleX(1);
}

/* ---- CTA Buttons ---- */
.btn-amber {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-amber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-amber:hover::before {
  left: 100%;
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -4px rgba(59, 130, 246, 0.4);
}
.btn-amber:active {
  transform: translateY(0);
}

.btn-outline {
  transition: all 0.25s ease;
}
.btn-outline:hover {
  transform: translateY(-1px);
}

/* ---- GST Benefit Cards ---- */
.gst-card {
  transition: all 0.3s ease;
}
.gst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.1);
}

/* ---- Form Inputs ---- */
.form-input {
  transition: all 0.2s ease;
}
.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

/* ---- Section Dividers ---- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6);
  border-radius: 2px;
}

/* ---- Breadcrumb separator ---- */
.breadcrumb-sep::before {
  content: '→';
  margin: 0 0.5rem;
  color: #9CA3AF;
}

/* ---- Google Form embed container ---- */
.gform-container iframe {
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  background: #fff;
}

/* ---- AOS Overrides ---- */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* ---- Floating animation for hero elements ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* ---- Gradient border effect ---- */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6, #3B82F6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* ---- Phosphor Icon sizing helpers ---- */
.ph-icon-sm { font-size: 1.25rem; }
.ph-icon-md { font-size: 1.5rem; }
.ph-icon-lg { font-size: 2rem; }
.ph-icon-xl { font-size: 2.5rem; }
.ph-icon-2xl { font-size: 3rem; }

/* ---- Print styles ---- */
@media print {
  .navbar, .mobile-menu, .mobile-overlay, .cta-banner { display: none; }
}
