/* ฟอนต์ Scroll Smooth */
body {
    margin: 0;
    font-family: 'Sarabun', sans-serif;
    background-color: #f2f4f8;
    color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background-color: #002B45;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box; 
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
    }

    .navbar .logo {
      font-weight: bold;
      font-size: 24px;
      letter-spacing: 1px;
    }

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.menu a:hover {
  transform: translateY(-3px);
}

.logo img {
  height: 40px;
}

.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.navbar {
  transition: transform 0.3s ease-in-out;
}

:root {
  --hero-img: url("../Projects/img/background/LINE_NOTE_250714_1.webp");
  --gold-1: #fbbf24;
  --gold-2: #f59e0b;
  --overlay-dark: rgba(0,0,0,0.28);
  --overlay-deep: rgba(0,0,0,0.50);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--overlay-dark), var(--overlay-deep)),
    var(--hero-img) center/cover no-repeat;
  z-index: -2;
  transform: scale(1.05);
  filter: brightness(1.08) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(600px 500px at 70% 20%, rgba(251,191,36,0.25), transparent 70%);
  mix-blend-mode: screen;
  animation: glowMove 14s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes glowMove {
  0% { transform: translateY(0); opacity:.65;}
  100% { transform: translateY(-15px); opacity:1;}
}

.overlay {
  text-align: center;
  padding-inline: 1.5rem;
}

.hero-text {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes fadeInUp {
  to { opacity:1; transform: translateY(0); }
}

.hero-text h1 {
  margin: 0 0 .7rem;
  font-size: clamp(28px, 5vw, 52px);  
  font-weight: 600;              
  line-height: 1.3;                   
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 12px rgba(251,191,36,0.25);
}

.hero-text h2 {
  margin: 0 0 2rem;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;   
  color: #f5f5f5;
  opacity: .9;
  line-height: 1.6;
}

.btn-link {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(14px, 2vw, 18px);
  color: #111;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 20px rgba(251,191,36,0.6);
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

.btn-link::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite;
  z-index: -1;
}

/* Animation แสงไหล */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Animation เรืองแสงเต้น ๆ */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 12px rgba(251,191,36,0.5); }
  100% { box-shadow: 0 0 28px rgba(251,191,36,0.9); }
}

/* Responsive */
@media (max-width: 600px) {
  .hero-text h1 { font-size: clamp(5px, 7vw, 36px); }
  .hero-text h2 { font-size: clamp(14px, 4vw, 20px); }
}

@media (max-width:600px){
  :root{
    --overlay-dark: rgba(0,0,0,0.34);
    --overlay-deep: rgba(0,0,0,0.56);
  }
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-image: url('../Projects/img/background/stylish-scandinavian-living-room-with-design-mint-sofa-furnitures-mock-up-poster-map-plants-eleg.webp'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  isolation: isolate;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.4); 
  z-index: -1;
}

.about-text-center {
  max-width: 800px;
  z-index: 1;
}

.about-subtitle {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

.about-title {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-description {
  font-size: 16px;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.feature {
  width: 120px;
  text-align: center;
}

.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.feature h5 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 5px;
}

.feature p {
  font-size: 13px;
  color: #ccc;
}

.about-btn {
  background-color: #ffffff;
  color: #002B45;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.about-btn:hover {
  background-color: #dddddd;
}

/* ✅ Responsive สำหรับ Tablet (iPad) */
@media (max-width: 1024px) {
  .about-title {
    font-size: 28px;
  }
  .about-subtitle {
    font-size: 16px;
  }
  .about-description {
    font-size: 15px;
  }
  .feature {
    width: 100px;
  }
  .feature h5 {
    font-size: 13px;
  }
  .feature p {
    font-size: 12px;
  }
}

/* ✅ Responsive สำหรับ Mobile */
@media (max-width: 768px) {
  .about-section {
    padding: 50px 15px;
  }
  .about-title {
    font-size: 22px;
    line-height: 1.4;
  }
  .about-subtitle {
    font-size: 14px;
  }
  .about-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
  }
  .about-features {
    gap: 20px;
  }
  .feature {
    width: 100px;
  }
  .feature img {
    width: 32px;
    height: 32px;
  }
  .feature h5 {
    font-size: 12px;
  }
  .feature p {
    font-size: 11px;
  }
  .about-btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}


/* card-container */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-top: 80px;
  margin-bottom: 30px;
  color: #002B45;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ลิงก์ที่ครอบการ์ดทั้งใบ */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 31%; 
  transition: transform 0.3s ease;
}
.card-container h1{
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  line-height: 1.5;
}
.card-link:hover .card {
  transform: translateY(-5px);
}

