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

body {
  background-color: #0D0D0D;
  font-family: 'DM Sans', sans-serif;
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-syne { font-family: 'Syne', sans-serif; }
.font-dm { font-family: 'DM Sans', sans-serif; }

::selection {
  background-color: rgba(29, 191, 142, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: rgba(29, 191, 142, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1DBF8E; }

#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#navbar.scrolled {
  background-color: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 191, 142, 0.08);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1DBF8E;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}
.nav-link.active {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.gradient-text {
  background: linear-gradient(135deg, #1DBF8E 0%, #4DD9AC 50%, #1DBF8E 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glow-card {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(29, 191, 142, 0.12), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(29, 191, 142, 0.15), 0 20px 60px rgba(13, 13, 13, 0.5);
}

.glow-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-btn:hover {
  box-shadow: 0 0 30px rgba(29, 191, 142, 0.35);
  transform: translateY(-2px);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(29, 191, 142, 0.25);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(29, 191, 142, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 191, 142, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-grid-light {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.dashboard-bar {
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-field {
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}
.input-field:focus {
  outline: none;
  border-color: rgba(29, 191, 142, 0.4);
  box-shadow: 0 0 0 3px rgba(29, 191, 142, 0.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.pulse-dot {
  animation: pulse-glow 2s ease-in-out infinite;
}

.mouse-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 191, 142, 0.07) 0%, rgba(77, 217, 172, 0.03) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
}

.counter-value {
  display: inline-block;
}

#menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #161616;
  border: 1px solid rgba(29, 191, 142, 0.15);
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29, 191, 142, 0.2), rgba(8, 80, 64, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-icon svg {
  width: 32px;
  height: 32px;
  color: #1DBF8E;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-btn {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0D0D0D;
  background: #1DBF8E;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-btn:hover {
  box-shadow: 0 0 24px rgba(29, 191, 142, 0.35);
  transform: translateY(-2px);
}
