@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #0070f3;
  --primary-hover: #0366d6;
  --secondary-color: #ff0080;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.06);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --font-main: 'Kanit', sans-serif;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --glass-blur: blur(12px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, rgba(13, 15, 18, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.1) 0%, rgba(13, 15, 18, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header / Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #1a202c, #4a5568);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo span {
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

.contact-btn {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 128, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Offset for header */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 900px;
  background: linear-gradient(135deg, #1a202c 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeUp 1.2s ease-out;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1.4s ease-out;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 112, 243, 0.5);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Section Common */
section {
  padding: 6rem 5%;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.section-title span {
  color: var(--primary-color);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  /* Added to clip images */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 112, 243, 0.1);
}

.card-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-arrow {
  margin-top: 1.5rem;
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.card:hover .card-arrow {
  gap: 0.8rem;
}

/* Contact Section */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 4rem;
  backdrop-filter: var(--glass-blur);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: rgba(0, 112, 243, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.contact-item span {
  font-size: 1.1rem;
  font-weight: 600;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 300px;
  background: #e2e8f0;
  /* Placeholder background */
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  nav {
    display: none;
  }

  /* Add hamburger menu logic if needed, hiding for simplicity now */
}