/* 
  INNEREVO - PERSONAL BRANDING STYLESHEET (Lighter & Multi-page Version)
  Colors: Deep Yellow (#FFD300), Soft Cream (#FAF0C9), Nuclear White (#FFFFFF), Clean Dark (#111111)
  Fonts: Space Grotesk (Titles), Inter (Body), JetBrains Mono (Mono)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --yellow: #FFD300;
  --cream: #FAF0C9;
  --white: #FFFFFF;
  --black: #111111;
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar (Lighter Design) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 2px solid var(--cream);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--black);
}

/* Custom Cursor */
.custom-cursor {
  width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  background-color: var(--white);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--white);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.custom-cursor.hovered {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-color: var(--white);
}

/* Typography & General Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* Classic Instagram Caption Style (CAPS, Clean Outline, Lighter) */
.insta-badge {
  display: inline-block;
  background-color: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 3px 3px 0 var(--black);
  transform: rotate(-1deg);
}

.insta-badge.alt {
  background-color: var(--cream);
  box-shadow: 3px 3px 0 var(--black);
  transform: rotate(1deg);
}

/* Torn Paper Dividers (SVG Inline data - Lighter transitions) */
.rip-divider {
  width: 100%;
  height: 30px;
  background-repeat: repeat-x;
  background-size: 1200px 30px;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.rip-divider.top-to-bottom-cream {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1200 0 L1200 12 L1185 6 L1160 16 L1140 9 L1120 21 L1090 10 L1070 18 L1040 7 L1010 20 L990 11 L970 24 L945 8 L920 19 L890 9 L870 22 L840 10 L810 22 L785 6 L760 20 L735 11 L705 23 L680 8 L650 20 L620 9 L590 24 L565 11 L535 22 L515 7 L490 21 L460 9 L430 25 L405 11 L380 22 L350 8 L330 21 L300 10 L275 24 L245 7 L220 20 L195 9 L170 22 L140 10 L110 21 L85 8 L60 20 L30 9 L0 25 Z' fill='%23FAF0C9'/%3E%3C/svg%3E");
  margin-top: -29px;
}

.rip-divider.bottom-to-top-cream {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L1200 30 L1200 18 L1185 24 L1160 14 L1140 21 L1120 9 L1090 20 L1070 12 L1040 23 L1010 10 L990 19 L970 6 L945 22 L920 11 L890 21 L870 8 L840 20 L810 9 L785 24 L760 10 L735 19 L705 7 L680 22 L650 10 L620 21 L590 6 L565 19 L535 8 L515 23 L490 9 L460 21 L430 5 L405 19 L380 8 L350 22 L330 9 L300 20 L275 6 L245 23 L220 10 L195 21 L170 8 L140 20 L110 9 L85 22 L60 10 L30 21 L0 4 Z' fill='%23FAF0C9'/%3E%3C/svg%3E");
  margin-bottom: -29px;
}

.rip-divider.top-to-bottom-yellow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1200 0 L1200 12 L1185 6 L1160 16 L1140 9 L1120 21 L1090 10 L1070 18 L1040 7 L1010 20 L990 11 L970 24 L945 8 L920 19 L890 9 L870 22 L840 10 L810 22 L785 6 L760 20 L735 11 L705 23 L680 8 L650 20 L620 9 L590 24 L565 11 L535 22 L515 7 L490 21 L460 9 L430 25 L405 11 L380 22 L350 8 L330 21 L300 10 L275 24 L245 7 L220 20 L195 9 L170 22 L140 10 L110 21 L85 8 L60 20 L30 9 L0 25 Z' fill='%23FFD300'/%3E%3C/svg%3E");
  margin-top: -29px;
}

.rip-divider.bottom-to-top-yellow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L1200 30 L1200 18 L1185 24 L1160 14 L1140 21 L1120 9 L1090 20 L1070 12 L1040 23 L1010 10 L990 19 L970 6 L945 22 L920 11 L890 21 L870 8 L840 20 L810 9 L785 24 L760 10 L735 19 L705 7 L680 22 L650 10 L620 21 L590 6 L565 19 L535 8 L515 23 L490 9 L460 21 L430 5 L405 19 L380 8 L350 22 L330 9 L300 20 L275 6 L245 23 L220 10 L195 21 L170 8 L140 20 L110 9 L85 22 L60 10 L30 21 L0 4 Z' fill='%23FFD300'/%3E%3C/svg%3E");
  margin-bottom: -29px;
}

