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

:root {
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-accent: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.font-display {
  font-family: "Poppins", sans-serif;
}

.text-balance {
  text-wrap: balance;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.markdown-body {
  color: #404040;
  font-size: 1.125rem;
  line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 4rem 0 2rem;
  color: #000000;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.markdown-body h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.markdown-body h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

.markdown-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0 0 2rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
}

.markdown-body li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.markdown-body strong {
  color: #000000;
  font-weight: 600;
}

.markdown-body blockquote {
  margin: 3rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
  border-left: 4px solid #000000;
  color: #737373;
  font-style: italic;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

[data-animate] {
  opacity: 0;
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}

[data-animate="fade-up"] {
  transform: translateY(8px);
}

[data-animate="fade-left"] {
  transform: translateX(-10px);
}

[data-animate="fade-right"] {
  transform: translateX(10px);
}

[data-animate="zoom-in"] {
  transform: scale(0.985);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.mobile-menu.is-open {
  max-height: 32rem;
  opacity: 1;
}

.project-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-panel {
  transform: scale(0.99);
  transition: transform 0.18s ease-out;
}

.project-modal.is-open .project-modal-panel {
  transform: scale(1);
}

.underline-grow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
}

.whatsapp-label {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.2s ease-out, margin 0.2s ease-out;
  white-space: nowrap;
}

.whatsapp-fab:hover .whatsapp-label {
  max-width: 10rem;
  margin-left: 0.5rem;
}

.floating-line {
  animation: floating-line 1.2s infinite ease-out;
}

@keyframes floating-line {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 4px);
  }
}
