/* =============================================
   IP Technology — Custom Styles
   Complementary to Tailwind CSS
   ============================================= */

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

/* General body */
body {
  font-family: 'Poppins', sans-serif;
  color: #0A2A3A;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open {
  max-height: 500px;
}

/* Nav link active */
.nav-link.active {
  color: #0073AA;
  font-weight: 600;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0073AA;
  border-radius: 1px;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #E8F4FA 0%, #FFFFFF 60%, #F8FAFB 100%);
}

/* Service card */
.service-card {
  border-left: 4px solid #0073AA;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 15px 45px rgba(0,115,170,0.18);
  transform: translateY(-4px);
}

/* Project card */
.project-card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  box-shadow: 0 15px 45px rgba(0,115,170,0.15);
  transform: translateY(-4px);
}

/* Tech pill/badge */
.tech-pill {
  display: inline-block;
  background: #E8F4FA;
  color: #0073AA;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin: 0.15rem;
}

/* CTA buttons */
.btn-primary {
  display: inline-block;
  background: #0073AA;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #005A84;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  color: #0073AA;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: 2px solid #0073AA;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #0073AA;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Feature icon circle */
.feature-icon {
  width: 56px;
  height: 56px;
  background: #E8F4FA;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #0073AA;
}

/* Section spacing */
.section-padding {
  padding: 5rem 0;
}

/* Background alternate */
.bg-alt {
  background: #F8FAFB;
}

/* Hero abstract SVG wrapper */
.hero-graphic {
  position: relative;
}
.hero-graphic svg {
  width: 100%;
  height: auto;
}

/* Contact form */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E8F4FA;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #0A2A3A;
  background: #ffffff;
}
.form-input:focus {
  outline: none;
  border-color: #0073AA;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.10);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3D5166;
  margin-bottom: 0.4rem;
}

/* Stack grid item */
.stack-item {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.stack-item:hover {
  box-shadow: 0 4px 16px rgba(0,115,170,0.08);
}

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

/* Collaboration process step */
.process-step {
  position: relative;
  padding-left: 3rem;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: #0073AA;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, #E8F4FA 0%, #F8FAFB 100%);
  padding: 5rem 0 3rem;
}

/* Accessibility: focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #0073AA;
  outline-offset: 2px;
}

/* === FLOW PAGE === */
.project-card-flow {
  border-top: 4px solid #0073AA !important;
}

.badge-flow {
  background: #0073AA;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.hero-badge {
  background: #E8F4FA;
  color: #0073AA;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  display: inline-block;
}

.pricing-card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 15px 45px rgba(0,115,170,0.12);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border: 2px solid #0073AA;
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 115, 170, 0.15);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 115, 170, 0.22);
}

/* === ANIMATIONS === */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* SVG specific animations */
#hero-svg .animate-float {
  animation: float 6s ease-in-out infinite;
}
#hero-svg .animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}
#hero-svg .animate-pulse-custom {
  animation: pulse-slow 4s ease-in-out infinite;
}
#hero-svg [stroke-dasharray] {
  stroke-dashoffset: 0;
  animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* Page entrance animations */
.page-header h1, .hero-gradient h1 {
  animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.page-header p, .hero-gradient p {
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Directional Overrides */
.entrance-down h1 { animation-name: revealDown; }
.entrance-down p { animation-name: revealDown; }

.entrance-left h1 { animation-name: revealLeft; }
.entrance-left p { animation-name: revealLeft; }

.entrance-right h1 { animation-name: revealRight; }
.entrance-right p { animation-name: revealRight; }

.entrance-up h1 { animation-name: revealUp; }
.entrance-up p { animation-name: revealUp; }
