@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root {
  --primary: #1E3A8A;
  --secondary: #3B82F6;
  --cta: #CA8A04;
  --bg: #F8FAFC;
  --text: #1E293B;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(30, 58, 138, 0.1);
  --radius-soft: 2rem;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.85s cubic-bezier(0.33, 1, 0.68, 1);
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeInLift {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineScale {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Varela Round', sans-serif;
}

/* Liquid Glass Effects */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.liquid-gradient {
  background: var(--bg);
  /* Plain solid background */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.morphing-blob {
  display: none;
  /* Removed as per user request for plain background */
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 40% 30% 70% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%;
  }
}

/* Smooth Transitions */
.transition-soft {
  transition: all var(--transition-normal);
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Load Animation */
.page-load-animate {
  animation: fadeInLift 0.65s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

nav {
  animation: navReveal 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Nav Underline */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.btn-primary {
  background-color: var(--cta);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px -10px rgba(202, 138, 4, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  transform: scale(1.02);
  background-color: white;
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.08);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Service Card Hover */
.service-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.service-card .cta-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.service-card:hover .cta-link {
  opacity: 1;
  transform: translateY(0);
}

/* Form interactions */
input:focus,
textarea:focus {
  transform: scale(1.005);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
  border-color: var(--primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-success {
  display: none;
  animation: fadeInLift 0.5s var(--transition-normal) forwards;
}

/* Animations */
@keyframes cta-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.4);
  }

  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 15px rgba(202, 138, 4, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0);
  }
}

.pulse-cta {
  animation: cta-pulse 2s infinite;
}

/* Trust Badges */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.05);
}

/* Hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}