#three-canvas canvas {
  pointer-events: none;
}

.three-visual {
  background-color: var(--black);
  padding: 0;
  position: relative;
}

:root {
  
  --primary-blue: #001f3f; 
  --neon-purple: #9b59b6; 
  --vibrant-green: #2ecc71; 
  --dark-gray: #2c3e50; 
  --black: #000000; 
  --white: #ffffff; 
  --light-gray: #ecf0f1; 

  --font-family-primary: 'Montserrat', sans-serif; 
  --font-family-secondary: 'Orbitron', monospace; 
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1.125rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --line-height-body: 1.6;
  --line-height-heading: 1.2;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  --border-radius: 0.5rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);

  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--white);
  background-color: var(--black);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-secondary);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--light-gray);
}

a {
  color: var(--neon-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--vibrant-green);
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1 { 
  font-size: var(--font-size-h1); 
}
h2 { 
  font-size: var(--font-size-h2); 
}
h3 { 
  font-size: var(--font-size-h3); 
}
h4 { 
  font-size: var(--font-size-h4); 
}
h5 { 
  font-size: var(--font-size-h5); 
}
h6 { 
  font-size: var(--font-size-h6); 
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row[class*='g-'] > [class*='col-']:has([class*='card'], [class*='gamelift-card'], [class*='sf-product-card']) { 
  display: flex !important; 
  flex-direction: column !important; 
}
[class*='card'], [class*='gamelift-card'], [class*='sf-product-card'] { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
}

.pl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.pl-grid > * {
  flex: 1;
  min-width: 250px;
}

.btn-custom {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid var(--neon-purple);
  background-color: transparent;
  color: var(--neon-purple);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.btn-custom:hover,
.btn-custom:focus {
  background-color: var(--neon-purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--neon-purple);
  border-color: var(--neon-purple);
}

.card-custom {
  background-color: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-medium);
  color: var(--white);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--neon-purple);
}

.card-custom .card-body {
  padding: var(--spacing-lg);
}

.card-custom .card-title {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.card-custom .card-text {
  color: var(--light-gray);
}

.gamelift-card, .sf-product-card {
  background-color: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-medium);
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gamelift-card:hover, .sf-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--neon-purple);
}

.gamelift-card .card-body, .sf-product-card .card-body {
  padding: var(--spacing-lg);
  flex-grow: 1;
}

.gamelift-card .card-title, .sf-product-card .card-title {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.gamelift-card .card-text, .sf-product-card .card-text {
  color: var(--light-gray);
}

.form-custom input,
.form-custom textarea,
.form-custom select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  background-color: var(--black);
  color: var(--white);
  transition: border-color var(--transition-fast);
}

.form-custom input:focus,
.form-custom textarea:focus,
.form-custom select:focus {
  border-color: var(--neon-purple);
  outline: none;
  box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.25);
}

.form-custom label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
  font-weight: 600;
}

.navbar-custom {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neon-purple);
}

.navbar-custom .navbar-brand {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-h3);
  color: var(--neon-purple);
}

.navbar-custom .nav-link {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--vibrant-green);
}

.footer-custom {
  background-color: var(--black);
  color: var(--light-gray);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--dark-gray);
}

.footer-custom a {
  color: var(--neon-purple);
}

.hero-custom {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--neon-purple) 100%);
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23001f3f" stop-opacity="0.8"/><stop offset="100%" stop-color="%239b59b6" stop-opacity="0.2"/></radialGradient></defs><rect width="100" height="100" fill="url(%23a)"/></svg>') no-repeat center/cover;
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 768px) {
  .pl-grid > * {
    min-width: 300px;
  }
  
  .hero-custom {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }
}

@media (min-width: 1024px) {
  :root {
    --font-size-h1: 4.5rem;
    --font-size-h2: 3rem;
  }
  
  .pl-grid {
    gap: var(--spacing-lg);
  }
  
  .pl-grid > * {
    flex: 1 1 30%;
  }
}

* {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-custom:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--vibrant-green);
  outline-offset: 2px;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#lightbox {
  z-index: 9999;
}

#three-canvas {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--black);
}

[class*='col-']:not(:has([class*='card'], [class*='gamelift-card'], [class*='sf-product-card'])) img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

[class*='card'] img, [class*='gamelift-card'] img, [class*='sf-product-card'] img {
  min-height: 250px;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 768px) {
  [class*='card'] img, [class*='gamelift-card'] img, [class*='sf-product-card'] img {
    min-height: 280px;
  }
}

@media (min-width: 1200px) {
  [class*='card'] img, [class*='gamelift-card'] img, [class*='sf-product-card'] img {
    min-height: 300px;
  }
}

.navbar-light, .bg-light, .bg-white {
  color: var(--dark-gray) !important;
}

.navbar-light .navbar-brand, .navbar-light .nav-link {
  color: var(--dark-gray) !important;
}

.bg-light, .bg-white {
  background-color: var(--light-gray) !important;
  color: var(--dark-gray) !important;
}