/* ==========================================================================
   CSS Variables & Base Setup: Neutral Glassmorphism + Dynamic Gradients
   ========================================================================== */
:root {
  /* Font families */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Dark color palette */
  --clr-bg-primary: #0f0a1a;            /* Dark purple-black background */
  --clr-bg-glass: rgba(255 255 255 / 0.08);
  --clr-bg-glass-dark: rgba(15 23 42 / 0.65);
  --clr-bg-overlay-dark: rgba(0 0 0 / 0.5);

  --clr-text-primary: #f0f0f5;          /* Near white */
  --clr-text-secondary: #b0b0c0;        /* Light gray */
  --clr-text-light: #f9fafb;            /* White */

  /* Accent colors (bold, bright) */
  --clr-accent-1: #7c3aed;              /* Purple */
  --clr-accent-2: #22d3ee;              /* Cyan */
  --clr-accent-3: #e879f9;              /* Pink */
  --clr-accent-4: #facc15;              /* Yellow-gold */
  --clr-accent-1-dark: #5b21b6;         /* Darker Purple */
  --clr-accent-2-dark: #0e7490;         /* Darker Cyan */
  --clr-accent-3-dark: #be185d;         /* Darker Pink */
  --clr-accent-4-dark: #a16207;         /* Darker Yellow-gold */

  /* Gradient backgrounds */
  --grad-primary: linear-gradient(
    130deg,
    var(--clr-accent-1) 0%,
    var(--clr-accent-2) 50%,
    var(--clr-accent-3) 75%,
    var(--clr-accent-4) 100%
  );
  --grad-secondary: linear-gradient(
    90deg,
    rgba(124 58 174 / 0.85),
    rgba(34 211 238 / 0.80),
    rgba(232 121 249 / 0.75),
    rgba(250 204 21 / 0.90)
  );
  --grad-overlay-dark: linear-gradient(
    rgba(0 0 0 / 0.35),
    rgba(0 0 0 / 0.35)
  );

  /* Particle animation colors */
  --particle-color-main: var(--clr-accent-2);
  --particle-color-alt: var(--clr-accent-1);

  /* Sizes */
  --radius: 1rem;
  --shadow-glass: 0 8px 32px 0 rgba(31 38 135 / 0.37);
  --shadow-light: 0 4px 6px rgba(0 0 0 / 0.12);
  --shadow-dark: 0 8px 16px rgba(15 23 42 / 0.3);

  /* Animation durations */
  --anim-duration-fast: 0.3s;
  --anim-duration-med: 0.6s;
  --anim-duration-slow: 1.2s;

  /* Breakpoints */
  --bp-small: 480px;
  --bp-medium: 768px;
  --bp-large: 1024px;

  /* Z-index */
  --z-nav-fixed: 9999;

  /* Text link highlight */
  --clr-link: var(--clr-accent-3);
  --clr-link-hover: var(--clr-accent-3-dark);
}

/* ==========================================================================
   Global Reset & Box Sizing
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 100%; /* 16px base */
  line-height: 1.5;
  scroll-behavior: smooth;
  background-color: var(--clr-bg-primary);
  color: var(--clr-text-primary);
}

