@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;600;700&family=Noto+Serif+Thai:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap");

:root {
  /* --- LUXURY NATURE THEME --- */
  --bg-body: #fdfcf5; /* Warm Cream */
  --bg-surface: #f4f1ea;
  --bg-overlay: rgba(253, 252, 245, 0.95);

  --text-main: #2b3a28; /* Deep Forest Green */
  --text-muted: #5e6b5a;
  --text-accent: #375238;
  --text-gold: #bfa35f; /* Metallic/Antique Gold (Less Yellow) */
  --text-gold-bright: #d4af37; /* Bright Gold for highlights */

  --border-color: #e0dccc;

  --btn-primary-bg: #4a6741;
  --btn-primary-text: #ffffff;
  --btn-intro-bg: rgba(74, 103, 65, 0.1);

  --hero-overlay: none;

  /* Typography */
  --font-main: "Noto Sans Thai", sans-serif; /* Body text */
  --font-heading:
    "Noto Serif Thai", "Playfair Display", serif; /* Luxury Headings */

  --spacing-container: 1280px;
  --radius-md: 4px; /* Sharper corners for luxury */
  --radius-lg: 8px;
  --transition-fast: 0.4s ease; /* Slower, smoother transition */
}

[data-theme="dark"] {
  /* --- DARK MODE (OPTIONAL) --- */
  --bg-body: #1a252f;
  --bg-surface: #2c3e50;
  --bg-overlay: rgba(26, 37, 47, 0.95);

  --text-main: #ecf0f1;
  --text-muted: #bdc3c7;
  --text-accent: #2ecc71; /* Brighter green for dark mode */

  --border-color: #34495e;

  --btn-primary-bg: #2ecc71;
  --btn-primary-text: #1a252f;
  --hero-overlay: none;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 18px; /* Increased from 16px */
  transition:
    background-color 0.3s,
    color 0.3s;
  -webkit-font-smoothing: antialiased;
  padding-top: 150px; /* Increased offset for taller header */
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-body) !important; /* Adapt to theme */
  border-bottom: 1px solid var(--border-color) !important; /* Clean divider */
  box-shadow: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: background 0.3s;
  padding: 1.5rem 0; /* Increase header height further */
}

[data-theme="dark"] header {
  background: var(--bg-body) !important;
}

/* Global Shadow Reset */
* {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Except for specific elements if needed, but User wants NONE */
/* If buttons look too flat, maybe add border instead of shadow */
.btn-primary:hover {
  transform: translateY(-2px);
  border: 1px solid var(--text-accent); /* visual feedback without shadow */
}

.portfolio-item,
.card,
img {
  box-shadow: none !important;
  filter: none !important;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5; /* Increased from 1.3 to prevent Thai vowel clipping */
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  padding-top: 0.2em; /* Ensure top vowels are not clipped by bounding box */
}

h1 {
  font-size: 3.5rem; /* Grandiose Title */
}

h2 {
  font-size: 2.5rem;
  color: var(--text-accent);
  position: relative;
  display: inline-block;
}

/* Luxury Underline Detail for H2 */
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--text-gold);
  margin: 10px auto 0;
}

.text-muted {
  color: var(--text-muted);
  font-weight: 300; /* Lighter weight for elegance */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 35px; /* Generous padding */
  border-radius: 2px; /* Slight roundness but mostly sharp */
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: none;
}

.btn-primary:hover {
  background: #3e5636; /* Darker Green */
  color: #ffffff; /* Ensure text remains readable */
  transform: translateY(-2px);
  border-color: var(--text-gold); /* subtle gold hint */
}

.btn-outline {
  background: transparent;
  color: #fff; /* White base text for contrast on dark */
  border: 1px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #2b3a28; /* Force dark text for contrast against white bg */
  transform: translateY(-2px);
  border-color: #fff;
}

.card {
  background: var(--bg-surface);
  border: 1px solid rgba(191, 163, 95, 0.2); /* Very subtle gold border */
  padding: 3rem 2rem; /* More breathing room */
  border-radius: var(--radius-md);
  transition: all 0.5s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--text-gold);
  background: #ffffff;
  /* Fix readability: Enforce dark text on white background */
  --bg-body: #fdfcf5;
  --text-main: #2b3a28;
  --text-muted: #5e6b5a;
  --text-accent: #375238;
  color: var(--text-main);
}

/* Navigation */
.nav-wrapper {
  display: flex;
  box-pack: justify;
  justify-content: space-between;
  align-items: center;
  height: 90px; /* Grand header */
}

.logo img {
  height: 48px; /* Slightly larger logo */
}

.nav-links {
  display: flex;
  gap: 2.5rem; /* More space between items */
  align-items: center;
}

.nav-links a {
  font-size: 1.2rem; /* Distinctly larger menu text */
  font-weight: 600; /* Bolder for visibility */
}

.nav-links a:hover {
  color: var(--text-accent);
}

/* Language & Theme Switcher */
.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-switch a {
  font-size: 0.9rem;
  opacity: 0.6;
}

.lang-switch a.active {
  opacity: 1;
  color: var(--text-accent);
  font-weight: bold;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Stronger uniform overlay */
  z-index: 0;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent box */
  backdrop-filter: blur(8px); /* Blur the image behind text */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle luxury border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Override specific colors in Hero for maximum contrast */
.hero-content h1 {
  color: #ffffff;
}

.hero-content span {
  color: #a3d9a5 !important; /* Lighter green that pops on dark overlay */
}

.hero-content p {
  color: #e0e0e0 !important; /* Light gray for readability */
}

/* Services Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* About Grid - 40/60 split for better readability */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 2fr 3fr; /* Give text more space (40% Image - 60% Text) */
    gap: 4rem;
  }
}
/* Ensure ALL shadows are gone */
* {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Portfolio */
.portfolio-grid {
  columns: 3 300px;
  gap: 1.5rem;
}

.portfolio-item {
  margin-bottom: 1.5rem;
  break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Form */
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.active {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Responsive Typography */
  h1 {
    font-size: 2.2rem; /* Adjusted for mobile readability */
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }
}
/* Flag Icons - Maximized Full Bar */
.flag-icon {
  height: 64px !important; /* Huge size to fill bar */
  width: auto !important;
  min-width: 80px; /* Force width if auto fails */
  object-fit: contain; /* Ensure full flag is visible */
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.2s;
  margin: 0 6px;
  display: inline-block; /* Ensure strict box model */
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-switch a:hover .flag-icon, 
.lang-switch .active .flag-icon {
  transform: scale(1.1);
  border: 2px solid var(--text-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
