/* @import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800;900&family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap); */

/* Modern Professional Design System */
:root {
  --primary-dark: #010432;
  --primary-light: #0099b0;
  --accent: #00b0b0;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --bg-light: #ffffff;
  --bg-section: #f8fafc;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

.preloader {
  background: #efefef;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s, visibility 0.25s;
}
.preloader img {
  width: 270px;
  padding-right: 20px;
}
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}
.preloader::after {
  content: "";
  width: 65px;
  height: 65px;
  border: 15px solid #010432;
  border-top-color: #00b0b0;
  border-radius: 50%;
  animation: 0.75s infinite loading;
}
@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
@media (max-width: 500px) {
  .preloader img {
    width: 220px;
    padding-right: 20px;
  }
  .preloader::after {
    width: 60px;
    height: 60px;
  }
}
.preloader {
  background: #efefef;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s, visibility 0.25s;
}
.preloader img {
  width: 270px;
  padding-right: 20px;
}
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}
.preloader::after {
  content: "";
  width: 65px;
  height: 65px;
  border: 15px solid #010432;
  border-top-color: #00b0b0;
  border-radius: 50%;
  animation: 0.75s infinite loading;
}
@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
@media (max-width: 500px) {
  .preloader img {
    width: 220px;
    padding-right: 20px;
  }
  .preloader::after {
    width: 60px;
    height: 60px;
  }
}

/* Professional Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav__logo img {
  height: 45px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown__item {
  position: relative;
}

.dropdown__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown__arrow {
  transition: transform 0.3s;
}

.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__container {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.dropdown__item:hover .dropdown__container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__list {
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown__link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dropdown__link:hover {
  background-color: var(--bg-section);
  color: var(--accent);
}

/* Language Switcher */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2rem;
}

.btn-lang {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-lang:hover {
  transform: scale(1.1);
}

.btn-lang img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-divider {
  color: var(--text-secondary);
  font-weight: 300;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #012a4a 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../assets/images/etc/sc8.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 176, 176, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 176, 176, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--bg-section);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--primary-light) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.icon-consultancy::before {
  content: "⚙️";
}
.icon-implementation::before {
  content: "🏭";
}
.icon-support::before {
  content: "🛠️";
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Fixed positioning classes to prevent scroll effects */
.services-fixed,
.section-header-fixed,
.services-grid-fixed,
.service-card-fixed {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.services-fixed {
  position: relative !important;
}

.service-card-fixed {
  position: relative !important;
  transform: none !important;
  opacity: 1 !important;
}

.service-card-fixed:hover {
  transform: translateY(-5px) !important;
}

/* Industries Section */
.industries {
  padding: 2rem 0;
  background: white;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.industry-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.industry-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.industry-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card:hover .industry-image {
  transform: scale(1.05);
}

.industry-content {
  padding: 1.5rem;
}

.industry-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.industry-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.industry-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.industry-card:hover .industry-link {
  gap: 1rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #012a4a 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 176, 176, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .dropdown__container {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    display: none;
  }

  .dropdown__item.active .dropdown__container {
    display: block;
  }

  .dropdown__item.active .dropdown__arrow {
    transform: rotate(180deg);
  }

  .nav__lang {
    margin-top: 2rem;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .industries-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-text .subtitle {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Loading states */
/* .skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
} */
/* 
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
} */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