.rip-divider.top-to-bottom-white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1200 0 L1200 12 L1185 6 L1160 16 L1140 9 L1120 21 L1090 10 L1070 18 L1040 7 L1010 20 L990 11 L970 24 L945 8 L920 19 L890 9 L870 22 L840 10 L810 22 L785 6 L760 20 L735 11 L705 23 L680 8 L650 20 L620 9 L590 24 L565 11 L535 22 L515 7 L490 21 L460 9 L430 25 L405 11 L380 22 L350 8 L330 21 L300 10 L275 24 L245 7 L220 20 L195 9 L170 22 L140 10 L110 21 L85 8 L60 20 L30 9 L0 25 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  margin-top: -29px;
}

.rip-divider.bottom-to-top-white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L1200 30 L1200 18 L1185 24 L1160 14 L1140 21 L1120 9 L1090 20 L1070 12 L1040 23 L1010 10 L990 19 L970 6 L945 22 L920 11 L890 21 L870 8 L840 20 L810 9 L785 24 L760 10 L735 19 L705 7 L680 22 L650 10 L620 21 L590 6 L565 19 L535 8 L515 23 L490 9 L460 21 L430 5 L405 19 L380 8 L350 22 L330 9 L300 20 L275 6 L245 23 L220 10 L195 21 L170 8 L140 20 L110 9 L85 22 L60 10 L30 21 L0 4 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  margin-bottom: -29px;
}

/* Header & Menu */
.header-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  z-index: 100;
}

.brand-logo {
  color: var(--black);
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--black);
  transition: var(--transition);
}

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

/* Pages Inner Navigation Indicator (highlight current active page) */
.nav-links li.active a::after {
  width: 100%;
}

/* Sections Base */
section {
  position: relative;
  padding: 10rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Hero Section */
#hero {
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  background-color: var(--yellow);
  overflow: hidden;
}

.hero-visual {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
}

.hero-img-container {
  width: 100%;
  height: 100%;
  position: relative;
  /* Soft jagged clean paper tear */
  clip-path: polygon(0 0, 100% 0, 95% 20%, 97% 40%, 93% 60%, 96% 80%, 92% 100%, 0 100%);
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 10s ease;
}

#hero:hover .hero-img {
  transform: scale(1.06);
}

.hero-img-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 95% 20%, 97% 40%, 93% 60%, 96% 80%, 92% 100%, 0 100%);
  transform: translate3d(8px, 0, 0);
  z-index: 1;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 6rem 4rem 4rem;
  z-index: 3;
  background-color: var(--yellow);
}

.hero-title {
  font-size: 4rem;
  color: var(--black);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-title span.highlight {
  display: inline-block;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--black), -2px -2px 0 var(--black), 2px -2px 0 var(--black), -2px 2px 0 var(--black);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 3rem;
  max-width: 520px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* High Contrast & Clean Buttons */
.btn {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-black {
  background-color: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--white);
}

.btn-black:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--white);
}

.btn-black:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.btn-white:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.btn-white:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--black);
}

/* Pages Common Framework */
.page-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 6rem;
  text-align: center;
}

.page-title {
  font-size: 5rem;
  letter-spacing: -0.03em;
  display: inline-block;
  color: var(--black);
  border-bottom: 4px solid var(--black);
  padding-bottom: 0.5rem;
}

/* HISTORIA PAGE (sobre-mi) */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-paragraph {
  margin-bottom: 2rem;
}

.about-paragraph strong {
  font-family: var(--font-title);
  text-transform: uppercase;
  background-color: var(--white);
  border: 1px solid var(--black);
  padding: 1px 5px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.stat-card {
  background-color: var(--white);
  border: 2px solid var(--black);
  padding: 2rem;
  box-shadow: 5px 5px 0 var(--black);
  transform: rotate(var(--rotation, 1deg));
  transition: var(--transition);
}

.stat-card:hover {
  transform: scale(1.02) rotate(0deg);
}

.stat-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 0.8;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--cream);
  border: 2px solid var(--black);
  box-shadow: 10px 10px 0 var(--white);
  clip-path: polygon(2% 0%, 98% 2%, 100% 96%, 94% 100%, 0% 98%, 1% 50%);
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img-frame:hover .about-img {
  transform: scale(1.03);
}