body {
  margin: 0;
  background: var(--clr-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-header-footer {
  padding-top: 60px;
}

/* ==========================================================================
   Helper Utilities: Layout & Spacing
   ========================================================================== */
.container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

.is-two-thirds {
  width: 66.66%;
}

@media (max-width: 768px) {
  .is-two-thirds {
    width: 100%;
  }
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid-two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-two-columns {
    grid-template-columns: 1fr;
  }
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1.25rem; }
.mb-lg { margin-bottom: 2rem; }

.py-sm { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-md { padding-top: 1rem; padding-bottom: 1rem; }
.py-lg { padding-top: 2rem; padding-bottom: 2rem; }

.px-md { padding-left: 1rem; padding-right: 1rem; }

.full-width {
  width: 100%;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

p, li, dd, dt, blockquote {
  font-family: var(--font-body);
  color: var(--clr-text-secondary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--clr-link);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--anim-duration-fast) ease;
}

a:hover,
a:focus {
  color: var(--clr-link-hover);
  text-decoration: underline;
  outline-offset: 3px;
}

/* "Читать далее" style link */
.read-more {
  font-weight: 700;
  color: var(--clr-accent-4);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-block;
  transition: color var(--anim-duration-med) ease;
}
.read-more:hover,
.read-more:focus {
  color: var(--clr-accent-4-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Button Styles (Global)
   ========================================================================== */
.btn,
button,
input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  background: var(--clr-accent-1);
  color: var(--clr-text-light);
  user-select: none;
  transition: background-color var(--anim-duration-med) ease, color var(--anim-duration-med) ease,
    box-shadow var(--anim-duration-med) ease, transform var(--anim-duration-fast) ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type='submit']:hover,
input[type='submit']:focus {
  background-color: var(--clr-accent-1-dark);
  box-shadow: 0 0 12px 2px var(--clr-accent-1);
  color: var(--clr-text-light);
  transform: translateY(-2px);
  outline-offset: 3px;
  outline-color: var(--clr-accent-1-dark);
  outline-style: solid;
  outline-width: 2px;
}

.btn:active,
button:active,
input[type='submit']:active {
  transform: translateY(0);
  box-shadow: var(--shadow-glass);
  background-color: var(--clr-accent-1);
}

.btn-glow {
  filter: drop-shadow(0 0 6px var(--clr-accent-2));
  background: var(--clr-accent-2);
}
.btn-glow:hover,
.btn-glow:focus {
  filter: drop-shadow(0 0 12px var(--clr-accent-2));
  background: var(--clr-accent-2-dark);
}

/* ==========================================================================
   Navigation (Fixed)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav-fixed);
  background: var(--clr-bg-primary);
  border-bottom: 2px solid var(--clr-accent-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  min-height: 60px;
}

.site-header .logo {
  color: var(--clr-accent-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo {
  transition: color var(--anim-duration-fast) ease;
}

.logo:hover,
.logo:focus {
  color: var(--clr-accent-4-dark);
}

/* Burger menu (for mobile nav) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--clr-accent-4);
  border-radius: 2px;
}

.menu-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* IMPORTANT: Override the hidden attribute on desktop */
.menu-list[hidden] {
  display: flex;
}

.menu-list li { margin: 0; }

.nav-link {
  color: var(--clr-text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--clr-accent-4);
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .menu-list[hidden] { display: none; }

  .menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--clr-bg-primary);
    border-top: 2px solid var(--clr-accent-1);
    padding: 1rem 0;
    gap: 0;
  }

  .menu-list.show {
    display: flex;
  }

  .menu-list li { padding: 0.75rem 1.5rem; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 4rem 1rem 6rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--clr-text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  backdrop-filter: var(--clr-bg-overlay-dark);
  filter: brightness(0.95);
}

.hero > .hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
  background: rgba(0 0 0 / 0.45);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px);
  color: var(--clr-text-light);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--clr-text-light);
  margin-bottom: 1rem;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.6),
    0 0 8px var(--clr-accent-1);
}

.hero p {
  font-size: 1.125rem;
  color: var(--clr-text-light);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.hero-background {
  background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('image/hero-background-mobile-casual-games-promo-dark-purple-black-rosegold-cyan.jpg');
}

.section-events-bg {
  background-image: linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)), url('image/events-calendar-casual-games-mobile-dark.jpg');
}

.section-research-bg {
  background-image: linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)), url('image/research-mobile-games-data-analysis.jpg');
  background-size: cover;
  background-position: center;
}

.section-contact-bg {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('image/contact-background-casual-games-dark.jpg');
}

/* ==========================================================================
   Card Components (Games, Team, Events)
   ========================================================================== */
.card,
.team-member,
.item,
.testimonial,
.product-card {
  background: rgba(255 255 255 / 0.06);
  border: 1px solid rgba(255 255 255 / 0.12);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.3);
  padding: 1.5rem 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--clr-text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.card:hover,
.team-member:hover,
.item:hover,
.testimonial:hover,
.product-card:hover {
  box-shadow: 0 12px 32px rgba(124 58 174 / 0.5);
  transform: translateY(-6px);
}

.card > .card-image,
.team-member > .card-image,
.item > .card-image,
.testimonial > .card-image,
.product-card > .card-image {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card > .card-image img,
.team-member > .card-image img,
.item > .card-image img,
.testimonial > .card-image img,
.product-card > .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  user-select: none;
  pointer-events: none;
}

/* Title inside cards */
.card-content h3,
.team-member h3,
.item h3,
.testimonial h3,
.product-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--clr-text-primary);
}

/* Card body text */
.card-content p,
.team-member p,
.item p,
.testimonial p,
.product-card p {
  color: var(--clr-text-secondary);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Card stats or lists inside cards */
.card .game-stats,
.card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--clr-text-secondary);
  font-size: 0.9rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ==========================================================================
   Events Calendar Table
   ========================================================================== */