/* กรอบการ์ด */
.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-content .title {
  font-size: 20px;
  font-weight: bold;
  color: #002B45;
}

.card-content .subtitle {
  font-size: 16px;
  color: #666;
}

.card-content .info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  font-size: 14px;
  color: #555;
  justify-content: start
}

.card-content .info > div {
  flex: 0 0 auto;
}

.card-content .price {
  font-size: 18px;
  font-weight: bold;
  color: #007B8A;
  margin-top: 10px;
}

.card-content .details-link {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background-color: #002B45;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.card-content .details-link:hover {
  background-color: #003f66;
}

/* ---------- Responsive ---------- */

/* Tablet: 2 แถว */
@media (max-width: 1024px) {
  .card-link {
    max-width: 45%;
  }
}

/* Mobile: 1 แถว */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card-link {
    max-width: 100%;
  }
}

.card-container-link {
  display: block;
  width: fit-content;
  margin: 30px auto;
  padding: 12px 30px;
  background-color: #002B45;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card-container-link:hover {
  background-color: #004d70;
  transform: translateY(-2px);
}

/* process-section */
.process-section {
  text-align: center;
  padding: 50px 20px;
  max-width: 1100px;
  margin: auto;
}

.header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.header p {
  color: #888;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.header a {
  color: #5d6fd3;
  text-decoration: none;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.step {
  width: 20%;
  min-width: 200px;
  text-align: center;
  margin-bottom: 30px;
}

.step img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.step h2 {
  font-size: 20px;
  color: #5d6fd3;
  margin: 10px 0;
}

.step .title {
  font-size: 16px;
  color: #888;
  line-height: 1.4;
}

.divider {
  width: 2px;
  height: 60px;
  background-color: #e0e0e0;
  margin: 0 10px;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
    max-width: 300px; 
  }

  .divider {
    display: none; 
  }

  .header h1 {
    font-size: 24px;
  }

  .header p {
    font-size: 16px;
  }

  .step img {
    width: 60px;
    height: 60px;
  }

  .step h2 {
    font-size: 18px;
  }

  .step .title {
    font-size: 14px;
  }
}


/* service-section */
.service-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  line-height: 1.5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-box {
  text-align: left;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 50px;
  margin-bottom: 15px;
}

.service-box h3 {
  color: #002B45;
  font-size: 20px;
  margin: 10px 0;
}

.service-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

/* Responsive */
@media (max-width: 768px){
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-box {
    text-align: center;
  }

  .service-box p {
    text-align: justify;
  }
}

  /* form */
.form-section {
    background-image: url('../Projects/img/background/unnamed1010.webp'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.form-box {
  background: white;
  max-width: 800px;
  width: 100%;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(1, 10, 56, 0.1);
}

.form-box h2 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
  color: #002B45;
}

.form-box p {
  text-align: center;
  color: #444;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #002B45;
  background: #fff;
}

.inline-input {
  display: flex;
  align-items: center;
}

.inline-input input {
  flex: 1;
}

.inline-input span {
  padding: 10px 15px;
  background: #eee;
  border-radius: 0 8px 8px 0;
  margin-left: -10px;
  font-size: 14px;
  color: #555;
}

.form-group.full {
  grid-column: 1 / 3;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-top: 10px;
}

.form-group.checkbox input[type="checkbox"] {
  margin-top: 5px;
}

.form-group.checkbox a {
  color: #002B45;
  text-decoration: underline;
}

.submit-btn {
  background-color: #002B45;
  color: #fff;
  font-size: 16px;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  font-weight: 600;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #00395e;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: 1 / 2;
  }
}


/* Footer */
.rrc-footer {
  background-color: #002B45;
  color: #ffffff;
  font-family: 'Sarabun', sans-serif;
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  border-bottom: 1px solid #ffffff33;
  padding: 10px 0;
}

.footer-column {
  padding: 0 15px;
  border-right: 1px solid #ffffff33;
}

.footer-column:last-child {
  border-right: none;
}

.footer-column h4 {
  font-size: 18px;
  color: #ffffffcc;
  margin-bottom: 15px;
  
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffffcc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #fdb913;
}

.footer-column.contact p {
  margin: 5px 0;
  font-size: 14px;
  color: #ffffffcc;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.social-icons a:hover img {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #ffffff99;
  margin-top: 0px;
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    border: none;
    gap: 50px;
  }

  .footer-column {
    border-right: none;
    border-bottom: 1px solid #ffffff22;
    padding-bottom: 20px;
  }

  .footer-column:last-child {
    border-bottom: none;
  }
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animation when active */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive - menu collapse */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #002B45;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    gap: 15px;
    display: none;
  }
  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

