/* Base Reset - Optimized */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom Properties for Theme */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #1e40af;
  --accent-color: #60a5fa;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #020617;
  --bg-card: rgba(15, 23, 42, 0.4);
  --border-color: rgba(30, 41, 59, 0.3);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  
  /* Ultra-smooth transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Consistent gradient for all pages */
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --glass-bg: rgba(15, 23, 42, 0.4);
  --glass-border: rgba(30, 41, 59, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.3);
  z-index: 10;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  transition: var(--transition);
}

.brand:hover img {
  transform: rotate(5deg) scale(1.05);
}

.brand span {
  font-weight: 800;
  font-size: 20px;
  transition: var(--transition);
}

.brand .brand-friheden {
  color: #e2e8f0;
}

.brand .brand-roleplay {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #60a5fa;
  background: var(--bg-card);
}

.nav-links a.active, .nav-links a:hover {
  color: #e2e8f0;
  background: var(--bg-card);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: inherit;
  font-family: inherit;
}

.dropdown-toggle:hover {
  color: #60a5fa;
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(59, 130, 246, 0.5);
}

.dropdown-toggle[aria-expanded="true"] {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(59, 130, 246, 0.5);
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 41, 59, 0.3);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(30, 41, 59, 0.2);
  position: relative;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* Dropdown sections */
.dropdown-section {
  border-bottom: 1px solid rgba(30, 41, 59, 0.3);
  padding: 8px 0;
}

.dropdown-section:last-child {
  border-bottom: none;
}

.dropdown-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 8px 20px 4px 20px;
  margin-bottom: 4px;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 4px;
  margin: 0 8px 8px 8px;
}

/* Category color coding */
.dropdown-menu a[href="index.html"] {
  color: #60a5fa; /* Blue - Navigation */
  border-left: 3px solid #60a5fa;
}

.dropdown-menu a[href="rules.html"] {
  color: #60a5fa; /* Blue - Navigation */
  border-left: 3px solid #60a5fa;
}

.dropdown-menu a[href="jobs.html"] {
  color: #60a5fa; /* Blue - Navigation */
  border-left: 3px solid #60a5fa;
}

.dropdown-menu a[href="apply-police.html"] {
  color: #10b981; /* Green - Applications */
  border-left: 3px solid #10b981;
}

.dropdown-menu a[href="allowlist.html"] {
  color: #10b981; /* Green - Applications */
  border-left: 3px solid #10b981;
}

.dropdown-menu a[href="staff.html"] {
  color: #f59e0b; /* Orange - Staff/Admin */
  border-left: 3px solid #f59e0b;
}

.dropdown-menu a[href="report.html"] {
  color: #ef4444; /* Red - Reports */
  border-left: 3px solid #ef4444;
}

/* Test pages */
.dropdown-menu a[href="test-buttons.html"] {
  color: #8b5cf6; /* Purple - Test */
  border-left: 3px solid #8b5cf6;
}

.dropdown-menu a[href="slideshow-performance-test.html"] {
  color: #8b5cf6; /* Purple - Test */
  border-left: 3px solid #8b5cf6;
}

/* Section title color coding */
.dropdown-section-title[data-category="navigation"] {
  color: #60a5fa;
}

.dropdown-section-title[data-category="applications"] {
  color: #10b981;
}

.dropdown-section-title[data-category="staff-reports"] {
  color: #f59e0b;
}

.dropdown-section-title[data-category="test"] {
  color: #8b5cf6;
}

/* Hover effects with category colors */
.dropdown-menu a[href="index.html"]:hover,
.dropdown-menu a[href="rules.html"]:hover,
.dropdown-menu a[href="jobs.html"]:hover {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.1);
  padding-left: 24px;
}

.dropdown-menu a[href="apply-police.html"]:hover,
.dropdown-menu a[href="allowlist.html"]:hover {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding-left: 24px;
}

.dropdown-menu a[href="staff.html"]:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding-left: 24px;
}

.dropdown-menu a[href="report.html"]:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding-left: 24px;
}

.dropdown-menu a[href="test-buttons.html"]:hover,
.dropdown-menu a[href="slideshow-performance-test.html"]:hover {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  padding-left: 24px;
}