.section-events table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  background: var(--clr-bg-glass);
  backdrop-filter: blur(10px);
}

.section-events table thead tr {
  background: var(--clr-accent-1);
  color: var(--clr-text-light);
  font-weight: 700;
}

.section-events table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 1rem;
}

.section-events table tbody tr {
  border-top: 1px solid rgba(255 255 255 / 0.2);
  transition: background-color 0.3s ease;
}

.section-events table tbody tr:hover,
.section-events table tbody tr:focus-within {
  background-color: rgba(124 58 174 / 0.3);
}

.section-events table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--clr-text-primary);
}

/* ==========================================================================
   FAQ Section (Definition List)
   ========================================================================== */
.section-faq dl {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
  font-family: var(--font-body);
  color: var(--clr-text-primary);
}

.section-faq dt {
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.section-faq dt::after {
  content: '+';
  position: absolute;
  right: 0;
  font-weight: 700;
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clr-accent-1);
}

.section-faq dd {
  margin-left: 0;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--clr-text-secondary);
  display: none;
}

.section-faq dt[aria-expanded='true']::after {
  content: '−';
  transform: rotate(0);
}

.section-faq dt[aria-expanded='true'] + dd {
  display: block;
}

/* ==========================================================================
   Section Layouts & Common Sections Padding
   ========================================================================== */
section {
  padding: 3.5rem 1rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--clr-text-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* ==========================================================================
   Background and Overlay helpers for sections with images
   ========================================================================== */
[data-prompt] {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

[data-prompt]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius);
}

/* To make text / children above overlay */
[data-prompt] > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Specific Section styles
   ========================================================================== */

/* Hero handled above, ensure white text */
.hero p, .hero h1 {
  color: var(--clr-text-light);
}

/* Contact Section - form layout */
.section-contact {
  background: var(--clr-bg-glass);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65));
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
}

.section-contact > * {
  position: relative;
  z-index: 1;
}

