:root {
  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
}

body {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Outfit", sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 10%, #8b5cf6 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  .mobile-no-zoom {
    font-size: 16px;
  }
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar for chat messages but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Animation for fade in up */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fade-in-up 0.3s ease-out;
}

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon {
  transition: transform 0.5s ease;
}

/* Portfolio hover effects */
.portfolio-item {
  cursor: pointer;
}

.portfolio-item img {
  transition: transform 0.7s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Budget button selection */
.budget-btn.selected {
  background-color: #2563eb;
  color: white;
}

/* Chat loading animation */
.chat-loading {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-loading div {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite both;
}

.chat-loading div:nth-child(1) {
  animation-delay: -0.32s;
}
.chat-loading div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.05);
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Mobile menu animation */
.mobile-menu-open {
  transform: translateY(0) !important;
}

/* Fix mobile menu z-index to stay above navbar */
#mobile-menu {
  z-index: 100 !important;
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  align-items: center;
}

#mobile-menu.mobile-menu-open {
  display: flex !important;
  justify-content: center;
  height: 100vh;
}

#mobile-menu-toggle {
  z-index: 101 !important;
}

/* Smooth transitions for all interactive elements */
a,
button {
  transition: all 0.3s ease;
}

/* Focus states for accessibility - remove outline for chat input */
button:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

input:focus {
  outline: none;
}

#chat-input:focus {
  outline: none !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
