/* Krescitus Custom CSS Overrides */

:root {
  --color-slate-900: #0f172a;
  --color-slate-800: #0b1120;
  --color-blue-500: #3b82f6;
  --color-purple-500: #8b5cf6;
  --color-white: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tailwind utility overrides */
.bg-slate-900 {
  background-color: var(--color-slate-900) !important;
}

.bg-slate-800 {
  background-color: var(--color-slate-800) !important;
}

.text-blue-500 {
  color: var(--color-blue-500) !important;
}

.text-purple-500 {
  color: var(--color-purple-500) !important;
}

.text-white {
  color: var(--color-white) !important;
}

/* Hero section gradients */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Navigation styling */
nav {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav a {
  color: #1f2937;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #3b82f6;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  z-index: 50;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
}

/* Card styles */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.card-dark {
  background: var(--color-slate-900);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-white);
}

.card-dark:hover {
  border-color: var(--color-blue-500);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* Section styling */
section {
  padding: 4rem 1rem;
}

section.dark-section {
  background: var(--color-slate-900);
  color: var(--color-white);
}

/* Footer styling */
footer {
  background: var(--color-slate-900);
  color: var(--color-white);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-blue-500);
}

/* Social icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  color: #3b82f6;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.social-icons a:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
}

/* Form styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive grid */
@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  nav {
    flex-wrap: wrap;
  }
}

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

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

/* Logo styling */
.logo-img {
  height: 2rem;
  width: auto;
  transition: transform 0.3s ease;
}

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

/* Newsletter subscribe */
.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem 0 0 0.5rem;
  background: rgba(59, 130, 246, 0.05);
  color: white;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(248, 250, 252, 0.5);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #2563eb;
}

/* Icon styling */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.icon-box.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Text utilities */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
