:root {
  --forest: #2C4A34;
  --forest-deep: #1A2E20;
  --sand: #F5F0E8;
  --sand-light: #FAF8F4;
  --terracotta: #C4694A;
  --terracotta-hover: #B35A3C;
  --clay: #8B6F5C;
  --stone: #6B6B6B;
  --mist: #E8E2D8;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  background: var(--sand-light);
  color: var(--forest-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--mist);
}

.nav-backdrop {
  display: none;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links a {
  text-decoration: none;
  color: var(--stone);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.8rem !important;
  transition: background 0.3s ease !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--forest-deep) !important; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--sand-light) 0%, var(--sand) 50%, var(--mist) 100%);
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, var(--forest) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--forest) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.08;
  color: var(--forest-deep);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-text h1 span {
  color: var(--terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--stone);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 105, 74, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: 1.5px solid var(--mist);
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(26, 46, 32, 0.15);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(26, 46, 32, 0.6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='500'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%232C4A34'/%3E%3Cstop offset='100%25' stop-color='%231A2E20'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='400' height='500'/%3E%3Ccircle cx='320' cy='80' r='50' fill='%23C4694A' opacity='0.3'/%3E%3Cpath d='M0 350 Q100 280 200 320 T400 300 L400 500 L0 500Z' fill='%23F5F0E8' opacity='0.08'/%3E%3Cpath d='M0 400 Q150 360 250 380 T400 350 L400 500 L0 500Z' fill='%23F5F0E8' opacity='0.05'/%3E%3C/svg%3E");
  background-size: cover;
}

.hero-image-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: var(--white);
}

.hero-image-text .location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-image-text .status {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
}

.floating-badge {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  background: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: float 4s ease-in-out infinite;
}

.floating-badge .icon {
  width: 36px;
  height: 36px;
  background: var(--sand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge .text {
  font-size: 0.8rem;
  color: var(--stone);
}

.floating-badge .text strong {
  display: block;
  color: var(--forest-deep);
  font-size: 0.95rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats-bar {
  background: var(--forest);
  padding: 3.5rem 3rem;
}

.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section { padding: 7rem 3rem; }

.section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--forest-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 600px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--stone);
  font-weight: 300;
  margin-top: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.about { background: var(--white); }

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 5/4;
  background: url('images/cat_nomad_wt_coffee.jpg') center/cover no-repeat;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, var(--terracotta) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, var(--forest) 0%, transparent 50%);
  opacity: 0.12;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--stone);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.about-text p strong {
  color: var(--forest-deep);
  font-weight: 500;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tech-tag {
  background: var(--sand);
  color: var(--forest);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.services { background: var(--sand-light); }

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--mist);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--sand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--forest-deep);
  margin-bottom: 0.85rem;
}

.service-card p {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.portfolio { background: var(--white); }

.portfolio-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.portfolio-image {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color-1, rgba(44,74,52,0.5)), var(--card-color-2, rgba(26,46,32,0.5)));
  z-index: 1;
}

.portfolio-card:hover .portfolio-image { transform: scale(1.02); }

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 46, 32, 0.7) 100%);
  z-index: 2;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--white);
  z-index: 2;
}

.portfolio-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.portfolio-overlay h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
}

.portfolio-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.3s ease;
  z-index: 3;
}

.portfolio-card:hover .portfolio-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.testimonials {
  background: var(--forest-deep);
  color: var(--white);
}

.testimonials .section-label { color: var(--terracotta); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.6); }

.testimonials-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  opacity: 0.6;
}

.cta {
  background: var(--sand);
  text-align: center;
}

.cta-content { max-width: 700px; margin: 0 auto; }

.cta .section-header { margin-bottom: 2.5rem; }
.cta .section-title { max-width: 100%; margin: 0 auto; }
.cta .section-subtitle { max-width: 100%; margin: 1rem auto 0; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.cta-email {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--stone);
}

.cta-email a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
}

.cta-email a:hover { text-decoration: underline; }

footer {
  background: var(--forest-deep);
  color: var(--white);
  padding: 2rem 3rem;
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  opacity: 0.5;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
  .hero-image-frame { max-width: 320px; margin: 0 auto; }
  .about-content { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    width: 100%;
    order: 3;
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0 0.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--mist);
    background: var(--sand-light);
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideDown 0.3s ease forwards;
  }

  @keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 46, 32, 0.35);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-links a {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0;
  }

  .nav-links a::after {
    bottom: -2px;
    height: 2px;
  }

  .nav-cta {
    margin-top: 1rem;
    padding: 0.9rem 2rem;
    font-size: 1rem !important;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 0.06em !important;
  }

  .section { padding: 4rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cta-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
