:root {
  --terracotta: #B85C38;
  --terracotta-hover: #9A4A2D;
  --clay-light: #D4A574;
  --charcoal: #2D2926;
  --cream: #FBF8F4;
  --earthen: #8B6F5C;
  --shadow: rgba(45, 41, 38, 0.12);
  --text-primary: #2D2926;
  --text-secondary: #6E6259;
  --bg-primary: #FBF8F4;
  --bg-secondary: #F0E8DF;
  --bg-tertiary: #E5DBD0;
}

.dark {
  --terracotta: #D4856A;
  --terracotta-hover: #E0A088;
  --clay-light: #9E7B5A;
  --charcoal: #F5F0EC;
  --cream: #1A1816;
  --earthen: #C4A882;
  --shadow: rgba(0, 0, 0, 0.35);
  --text-primary: #F5F0EC;
  --text-secondary: #A89F99;
  --bg-primary: #1A1816;
  --bg-secondary: #262220;
  --bg-tertiary: #302C29;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

/* Texture overlay */
.texture-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: -1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--bg-primary) 60%, transparent);
  transition: all 0.4s ease;
}

nav.scrolled {
  background: var(--bg-primary);
  box-shadow: 0 2px 20px var(--shadow);
  padding: 1rem 3rem;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  opacity: 0.06;
  z-index: 0;
}

.hero-bg-shape.one {
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 60% 40% 50% 50%;
  background: var(--terracotta);
  animation: morph 15s ease-in-out infinite;
}

.hero-bg-shape.two {
  bottom: 5%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 40% 60% 55% 45%;
  background: var(--clay-light);
  animation: morph 12s ease-in-out infinite reverse;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 50% 50%; }
  25% { border-radius: 50% 50% 40% 60%; }
  50% { border-radius: 40% 60% 60% 40%; }
  75% { border-radius: 55% 45% 50% 50%; }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  filter: invert(1);
}

.dark .hero-logo {
  filter: invert(0);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 92, 56, 0.25);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* Section styling */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header .line {
  width: 50px;
  height: 2px;
  background: var(--terracotta);
  margin: 0 auto;
}

/* What I Make Section */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-image {
  width: calc(100% + 4rem);
  margin: -2.5rem -2rem 1.5rem -2rem;
  min-height: 180px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-card-image img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  border-radius: 6px;
}

.service-card:hover .service-card-image img {
  transform: scale(1.03);
}

.service-card-image.placeholder {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  min-height: 140px;
  padding: 0;
}

.service-card-image.placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  stroke: var(--text-secondary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-card .audience {
  font-size: 0.8rem;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-primary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg-secondary);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* About Section */
.about-section {
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

.about-image-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.about-image-main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.about-image-main::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--terracotta);
  border-radius: 12px;
  z-index: -1;
}

.about-image-secondary {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.about-image-secondary img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text h2 em {
  color: var(--terracotta);
  font-style: italic;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background: var(--charcoal);
  color: var(--cream);
}

.dark .contact-section {
  background: var(--bg-secondary);
}

.contact-section .section-header h2 {
  color: var(--cream);
}

.dark .contact-section .section-header h2 {
  color: var(--text-primary);
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--clay-light);
}

.dark .form-group label {
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
  background: var(--bg-tertiary);
  border-color: var(--earthen);
  color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dark .form-group input::placeholder,
.dark .form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.12);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4A574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--cream);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.dark .form-hint {
  color: var(--text-secondary);
}

.file-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input:hover {
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.12);
}

.file-input::file-selector-button {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: background 0.3s ease;
}

.file-input::file-selector-button:hover {
  background: var(--terracotta-hover);
}

.dark .file-input {
  background: var(--bg-tertiary);
  border-color: var(--earthen);
}

.submit-btn {
  width: 100%;
  padding: 1.15rem 2rem;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 3rem;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  stroke: var(--terracotta);
  margin-bottom: 1.5rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.dark .form-success h3 {
  color: var(--text-primary);
}

.form-success p {
  color: var(--clay-light);
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: var(--bg-primary);
}

footer a {
  color: var(--terracotta);
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px var(--shadow);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
  }
}
