@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;600;700&family=Kanit:wght@300;400&display=swap");

:root {
  --bg-dark: #0b0c10;
  --bg-card: #1f2833;
  --text-main: #c5c6c7;
  --accent: #66fcf1; /* เปลี่ยนเป็นฟ้านีออนตัดส้ม หรือจะใช้ส้มก็ได้ */
  --accent-orange: #ff5722; /* ส้มอิฐตัวเดิม */
  --glow: 0 0 15px rgba(255, 87, 34, 0.6);
}

body {
  margin: 0;
  font-family: "Chakra Petch", sans-serif; /* ฟอนต์สไตล์ Sci-fi/Tech */
  background-color: var(--bg-dark);
  color: var(--text-main);
  /* สร้างลายตาราง Tech Grid พื้นหลัง */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

/* Navbar ดีไซน์กระจกฝ้า */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 87, 34, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo span {
  color: var(--accent-orange);
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--accent-orange);
  text-shadow: var(--glow);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 100px;
  position: relative;
  /* แสงสปอตไลท์จางๆ ด้านหลัง */
  background: radial-gradient(
    circle at 80% 50%,
    rgba(255, 87, 34, 0.15),
    transparent 60%
  );
  overflow: hidden; /* Ensure video doesn't overflow */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* Adjust opacity to make text readable */
}
.hero-tag {
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent-orange);
  padding-left: 15px;
}

.hero h1 {
  font-size: 5em;
  line-height: 1;
  margin: 10px 0;
  color: #fff;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px #fff; /* ตัวหนังสือโปร่ง */
}

.hero p {
  max-width: 500px;
  font-family: "Kanit", sans-serif;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #888;
}

/* ปุ่มสไตล์ Tech มีมุมตัด */
.btn-tech {
  padding: 15px 40px;
  background: var(--accent-orange);
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* ตัดมุมเฉียง */
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  transition: 0.3s;
  box-shadow: var(--glow);
}
.btn-tech:hover {
  background: #fff;
  color: var(--accent-orange);
  transform: translateX(5px);
}

/* Services Section */
.services {
  padding: 100px 80px;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5em;
  color: #fff;
  text-transform: uppercase;
}
.bar {
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  margin-top: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(31, 40, 51, 0.6); /* โปร่งแสงนิดๆ */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* เส้นตกแต่งขอบการ์ด */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(31, 40, 51, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3em;
  margin-bottom: 20px;
}
html {
  scroll-behavior: smooth;
}

.card h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.5em;
}
.card p {
  font-family: "Kanit", sans-serif;
  color: #aaa;
  line-height: 1.6;
}

.card-link {
  text-decoration: none;
  display: block;
}

.service-details {
  padding: 0 80px 100px;
}

.detail-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 80px; /* Offset for fixed navbar */
}

.detail-content h2 {
  font-size: 2.5em;
  color: var(--accent-orange);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.detail-content p {
  font-family: 'Kanit', sans-serif;
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
}

.detail-content ul {
  list-style: none;
  padding: 0;
}

.detail-content ul li {
  font-family: 'Kanit', sans-serif;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.detail-content ul li::before {
  content: '>';
  color: var(--accent-orange); /* Changed from var(--accent) to var(--accent-orange) for consistency */
  position: absolute;
  left: 0;
  font-weight: bold;
}

