/* HHUDDL.com - Terrarium Glassmorphism Design */
/* Colors: #2B2420, #7A8B6F, #8A7E72, #3E3228, #C4A35A, #F4EDE4, #F0EBE3, #A0785A */
/* Fonts: Space Grotesk, Inter, DM Mono */

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

:root {
  --color-deep-earth: #2B2420;
  --color-sage: #7A8B6F;
  --color-stone: #8A7E72;
  --color-bark: #3E3228;
  --color-amber: #C4A35A;
  --color-parchment: #F4EDE4;
  --color-frost: #F0EBE3;
  --color-copper: #A0785A;
  --color-walnut: #5C4033;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-deep-earth);
  color: var(--color-parchment);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ===== LEFT PANEL ===== */
.left-panel {
  width: 38%;
  min-width: 320px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.geometric-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 36, 32, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1;
  border-right: 1px solid rgba(196, 163, 90, 0.15);
}

.left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.5rem 2rem;
  justify-content: space-between;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-parchment);
}

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 3rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  color: var(--color-stone);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.4s ease, transform 0.3s ease;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--color-parchment);
  transform: translateX(4px);
}

.nav-link.active {
  color: var(--color-amber);
}

.nav-indicator {
  width: 20px;
  height: 2px;
  background: var(--color-stone);
  transition: width 0.4s ease, background 0.4s ease;
  border-radius: 1px;
}

.nav-link.active .nav-indicator {
  width: 32px;
  background: var(--color-amber);
}

.nav-link:hover .nav-indicator {
  width: 28px;
  background: var(--color-parchment);
}

/* Sidebar Botanical */
.sidebar-botanical {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.botanical-fern {
  width: 120px;
  height: auto;
  transition: transform 8s ease-in-out;
}

/* Sidebar Chapter */
.sidebar-chapter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.chapter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chapter-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-amber);
  opacity: 0.3;
  transition: opacity 0.6s ease;
  letter-spacing: -0.02em;
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 126, 114, 0.2);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-stone);
  letter-spacing: 0.05em;
}

.ambient-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ===== RIGHT PANEL ===== */
.right-panel {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 163, 90, 0.3) transparent;
}

.right-panel::-webkit-scrollbar {
  width: 4px;
}

.right-panel::-webkit-scrollbar-track {
  background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
  background: rgba(196, 163, 90, 0.3);
  border-radius: 2px;
}

/* ===== SECTIONS ===== */
.section {
  min-height: 100vh;
  padding: 5rem 4rem;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(196, 163, 90, 0.4), transparent);
}

/* ===== TYPOGRAPHY ===== */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-parchment);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--color-amber);
}

.body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-stone);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(62, 50, 40, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 163, 90, 0.12);
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card[data-hover='scale']:hover {
  transform: scale(1.03);
  border-color: rgba(196, 163, 90, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== HERO SECTION ===== */
.section-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 6rem;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-tag {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-parchment);
  margin-bottom: 1.5rem;
}

.title-accent {
  color: var(--color-amber);
  display: block;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-stone);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crystal-formation {
  width: 100%;
  max-width: 320px;
  animation: crystal-float 8s ease-in-out infinite;
}

@keyframes crystal-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fade-scroll 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-amber));
}

@keyframes fade-scroll {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: scale(1.04);
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-deep-earth);
  box-shadow: 0 4px 20px rgba(196, 163, 90, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(196, 163, 90, 0.45);
  background: #d4b36a;
}

.btn-ghost {
  background: transparent;
  color: var(--color-parchment);
  border: 1px solid rgba(244, 237, 228, 0.25);
}

.btn-ghost:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.terrarium-card {
  padding: 2rem;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terrarium-inner {
  width: 100%;
  max-width: 280px;
}

.monstera-svg {
  width: 100%;
  height: auto;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-amber);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  padding: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-stone);
  margin-bottom: 1rem;
}

.service-tag {
  color: var(--color-copper);
}

/* ===== WORK SECTION ===== */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
}

.work-thumbnail {
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}

.work-thumbnail svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.work-card:hover .work-thumbnail svg {
  transform: scale(1.05);
}

.work-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.02em;
}

.work-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-stone);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  max-width: 100%;
}

.contact-intro {
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrapper {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  color: var(--color-copper);
  font-size: 0.7rem;
}

.form-input {
  background: rgba(43, 36, 32, 0.6);
  border: 1px solid rgba(138, 126, 114, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-parchment);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(138, 126, 114, 0.5);
}

.form-input:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-parchment);
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
}

/* Use walnut color for footer and dividers */
.footer-line {
  height: 1px;
  background: linear-gradient(to right, #5C4033, transparent);
  margin-bottom: 1.5rem;
}

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

/* ===== PARTICLE OVERLAY ===== */
.particle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
}

/* ===== ANIMATIONS FOR SECTIONS ===== */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .split-layout {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    min-width: auto;
    height: auto;
    padding: 0;
  }

  .left-content {
    padding: 1.5rem;
    flex-direction: row;
    align-items: center;
    height: auto;
  }

  .sidebar-botanical,
  .sidebar-chapter {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    margin-top: 0;
    gap: 0;
  }

  .nav-indicator {
    display: none;
  }

  .right-panel {
    height: calc(100vh - 80px);
  }

  .section {
    padding: 3rem 2rem;
  }

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

  .section-hero {
    flex-direction: column;
  }

  .hero-visual {
    flex: 0 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-thumbnail {
    border-radius: 16px 16px 0 0;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2rem 1.25rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }
}
