/* ========================================
   🌸 YOUNG SMART CYBERSECURITY - STYLES
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --primary-blue: #0088cc;
  --primary-light: #00a6e8;
  --primary-dark: #005b99;
  --secondary-blue: #e8f6fc;
  --white: #ffffff;
  --text-dark: #1a3a5c;
  --text-light: #666666;
  --text-blue: #0077b6;
  --card-bg: #f0f7fb;
  --gradient-blue: linear-gradient(135deg, #00a6e8 0%, #0077b6 100%);
  --shadow-light: 0 4px 20px rgba(0, 136, 204, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 136, 204, 0.15);
  --shadow-card: 0 10px 40px rgba(0, 100, 180, 0.08);
  --border-radius: 20px;
  --border-radius-lg: 30px;
  --border-radius-xl: 40px;
  --transition: all 0.3s ease;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 25px;
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-game {
  background: var(--primary-blue);
  color: var(--white);
  padding: 12px 45px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-game:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 15px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--secondary-blue);
  color: var(--primary-blue);
}

.nav-link.active {
  background: transparent;
  color: var(--text-dark);
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn img {
  width: 28px;
  height: 28px;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  margin-bottom: 25px;
}

.hero-title .title-line {
  display: block;
  font-size: 52px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  font-style: italic;
}

.hero-description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-blue);
  margin-bottom: 25px;
}

.hero-link {
  display: inline-block;
  font-size: 16px;
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 400;
  transition: var(--transition);
}

.hero-link:hover {
  color: var(--primary-dark);
}

.hero-robot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-robot img {
  max-width: 500px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ========== FEATURE CARDS SECTION ========== */
.features {
  padding: 20px 0 80px;
  position: relative;
  margin-top: -100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-xl);
  padding: 35px 30px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  margin-bottom: 15px;
}

.feature-icon img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

.feature-text {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 1.8;
  margin-bottom: 25px;
  min-height: 50px;
}

/* ========== GAME SHOWCASE SECTION ========== */
.game-showcase {
  padding: 60px 0 80px;
  background: #ffffff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.game-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}

.game-card:hover {
  box-shadow: var(--shadow-medium);
}

.game-preview {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 25px;
  margin-bottom: 20px;
}

.game-preview > img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

.play-btn-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.play-icon {
  color: var(--white);
  font-size: 12px;
}

.play-text {
  color: var(--white);
  font-size: 13px;
  font-family: "Kanit", sans-serif;
}

.game-description {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 1.9;
  margin-bottom: 25px;
  padding: 0 30px;
}

.game-card .btn-game {
  margin-bottom: 15px;
}

.game-note {
  font-size: 14px;
  color: var(--text-dark);
  padding-bottom: 30px;
}

/* ========== INFO SECTION ========== */
.info-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.info-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("image/blue-sky-with-clouds-background copy@2x.png")
    center/cover no-repeat;
  z-index: -1;
}

.info-container {
 display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: column;
}

.info-robot {
  flex: 0 0 320px;
}

.info-robot img {
  max-width: 300px;
  animation: float 3s ease-in-out infinite;
}

.info-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-xl);
  padding: 50px 60px;
  box-shadow: var(--shadow-medium);
}

.info-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 25px;
}

.info-description {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 2;
  text-align: center;
  margin-bottom: 35px;
  font-style: normal;
}

.info-description em {
  font-style: italic;
  font-weight: 500;
}

.cyber-hero-model {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid #e8e8e8;
}

.model-title-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.model-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.2;
}

.model-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
}

.model-flow {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(240, 247, 251, 0.8);
  padding: 20px 30px;
  border-radius: 40px;
}

.model-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.model-icon-circle {
  width: 55px;
  height: 55px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 136, 204, 0.15);
  border: 2px solid var(--primary-light);
  transition: var(--transition);
}

.model-icon-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.25);
}

.model-icon-circle img {
  width: 30px;
  height: 30px;
}

.model-label {
  font-size: 12px;
  color: var(--primary-blue);
  font-weight: 500;
}

.model-line {
  width: 40px;
  height: 2px;
  background: var(--primary-light);
  margin: 0 5px;
  margin-bottom: 25px;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, #e8f6fc 0%, #f5fbfe 100%);
  padding: 50px 0 40px;
  position: relative;
}

.footer-container {
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 100px;
  width: auto;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 1.8;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 166, 232, 0.4);
  transition: var(--transition);
  z-index: 999;
}
.container-section {
  margin-bottom: 100px;
}
.scroll-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}
.readmore-text {
  width: 100px;
}
.video-container {
  width: 400px;
  border-radius: 20px;
}
.video-gameplay-container{
  width: 600px;
  border-radius: 20px;
}
/* ========== RESPONSIVE DESIGN ========== */
.section-download {
     width: fit-content;
    background: #ffffff 0% 0% no-repeat padding-box;
    box-shadow: inset 0px -7px 50px #ffffff, 0px 3px 16px #0000009f;
    border: 1px solid #ffffff;
    border-radius: 76px;
    opacity: 1;
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    padding-bottom: 50px;
}
.download-btn {
  width: 227px;
  height: 56px;
  background: transparent
    radial-gradient(
      closest-side at 50% 50%,
      #5eb7f3 0%,
      #5dcff1 0%,
      #1373c6 100%
    )
    0% 0% no-repeat padding-box;
  box-shadow:
    inset 0px 2px 8px #ffffff,
    0px 1px 5px #ffffff;
  border-radius: 28px;
  opacity: 1;
}
.features-download {
display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.download-btn > span {
    color: #ffffff ;
    font-size: 20px;
    font-weight: 600;
}
.cover-download {
  width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Large Desktop */
@media (max-width: 1400px) {
  .container {
    max-width: 1100px;
  }

  .hero-title .title-line {
    font-size: 46px;
  }

  .hero-robot img {
    max-width: 420px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title .title-line {
    font-size: 38px;
  }

  .hero-robot img {
    max-width: 350px;
  }

  .features {
    margin-top: 0;
    padding-top: 60px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .games-grid {
    gap: 30px;
  }

  .info-container {
    flex-direction: column;
  }

  .info-robot {
    flex: none;
  }

  .info-content {
    padding: 40px 35px;
  }

  .cyber-hero-model {
    flex-direction: column;
    gap: 20px;
  }

  .model-title-box {
    text-align: center;
  }

  .model-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .model-line {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-medium);
    border-radius: 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-title .title-line {
    font-size: 32px;
  }

  .hero-robot img {
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .info-content {
    padding: 30px 25px;
  }

  .info-title {
    font-size: 26px;
  }

  .footer-logos {
    flex-direction: column;
    gap: 25px;
  }

  .scroll-to-top {
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-title .title-line {
    font-size: 26px;
  }

  .hero-description {
    font-size: 14px;
  }

  .info-title {
    font-size: 22px;
  }

  .info-description {
    font-size: 13px;
  }

  .game-description {
    padding: 0 20px;
  }

  .model-flow {
    padding: 15px 20px;
  }

  .model-icon-circle {
    width: 45px;
    height: 45px;
  }

  .model-icon-circle img {
    width: 24px;
    height: 24px;
  }
}