.section-contact p {
  color: var(--clr-text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.section-contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-contact label {
  font-weight: 700;
  color: var(--clr-text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.section-contact input[type="text"],
.section-contact input[type="email"],
.section-contact textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid rgba(255 255 255 / 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  outline-offset: 3px;
  transition: border-color 0.3s ease;
  resize: vertical;
  background: rgba(0 0 0 / 0.35);
  color: var(--clr-text-light);
  backdrop-filter: blur(12px);
  width: 100%;
}

.section-contact input[type="text"]:focus,
.section-contact input[type="email"]:focus,
.section-contact textarea:focus {
  border-color: var(--clr-accent-3);
  box-shadow: 0 0 10px var(--clr-accent-3);
  background: rgba(0 0 0 / 0.45);
  color: var(--clr-text-light);
}

.section-contact textarea {
  min-height: 120px;
  line-height: 1.5;
}

/* Workshops Section */
.section-workshops {
  color: var(--clr-text-light);
  background: var(--grad-secondary);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
}

.section-workshops ul {
  list-style: disc inside;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 2rem auto 0;
  color: var(--clr-text-light);
}

.section-workshops ul li {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Research section */
.section-research {
  background: var(--clr-bg-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--clr-text-primary);
  backdrop-filter: blur(12px);
  line-height: 1.65;
  font-size: 1.1rem;
}

/* Resources section */
.section-resources ul.resources-list {
  list-style: none;
  padding-left: 0;
  max-width: 680px;
  margin: 0 auto;
  color: var(--clr-text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.section-resources ul.resources-list li {
  margin-bottom: 1rem;
}

.section-resources ul.resources-list li span {
  font-weight: 400;
  color: var(--clr-text-secondary);
  font-style: italic;
  margin-left: 0.3rem;
}

/* Team Section */
.section-team .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

/* Social links in footer */
.site-footer {
  background: var(--clr-bg-glass-dark);
  color: var(--clr-text-light);
  padding: 2.5rem 1rem;
  font-family: var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255 255 255 / 0.12);
  backdrop-filter: blur(14px);
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  gap: 1rem;
}

.footer-nav ul,
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  flex-direction: column;
}

@media (max-width: 768px) {
  .footer-nav ul,
  .footer-nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.footer-nav a.footer-link {
  color: var(--clr-text-light);
  text-decoration: none;
  transition: color var(--anim-duration-fast) ease;
}

.footer-nav a.footer-link:hover,
.footer-nav a.footer-link:focus {
  color: var(--clr-accent-4);
  text-decoration: underline;
}

/* Social icons text links style */
.social-links {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.social-links a {
  color: var(--clr-text-light);
  margin: 0 0.6rem;
  text-decoration: none;
  transition: color var(--anim-duration-fast) ease;
  position: relative;
  padding-left: 22px;
  font-weight: 700;
}

.social-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: translateY(-50%);
  filter: brightness(85%);
  transition: filter var(--anim-duration-fast) ease;
}

/* Note: placeholder base64 data URIs for icons, should be replaced with SVG or font icons */

.social-links a[aria-label*='Facebook']::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 5.036 3.676 9.208 8.438 9.877v-6.985h-2.54v-2.892h2.54v-2.21c0-2.507 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.462h-1.26c-1.243 0-1.63.772-1.63 1.563v1.88h2.773l-.443 2.892h-2.33v6.985C18.324 21.208 22 17.036 22 12z'/%3E%3C/svg%3E");
}

.social-links a[aria-label*='Twitter']::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 3a10.9 10.9 0 01-3.14.86 4.48 4.48 0 001.94-2.48 9.06 9.06 0 01-2.85 1.1 4.52 4.52 0 00-7.7 4.13A12.94 12.94 0 013 4.67s-4 9 5 13a13 13 0 01-8 2c11 7 24 0 24-14.5a4.5 4.5 0 00-.08-.82A7.72 7.72 0 0023 3z'/%3E%3C/svg%3E");
}

.social-links a[aria-label*='Instagram']::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.75 2h8.5A5.75 5.75 0 0122 7.75v8.5A5.75 5.75 0 0116.25 22h-8.5A5.75 5.75 0 012 16.25v-8.5A5.75 5.75 0 017.75 2zm0 2A3.75 3.75 0 004 7.75v8.5A3.75 3.75 0 007.75 20h8.5A3.75 3.75 0 0020 16.25v-8.5A3.75 3.75 0 0016.25 4h-8.5zM12 7a5 5 0 015 5 5 5 0 01-5 5 5 5 0 110-10zm0 2a3 3 0 100 6 3 3 0 000-6zm5.5-3a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5z'/%3E%3C/svg%3E");
}
.social-links a:hover::before,
.social-links a:focus::before {
  filter: brightness(1);
}

/* ==========================================================================
   Fixed height Image containers for cards
   ========================================================================== */
.image-container {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Responsive Grid Example for Cards container (e.g. games, team, etc)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Hero Image fade Parallax (simple, using background position)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero {
    background-attachment: fixed;
    background-position: center center;
    transition: background-position 0.8s ease;
  }
}

/* ==========================================================================
   Particles Animation widget for subtle dynamic background effect
   ========================================================================== */
@keyframes particle-move {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(20px, -40px) scale(0.25);
    opacity: 0;
  }
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--particle-color-main);
  filter: drop-shadow(0 0 2px var(--particle-color-main));
  animation: particle-move 4s ease-in-out infinite;
  will-change: transform, opacity;
  opacity: 0;
}

/* Additional particles with variable animation delays and colors */
.particle:nth-child(2n) {
  background: var(--particle-color-alt);
  filter: drop-shadow(0 0 2px var(--particle-color-alt));
  animation-delay: 1.1s;
  width: 5px; height:5px;
}

.particle:nth-child(3n) {
  background: var(--particle-color-main);
  filter: drop-shadow(0 0 3px var(--particle-color-main));
  animation-delay: 2.3s;
  width: 7px; height:7px;
}

/* ==========================================================================
   Success Page (success.html) styles
   ========================================================================== */
#main-content.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--clr-accent-2);
  background: var(--clr-bg-primary);
}

/* ==========================================================================
   Privacy & Terms Pages Top Padding
   ========================================================================== */
.privacy-page,
.terms-page {
  padding-top: 100px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
  color: var(--clr-text-primary);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* ==========================================================================
   Misc Responsive Fixes: Text scaling, padding adjustment
   ========================================================================== */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  .section-contact,
  .section-workshops,
  .section-research,
  .section-resources {
    padding: 2rem 1rem;
  }
}

/* ==========================================================================
   Parallax text shadow & glowing hover on interactive text elements and links
   ========================================================================== */
a:hover, a:focus,
button:hover, button:focus,
.btn:hover, .btn:focus {
  text-shadow:
    0 0 8px var(--clr-accent-4),
    0 0 12px var(--clr-accent-3);
  outline-offset: 3px;
  outline-color: var(--clr-accent-4);
  outline-style: solid;
  outline-width: 1.5px;
}