/* Hero Section with Slideshow */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.slideshow-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.slideshow-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.slideshow-container.loaded .slideshow-loading {
  display: none;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate3d(100%, 0, 0) scale(0.98);
  transition: none; /* Handled by JavaScript for ultra-smooth control */
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  contain: layout style paint;
  backface-visibility: hidden;
  transform-style: flat; /* Better performance than preserve-3d */
  isolation: isolate; /* Create new stacking context */
  contain: strict;
  z-index: 1;
}

/* Different slide effects for variety */
.slide:nth-child(1) {
  transform: translateX(100%) scale(0.98);
}

.slide:nth-child(2) {
  transform: translateX(-100%) scale(0.98);
}

.slide:nth-child(3) {
  transform: translateY(100%) scale(0.98);
}

.slide:nth-child(4) {
  transform: translateY(-100%) scale(0.98);
}

.slide:nth-child(5) {
  transform: translateX(100%) translateY(50%) scale(0.98);
}

.slide:nth-child(6) {
  transform: translateX(-100%) translateY(-50%) scale(0.98);
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 3;
}

.slide.prev {
  transform: translateX(-100%) scale(0.98);
  z-index: 2;
}

.slide.next {
  transform: translateX(100%) scale(0.98);
  z-index: 2;
}

/* Reset transforms for prev/next states */
.slide:nth-child(1).prev {
  transform: translateX(-100%) scale(0.98);
}

.slide:nth-child(2).prev {
  transform: translateX(-100%) scale(0.98);
}

.slide:nth-child(3).prev {
  transform: translateY(-100%) scale(0.98);
}

.slide:nth-child(4).prev {
  transform: translateY(-100%) scale(0.98);
}

.slide:nth-child(5).prev {
  transform: translateX(-100%) translateY(-50%) scale(0.98);
}

.slide:nth-child(6).prev {
  transform: translateX(-100%) translateY(50%) scale(0.98);
}

.slide:nth-child(1).next {
  transform: translateX(100%) scale(0.98);
}

.slide:nth-child(2).next {
  transform: translateX(100%) scale(0.98);
}

.slide:nth-child(3).next {
  transform: translateY(100%) scale(0.98);
}

.slide:nth-child(4).next {
  transform: translateY(100%) scale(0.98);
}

.slide:nth-child(5).next {
  transform: translateX(100%) translateY(50%) scale(0.98);
}

.slide:nth-child(6).next {
  transform: translateX(100%) translateY(-50%) scale(0.98);
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: auto;
  transform: translateZ(0);
  contain: strict;
  transition: transform 0.4s ease-out;
  backface-visibility: hidden;
}

/* Different background effects for variety */
.slide:nth-child(1) .slide-background {
  transform: scale(1.1) translateZ(0);
}

.slide:nth-child(2) .slide-background {
  transform: scale(1.05) translateZ(0);
}

.slide:nth-child(3) .slide-background {
  transform: scale(1.08) translateZ(0);
}

.slide:nth-child(4) .slide-background {
  transform: scale(1.06) translateZ(0);
}

.slide:nth-child(5) .slide-background {
  transform: scale(1.12) translateZ(0);
}

.slide:nth-child(6) .slide-background {
  transform: scale(1.04) translateZ(0);
}

.slide.active .slide-background {
  transform: scale(1.02) translateZ(0);
}

.slide.prev .slide-background,
.slide.next .slide-background {
  transform: scale(0.98) translateZ(0);
}

.slide:hover .slide-background {
  transform: scale(1.03) translateZ(0);
}

/* Different hover effects for variety */
.slide:nth-child(1):hover .slide-background {
  transform: scale(1.15) translateZ(0);
}

.slide:nth-child(2):hover .slide-background {
  transform: scale(1.08) translateZ(0);
}

.slide:nth-child(3):hover .slide-background {
  transform: scale(1.12) translateZ(0);
}

.slide:nth-child(4):hover .slide-background {
  transform: scale(1.09) translateZ(0);
}

.slide:nth-child(5):hover .slide-background {
  transform: scale(1.18) translateZ(0);
}

.slide:nth-child(6):hover .slide-background {
  transform: scale(1.07) translateZ(0);
}

