/* ============================================================
   styles.css — Saray Cano Portfolio 2026
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sky: #5c6b9c;
  --sky-dark: #3d4f7c;
  --sky-light: #8492b8;
  --pink: #e8a8b8;
  --pink-soft: #f2d0da;
  --cloud: #f0d5de;
  --white: #fdf6f8;
  --gold: #c9a96e;
  --text: #2a2a3e;
  --text-light: #f0ecf5;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sky-dark);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(232, 168, 184, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.4s, height 0.4s;
}
.cursor.hovered           { width: 16px; height: 16px; background: var(--gold); }
.cursor-ring.hovered      { width: 52px; height: 52px; border-color: var(--gold); }

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #2d3a6b 0%, #4a5a8c 40%, #6b7aaa 100%);
}

.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes twinkle {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: var(--o, 0.7); transform: scale(1.2); }
}

.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pink-soft);
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--pink-soft);
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
}
.hero-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 213, 222, 0.75);
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.6s forwards;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 213, 222, 0.6);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(232, 168, 184, 0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-links {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
}
.hero-links a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 213, 222, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.hero-links a:hover { color: var(--pink-soft); }

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s, padding 0.4s;
}
nav.scrolled {
  background: rgba(45, 58, 107, 0.92);
  backdrop-filter: blur(16px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(232, 168, 184, 0.1);
}
.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--pink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 213, 222, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--pink);
  transition: width 0.35s;
}
.nav-links a:hover             { color: var(--pink-soft); }
.nav-links a:hover::after      { width: 100%; }

/* ── About ─────────────────────────────────────────────────── */
#about {
  position: relative;
  background: linear-gradient(160deg, #3d4f7c 0%, #2d3a6b 100%);
  padding: 8rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232, 168, 184, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.about-text { max-width: 520px; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--pink);
}
.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.about-title strong  { font-weight: 600; color: var(--pink-soft); }
.about-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240, 213, 222, 0.75);
  margin-bottom: 2.5rem;
}
.tools-grid  { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-badge {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(232, 168, 184, 0.3);
  border-radius: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--pink-soft);
  transition: all 0.3s;
  background: rgba(232, 168, 184, 0.05);
}
.tool-badge:hover {
  background: rgba(232, 168, 184, 0.15);
  border-color: var(--pink);
}
.about-visual  { display: flex; justify-content: center; align-items: center; }
.avatar-frame  { position: relative; width: 280px; height: 280px; }
.avatar-diamond {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: rotateSlow 20s linear infinite;
  border-radius: 2px;
}
.avatar-inner {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  transform: rotate(45deg) scale(0.9);
  animation: rotateSlow 30s linear infinite reverse;
  border-radius: 2px;
}
.avatar-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--pink-soft);
  letter-spacing: 0.1em;
  line-height: 1;
}
.avatar-sub {
  position: absolute;
  bottom: -2rem;
  width: 100%;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--gold);
}
@keyframes rotateSlow {
  from { transform: rotate(45deg); }
  to   { transform: rotate(405deg); }
}

/* ── Projects ──────────────────────────────────────────────── */
#projects {
  padding: 8rem 3rem;
  background: linear-gradient(180deg, #2d3a6b 0%, #1e2a55 100%);
  position: relative;
  overflow: hidden;
}
#projects::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--pink));
  pointer-events: none;
}
.section-header  { text-align: center; margin-bottom: 5rem; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
}
.section-title em { font-style: italic; color: var(--pink-soft); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: 'DM Sans', sans-serif;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(232, 168, 184, 0.25);
  border-radius: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: rgba(240, 213, 222, 0.6);
}
.filter-tab:hover,
.filter-tab.active {
  background: rgba(232, 168, 184, 0.15);
  border-color: var(--pink);
  color: var(--pink-soft);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1a2244;
}

.project-card.featured {
  grid-column: span 2;
  aspect-ratio: 8/3;
}

@media (max-width: 900px) {
  .projects-grid                { grid-template-columns: 1fr; }
  .project-card,
  .project-card.featured        { grid-column: span 1; aspect-ratio: 4/3; }
}
.card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.project-card:hover .card-bg    { transform: scale(1.08); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 40, 90, 0.95) 0%, rgba(29, 40, 90, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.5s;
}
.project-card:hover .card-overlay  { transform: translateY(0); }
.card-category {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}
.card-desc {
  font-size: 0.8rem;
  color: rgba(240, 213, 222, 0.65);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s, opacity 0.4s;
  opacity: 0;
}
.project-card:hover .card-desc     { max-height: 100px; opacity: 1; }
.card-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 168, 184, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
}
.card-arrow svg                    { width: 14px; fill: var(--pink-soft); }
.project-card:hover .card-arrow    { opacity: 1; transform: scale(1); }
.project-card:hover .card-arrow:hover { background: rgba(232, 168, 184, 0.2); }

