/* kanit-regular - latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/kanit-v11-latin-regular.woff2') format('woff2'),
       url('/assets/kanit-v11-latin-regular.woff') format('woff');
}

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

html {
  background: #4a3085;
  scroll-behavior: smooth;
}

/* Modern gradient background */
body {
  background: linear-gradient(135deg, #4a3085 0%, #3d2870 100%);
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100%;
  color: #fff;
  position: relative;
}

/* Add animated background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 243, 119, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

h1, h2 {
  font-family: 'Kanit', roboto, sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #fff377 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

section {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
  display: flex;
  flex-direction: column;
  max-width: 100%;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

/* Glassmorphism containers */
.container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: auto;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.8s ease-out;
  contain: layout style;
}

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

/* Media elements */
.container > img,
.container video,
.container iframe {
  width: 45%;
  max-width: 100%;
  margin: auto;
  aspect-ratio: 16/9;
  border: none;
}

.container > img {
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  aspect-ratio: auto;
  height: auto;
}

.container video {
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.container > img:hover,
.container video:hover {
  transform: translateY(-5px) scale(1.02);
}

.container iframe {
  height: auto;
  display: block;
}

#main .container {
  flex-direction: column;
}

#main .container video {
  width: 50%;
}

#main .container {
  flex-direction: column;
}

.sectionText {
  font-family: inherit;
  text-align: left;
  color: #f0f0f0;
  max-width: 600px;
  width: 50%;
  padding: 30px;
  margin: auto;
  font-size: 18px;
  line-height: 1.8;
  word-wrap: break-word;
}

.sectionText h1 {
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: slideInLeft 0.8s ease-out;
  overflow-wrap: break-word;
}


.sectionText h2 {
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 20px;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sectionText p {
  margin-top: 10px;
  margin-bottom: 30px;
  opacity: 0.95;
  font-size: 1.1em;
  animation: fadeIn 1s ease-out 0.3s both;
}

a {
  color: #fff377;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

/* Enhanced Launch Button */
.launchButton {
  background: linear-gradient(135deg, #fff377 0%, #ffed4e 100%);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  color: #000;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 243, 119, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.launchButton:hover {
  box-shadow: 0 10px 35px rgba(255, 243, 119, 0.4);
  color: #000;
}

/* Modern Header */
header {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  max-width: 1200px;
  margin: auto;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate3d(-50%, 0px, 1000px);
  z-index: 1000;
  background: rgba(52, 32, 100, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(69, 37, 138, 0.9);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 243, 119, 0.15);
}

.headerPlaceholder {
  height: 120px;
}

.logoWrapper {
  display: flex;
  align-items: center;
  height: auto;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logoWrapper:hover {
  transform: scale(1.05);
}

.logo {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logoText {
  width: 121px;
  height: auto;
  margin-left: 15px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

nav > ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  margin: 0;
  gap: 30px;
  padding: 0;
}

nav > ul li {
  margin: 0;
  display: flex;
  align-items: center;
}

nav > ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  padding: 10px 15px;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
}

nav > ul li a:not(.launchButton):hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff377;
}

/* Hero Section Enhancement */
.hero {
  display: flex;
  width: 100%;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.getStarted {
  display: flex;
  width: 100%;
  color: #f0f0f0;
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.getStarted > div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.2em;
  font-weight: 500;
}

/* Section Backgrounds */
#main, .mainextender {
  background: linear-gradient(180deg, #342064 0%, #2a1550 50%, #342064 100%);
  position: relative;
}

.mainextender {
  max-height: auto;
  padding: 80px 20px;
}

.info {
  background: linear-gradient(135deg, #4d3385 0%, #3d2570 100%);
  position: relative;
}

.info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 32, 100, 0.3), rgba(42, 21, 80, 0.3));
  z-index: 1;
}

.info .container,
.info .headerPlaceholder {
  position: relative;
  z-index: 2;
}

#summary {
  color: #fff;
  background: linear-gradient(135deg, #342064 0%, #2a1550 100%);
  position: relative;
}

#teamScreen {
  color: #f0f0f0;
  background: linear-gradient(135deg, #342064 0%, #2a1550 100%);
}

/* Social Icons Enhancement */
.socialicons {
  display: flex;
  width: 100%;
  justify-content: center;
  max-width: 280px;
  margin: 20px auto 0;
  gap: 15px;
  flex-wrap: wrap;
}

.socialicons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.9);
}

.socialicons img:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 5px 15px rgba(255, 243, 119, 0.3));
}

#summary h2 {
  margin: auto;
  font-size: clamp(32px, 7vw, 56px);
  margin-bottom: 40px;
}

#summary .container {
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.watchplaychatcreate {
  display: flex;
  flex-direction: row;
  margin: auto;
  width: 100%;
  justify-content: space-around;
  max-width: 1200px;
  gap: 40px;
}

.watchplaychatcreate > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watchplaychatcreate > div:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 243, 119, 0.2);
}

.watchplaychatcreate img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
}

