

:root {
  
  --pg-primary-blue: #001F3F; 
  --pg-accent-purple: #7B2CBF;
  --pg-accent-green: #39FF14; 
  --pg-white: #FFFFFF;
  --pg-dark-grey: #333333;
  --pg-light-grey: #0a0e1a;
  --pg-text-secondary: #555555; 

  --pg-gradient-primary: linear-gradient(135deg, var(--pg-primary-blue) 0%, var(--pg-accent-purple) 50%, var(--pg-accent-green) 100%);
  --pg-gradient-hover: linear-gradient(135deg, var(--pg-accent-purple) 0%, var(--pg-accent-green) 50%, var(--pg-primary-blue) 100%);

  --pg-font-heading: 'Montserrat', sans-serif;
  --pg-font-body: 'Inter', sans-serif;
  --pg-font-size-base: clamp(0.875rem, 1.5vw, 1rem); 
  --pg-line-height-base: 1.6;

  --pg-spacing-xs: 0.5rem;
  --pg-spacing-sm: 1rem;
  --pg-spacing-md: 2rem;
  --pg-spacing-lg: 3rem;
  --pg-spacing-xl: 4rem;

  --pg-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.1); 
  --pg-shadow-hover: 0 4px 12px rgba(123, 44, 191, 0.2);
  --pg-glow-green: 0 0 10px var(--pg-accent-green); 

  --pg-transition-base: all 0.3s ease; 
  --pg-pulse-duration: 2s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pg-bg-primary: var(--pg-primary-blue);
    --pg-text-primary: var(--pg-white);
    --pg-text-secondary: #CCCCCC;
  }
}

[data-theme="dark"] {
  --pg-bg-primary: var(--pg-primary-blue);
  --pg-text-primary: var(--pg-white);
  --pg-text-secondary: #CCCCCC;
  --pg-card-bg: rgba(255, 255, 255, 0.05);
  --pg-light-grey: rgba(248, 249, 250, 0.1); 
}

[data-theme="light"] {
  --pg-bg-primary: #0a0e1a;
  --pg-text-primary: #e0e0e0;
  --pg-text-secondary: #b0b0b0;
  --pg-card-bg: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --pg-accent-green: #00FF00;
    --pg-accent-purple: #FF00FF;
  }
  .pg-game-card, .pg-service-card {
    border-width: 2px;
  }
}

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

body {
  font-family: var(--pg-font-body);
  font-size: var(--pg-font-size-base);
  line-height: var(--pg-line-height-base);
  color: var(--pg-text-primary, #e0e0e0);
  background-color: var(--pg-bg-primary, #0a0e1a);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pg-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pg-text-primary);
  margin-bottom: var(--pg-spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--pg-spacing-sm);
  color: var(--pg-text-secondary);
}

a {
  color: var(--pg-accent-purple);
  text-decoration: none;
  transition: var(--pg-transition-base);
}

a:hover, a:focus {
  color: var(--pg-accent-green);
  text-decoration: underline;
  outline: none; 
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--pg-accent-green);
  outline-offset: 2px;
  border-radius: 4px;
}

.container, .row, .col-*, .card {  }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--pg-accent-green);
  color: var(--pg-primary-blue);
  padding: 8px;
  z-index: 10000;
  text-decoration: none;
}

.skip-link:focus {
  top: 6px;
}

.pg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pg-gradient-primary);
  color: var(--pg-white);
  overflow: hidden;
  text-align: center;
  padding: var(--pg-spacing-xl) var(--pg-spacing-md);
}

.pg-hero .container {
  position: relative;
  z-index: 2;
}

.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: pg-circuit-float 20s linear infinite;
}

@keyframes pg-circuit-float {
  to { transform: translate(-10px, -10px); }
}

.pg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.pg-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: var(--pg-spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pg-hero p {
  font-size: 1.25rem;
  margin-bottom: var(--pg-spacing-lg);
}

.pg-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pg-spacing-sm) var(--pg-spacing-lg);
  background: var(--pg-accent-green);
  color: var(--pg-primary-blue);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--pg-transition-base);
  box-shadow: var(--pg-shadow-base);
  min-height: 44px; 
  aria-label: "Call to action button"; 
}

.pg-cta-button:hover, .pg-cta-button:focus {
  background: var(--pg-accent-purple);
  color: var(--pg-white);
  transform: translateY(-2px);
  box-shadow: var(--pg-shadow-hover), var(--pg-glow-green);
  text-decoration: none;
}

