/* Variables */
:root {
  --primary-color: #0d1e75;
  --secondary-color: #4f46e5;
  --background-color: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-color: #e0e7ff;
  --surface-secondary: #f1f5f9;
  --border-primary: #e2e8f0;
  --brand-primary: #0d1e75;
  --brand-secondary: #ffffff;
}

@font-face {
  font-family: "NotoSans-Thai";
  src: url("../fonts/Noto_Sans_Thai/static/NotoSansThai-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "NotoSans";
  src: url("../fonts/Noto_Sans/static/NotoSans-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "NotoSans-Thai", "NotoSans", "Bai Jamjuree", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
}

body.js-hidden {
  opacity: 0;
}

body.js-visible {
  transition: opacity 0.2s ease;
  opacity: 1;
}

/* Navigation */
.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: flex;
  min-width: 84px;
  max-width: 480px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  height: 3rem;
  padding: 0 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-secondary {
  display: flex;
  min-width: 84px;
  max-width: 480px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  height: 3rem;
  padding: 0 1.5rem;
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
  .download-btn-mobile {
    display: none !important;
  }
}

/* Mobile Menu Animations */
.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 300px;
}

.mobile-menu.show .mobile-menu-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.show .mobile-menu-item:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.show .mobile-menu-item:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.show .mobile-menu-item:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.show .mobile-menu-item:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.show .mobile-menu-item:nth-child(5) {
  transition-delay: 0.3s;
}

/* Hamburger Menu */
.hamburger {
  transition: transform 0.3s ease-in-out;
}

.hamburger-line {
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* Menu Items */
.mobile-menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}