/* Card color themes */
.card-vivaterra .card-bg { background: linear-gradient(135deg, #3a5a4a 0%, #2a4a3a 100%); }
.card-parchita  .card-bg { background: linear-gradient(135deg, #f0b060 0%, #d4843a 100%); }
.card-sunny     .card-bg { background: linear-gradient(135deg, #e8760a 0%, #c94a00 100%); }
.card-bautype   .card-bg { background: linear-gradient(135deg, #f0e8d8 0%, #d4c8a8 100%); }
.card-magazine  .card-bg { background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%); }
.card-vangogh   .card-bg { background: linear-gradient(135deg, #3a4a8a 0%, #1a2a5a 100%); }
.card-short     .card-bg { background: linear-gradient(135deg, #1a1a2a 0%, #0a0a1a 100%); }
.card-motion    .card-bg { background: linear-gradient(135deg, #ff6b88 0%, #cc3366 100%); }
.card-landing   .card-bg { background: linear-gradient(135deg, #2a1a0a 0%, #1a0a00 100%); }
.card-3d        .card-bg { background: linear-gradient(135deg, #1a0a2a 0%, #0a0020 100%); }

/* ── Reveal animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── 3D section ────────────────────────────────────────────── */
#threed {
  padding: 8rem 3rem;
  background: linear-gradient(180deg, #1e2a55 0%, #0f1835 100%);
  position: relative;
  overflow: hidden;
}
.threed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 4rem auto 0;
}
.threed-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/10;
  background: #0a0f2a;
  transition: transform 0.5s, box-shadow 0.5s;
}
.threed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.threed-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.threed-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 24, 53, 0.95), transparent);
}
.threed-label h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
}
.threed-label p {
  font-size: 0.72rem;
  color: rgba(240, 213, 222, 0.55);
  margin-top: 0.2rem;
}

/* ── Contact ───────────────────────────────────────────────── */
#contact {
  padding: 8rem 3rem 5rem;
  background: linear-gradient(160deg, #0f1835 0%, #1e2a55 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 184, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.contact-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 3rem;
  color: var(--white);
}
.contact-big em {
  font-style: italic;
  color: var(--pink-soft);
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 0.7em;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: rgba(240, 213, 222, 0.7);
  transition: color 0.3s;
}
.contact-link:hover              { color: var(--pink-soft); }
.contact-link-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(232, 168, 184, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.contact-link:hover .contact-link-icon {
  background: rgba(232, 168, 184, 0.12);
  border-color: var(--pink);
}
.contact-link span { font-size: 0.7rem; letter-spacing: 0.15em; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(232, 168, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(240, 213, 222, 0.35);
  letter-spacing: 0.1em;
}

/* ── Floating particles ────────────────────────────────────── */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  animation: particleDrift var(--d, 12s) ease-in-out infinite;
  opacity: 0;
}
@keyframes particleDrift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  20%  { opacity: var(--o, 0.4); }
  80%  { opacity: var(--o, 0.4); }
  100% { opacity: 0; transform: translateY(-120px) translateX(var(--dx, 30px)); }
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 53, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.4s;
  padding: 2rem;
}
.modal-overlay.open       { opacity: 1; pointer-events: all; }
.modal {
  background: linear-gradient(135deg, #2d3a6b, #1e2a55);
  border: 1px solid rgba(232, 168, 184, 0.2);
  border-radius: 4px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(232, 168, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-category {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
}
.modal-close {
  background: none;
  border: 1px solid rgba(232, 168, 184, 0.3);
  color: var(--pink-soft);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}
.modal-close:hover           { background: rgba(232, 168, 184, 0.15); }
.modal-body {
  padding: 2rem 2.5rem 2.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(240, 213, 222, 0.75);
}
.modal-body p                { margin-bottom: 20px; }
.modal-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.modal-tag {
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(232, 168, 184, 0.25);
  border-radius: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--pink-soft);
}

/* ── Carousel ──────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  height: 280px;          /* altura fija — sin popup gigante */
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
}
#carouselTrack {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}
#carouselTrack img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* todas las imágenes mismo tamaño */
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
}
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: white;
  font-size: 26px;
  padding: 6px 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 2;
}
.carousel button:hover   { background: rgba(0, 0, 0, 0.7); }
#prevBtn                 { left: 10px; }
#nextBtn                 { right: 10px; }

/* ── PDF embed ─────────────────────────────────────────────── */
#modalPDF {
  margin-top: 30px;
  border-radius: 6px;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar             { width: 4px; }
::-webkit-scrollbar-track       { background: #1e2a55; }
::-webkit-scrollbar-thumb       { background: rgba(232, 168, 184, 0.3); border-radius: 2px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav                                    { padding: 1rem 1.5rem; }
  nav.scrolled                           { padding: 0.8rem 1.5rem; }
  .nav-links                             { display: none; }
  #about                                 { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }
  #projects, #threed, #contact           { padding: 5rem 1.5rem; }
  .projects-grid                         { grid-template-columns: 1fr; }
  .project-card:nth-child(5)             { grid-column: span 1; aspect-ratio: 4/3; }
  .threed-grid                           { grid-template-columns: 1fr; }
  .threed-card:first-child               { grid-column: span 1; }
  footer                                 { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-links                            { display: none; }
  .carousel                              { height: 200px; }
}
#carouselTrack,
#carouselTrack3D {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
  width: 100%;
}

#carouselTrack img,
#carouselTrack3D img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
}


#carousel3D {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: 6px;
  background: rgba(0,0,0,0.15);
}

#carousel3D button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  font-size: 26px;
  padding: 6px 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 2;
}

#carousel3D button:hover { background: rgba(0,0,0,0.7); }
#carousel3D #prevBtn3D   { left: 10px; }
#carousel3D #nextBtn3D   { right: 10px; }