:root {
  --primary-color: #9C1819; /* 60% */
  --secondary-color: #1338BD; /* 30% */
  --accent-color: #007C18; /* 10% */
  --bg-color: #111111;
  --surface-color: #1a1a1a;
  --text-color: #f5f5f5;
  --text-muted: #aaaaaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Navbar */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 1rem 5%;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #b51c1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(156, 24, 25, 0.4);
}

.btn-line {
  background-color: #00B900;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-line:hover {
  background-color: #009900;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('images/hero_house.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Stats */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  background-color: var(--primary-color);
  padding: 3rem 5%;
  border-bottom: none;
}

.stat-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 1.5rem 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #111111;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Sections */
section {
  padding: 6rem 5%;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.service-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.3s;
}

.service-link:hover {
  color: var(--primary-color);
}

/* Reviews */
.reviews {
  background-color: #0a0a0a;
}

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

.review-card {
  background-color: #222222;
  padding: 2.5rem;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card::before {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

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

.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.reviewer-info h4 {
  color: var(--text-color);
}

.reviewer-info p {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

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

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-item h4 {
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-color);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* Footer */
footer {
  background-color: #0a0a0a;
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: #0a0a0a;
}

.wcu-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wcu-subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.wcu-title {
  text-align: left;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.wcu-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.wcu-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wcu-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.wcu-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(156, 24, 25, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.wcu-feature-text h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.wcu-feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.wcu-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: visible;
}

.wcu-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: 10px;
  z-index: 0;
}

.wcu-image {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  z-index: 1;
}

/* Review Marquee */
.reviews-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0 3rem 0;
  cursor: grab;
}

.reviews-marquee:active {
  cursor: grabbing;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
  gap: 2rem;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content .review-card {
  width: 400px;
  flex-shrink: 0;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); }
}

/* Our Projects Section */
.our-projects {
  background-color: var(--bg-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

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

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

.project-overlay p {
  font-size: 0.9rem;
  color: #ddd;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 5%;
  background-color: var(--surface-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-button {
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 1.5rem 0;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.accordion-button:hover, .accordion-button.active {
  color: var(--primary-color);
}

.accordion-button i {
  transition: transform 0.3s;
}

.accordion-button.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Banner Section */
.cta-banner {
  background-color: #B51C1D;
  text-align: center;
  padding: 5rem 5%;
}

.cta-banner h2 {
  color: #000000;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.cta-banner p {
  color: #000000;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.btn-cta {
  background-color: #ffffff;
  color: #B51C1D;
  padding: 1rem 3rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-cta:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 5%;
  background-color: var(--bg-color);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Page Header */
.page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-size: 3.5rem;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease-out;
}

/* Service Link */
.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.service-link:hover {
  color: var(--primary-color);
}

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.3s forwards;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-trigger {
  cursor: pointer;
}

@keyframes zoomIn {
  from {transform: translate(-50%, -50%) scale(0)}
  to {transform: translate(-50%, -50%) scale(1)}
}

/* Lightbox Navigation */
.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10000;
  border-radius: 3px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--primary-color);
  background-color: rgba(0,0,0,0.6);
}

/* Main Footer */
.main-footer {
  background-color: #111111;
  padding: 4rem 5% 0 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-icon.line { background-color: #00B900; }
.social-icon.phone { background-color: #B51C1D; }
.social-icon.facebook { background-color: #1877F2; }
.social-icon.tiktok { background-color: #000000; border: 1px solid #333333; }

.social-icon:hover {
  transform: translateY(-3px);
}

.footer-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 5px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hide project overlays as requested */
.project-overlay {
  display: none !important;
}

/* Floating Action Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.float-btn.line { background-color: #00B900; }
.float-btn.phone { background-color: #B51C1D; }
.float-btn.facebook { background-color: #1877F2; }
.float-btn.tiktok { background-color: #000000; border: 1px solid #333333; }

.float-btn:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .wcu-container { grid-template-columns: 1fr; }
  .wcu-image-wrapper { min-height: auto; margin-top: 2rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .page-header h1 { font-size: 2.5rem; }
  .contact-container { grid-template-columns: 1fr; }
  .stats-container { flex-direction: column; gap: 1rem; align-items: center; }
  .stat-item { padding: 1rem; min-width: 250px; }
  .stat-item h3 { font-size: 2rem; margin-bottom: 0.2rem; }
  .stat-item p { font-size: 0.9rem; }
  .nav-links { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .nav-links.active {
    display: flex;
  }
  .desktop-btn { display: none !important; }
  .menu-toggle { display: block; }
  .marquee-content .review-card { width: 300px; }
  .projects-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.8rem; }
  .cta-banner p { font-size: 1rem; }
}
