/*
 * Abtech Technologies - Shared Styles
 * Enhanced: More dynamic + 10% more colorful
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

button, input, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input, textarea, select { font-size: 16px !important; }

a, button { -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2); }

/* Enhanced Grid Pattern - more visible */
.bg-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230891b2' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   ANIMATIONS - More Dynamic
   ============================================ */

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

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.5); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-in-delayed { animation: fadeIn 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 0.7s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ============================================
   NAVIGATION - Enhanced with color
   ============================================ */

.nav-link {
  color: #475569;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
  position: relative;
}
.nav-link:hover {
  color: #0891b2;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  transform: translateY(-2px);
}
.nav-link.active {
  color: #0891b2;
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  font-weight: 600;
}

.nav-dropdown-container { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 16rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(6, 182, 212, 0.1);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.nav-dropdown-container:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  color: #475569;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nav-dropdown a:hover {
  background: linear-gradient(90deg, #ecfeff, transparent);
  color: #0891b2;
  border-left-color: #06b6d4;
  padding-left: 1.25rem;
}

.mobile-nav-link {
  display: block;
  color: #475569;
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
}
.mobile-nav-link:hover {
  color: #0891b2;
  padding-left: 0.5rem;
}

/* ============================================
   BUTTONS - More vibrant & dynamic
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #06b6d4, #0891b2, #3b82f6);
  background-size: 200% 200%;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4), 0 4px 6px -2px rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.5), 0 8px 16px -4px rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #0891b2;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #67e8f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-secondary:hover {
  border-color: #06b6d4;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.3);
}

/* ============================================
   SECTION LABELS - More colorful
   ============================================ */

.section-label {
  display: inline-block;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-radius: 2rem;
}

/* ============================================
   CARDS - Enhanced with animations
   ============================================ */

.stat-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.stat-card:hover {
  border-color: #67e8f9;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.3);
}
.stat-card:hover::before {
  transform: scaleX(1);
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(148, 163, 184, 0.2);
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  box-shadow: 0 30px 60px -15px rgba(6, 182, 212, 0.25);
  transform: translateY(-8px);
  border-color: #a5f3fc;
}
.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.cloud-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(148, 163, 184, 0.2);
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.cloud-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.cloud-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px -15px rgba(6, 182, 212, 0.3);
}
.cloud-card:hover::before {
  opacity: 1;
}

.cloud-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #cffafe, #a5f3fc, #67e8f9);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #0891b2;
  transition: all 0.3s;
}
.cloud-card:hover .cloud-icon {
  transform: rotate(-10deg) scale(1.1);
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0891b2;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  position: relative;
}
.card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  transition: width 0.3s;
}
.card-link:hover {
  color: #0e7490;
}
.card-link:hover::after {
  width: 100%;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}
.service-card:hover {
  border-color: #67e8f9;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.2);
}

.service-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.service-card:hover .service-icon-wrapper svg {
  color: white !important;
}

/* ============================================
   FOOTER - Enhanced
   ============================================ */

.footer-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: all 0.3s;
  position: relative;
}
.footer-link:hover {
  color: #22d3ee;
  padding-left: 0.5rem;
}

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s;
}
.footer-social-link:hover {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  transform: translateY(-3px) rotate(5deg);
}

/* ============================================
   PAGE HEADER - More colorful
   ============================================ */

.page-header {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f1f5f9, #ffffff, #ecfeff, #dbeafe);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   FORMS - Enhanced
   ============================================ */

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #1e293b;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 4px 12px rgba(6, 182, 212, 0.1);
}
.form-input:hover:not(:focus) {
  border-color: #a5f3fc;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #1e293b;
  resize: none;
  transition: all 0.3s;
}
.form-textarea:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 4px 12px rgba(6, 182, 212, 0.1);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: #0891b2;
  transition: all 0.2s;
  font-weight: 500;
}
.breadcrumb a:hover {
  color: #0e7490;
  text-decoration: underline;
}

/* ============================================
   CONTENT & PROSE
   ============================================ */

.content-section {
  padding: 4rem 0;
}

.prose {
  color: #475569;
  line-height: 1.8;
}
.prose h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h3 {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.prose li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-radius: 50%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   COLORFUL ACCENTS
   ============================================ */

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

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