.watchplaychatcreate p {
  max-width: 250px;
  text-align: center;
  line-height: 1.6;
  opacity: 0.9;
}

/* Supporters Section */
#supportersScreen {
  padding: 80px 20px;
  min-height: auto;
  background: linear-gradient(135deg, #5d4295 0%, #4d3385 100%);
  position: relative;
}

#supportersScreen .container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

#supportersScreen .container > div {
  margin: auto;
  font-size: 18px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  display: flex;
  color: #342064;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 15px 0;
}

#supportersScreen .container > div:first-child {
  margin-bottom: 30px;
}

#supportersScreen .logos {
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  justify-content: center;
}

#supportersScreen img {
  width: 150px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.8);
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
}

#supportersScreen img:hover {
  opacity: 1;
  transform: translateY(-5px) scale(1.1);
  filter: grayscale(0%) contrast(1);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(42, 21, 80, 0.2);
}

#teamScreen .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#teamScreen .container > div {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  gap: 80px;
  margin-top: 40px;
}

#teamScreen .container > div > div {
  text-align: center;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#teamScreen .container > div > div:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 243, 119, 0.2);
}

#teamScreen .container > div > div > a {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 8px;
  order: -2;
}

#teamScreen .container > div > div > a:hover {
  color: #fff377;
}

#teamScreen .container > div > div > div {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  order: -1;
}

#teamScreen .container img {
  border-radius: 50%;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#teamScreen .container img:hover {
  transform: scale(1.05);
  border-color: #fff377;
}

#teamScreen .container h1 {
  font-size: 56px;
  line-height: 1.3;
  margin-bottom: 60px;
}

/* Contact Screen */
#contactScreen .sectionText {
  width: 100%;
  margin: auto;
}

ul.contact {
  list-style-type: none;
  padding: 0;
  font-weight: 500;
}

ul.contact li {
  margin: 30px 0;
  font-size: 1.1em;
}

ul.contact li .important {
  display: inline-block;
  color: #fff377;
  font-weight: 700;
  margin-top: 10px;
}

/* Footer Enhancement */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #2a1550 0%, #342064 100%);
  gap: 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 119, 0.3), transparent);
}

.legalLink {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 20px;
}

.legalLink:hover {
  color: #fff377;
  background: rgba(255, 255, 255, 0.05);
}

/* Animations */
section {
  opacity: 0;
  animation: sectionFadeIn 0.8s ease-out forwards;
}

@keyframes sectionFadeIn {
  to {
    opacity: 1;
  }
}

/* Mobile Responsive Design */
@media (max-width: 825px) {
  #teamScreen .container > div {
    flex-direction: column;
  }

  .mainextender {
    max-height: 100vh;
    max-height: 100dvh;
  }
 
  .sectionText {
    margin-left: 20px;
    padding: 20px;
  }

  .container img {
    width: 60%;
  }

  .container {
    padding: 30px;
  }

  .launchButton {
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  header {
    top: 0;
    padding: 15px 20px;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
  }

  .container .getStarted {
    display: none;
  }

  .container, .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .container {
    padding: 20px;
    border-radius: 15px;
  }

  .container img,
  .container iframe {
    width: calc(100% - 20px);
    margin: 20px 10px;
    max-width: none;
    height: auto;
    object-fit: contain;
  }

  .container video {
    width: 100%;
    margin: 20px auto;
    max-width: none;
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }

  #main .container video {
    margin-top: 30px;
    width: 100%;
  }

  .container iframe {
    width: 90%;
    height: 200px;
    min-height: auto;
    margin: 10px auto;
  }

  .hiddenMobile {
    display: none;
  }

  .logoWrapper {
    height: 25px;
  }

  .logo {
    width: auto;
    height: 25px;
  }

  .logoText {
    width: 68px;
    height: 32px;
  }

  nav > ul {
    gap: 15px;
  }

  .headerPlaceholder {
    height: 100px;
  }

  .sectionText {
    width: 100%;
    margin: auto;
  }

  #contactScreen .sectionText {
    margin-top: 0;
    padding-top: 40px;
  }

  .watchplaychatcreate {
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
  }

  .watchplaychatcreate > div {
    width: 100%;
    padding: 30px 20px;
  }

  .watchplaychatcreate img {
    width: 100px;
    height: 100px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  #summary h2 {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .socialicons {
    max-width: 250px;
    margin: 20px auto;
  }

  .socialicons img {
    width: 40px;
    height: 40px;
  }

  #summary {
    display: block;
  }

  #supportersScreen .container {
    flex-direction: column;
    padding: 20px;
  }

  #supportersScreen img {
    width: 120px;
    height: auto;
    margin: 10px;
  }
}

@media (max-width: 950px) {
  #main h1 {
    font-size: 36px;
  }
}

@media (max-height: 800px) {
  .container h1 {
    margin-top: 0;
  }

  .container,
  .sectionText {
    padding-top: 0;
  }

  .sectionText {
    font-size: 16px;
  }
}