@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #00d9ff;
  --primary-dark: #0099cc;
  --primary-light: #66e5ff;
  --secondary: #6366f1;
  --secondary-dark: #4f46e5;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --background: #0a0a0f;
  --background-light: #1a1a2e;
  --background-lighter: #16213e;
  --background-card: rgba(26, 26, 46, 0.8);

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-accent: #00d9ff;

  --border: #334155;
  --border-light: #475569;

  --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.3);
  --shadow-glow-secondary: 0 0 30px rgba(99, 102, 241, 0.3);
  --shadow-elegant: 0 20px 40px rgba(10, 10, 15, 0.6);
  --shadow-card: 0 8px 32px rgba(10, 10, 15, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(10, 10, 15, 0.4);

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--error) 100%
  );
  --gradient-card: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(22, 33, 62, 0.8) 100%
  );
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.animated-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.animated-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 217, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(245, 158, 11, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      var(--background) 0%,
      #0f1419 50%,
      var(--background-light) 100%
    );
}

.particle {
  position: absolute;
  border-radius: 50%;
  transition: all 0.3s ease;
  filter: blur(0.5px);
  animation: particle-float 15s infinite ease-in-out;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-60px) translateX(30px) rotate(90deg) scale(1.3);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-80px) translateX(-20px) rotate(180deg) scale(0.7);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-40px) translateX(40px) rotate(270deg) scale(1.1);
    opacity: 0.9;
  }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 30s infinite linear;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out;
}

.animate-slide-in-down {
  animation: slide-in-down 0.6s ease-out;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.gradient-text-hero {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  position: relative;
}

.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.bg-gradient-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bg-gradient-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.bg-gradient-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 217, 255, 0.3);
}

.modern-header {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(10, 10, 15, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.mobile-menu-button {
  display: none;
  background: rgba(0, 217, 255, 0.2);
  border: 2px solid rgba(0, 217, 255, 0.5);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-button:hover {
  background: rgba(0, 217, 255, 0.3);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.mobile-menu-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.3);
}

.mobile-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(10, 10, 15, 0.4);
  z-index: 999;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-menu-container.active {
  display: block !important;
  animation: slideDown 0.3s ease-out;
  background: rgba(10, 10, 15, 0.98);
  border: 2px solid var(--primary);
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  border-radius: 8px;
  margin: 4px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--primary) !important;
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.2);
  transform: translateX(4px);
}

.mobile-nav-link.active {
  color: var(--primary) !important;
  background: rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.3);
}

.mobile-dropdown {
  margin: 4px 0;
}

.mobile-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  color: var(--text-secondary) !important;
  background: transparent;
  border: none;
  border-radius: 8px;
  margin: 4px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-button:hover {
  color: var(--primary) !important;
  background: rgba(0, 217, 255, 0.1);
}

.mobile-dropdown-button .chevron {
  transition: transform 0.3s ease;
}

.mobile-dropdown-button.active .chevron {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  background: rgba(26, 26, 46, 0.5);
  border-radius: 8px;
  margin: 0 16px 8px 32px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-content.active {
  max-height: 500px;
}

.mobile-dropdown-content .mobile-nav-link {
  margin: 0;
  border-radius: 0;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.mobile-dropdown-content .mobile-nav-link:hover {
  border-left-color: var(--primary);
  background: rgba(0, 217, 255, 0.1);
}

.mobile-cta-section {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

nav {
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 500;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00d9ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #00d9ff !important;
  background: rgba(0, 217, 255, 0.15) !important;
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.has-dropdown::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav-link.has-dropdown:hover::after {
  transform: rotate(180deg);
}

.nav-link.active {
  color: #00d9ff !important;
  background: rgba(0, 217, 255, 0.2) !important;
  border-color: rgba(0, 217, 255, 0.4);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 220px;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 420px);
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 10, 15, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.3);
  border-radius: 999px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(10, 10, 15, 0.98);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1280px) {
  .dropdown-menu {
    left: 0;
    right: auto;
    transform: translateY(-10px);
  }

  .nav-item:hover .dropdown-menu {
    transform: translateY(0);
  }

  .dropdown-menu::before {
    left: 32px;
  }
}

.dropdown-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 217, 255, 0.05);
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #00d9ff !important;
  margin-bottom: 4px;
}

.dropdown-subtitle {
  font-size: 0.8rem;
  color: #94a3b8 !important;
}

.dropdown-content {
  padding: 12px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #e2e8f0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00d9ff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  color: #00d9ff !important;
  background: rgba(0, 217, 255, 0.1);
  padding-left: 24px;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.3s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  color: #00d9ff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.dropdown-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 217, 255, 0.05);
}

.dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #00d9ff !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-footer-link:hover {
  color: #66e5ff !important;
  transform: translateX(4px);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100vw;
  max-width: 1200px;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 60px rgba(10, 10, 15, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow: hidden;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.mega-menu-section {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mega-menu-section:hover {
  background: rgba(26, 26, 46, 0.8);
  border-color: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.mega-menu-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00d9ff !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-links li {
  margin-bottom: 0.75rem;
}

.mega-menu-links a {
  color: #e2e8f0 !important;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.mega-menu-links a:hover {
  color: #00d9ff !important;
  background: rgba(0, 217, 255, 0.1);
  padding-left: 0.75rem;
}

.mega-menu-featured {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.mega-menu-featured .mega-menu-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.mega-menu-featured p {
  color: #e2e8f0 !important;
}

.btn-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gradient-primary);
  border: none;
  color: var(--background);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-modern:hover::before {
  width: 400px;
  height: 400px;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: var(--background);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.card-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

.card-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 217, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.card-hover:hover::after {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.section-modern {
  padding: 120px 0;
  position: relative;
  background: transparent;
  z-index: 1;
}

.section-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 1px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  opacity: 0.5;
}

main {
  position: relative;
  z-index: 1;
  background: transparent;
}

section {
  position: relative;
  z-index: 1;
  background: transparent;
  min-height: auto;
  display: block;
}

.bg-gray-900\/50 {
  background: rgba(17, 24, 39, 0.5) !important;
}

.bg-gray-800\/30 {
  background: rgba(31, 41, 55, 0.3) !important;
}

.container {
  position: relative;
  z-index: 1;
}

.modern-footer {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.95) 0%,
    rgba(26, 26, 46, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-section {
  padding: 3rem 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-logo-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
}

.form-modern input,
.form-modern textarea,
.form-modern select {
  background: rgba(26, 26, 46, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-primary);
  padding: 16px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  width: 100%;
}

.form-modern input:focus,
.form-modern textarea:focus,
.form-modern select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
  background: rgba(26, 26, 46, 0.9);
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--primary) 50%,
    var(--text-primary) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

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

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-glow-secondary {
  box-shadow: var(--shadow-glow-secondary);
}

.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--background-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

::selection {
  background: var(--primary);
  color: var(--background);
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--background-lighter) 25%,
    var(--border) 50%,
    var(--background-lighter) 75%
  );
  background-size: 200px 100%;
  animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.3);
  border-radius: 8px;
}

@media print {
  .animated-background,
  .particle,
  .grid-pattern {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

@media (max-width: 1024px) {
  .modern-header {
    padding: 0 1rem;
  }

  .container {
    max-width: 100%;
  }

  .mobile-menu-button.lg\\:hidden {
    display: flex !important;
  }

  button.mobile-menu-button {
    display: flex !important;
  }

  .mobile-menu-container {
    display: none !important;
  }

  #mobileMenu {
    display: none !important;
  }

  .mobile-menu-container.active {
    display: block !important;
  }

  #mobileMenu.active {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .section-modern {
    padding: 80px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .btn-modern,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .card-hover:hover {
    transform: translateY(-4px);
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(26, 26, 46, 0.8);
    border: none;
    border-radius: 12px;
    margin-top: 8px;
    margin-left: 16px;
    box-shadow: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-item {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .dropdown-item:hover {
    padding-left: 20px;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .mega-menu-featured {
    grid-column: span 1;
  }

  .mega-menu {
    width: 95vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .mega-menu.active {
    transform: translateX(-50%) translateY(0);
  }

  .modern-header {
    padding: 0 0.5rem;
  }

  .mobile-menu-container {
    max-height: calc(100vh - 70px);
  }

  .mobile-menu-container.active {
    display: block !important;
  }

  #mobileMenu.active {
    display: block !important;
  }

  .mobile-nav-link {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .mobile-dropdown-button {
    padding: 14px 20px;
    font-size: 1rem;
  }

  #mobile-menu,
  #mobileMenu {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .section-modern {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }

  .mega-menu {
    width: 100vw;
    border-radius: 0;
  }

  .modern-header {
    padding: 0 0.25rem;
  }

  .mobile-menu-container {
    max-height: calc(100vh - 60px);
  }

  .mobile-nav-link,
  .mobile-dropdown-button {
    padding: 16px 20px;
    font-size: 1.05rem;
  }

  #mobile-menu,
  #mobileMenu {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}