/* Disable hover effects on mobile for better performance */
@media (max-width: 768px) {
  .slide:hover .slide-background {
    transform: scale(1.02) translateZ(0);
  }
  
  .slide-background {
    transition: transform 0.3s ease;
  }
  
  /* Simplify mobile slide effects */
  .slide:nth-child(1),
  .slide:nth-child(2),
  .slide:nth-child(3),
  .slide:nth-child(4),
  .slide:nth-child(5),
  .slide:nth-child(6) {
    transform: translateX(100%) scale(0.98);
  }
  
  .slide:nth-child(1).prev,
  .slide:nth-child(2).prev,
  .slide:nth-child(3).prev,
  .slide:nth-child(4).prev,
  .slide:nth-child(5).prev,
  .slide:nth-child(6).prev {
    transform: translateX(-100%) scale(0.98);
  }
  
  .slide:nth-child(1).next,
  .slide:nth-child(2).next,
  .slide:nth-child(3).next,
  .slide:nth-child(4).next,
  .slide:nth-child(5).next,
  .slide:nth-child(6).next {
    transform: translateX(100%) scale(0.98);
  }
}

/* Placeholder backgrounds - replace with your own images */
.slide:nth-child(1) .slide-background {
  background-image: url('images/slide1-server.jpg');
}

.slide:nth-child(2) .slide-background {
  background-image: url('images/slide2-jobs.jpg');
}

.slide:nth-child(3) .slide-background {
  background-image: url('images/slide3-community.jpg');
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 6, 23, 0.8) 100%);
  z-index: 2;
  will-change: auto;
  contain: strict;
  opacity: 1;
  transition: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  backface-visibility: hidden;
}

.slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.slide.prev .hero-content,
.slide.next .hero-content {
  opacity: 0;
  transform: translateY(30px);
}

/* Smooth slide transitions */
.slide {
  transition: all 0.4s ease-out;
}

.slide.active {
  z-index: 3;
}

.slide.prev {
  z-index: 2;
}

.slide.next {
  z-index: 2;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out 0.1s;
}

.slide.active .hero h1 {
  opacity: 1;
  transform: translateY(0);
}

.slide.prev .hero h1,
.slide.next .hero h1 {
  opacity: 0;
  transform: translateY(-20px);
}

.hero h1 .brand-friheden {
  color: #e2e8f0;
}

.hero h1 .brand-roleplay {
  color: var(--primary-color);
}

.hero p {
  color: var(--text-secondary);
  font-size: 22px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out 0.2s;
}

.slide.active .hero p {
  opacity: 1;
  transform: translateY(0);
}

.slide.prev .hero p,
.slide.next .hero p {
  opacity: 0;
  transform: translateY(-20px);
}

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

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out 0.3s;
}

.slide.active .cta-row {
  opacity: 1;
  transform: translateY(0);
}

.slide.prev .cta-row,
.slide.next .cta-row {
  opacity: 0;
  transform: translateY(-20px);
}

/* Slideshow Navigation */
.slideshow-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  will-change: transform, background-color;
  backface-visibility: hidden;
  user-select: none;
}

.nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  border-color: var(--primary-color);
}

.nav-dot.active::before {
  width: 100%;
  height: 100%;
}

.nav-dot:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.nav-dot:active {
  transform: scale(0.9);
  transition: var(--transition-fast);
}

/* Slideshow Controls */
.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  color: #e2e8f0;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.slideshow-prev::before,
.slideshow-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  transform: translateY(-50%) scale(1.1);
  border-color: var(--primary-color);
  color: white;
  transition: var(--transition-smooth);
}

.slideshow-prev:hover::before,
.slideshow-next:hover::before {
  transform: scale(1);
}

.slideshow-prev:active,
.slideshow-next:active {
  transform: translateY(-50%) scale(0.95);
  transition: var(--transition-fast);
}

.slideshow-prev {
  left: 40px;
}

.slideshow-next {
  right: 40px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

/* Buttons - Optimized */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 18px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-soft);
  will-change: auto;
  background: rgba(30, 41, 59, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: var(--transition);
  z-index: -1;
}

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

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

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary-color);
  color: #e2e8f0;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
}

.btn-outline {
  background: transparent;
  color: #60a5fa;
  border: 2px solid #60a5fa;
  transition: var(--transition);
}

.btn-outline:hover {
  background: #60a5fa;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
  justify-content: flex-start;
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 42px;
  margin-bottom: 60px;
  color: #e2e8f0;
  font-weight: 800;
  text-align: center;
}