.pg-navbar {
  background: rgba(0, 31, 63, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123, 44, 191, 0.2);
  padding: var(--pg-spacing-xs) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--pg-transition-base);
}

.pg-navbar .navbar-nav .nav-link {
  color: var(--pg-white);
  font-weight: 500;
  padding: var(--pg-spacing-sm) var(--pg-spacing-md) !important; 
  position: relative;
  transition: var(--pg-transition-base);
  min-height: 44px; 
}

.pg-navbar .navbar-nav .nav-link:hover,
.pg-navbar .navbar-nav .nav-link.active,
.pg-navbar .navbar-nav .nav-link:focus {
  color: var(--pg-accent-green);
}

.pg-navbar .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--pg-accent-green);
  animation: pg-pulse 1.5s ease-in-out infinite;
  box-shadow: var(--pg-glow-green);
}

@keyframes pg-pulse {
  50% { opacity: 0.5; }
}

.pg-game-grid {
  gap: var(--pg-spacing-md);
  padding: var(--pg-spacing-lg) 0;
}

.pg-game-card {
  background: var(--pg-card-bg, rgba(255, 255, 255, 0.08));
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--pg-shadow-base);
  transition: var(--pg-transition-base);
  position: relative;
  border: 1px solid rgba(123, 44, 191, 0.1);
  display: flex;
  flex-direction: column;
  
}

.pg-game-card:hover, .pg-game-card:focus-within {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--pg-shadow-hover);
  border-color: var(--pg-accent-purple);
  outline: none;
}

.pg-game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--pg-transition-base);
  flex-shrink: 0;
}

.pg-game-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.pg-game-card-content {
  padding: var(--pg-spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(0,31,63,0.8), rgba(123,44,191,0.8));
  color: white;
}

.pg-game-card h3 {
  color: var(--pg-text-primary);
  margin-bottom: var(--pg-spacing-xs);
}

.pg-game-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--pg-accent-purple);
  margin-top: auto; 
}

.pg-services-grid {
  gap: var(--pg-spacing-md);
}

.pg-service-card {
  background: var(--pg-card-bg);
  padding: var(--pg-spacing-lg);
  border-radius: 10px;
  transition: var(--pg-transition-base);
  border: 1px solid rgba(57, 255, 20, 0.2);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pg-service-card:hover, .pg-service-card:focus-within {
  background: var(--pg-gradient-hover);
  color: var(--pg-white);
  transform: rotate(1deg) scale(1.05);
}

.pg-service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--pg-spacing-md);
  background: var(--pg-gradient-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pg-white);
  box-shadow: var(--pg-shadow-base);
  transition: var(--pg-transition-base);
  flex-shrink: 0;
}

.pg-service-card:hover .pg-service-icon {
  transform: scale(1.1);
  box-shadow: var(--pg-shadow-hover);
}

.pg-studio-map {
  position: relative;
  height: 400px;
  background: var(--pg-primary-blue);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.pg-map-node {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--pg-accent-green);
  border-radius: 50%;
  transition: var(--pg-transition-base);
  box-shadow: var(--pg-glow-green);
  aria-label: "Interactive map node"; 
}

.pg-map-node:hover, .pg-map-node:focus {
  transform: scale(1.5);
  box-shadow: 0 0 30px var(--pg-accent-green);
  outline: 2px solid var(--pg-white);
}

.pg-contact-form {
  background: var(--pg-card-bg);
  padding: var(--pg-spacing-lg);
  border-radius: 15px;
  box-shadow: var(--pg-shadow-base);
  max-width: 600px;
  margin: 0 auto;
}

.pg-contact-form input,
.pg-contact-form textarea,
.pg-contact-form select {
  width: 100%;
  padding: var(--pg-spacing-sm);
  margin-bottom: var(--pg-spacing-md);
  border: 1px solid rgba(123, 44, 191, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--pg-transition-base);
  color: var(--pg-text-primary);
}

[data-theme="dark"] .pg-contact-form input,
[data-theme="dark"] .pg-contact-form textarea,
[data-theme="dark"] .pg-contact-form select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pg-white);
}

