/* style.css */

/* กำหนดค่าเริ่มต้นของ Tailwind Configuration */
:root {
  --primary-color: #0d273a; /* สีน้ำเงินเข้ม */
  --secondary-color: #f1bd6e; /* สีทอง */
  --text-light: #ffffff;
}

/* ใช้ Prompt เป็นฟอนต์หลัก */
body {
  font-family: "Prompt", sans-serif;
  background-color: #f8f8f8;
}

/* Tailwind custom utilities */
.bg-primary {
  background-color: var(--primary-color);
}
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.contact-btn {
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.contact-btn:hover {
  background-color: #1a4361;
}
.social-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.social-icon-wrapper:hover {
  background-color: var(--secondary-color);
}
.social-icon-wrapper:hover i {
  color: var(--primary-color);
}

/* ************************************** */
/* การปรับปรุงสำหรับ Graphic Section */
/* ************************************** */
.graphic-section {
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* สร้างลายเส้นโค้งแบบนามธรรมตามภาพ */
.abstract-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  /* ใช้ background-image ที่ซับซ้อนขึ้นเพื่อจำลองลายเส้น */
  /* โค้ดนี้ใช้ SVG data URL เพื่อสร้างลายเส้นนามธรรม */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpath id='a' d='M0 100c40 0 60-100 100-100'/%3E%3C/defs%3E%3Cuse href='%23a' fill='none' stroke='%23f1bd6e' stroke-width='2' opacity='.3' transform='scale(2)'/%3E%3Cuse href='%23a' fill='none' stroke='%23f1bd6e' stroke-width='1' opacity='.5' transform='scale(1.5)'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% 300px;
}

/* จัดการ Responsive Layout */
@media (max-width: 768px) {
  .graphic-section {
    height: 300px; /* ปรับความสูงบนมือถือเล็กน้อย */
    border-radius: 0.5rem 0.5rem 0 0;
  }
  .logo-content {
    width: 90%;
  }
}

@media (min-width: 768px) {
  .graphic-section {
    border-radius: 0.5rem 0 0 0.5rem;
  }
}
