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

:root {
  --color-primary: #234B3A; /* Dark Green */
  --color-secondary: #C46A3A; /* Terracotta */
  --color-bg: #F6F2EA; /* Cream */
  --color-accent: #A6B89A; /* Sage Green */
  --color-text: #2D2D2D; /* Dark Grey */
  --color-white: #FFFFFF;
  
  --font-main: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #a8562d; /* Darker orange */
}

.btn-outline:hover {
  color: var(--color-white);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  padding: 2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(246, 242, 234, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav Actions & Language Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.5);
  padding: 0.25rem;
  border-radius: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.hero-subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}



.hero-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: -1;
  top: -100px;
  right: -100px;
}

/* Services / Features */
.services {
  padding: 8rem 0;
  background-color: var(--color-bg); /* Use main cream bg */
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; /* Reduce gap slightly */
}

.service-card {
  padding: 3rem 2rem;
  background-color: var(--color-white); /* White cards on cream bg */
  border-radius: 24px; /* More rounded */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Soft shadow */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(35, 75, 58, 0.05); /* Very subtle green border */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(35, 75, 58, 0.08);
  border-color: rgba(35, 75, 58, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg);
  border-radius: 16px; /* Soft square instead of circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Contact / CTA */
.cta {
  padding: 8rem 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  color: var(--color-white);
}

.cta-shape {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--color-secondary);
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.15;
  z-index: 0;
  bottom: -250px;
  left: -250px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  background-color: #1A392C; /* Even darker green */
  padding: 4rem 0 2rem;
  color: var(--color-bg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
  color: rgba(246, 242, 234, 0.7);
}

.footer-info a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-info a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 242, 234, 0.1);
  color: rgba(246, 242, 234, 0.5);
  font-size: 0.875rem;
}

/* Portfolio Page Specifics */
.portfolio-header {
  padding: 10rem 0 5rem;
  background-color: var(--color-bg);
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly smaller min-width for better aspect ratio */
  gap: 2rem;
  padding: 5rem 0;
  background: var(--color-white);
}

.portfolio-item {
  height: 350px;
  background-color: #E2DDD3;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-size: cover; /* Fallback */
  background-position: center;
}

/* Ensure images fit nicely without cropping */
.portfolio-item[style*="background-image"] {
  background-color: #E2DDD3;
  background-size: contain; /* Prevents cropping */
  background-repeat: no-repeat;
}

/* Remove the placeholder text since we have images now */
.portfolio-item::after {
  content: '';
  display: none;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 75, 58, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: var(--color-white);
  margin-bottom: 0;
}

.portfolio-overlay p {
  color: var(--color-accent);
  margin-bottom: 0;
}

/* Mobile Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1000;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  transition: var(--transition-smooth);
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-wrapper {
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.close-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .close-menu-btn {
    display: block;
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
  }
  
  .lang-switcher {
    margin-top: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
}