.pg-contact-form input:focus,
.pg-contact-form textarea:focus,
.pg-contact-form select:focus {
  outline: none;
  border-color: var(--pg-accent-green);
  box-shadow: var(--pg-glow-green);
}

.pg-contact-form label {
  font-weight: 600;
  margin-bottom: var(--pg-spacing-xs);
  display: block; 
}

.pg-contact-form button {
  width: 100%;
  padding: var(--pg-spacing-md);
  background: var(--pg-gradient-primary);
  color: var(--pg-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg-transition-base);
  min-height: 44px;
}

.pg-contact-form button:hover, .pg-contact-form button:focus {
  background: var(--pg-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--pg-shadow-hover);
}

.pg-testimonial {
  background: var(--pg-card-bg);
  padding: var(--pg-spacing-lg);
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--pg-shadow-base);
  margin-bottom: var(--pg-spacing-md);
}

.pg-testimonial p {
  font-style: italic;
  margin-bottom: var(--pg-spacing-sm);
  color: var(--pg-text-primary);
}

.pg-testimonial .stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--pg-spacing-sm);
}

.pg-testimonial .stars i {
  color: var(--pg-accent-green);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 3px rgba(57, 255, 20, 0.3));
}

.pg-testimonial-author {
  font-weight: 600;
  color: var(--pg-accent-purple);
}

.pg-footer {
  background: var(--pg-primary-blue);
  color: var(--pg-white);
  padding: var(--pg-spacing-lg) 0;
  text-align: center;
}

.pg-footer a {
  color: var(--pg-accent-green);
  transition: var(--pg-transition-base);
}

.pg-footer a:hover, .pg-footer a:focus {
  color: var(--pg-white);
  text-decoration: underline;
}

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

.pg-animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: pg-fade-in-up 0.8s ease-out forwards;
}

.pg-glow-hover:hover {
  filter: drop-shadow(0 0 10px var(--pg-accent-purple));
}

.pg-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-image: url('../images/hero-nexus.jpg');
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.4;
  transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
  .pg-parallax-bg {
    background-attachment: scroll;
  }
}

.pg-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
}

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

::-webkit-scrollbar-track {
  background: var(--pg-dark-grey);
}

::-webkit-scrollbar-thumb {
  background: var(--pg-accent-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pg-accent-green);
}

.pg-filter-btn {
  border-color: var(--pg-accent-purple) !important;
  color: var(--pg-accent-purple) !important;
  transition: var(--pg-transition-base);
  min-height: 44px;
}

.pg-filter-btn:hover, .pg-filter-btn.active, .pg-filter-btn:focus {
  background: var(--pg-accent-green) !important;
  color: var(--pg-primary-blue) !important;
  border-color: var(--pg-accent-green) !important;
  transform: translateY(-2px);
  box-shadow: var(--pg-glow-green);
}

.pg-game-card .card-title {
  color: var(--pg-accent-green);
  font-size: 1.25rem;
}

.pg-game-card .badge {
  background: var(--pg-accent-green) !important;
  color: var(--pg-primary-blue) !important;
}

.pg-game-card .progress {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.pg-game-card .progress-bar {
  background: var(--pg-accent-green);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.pg-featured {
  background: var(--pg-gradient-primary);
}

.pg-featured img, .pg-dev-gallery img {
  border-radius: 15px;
  box-shadow: var(--pg-shadow-hover);
  height: auto;
  width: 100%;
  max-width: 100%;
  transition: var(--pg-transition-base);
}

.pg-dev-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--pg-glow-green);
}

#testimonial-carousel .carousel-item {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  margin: 0 var(--pg-spacing-md);
  padding: var(--pg-spacing-lg);
  backdrop-filter: blur(10px);
}

#testimonial-carousel .blockquote {
  color: var(--pg-white);
}

#testimonial-carousel .blockquote p {
  color: var(--pg-white) !important;
}

#testimonial-carousel .blockquote-footer {
  color: var(--pg-accent-green);
}

.fancybox__container {
  --fancybox-bg: rgba(0, 31, 63, 0.95);
  --fancybox-accent: var(--pg-accent-green);
}

.fancybox__content {
  background: var(--pg-primary-blue) !important;
  color: var(--pg-white) !important;
  border-radius: 15px;
  padding: var(--pg-spacing-lg) !important;
  box-shadow: var(--pg-shadow-hover);
  max-width: 90vw !important;
  max-height: 90vh !important;
  overflow-y: auto;
}

