/* Custom CSS Design System & Compiled Tailwind Styles for Cecilia Acevedo Website */

/* Reset & Base Preflight */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

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

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: 'Space Grotesk', monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
}

button, select {
  text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

[role="button"], button {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Theme Design Tokens */
:root {
  --color-primary: #ffb4a5;
  --color-primary-container: #ff5637;
  --color-surface: #131313;
  --color-surface-dim: #131313;
  --color-surface-container: #201f1f;
  --color-surface-container-high: #2a2a2a;
  --color-surface-container-highest: #353534;
  --color-on-surface: #e5e2e1;
  --color-on-surface-variant: #e9bcb3;
  --color-background: #131313;
  --color-outline: #b0877f;
  --color-outline-variant: #5f3f38;
  --color-error: #ffb4ab;

  --font-headline-md: 'Be Vietnam Pro', sans-serif;
  --font-headline-lg: 'Be Vietnam Pro', sans-serif;
  --font-body-lg: 'Inter', sans-serif;
  --font-body-md: 'Inter', sans-serif;
  --font-label-sm: 'Space Grotesk', sans-serif;
  --font-mono-data: 'Space Grotesk', monospace;

  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --container-max: 1440px;
}

/* Base Styles */
::selection {
  background-color: var(--color-primary-container);
  color: #ffffff;
}

body {
  background-color: var(--color-background);
  color: var(--color-on-surface);
  overflow-x: hidden;
}

/* Custom Utilities from original <style> */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.grayscale-hover:hover {
  filter: grayscale(0%);
}

.pulse {
  animation: pulse-animation 2s infinite;
  will-change: transform, opacity;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-hide::-webkit-scrollbar {
  display: none;
}

.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#works-carousel {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Layout & Container Classes */
.container { width: 100%; }
.max-w-container-max { max-width: var(--container-max); }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Positioning */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-inset-4 { top: -1rem; right: -1rem; bottom: -1rem; left: -1rem; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.top-full { top: 100%; }
.right-6 { right: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-12 { bottom: 3rem; }
.left-0 { left: 0; }
.left-8 { left: 2rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Display & Flexbox/Grid */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.order-1 { order: 1; }
.order-2 { order: 2; }

.shrink-0 { flex-shrink: 0; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-24 { width: 6rem; }
.w-\[85vw\] { width: 85vw; }

.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-[1px] { height: 1px; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

.min-w-\[220px\] { min-width: 220px; }
.min-h-\[380px\] { min-height: 380px; }
.min-h-\[450px\] { min-height: 450px; }

.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

/* Typography */
.font-headline-md { font-family: var(--font-headline-md); }
.font-headline-lg { font-family: var(--font-headline-lg); }
.font-body-lg { font-family: var(--font-body-lg); }
.font-body-md { font-family: var(--font-body-md); }
.font-label-sm { font-family: var(--font-label-sm); }
.font-mono-data { font-family: var(--font-mono-data); }

.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

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

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }

.text-primary { color: var(--color-primary); }
.text-primary-container { color: var(--color-primary-container); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-surface-variant\/60 { color: rgba(233, 188, 179, 0.6); }
.text-surface { color: var(--color-surface); }

/* Backgrounds & Colors */
.bg-background { background-color: var(--color-background); }
.bg-background\/80 { background-color: rgba(19, 19, 19, 0.8); }
.bg-background\/50 { background-color: rgba(19, 19, 19, 0.5); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-dim { background-color: var(--color-surface-dim); }
.bg-surface-container\/30 { background-color: rgba(32, 31, 31, 0.3); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-\[\#070707\] { background-color: #070707; }

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-background { --tw-gradient-from: var(--color-background); --tw-gradient-to: rgb(19 19 19 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-background\/40 { --tw-gradient-to: rgb(19 19 19 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgba(19, 19, 19, 0.4), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }

/* Padding & Margins */
.p-5 { padding: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pb-8 { padding-bottom: 2rem; }
.pr-8 { padding-right: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-margin-mobile { padding-left: var(--margin-mobile); padding-right: var(--margin-mobile); }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-4 { margin-right: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Borders & Outlines */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }

.border-outline { border-color: var(--color-outline); }
.border-outline-variant { border-color: var(--color-outline-variant); }
.border-outline-variant\/10 { border-color: rgba(95, 63, 56, 0.1); }
.border-outline-variant\/20 { border-color: rgba(95, 63, 56, 0.2); }
.border-outline-variant\/30 { border-color: rgba(95, 63, 56, 0.3); }
.border-outline-variant\/50 { border-color: rgba(95, 63, 56, 0.5); }
.border-primary\/20 { border-color: rgba(255, 180, 165, 0.2); }
.border-primary-container { border-color: var(--color-primary-container); }

.rounded-full { border-radius: 9999px; }

/* Effects, Filters & Blurs */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-85 { opacity: 0.85; }
.opacity-95 { opacity: 0.95; }

.grayscale { filter: grayscale(100%); }
.brightness-200 { filter: brightness(200%); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-\[1px\] { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.fill-current { fill: currentColor; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Snap Scroll */
.snap-x { scroll-snap-type: x mandatory; }
.snap-mandatory { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }

/* Transitions & Transforms */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-full { --tw-translate-x: 100%; transform: translateX(100%); }
.translate-y-2 { --tw-translate-y: 0.5rem; transform: translateY(0.5rem); }

/* Animations */
.animate-bounce { animation: bounce 1s infinite; }

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Interactivity & Hover States */
.cursor-pointer { cursor: pointer; }

.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-\[\#ff2a00\]:hover { color: #ff2a00; }
.hover\:text-surface:hover { color: var(--color-surface); }
.hover\:bg-primary-container:hover { background-color: var(--color-primary-container); }

/* Group Hover States */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:opacity-95 { opacity: 0.95; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0%); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-y-0 { --tw-translate-y: 0px; transform: translateY(0); }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
  .md\:px-margin-desktop { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:w-\[60vw\] { width: 60vw; }
  .md\:min-h-\[450px\] { min-height: 450px; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:w-\[45vw\] { width: 45vw; }
}
