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

/* CSS Variables for Premium Design System */
:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f4efea;
  --bg-white: #ffffff;
  
  --accent-wood: #8e5a36;
  --accent-wood-hover: #724525;
  --accent-wood-light: #dfd5c6;
  --accent-wood-tint: rgba(142, 90, 54, 0.08);
  
  --text-dark: #2c2520;
  --text-muted: #6c625b;
  --text-light: #faf8f5;
  
  --border-color: #e8e2da;
  --shadow-sm: 0 2px 4px rgba(44, 37, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 37, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 37, 32, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

/* Common Layout & Section Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-wood);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-wood);
  border-radius: 2px;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-wood);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-wood-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 90, 54, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--accent-wood);
}

.btn-secondary:hover {
  background-color: var(--accent-wood-tint);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background-color: rgba(250, 248, 245, 0.95);
}

.header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-wood);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* Hamburger Animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
  background-color: #1a1613; /* Fallback */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(44, 37, 32, 0.5), rgba(44, 37, 32, 0.7)), url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(250, 248, 245, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(250, 248, 245, 0.15);
}

/* About Us Section */
.about {
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-wood);
  border-radius: 50%;
}

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

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image img {
  transform: scale(1.03);
}

/* Decorative background behind about image */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
}

/* Services Section */
.services {
  background-color: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-wood);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--accent-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--accent-wood);
  color: var(--bg-primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-wood);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link span {
  transition: var(--transition-fast);
}

.service-card:hover .service-link span {
  transform: translateX(4px);
}

/* Portfolio Section */
.portfolio {
  background-color: var(--bg-primary);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background-color: var(--bg-white);
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-wood);
  color: var(--text-light);
  border-color: var(--accent-wood);
  box-shadow: 0 4px 12px rgba(142, 90, 54, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-white);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  /* For filter transition */
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

/* Hiding class with smooth transition variables */
.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  visibility: hidden;
  pointer-events: none;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(44, 37, 32, 0.85) 0%, rgba(44, 37, 32, 0.2) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-wood-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.portfolio-title {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Contact & Info Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--accent-wood);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-line;
}

.contact-actions {
  display: flex;
}

.contact-map-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  height: 100%;
  min-height: 350px;
  display: flex;
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  flex-grow: 1;
}

/* Footer Styles */
.footer {
  background-color: #241d19;
  color: rgba(250, 248, 245, 0.7);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(250, 248, 245, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(250, 248, 245, 0.08);
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--accent-wood);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(250, 248, 245, 0.05);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--accent-wood);
  transform: translateY(-3px);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(250, 248, 245, 0.5);
}

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

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

/* Lightbox Modal Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 22, 19, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 85%;
  max-height: 80vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox.open .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-secondary);
}

.lightbox-caption {
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -4px;
  width: 36px;
  height: 36px;
  color: rgba(250, 248, 245, 0.8);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Media Queries for Responsiveness */

/* Tablets and small screens */
@media (max-width: 992px) {
  section {
    padding: 6rem 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-image-wrapper {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .about-image img {
    height: 400px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-map-card {
    min-height: 300px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Mobile Navigation Menu */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(44, 37, 32, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Extra Small Devices (Smartphones) */
@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .about-image img {
    height: 280px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .lightbox-content-wrapper {
    max-width: 95%;
  }
  
  .lightbox-close {
    top: -45px;
    right: 0;
  }
}