.fancybox__content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--pg-spacing-md);
}

.fancybox__content .btn {
  margin: var(--pg-spacing-xs);
  border-radius: 25px;
  min-height: 44px;
}

/* Game modal styles */
.fancybox__content h3 {
  color: var(--pg-white);
  font-weight: 700;
  margin-bottom: var(--pg-spacing-lg);
  font-size: 1.75rem;
}

.fancybox__content h5 {
  color: var(--pg-accent-green);
  font-weight: 600;
  margin-bottom: var(--pg-spacing-md);
  font-size: 1.1rem;
}

.fancybox__content ul li {
  margin-bottom: var(--pg-spacing-xs);
  padding-left: var(--pg-spacing-sm);
  position: relative;
  line-height: 1.4;
}

.fancybox__content ul li::before {
  content: '✓';
  color: var(--pg-accent-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.fancybox__content .btn {
  padding: var(--pg-spacing-sm) var(--pg-spacing-lg);
  font-weight: 600;
  transition: var(--pg-transition-base);
  font-size: 0.9rem;
}

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

#particles-js {
  z-index: -1;
  opacity: 0.3;
}

#threejs-demo {
  border: 2px solid var(--pg-accent-purple);
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  transition: var(--pg-transition-base);
}

#threejs-demo:hover, #threejs-demo:focus {
  border-color: var(--pg-accent-green);
  box-shadow: var(--pg-glow-green);
}

.hover-lift {
  transition: var(--pg-transition-base);
  cursor: pointer;
}

.hover-lift:hover, .hover-lift:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--pg-shadow-hover);
}

.pulse-line {
  animation: pg-pulse-line 3s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes pg-pulse-line {
  50% { stroke-opacity: 1; }
}

.btn-purple {
  background: var(--pg-accent-purple);
  border-color: var(--pg-accent-purple);
  color: var(--pg-white);
  transition: var(--pg-transition-base);
  min-height: 44px;
}

.btn-purple:hover, .btn-purple:focus {
  background: var(--pg-accent-green);
  border-color: var(--pg-accent-green);
  transform: translateY(-2px);
  box-shadow: var(--pg-glow-green);
}

.accordion-button {
  font-weight: 600;
  background: var(--pg-card-bg);
  border-color: rgba(123, 44, 191, 0.2);
  transition: var(--pg-transition-base);
}

.accordion-button:not(.collapsed) {
  background: var(--pg-gradient-primary);
  color: var(--pg-white);
  box-shadow: var(--pg-shadow-base);
}

.accordion-button:focus-visible {
  box-shadow: var(--pg-glow-green);
  border-color: var(--pg-accent-green);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(57, 255, 20, 0.1);
}

[data-theme="dark"] .accordion-body {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pg-white);
}

.progress {
  background: rgba(0, 31, 63, 0.1);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
}

.progress-bar {
  transition: width 1s ease-in-out;
  border-radius: 10px;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: pg-shine 2s infinite;
}

@keyframes pg-shine {
  to { transform: translateX(100%); }
}

.card.bg-transparent {
  background: rgba(0, 31, 63, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--pg-transition-base);
  display: flex;
  flex-direction: column;
}

.card.bg-transparent:hover {
  background: rgba(123, 44, 191, 0.3) !important;
  border-color: var(--pg-accent-green);
  transform: translateY(-5px);
}

.card-img-top {
  transition: var(--pg-transition-base);
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.card:hover .card-img-top {
  filter: brightness(1.2) contrast(1.1);
}

#contact-form .form-label {
  font-weight: 600;
  color: var(--pg-text-primary);
}

#contact-form .form-control:focus {
  border-color: var(--pg-accent-green);
  box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.25);
}

#contact-form .btn-success {
  background: var(--pg-accent-green);
  border-color: var(--pg-accent-green);
  font-weight: 600;
  min-height: 44px;
}

#contact-form .btn-success:hover, #contact-form .btn-success:focus {
  background: var(--pg-accent-purple);
  border-color: var(--pg-accent-purple);
  transform: translateY(-2px);
}

.rounded-pill {
  border-radius: 50px;
}

.pg-legal-content {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--pg-spacing-lg);
  border-radius: 15px;
  box-shadow: var(--pg-shadow-base);
}