/* ==========================================================================
   Focus styles for accessibility on interactive elements
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clr-accent-2-dark);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--clr-accent-2-dark);
}

/* ==========================================================================
   Smooth transitions for interactive elements
   ========================================================================== */
button,
a,
input,
textarea {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ==========================================================================
   Scrollbar styles for Webkit based browsers (optional, subtle)
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0 0 0 / 0.05);
}
::-webkit-scrollbar-thumb {
  background-color: var(--clr-accent-1);
  border-radius: 8px;
}

/* ==========================================================================
   Accessibility: Reduce motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  .hero {
    background-attachment: scroll !important;
  }
}

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

.gradient-text {
  background: linear-gradient(45deg, #ff7171, #fbc531, #4cd137, #00ffff, #9966ff, #ff6b81);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientAnimation 15s ease infinite;
}

.section-about {
  padding: 3.5rem 1rem;
}

.section-mission {
  padding: 3.5rem 1rem;
}

.mission-list {
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  color: var(--clr-text-primary);
  font-size: 1rem;
  line-height: 1.8;
}

.mission-list li {
  margin-bottom: 1.5rem;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.team-card {
  background: var(--clr-bg-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 12px 32px rgba(124 58 174 / 0.5);
  transform: translateY(-6px);
}

.team-card img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.team-card h3 {
  color: var(--clr-text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--clr-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.achievements-list {
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  color: var(--clr-text-primary);
  font-size: 1.05rem;
  line-height: 2;
}

.achievements-list li {
  margin-bottom: 1rem;
}

.section-achievements {
  padding: 3.5rem 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.testimonial {
  background: var(--clr-bg-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 12px 32px rgba(124 58 174 / 0.5);
  transform: translateY(-6px);
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial p {
  color: var(--clr-text-primary);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.section-gallery {
  padding: 3.5rem 1rem;
}

.section-cta {
  background: var(--clr-bg-glass);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
}

.section-cta h2 {
  color: var(--clr-text-primary);
}

.section-cta p {
  color: var(--clr-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0;
  color: var(--clr-text-primary);
  font-size: 1.1rem;
}

.content-main {
  padding-top: 80px;
  min-height: 100vh;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--clr-text-primary);
}

.success-gradient-btn {
  font-family: var(--font-heading);
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  background: linear-gradient(45deg, #ff7171, #fbc531, #4cd137, #00ffff, #9966ff, #ff6b81);
  background-size: 600% 600%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.success-gradient-btn:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.success-page-body {
  min-height: 100vh;
  padding-top: 80px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-body);
  background: #121212;
}

.success-page-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  text-align: center;
}

.success-page-main h1 {
  font-family: var(--font-heading);
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--clr-accent-2);
}

.success-page-main p {
  font-family: var(--font-body);
  font-size: 1.5em;
  margin-bottom: 30px;
  color: var(--clr-text-light);
}

@media (max-width: 768px) {
  .team-cards {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    width: 100%;
  }

  .success-page-main h1 {
    font-size: 2rem;
  }

  .success-page-main p {
    font-size: 1.1rem;
  }

  .section-contact {
    max-width: 90%;
  }

  .section-contact form {
    gap: 1rem;
  }

  .section-contact input[type="text"],
  .section-contact input[type="email"],
  .section-contact textarea {
    padding: 0.6rem 0.8rem;
  }
}

/* ==========================================================================
   Map & Contact Extras
   ========================================================================== */
.map-wrap {
  width: 100%;
  height: 300px;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}
.map-iframe {
  border: none;
}
.contact-extra {
  margin-top: 24px;
}
.contact-extra h3 {
  font-family: var(--font-heading);
  font-size: 1.3em;
  margin-bottom: 8px;
  color: var(--clr-text-primary);
}
.contact-extra p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--clr-text-secondary);
}

/* ==========================================================================
   Legal Pages (Privacy, Terms)
   ========================================================================== */
.legal-section {
  margin-bottom: 40px;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--clr-text-secondary);
}
.legal-content p {
  margin-bottom: 15px;
}
.legal-content.glass-card {
  padding: 20px;
  background: var(--clr-bg-glass);
  border-radius: 15px;
  box-shadow: var(--shadow-glass);
}
.footer-copy {
  color: var(--clr-text-light);
  margin: 0;
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
}

/* ==========================================================================
   End of CSS
   ========================================================================== */