/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #38bdf8;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom form inputs */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.dark input:focus, 
.dark textarea:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

/* Navbar */
.navbar {
    width: 100%;
    background: #181c28;
    color: #FFF;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    /* keep navbar on top */
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .navbar-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar-logo {
    font-size: 1.45rem;
    font-weight: bold;
    color: #37BCF7;
    text-decoration: none;
    letter-spacing: 2px;
  }
  
  .navbar-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }
  
  .navbar-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.32em 0.5em;
    border-radius: 3px;
  }
  
  .navbar-links li a:hover,
  .navbar-links li a:focus {
    color: #37BCF7;
    background: rgba(55,188,247,0.09);
  }
  
  .navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
    padding: 0.3em;
    margin-left: 1rem;
  }
  
  .navbar-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: background 0.2s;
  }
  
  /* Always hide the mobile menu by default (desktop) */
  .navbar-links-mobile {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* Mobile Styles */
  @media (max-width: 890px) {
    .navbar-container {
      padding: 0.7rem 0.8rem;
    }
  
    .navbar-links {
      display: none;
    }
  
    .navbar-toggle {
      display: flex;
    }
  
    /* Slide-out drawer from the right */
    .navbar-links-mobile {
      display: flex;                 /* override desktop display */
      flex-direction: column;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 75%;
      max-width: 320px;
      background: #23283c;
      padding: 4rem 1rem 1rem;
      margin: 0;
      z-index: 200;
      box-shadow: -2px 0 20px rgba(0,0,0,0.5);
  
      /* start off-screen to the right */
      transform: translateX(100%);
      opacity: 0;
      pointer-events: none;
  
      /* slide + fade animation */
      transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    }
  
    .navbar-links-mobile li {
      margin: 0.4em 0;
      text-align: left;
    }
  
    .navbar-links-mobile li a {
      color: #fff;
      font-size: 1.1em;
      text-decoration: none;
      padding: 0.5em 1em;
      display: block;
      border-radius: 3px;
    }
  
    .navbar-links-mobile li a:hover {
      background: #37BCF7;
      color: #181c28;
    }
  
    /* When JS adds .active, slide in */
    .navbar-links-mobile.active {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }
  }