:root {
  --background: 220 20% 8%;
  --foreground: 210 40% 98%;
  --card: 220 20% 10%;
  --primary: 190 100% 50%;
  --secondary: 25 100% 60%;
  --border: 220 20% 20%;
}

* { border-color: hsl(var(--border)); }

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "rlig" 1, "calt" 1;
  margin: 0;
}

.gradient-bg {
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

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

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

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 20px rgba(8, 145, 178, 0.5); }
  to { box-shadow: 0 0 40px rgba(8, 145, 178, 0.8), 0 0 60px rgba(249, 115, 22, 0.3); }
}

.scroll-smooth { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #0891b2, #f97316); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #0e7490, #ea580c); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-text-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-text-panel > div {
  pointer-events: auto;
  width: 100%;
  max-width: 56rem;
  margin: 0 1rem;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-text {
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 4px 16px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6);
}

.hero-subtitle-text {
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 3px 16px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.5);
}

.hero-desc-text {
  text-shadow: 0 1px 6px rgba(0,0,0,1), 0 2px 14px rgba(0,0,0,0.9), 0 0 25px rgba(0,0,0,0.5);
}

.hero-tag-text {
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Decode / Typewriter effect */
.decode-char {
  display: inline-block;
  min-width: 0.5em;
  transition: color 0.05s;
}
.decode-char.scrambling {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34,211,238,0.6);
}
.decode-char.decoded {
  color: inherit;
  text-shadow: inherit;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}
.tab-btn:hover {
  color: white;
}
.tab-btn.active {
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
  color: white;
  border-color: transparent;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-panel { display: none; }
.service-panel.active { display: grid; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  color: white;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: #22d3ee;
}
.form-input::placeholder {
  color: #9ca3af;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  color: white;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-select:focus {
  border-color: #22d3ee;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: transparent;
  color: #22d3ee;
  border: 1px solid #22d3ee;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: #22d3ee;
  color: #0f172a;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: white;
  color: #0f172a;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-white:hover {
  background: #f3f4f6;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-green:hover {
  background: #15803d;
}

.btn-orange-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: transparent;
  color: #fb923c;
  border: 2px solid #f97316;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-orange-outline:hover {
  background: #f97316;
  color: white;
}

.progress-bar-bg {
  width: 100%;
  background: #374151;
  border-radius: 9999px;
  height: 0.75rem;
}

.progress-bar-fill {
  height: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, #0891b2, #f97316);
  width: 0;
  transition: width 1s ease;
}

.counter { transition: all 0.05s ease; }

.carousel-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: #6b7280;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.carousel-indicator:hover {
  background: #9ca3af;
}
.carousel-indicator.active {
  background: #22d3ee;
  width: 2rem;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: #d1d5db;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #0891b2, #f97316);
  border-radius: 9999px;
}

.cta-gradient {
  background: linear-gradient(to right, #0891b2, #f97316);
}

.star-rating { color: #facc15; }

@media (max-width: 768px) {
  .hero-text-panel > div {
    padding: 2rem 1rem;
  }
}

/* Toast */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  max-width: 400px;
  backdrop-filter: blur(12px);
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.toast-success {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #fff;
}
.toast.toast-error {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fff;
}