.pg-legal-content section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(123, 44, 191, 0.1);
  border-radius: 12px;
  padding: var(--pg-spacing-lg);
  margin-bottom: var(--pg-spacing-md);
  transition: var(--pg-transition-base);
  display: block;
}

[data-theme="dark"] .pg-legal-content section {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pg-white);
}

.pg-legal-content section:hover {
  box-shadow: var(--pg-shadow-hover);
  border-color: var(--pg-accent-purple);
  transform: translateY(-2px);
}

.pg-legal-content h2 {
  position: relative;
  color: var(--pg-primary-blue);
  font-size: 1.75rem;
  margin-bottom: var(--pg-spacing-sm);
}

.pg-legal-content h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--pg-accent-green);
  border-radius: 2px;
  box-shadow: var(--pg-glow-green);
  transition: width 0.3s ease;
}

.pg-legal-content h2:hover::after {
  width: 100px;
}

.pg-legal-content ul {
  padding-left: var(--pg-spacing-md);
  list-style-type: disc;
}

.pg-legal-content ul li {
  margin-bottom: var(--pg-spacing-xs);
  color: var(--pg-text-secondary);
}

.pg-legal-content address {
  font-style: normal;
  color: var(--pg-accent-purple);
  background: rgba(123, 44, 191, 0.1);
  padding: var(--pg-spacing-md);
  border-radius: 8px;
  border-left: 4px solid var(--pg-accent-green);
}

.pg-services-bg {
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.8), rgba(0, 31, 63, 0.9));
}

.bg-light {
  background-color: rgba(10, 14, 26, 0.6) !important;
  color: var(--pg-text-primary, #e0e0e0);
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
  color: var(--pg-text-primary, #e0e0e0);
}

.bg-light p,
.bg-light .text-muted {
  color: var(--pg-text-secondary, #b0b0b0);
}

.pg-cta-section {
  background: var(--pg-gradient-primary);
  color: var(--pg-white);
}

.pg-games-hero {
  background-image: url('../images/games-hero.jpg');
}

.pg-about-hero {
  background-image: linear-gradient(rgba(0,31,63,0.7), rgba(123,44,191,0.7)), url('../images/hero-about.jpg');
  background-size: cover;
  background-position: center;
}

.pg-services-hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.8), rgba(75, 0, 130, 0.8)), url('../images/services-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pg-services-hero img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  z-index: 1;
  opacity: 0.6;
  object-fit: contain;
}

@media (max-width: 768px) {
  .pg-services-hero {
    background-attachment: scroll;
  }
  
  .pg-services-hero img {
    max-width: 250px;
    max-height: 250px;
    opacity: 0.4;
  }
}

.pg-404-hero {
  background: linear-gradient(135deg, #001F3F 0%, #7B2CBF 50%, #39FF14 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-object-contain {
  object-fit: contain;
}

.pg-gradient-bg {
  background: var(--pg-gradient-primary);
  color: var(--pg-white);
}

.pg-award-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(123, 44, 191, 0.2);
  border-radius: 15px;
  box-shadow: var(--pg-shadow-base);
  padding: var(--pg-spacing-lg);
  transition: var(--pg-transition-base);
  position: relative;
  overflow: hidden;
  color: var(--pg-text-primary, #e0e0e0);
}

.pg-award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pg-gradient-primary);
}

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

.pg-award-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--pg-spacing-md);
  background: var(--pg-gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg-white);
  box-shadow: var(--pg-shadow-base);
  transition: var(--pg-transition-base);
}

.pg-award-card:hover .pg-award-icon {
  transform: scale(1.1);
  box-shadow: var(--pg-glow-green);
}

.pg-award-badge {
  margin-top: var(--pg-spacing-sm);
}

.pg-award-card h4 {
  color: var(--pg-text-primary, #e0e0e0);
  font-weight: 600;
  margin-bottom: var(--pg-spacing-xs);
}

.pg-stats-row {
  margin-top: var(--pg-spacing-xl);
}

.pg-stat-item {
  min-width: 120px;
}

.pg-stat-number {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pg-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonials in dark sections */
.bg-dark .pg-testimonial {
  background: rgba(255, 255, 255, 0.05) !important;
}

.bg-dark .pg-testimonial,
.bg-dark .pg-testimonial p,
.bg-dark .pg-testimonial blockquote,
.bg-dark .pg-testimonial blockquote p {
  color: var(--pg-white) !important;
}

.bg-dark .pg-testimonial-author {
  color: var(--pg-accent-green) !important;
}

.bg-dark .pg-testimonial .stars i {
  color: #ffd700 !important;
  filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5)) !important;
}

