/* GLOBAL VARIABLES & DESIGN SYSTEM */
:root {
  /* Colors */
  --color-sand: #F7F5F0;
  --color-offwhite: #FAFAFA;
  --color-sage: #8FA89B;
  --color-terra: #C89B88;
  --color-dark: #2D3748;
  --color-text: #4A5568;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 500;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
}

/* UTILITY CLASSES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

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

.btn-primary:hover {
  background-color: #7b9487;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(143, 168, 155, 0.2);
}

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

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

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
}

/* FOOTER */
.footer {
  background-color: var(--color-sand);
  padding: 80px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-desc {
  max-width: 300px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-social a {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--color-sage);
}

.footer-social i {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: #718096;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(247, 245, 240, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-btn-secondary {
  border-color: var(--color-dark);
  background-color: transparent;
}

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

/* SECTION GLOBALS */
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--color-dark);
}

.section-subtitle {
  color: var(--color-text);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

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

.mt-30 {
  margin-top: 30px;
}

/* ABOUT SECTION */
.about {
  background-color: var(--color-white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--color-sand);
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.about-text {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* PROJECTS SECTION */
.projects {
  background-color: var(--color-offwhite);
}

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

.project-card {
  cursor: pointer;
}

.project-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-info p {
  color: #718096;
  font-size: 0.9rem;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--color-white);
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 2fr;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--color-dark);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-text h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* SERVICES SECTION */
.services {
  background-color: var(--color-white);
}

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

.service-card {
  padding: 40px;
  background-color: var(--color-offwhite);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--color-sage);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* PROCESS SECTION */
.process {
  background-color: var(--color-sand);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 35px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--color-sage);
  opacity: 0.3;
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-sage);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.process-step h4 {
  font-size: 1.15rem;
}

/* TESTIMONIALS SECTION */
.testimonials {
  background-color: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--color-sand);
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

.quote-icon {
  width: 40px;
  height: 40px;
  color: var(--color-terra);
  margin-bottom: 20px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--color-text);
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-dark);
}

/* CONTACT SECTION */
.contact {
  background-color: var(--color-offwhite);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--color-dark);
}

.contact-method i {
  color: var(--color-sage);
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(143, 168, 155, 0.2);
}

.form-btn {
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo-subtitle {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-img {
    aspect-ratio: 16/9;
  }

  .process-step::after {
    display: none;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}