/* Features Section */
.features {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
  will-change: auto;
}

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

.feature-card:hover h3 {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #60a5fa;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

/* Quick Links Section */
.quick-links {
  background: var(--bg-secondary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(30, 41, 59, 0.2);
  will-change: auto;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.card:hover h3 {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

/* Server Stats Section */
.server-stats {
  background: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
  will-change: auto;
}

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

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  background: var(--bg-secondary);
  text-align: center;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slide {
    transition: none;
  }
  
  .floating-form-icon {
    animation: none !important;
  }
}

/* Reduce animations on low-end devices */
@media (max-width: 768px) and (max-height: 600px) {
  .floating-form-icon {
    animation: none;
  }
  
  .floating-form-icon:hover {
    transform: translateY(-50%) translateX(-4px) scale(1.05);
  }
}

/* Performance optimizations when modal is open */
.modal-overlay:not([style*="display: none"]) {
  contain: strict;
}

.modal-overlay:not([style*="display: none"]) * {
  will-change: auto;
}

/* Ultra performance optimizations */
.modal-overlay.show {
  contain: strict;
  isolation: isolate;
}

.modal-overlay.show * {
  contain: layout style;
  will-change: auto;
}

/* Disable expensive effects during modal interaction */
.modal-overlay.show .floating-form-icon {
  animation: none !important;
  transition: none !important;
}

/* Optimize scrolling performance */
.modal-content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Disable animations on low-end devices */
@media (max-width: 768px) {
  .slide {
    transition: opacity 0.3s ease-out;
  }
  
  .btn:hover,
  .feature-card:hover,
  .card:hover,
  .stat-card:hover {
    transform: none;
  }
}

/* Aggressive GPU acceleration for maximum performance */
.slide,
.slide-background,
.btn,
.slideshow-prev,
.slideshow-next,
.nav-dot {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
.slide-background {
  transform: translateZ(0) scale(1.02);
  will-change: transform;
  contain: layout style paint;
}

/* Disable expensive effects on low-end devices */
@media (max-width: 768px) {
  .slide-background {
    transform: translateZ(0) scale(1.02) !important;
    transition: none !important;
  }
  
  .slide:hover .slide-background {
    transform: translateZ(0) scale(1.02) !important;
  }
}
.feature-card,
.card,
.stat-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 42px;
  }
  
  .hero p {
    font-size: 20px;
  }
  
  .slideshow-prev,
  .slideshow-next {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .slideshow-prev {
    left: 20px;
  }
  
  .slideshow-next {
    right: 20px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .btn {
    padding: 16px 28px;
    font-size: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .hero-content {
    padding: 0 16px;
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }
  
  .btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .slideshow-prev,
  .slideshow-next {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 50%;
  }
  
  .slideshow-prev {
    left: 12px;
  }
  
  .slideshow-next {
    right: 12px;
  }
  
  /* Mobile navigation improvements */
  .nav {
    padding: 16px 0;
  }
  
  .brand img {
    width: 40px;
    height: 40px;
  }
  
  .brand span {
    font-size: 18px;
  }
  
  .dropdown-toggle {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .dropdown-menu {
    min-width: 160px;
    right: 0;
    left: auto;
  }
  
  .dropdown-menu a {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .slideshow-nav {
    bottom: 20px;
  }
  
  .nav-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature-card {
    padding: 16px;
  }
  
  .feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .feature-card p {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  /* Quick links mobile */
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .card {
    padding: 16px;
  }
  
  .card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .card p {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .card-icon {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  /* Section titles mobile */
  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  /* Server stats mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card h3 {
    font-size: 16px;
  }
  
  .stat-card p {
    font-size: 13px;
  }
}

/* Medium mobile screens (480px-600px) */
@media (max-width: 600px) and (min-width: 481px) {
  .features-grid {
    gap: 14px;
  }
  
  .feature-card {
    padding: 18px;
  }
  
  .feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .feature-card p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .feature-icon {
    font-size: 26px;
    margin-bottom: 10px;
  }
  
  .grid {
    gap: 14px;
  }
  
  .card {
    padding: 18px;
  }
  
  .card h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .card p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  
  .card-icon {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 26px;
    margin-bottom: 22px;
  }
  
  .stats-grid {
    gap: 14px;
  }
  
  .stat-card {
    padding: 18px;
  }
  
  .stat-card h3 {
    font-size: 17px;
  }
  
  .stat-card p {
    font-size: 14px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero {
    height: 45vh;
    min-height: 350px;
  }
  
  .hero-content {
    padding: 0 12px;
  }
  
  .hero h1 {
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.3;
  }
  
  .cta-row {
    gap: 10px;
    margin-top: 16px;
  }
  
  .btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }
  
  .brand img {
    width: 32px;
    height: 32px;
  }
  
  .brand span {
    font-size: 14px;
  }
  
  .dropdown-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  /* Smaller slideshow controls */
  .slideshow-prev,
  .slideshow-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .slideshow-prev {
    left: 8px;
  }
  
  .slideshow-next {
    right: 8px;
  }
  
  .slideshow-nav {
    bottom: 15px;
  }
  
  .nav-dot {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }
}

/* Very small screens (under 360px) */
@media (max-width: 360px) {
  .hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .hero h1 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 12px;
    margin-bottom: 14px;
  }
  
  .cta-row {
    gap: 8px;
    margin-top: 14px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }
  
  .brand img {
    width: 28px;
    height: 28px;
  }
  
  .brand span {
    font-size: 12px;
  }
  
  .container {
    padding: 0 8px;
  }
  
  .slideshow-prev,
  .slideshow-next {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .slideshow-prev {
    left: 6px;
  }
  
  .slideshow-next {
    right: 6px;
  }
  
  .slideshow-nav {
    bottom: 12px;
  }
  
  .nav-dot {
    width: 5px;
    height: 5px;
    margin: 0 2px;
  }
  
  /* Ultra compact content */
  .features-grid {
    gap: 8px;
  }
  
  .feature-card {
    padding: 12px;
  }
  
  .feature-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .feature-card p {
    font-size: 11px;
    line-height: 1.2;
  }
  
  .feature-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .grid {
    gap: 8px;
  }
  
  .card {
    padding: 12px;
  }
  
  .card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .card p {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .card-icon {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .stats-grid {
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-card h3 {
    font-size: 14px;
  }
  
  .stat-card p {
    font-size: 11px;
  }
  
  /* Forms mobile */
  .form-actions {
    gap: 8px;
    margin-top: 16px;
  }
  
  .form-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }
  
  /* Form fields mobile */
  form .field {
    margin-bottom: 16px;
  }
  
  form label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  form input,
  form textarea,
  form select {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  /* Error messages mobile */
  .error-box {
    padding: 8px 12px;
    font-size: 12px;
    margin-top: 8px;
  }
  
  /* Footer mobile */
  footer {
    padding: 20px 0;
  }
  
  footer p {
    font-size: 12px;
  }
}

/* Floating Form Icon - Optimized */
.floating-form-icon {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 0 0 0 rgba(59, 130, 246, 0.7);
  transition: 
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    background 0.3s ease;
  z-index: 1000;
  border: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  animation: floatPulse 3s ease-in-out infinite;
}

/* Pause animation when modal is open */
.floating-form-icon.paused {
  animation: none !important;
}

/* Floating animation */
@keyframes floatPulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.4),
      0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.6),
      0 0 0 4px rgba(59, 130, 246, 0.1);
  }
}

.floating-form-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: -1;
  will-change: transform;
  backface-visibility: hidden;
}

.floating-form-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
  will-change: width, height;
}

.floating-form-icon:hover {
  transform: translateY(-50%) translateX(-8px) scale(1.15);
  box-shadow: 
    0 15px 40px rgba(59, 130, 246, 0.6),
    0 0 0 8px rgba(59, 130, 246, 0.1);
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1d4ed8 100%);
}

.floating-form-icon:hover::before {
  transform: scale(1.2);
}

.floating-form-icon:hover::after {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
}

.floating-form-icon:active {
  transform: translateY(-50%) translateX(-4px) scale(1.08);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.8),
    0 0 0 4px rgba(59, 130, 246, 0.3);
}

.floating-form-icon i {
  font-size: 24px;
  color: white;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-form-icon:hover i {
  transform: rotate(15deg) scale(1.2);
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Tooltip - Enhanced */
.floating-form-icon .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.floating-form-icon .tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(15, 23, 42, 0.95);
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.3));
}

.floating-form-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Modal Overlay - Maximum Performance Optimized */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(2px);
  contain: strict;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.modal-overlay.show {
  opacity: 1;
}

/* Modal Content - Maximum Performance Optimized */
.modal-content {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(30, 41, 59, 0.4);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.98) translateY(5px);
  transition: transform 0.15s ease-out;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(3px);
  contain: layout style paint;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header - Performance Optimized */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  contain: layout style;
  will-change: auto;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
  will-change: background-color, color, transform;
  contain: layout style;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  font-size: 18px;
}

.modal-close:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.modal-close:active {
  transform: scale(0.95);
}

/* Modal Body - Performance Optimized */
.modal-body {
  padding: 30px;
  contain: layout style;
  will-change: auto;
}

.modal-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

/* Modal Form - Performance Optimized */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  contain: layout style;
  will-change: auto;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.15s ease;
  font-family: inherit;
  will-change: border-color;
  contain: layout style;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-form textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-form .help {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.modal-form .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.modal-form .btn {
  padding: 12px 24px;
  font-size: 14px;
  min-height: 44px;
  will-change: transform;
  contain: layout style;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Responsive Modal - Ultra Performance */
@media (max-width: 768px) {
  .floating-form-icon {
    width: 50px;
    height: 50px;
    right: 20px;
    animation: floatPulse 4s ease-in-out infinite;
  }
  
  .floating-form-icon i {
    font-size: 20px;
  }
  
  .floating-form-icon .tooltip {
    right: 60px;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .floating-form-icon:hover {
    transform: translateY(-50%) translateX(-6px) scale(1.1);
  }
  
  .modal-overlay {
    padding: 10px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }
  
  .modal-content {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transform: scale(0.99) translateY(3px);
  }
  
  .modal-form input,
  .modal-form textarea {
    transition: border-color 0.1s ease;
  }
}
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-form .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modal-form .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .floating-form-icon {
    width: 45px;
    height: 45px;
    right: 15px;
    animation: floatPulse 5s ease-in-out infinite;
  }
  
  .floating-form-icon i {
    font-size: 18px;
  }
  
  .floating-form-icon .tooltip {
    display: none;
  }
  
  .floating-form-icon:hover {
    transform: translateY(-50%) translateX(-4px) scale(1.05);
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-header h2 {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-form input,
  .modal-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .modal-form .btn {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 40px;
  }
}


/* Forms */
form .field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

label { 
  font-weight: 600; 
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

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

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.help {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  background: rgba(220, 38, 38, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.success {
  color: #059669;
  font-size: 16px;
  font-weight: 700;
  background: rgba(5, 150, 105, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #059669;
}

/* Staff Section Styles */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.staff-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}

.staff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.staff-card:hover::before {
  transform: scaleX(1);
}

.staff-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-soft);
}

.avatar-placeholder {
  color: white;
  font-size: 32px;
}

.staff-info {
  flex: 1;
}

.staff-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.staff-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.staff-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.staff-cta h2 {
  font-size: 28px;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.staff-cta p {
  color: #64748b;
  font-size: 18px;
  margin-bottom: 24px;
}


/* Report Page Styles */
.software-recommendations {
  margin: 40px 0;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.software-recommendations h2 {
  font-size: 28px;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.software-recommendations > p {
  text-align: center;
  color: #64748b;
  font-size: 18px;
  margin-bottom: 32px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.software-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-align: center;
}

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

.software-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.software-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.software-description {
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.software-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.feature {
  font-size: 14px;
  color: #059669;
  font-weight: 500;
}

.report-form-section {
  margin: 40px 0;
}

.report-form-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.form-description {
  text-align: center;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.report-guidelines {
  margin: 60px 0;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.report-guidelines h2 {
  font-size: 28px;
  margin-bottom: 32px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.guideline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.guideline-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.guideline-card:first-child h3 {
  color: #059669;
}

.guideline-card:last-child h3 {
  color: #dc2626;
}

.guideline-card ul {
  list-style: none;
  padding: 0;
}

.guideline-card li {
  padding: 8px 0;
  color: #64748b;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.guideline-card li:last-child {
  border-bottom: none;
}