.pg-testimonials-section {
  background: var(--pg-primary-blue);
  color: var(--pg-white);
  padding: 4rem 0;
  border-radius: 20px;
}

.pg-breadcrumbs {
  padding: var(--pg-spacing-sm) 0;
  font-size: 0.875rem;
}

.bg-purple {
  background-color: var(--pg-accent-purple) !important;
}

.bg-green {
  background-color: var(--pg-accent-green) !important;
}

.stars {
  color: #ffd700;
}

.stars .fas {
  margin-right: 2px;
}

.stars .fa-star-half-alt {
  position: relative;
}

.pg-breadcrumbs a {
  color: var(--pg-accent-purple);
}

.pg-breadcrumbs a:hover {
  color: var(--pg-accent-green);
}

@media (max-width: 768px) {
  .pg-hero h1 {
    font-size: 2.5rem;
  }
  
  .pg-navbar {
    padding: var(--pg-spacing-xs) var(--pg-spacing-sm);
  }
  
  .pg-game-grid {
    gap: var(--pg-spacing-sm);
  }
  
  .pg-filter-btn {
    font-size: 0.875rem;
    padding: var(--pg-spacing-xs) var(--pg-spacing-sm);
  }
  
  #testimonial-carousel .carousel-item {
    margin: 0 var(--pg-spacing-sm);
    padding: var(--pg-spacing-md);
  }
  
  .accordion-button {
    font-size: 1rem;
  }
  
  .hover-lift {
    margin-bottom: var(--pg-spacing-md);
  }
  
  .progress {
    height: 15px;
  }
  
  .pg-legal-content section {
    padding: var(--pg-spacing-md);
    margin-bottom: var(--pg-spacing-sm);
  }
  
  .pg-legal-content h2 {
    font-size: 1.5rem;
  }

  .pg-award-card {
    margin-bottom: var(--pg-spacing-md);
  }

  .pg-award-icon {
    width: 60px;
    height: 60px;
  }

  .pg-award-icon i {
    font-size: 1.5rem;
  }

  .pg-stat-number {
    font-size: 1.5rem;
  }

  .pg-stats-row {
    gap: var(--pg-spacing-md);
  }

  .pg-stat-item {
    min-width: 100px;
  }

  .fancybox__content .row > div {
    margin-bottom: var(--pg-spacing-md);
  }

  .fancybox__content .d-flex {
    flex-direction: column;
    gap: var(--pg-spacing-sm);
  }

  .fancybox__content .d-flex .btn {
    width: 100%;
  }

  .fancybox__content {
    padding: var(--pg-spacing-md) !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
  }

  .fancybox__content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--pg-spacing-md);
  }

  .fancybox__content h5 {
    font-size: 1rem;
    margin-bottom: var(--pg-spacing-sm);
  }

  .fancybox__content img {
    max-height: 200px;
    object-fit: cover;
  }
}

/* Tablet styles for modals */
@media (max-width: 768px) and (min-width: 481px) {
  .fancybox__content {
    max-width: 80vw !important;
    max-height: 85vh !important;
    padding: var(--pg-spacing-lg) !important;
  }

  .fancybox__content h3 {
    font-size: 1.6rem;
  }

  .fancybox__content img {
    max-height: 250px;
  }

  .fancybox__content .row {
    margin-bottom: var(--pg-spacing-lg);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .pg-hero {
    min-height: 80vh;
    padding: var(--pg-spacing-lg) var(--pg-spacing-sm);
  }
  
  .pg-game-card img, .card-img-top {
    height: 200px;
  }
}

/* Quote marks for testimonials */
.pg-testimonial blockquote p::before,
.pg-testimonial blockquote p::after {
  content: '"';
  font-size: 2rem;
  color: var(--pg-accent-green);
  position: absolute;
  font-family: Georgia, serif;
}

.pg-testimonial blockquote p::before {
  top: -5px;
  left: -15px;
}

.pg-testimonial blockquote p::after {
  bottom: -20px;
  right: -15px;
}

@media print {
  .pg-navbar, .pg-footer, .pg-hero::before { display: none; }
  body { background: white; color: black; }
}