/* PRODUCTOS PAGE (que-hago - 2 Products) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background-color: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 4rem 3rem;
  position: relative;
  box-shadow: 8px 8px 0 var(--black);
  clip-path: polygon(0% 1%, 99% 0%, 100% 98%, 2% 100%, 0% 50%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:nth-child(2) {
  background-color: var(--cream);
  transform: rotate(-1deg);
}

.product-card:hover {
  transform: translate(-4px, -4px) rotate(0deg);
  box-shadow: 12px 12px 0 var(--black);
}

.product-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: inline-block;
  border-bottom: 2px solid var(--black);
  width: fit-content;
}

.product-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.0;
  text-transform: uppercase;
}

.product-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
  background-color: var(--white);
  padding: 8px 12px;
  border: 1px solid var(--black);
  width: fit-content;
}

.product-card:nth-child(2) .product-meta {
  background-color: var(--yellow);
}

/* Callout Banner (Lighter design, no black fills) */
.callout-banner {
  margin-top: 6rem;
  background-color: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 4rem 3rem;
  text-align: center;
  clip-path: polygon(1% 0%, 99% 1%, 98% 99%, 0% 98%);
  box-shadow: 8px 8px 0 var(--cream);
}

.callout-banner h3 {
  font-size: 2.2rem;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.callout-banner p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #444;
}

/* GALERIA PAGE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  background-color: var(--cream);
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(1% 0%, 99% 1%, 100% 97%, 95% 100%, 0% 98%, 2% 45%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  mix-blend-mode: color;
  opacity: 0.2;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03) translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}

.gallery-item:hover::after {
  opacity: 0;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.gallery-item:hover .gallery-tag {
  opacity: 1;
  transform: translateY(0);
}

/* CONTACTO PAGE (Lighter styling) */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 0.9;
}

.contact-info p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #333;
}

.social-huge-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.social-link {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  line-height: 0.9;
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

.social-link:hover {
  transform: translate3d(8px, 0, 0);
  color: var(--white);
  text-shadow: 2px 2px 0 var(--black), -2px -2px 0 var(--black), 2px -2px 0 var(--black), -2px 2px 0 var(--black);
}

.contact-form-container {
  background-color: var(--white);
  border: 2px solid var(--black);
  padding: 3.5rem 3rem;
  box-shadow: 8px 8px 0 var(--black);
  clip-path: polygon(0 0, 100% 1%, 99% 99%, 1% 100%);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.form-input {
  width: 100%;
  padding: 1.1rem;
  border: 2px solid var(--black);
  background-color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background-color: var(--white);
  box-shadow: 4px 4px 0 var(--yellow);
}

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

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 240, 201, 0.96); /* Soft Cream backdrop */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 3px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
  clip-path: polygon(1% 0%, 99% 1%, 100% 99%, 1% 100%);
  background-color: var(--white);
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  background-color: var(--white);
  padding: 6px 12px;
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}

.lightbox-close:hover {
  text-decoration: underline;
}

/* Footer (Lighter) */
footer {
  background-color: var(--cream);
  color: var(--black);
  border-top: 2px solid var(--black);
  padding: 4rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  z-index: 10;
  position: relative;
}

footer a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 700;
}

/* Animations */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .scroll-animate {
    animation: fade-up-in auto linear both;
    animation-range: entry 10% cover 30%;
  }
  
  .about-img-frame {
    animation: scale-up-in auto linear both;
    animation-range: entry 15% cover 35%;
  }

  .stat-card {
    animation: slide-in-rotate auto linear both;
    animation-range: entry 10% cover 30%;
  }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-up-in {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes slide-in-rotate {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-animate, .about-img-frame, .stat-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-nav {
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .page-title {
    font-size: 3.5rem;
  }

  .about-grid, .contact-layout, .products-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  #hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .hero-visual {
    height: 40vh;
    width: 100%;
  }
  
  .hero-img-container {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 85% 95%, 70% 93%, 55% 96%, 40% 94%, 25% 97%, 10% 95%, 0 92%);
  }
  
  .hero-img-shadow {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 85% 95%, 70% 93%, 55% 96%, 40% 94%, 25% 97%, 10% 95%, 0 92%);
    transform: translate3d(0, 8px, 0);
  }
  
  .hero-content {
    padding: 4rem 2rem;
    flex: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-desc {
    font-size: 1.05rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .nav-links {
    display: none; /* Keep header minimal on mobile */
  }
  
  .social-link {
    font-size: 2.2rem;
  }
  
  .contact-form-container {
    padding: 2.5rem 1.5rem;
  }
}
