/* 
 * PAP WEB PORTFOLIO STYLESHEET
 * Designed for Antigravity - Strict Design Mode
 */

/* ==========================================================================
   1. DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --bg-color: #f4f3ef;
  --text-dark: #282a21;
  --text-light: #95948f;
  --brand-yellow: #ead93d;
  --border-grey: #838383;
  --black: #000000;
  --white: #ffffff;
  
  --font-main: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  /* Textura tipo grid de puntos muy sutil por encima */
  background-image: radial-gradient(rgba(131, 131, 131, 0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop devices with hover capabilities */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* ==========================================================================
   2. CUSTOM CURSOR
   ========================================================================== */
#custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--text-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999; /* Maximo z-index para no desaparecer */
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--text-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998; /* Justo debajo del punto central */
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth), background-color 0.3s, border-color 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

/* Cursor States */
#custom-cursor-follower.hovering {
  width: 48px;
  height: 48px;
  background-color: transparent; /* No yellow background for text hover */
  border-color: var(--text-dark);
}

#custom-cursor-follower.project-hover {
  width: 140px;
  height: 44px;
  background-color: var(--bg-color);
  border: 2px solid var(--text-dark);
  border-radius: 0; /* Brutalist rectangle */
  box-shadow: 4px 4px 0px var(--text-dark); /* Solid black shadow */
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-cursor-follower.project-hover::after {
  content: "View Project";
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* ==========================================================================
   3. LOADER (FLAT BG WITH SWEEP LINE)
   ========================================================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999;
  overflow: hidden;
  transition: transform 1.5s cubic-bezier(0.85, 0, 0.15, 1);
  border-top: 1.5px solid var(--text-light); /* Sweep line at the top */
}

#loader-sweep-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-light);
}

#loader-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  z-index: 100005;
  opacity: 1;
  pointer-events: none;
  transition: transform 1.5s cubic-bezier(0.85, 0, 0.15, 1),
              opacity 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Transitions for Loader sliding down */
body.loading #loader {
  transform: translateY(0);
}

body.revealing #loader {
  transform: translateY(100%);
}

body.revealing #loader-logo,
body.loaded #loader-logo {
  transform: translate(-50%, -50%) translateY(-100vh); /* translates up as loader slides down, keeping it fixed */
  opacity: 0;
}

/* Body States while loading */
body.loading,
body.revealing {
  overflow: hidden;
}

body.loading nav,
body.revealing nav {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   4. NAVIGATION (HEADER)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 60px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

/* Etiqueta Flotante Logo - Custom large vertical format */
.logo-badge {
  position: absolute;
  top: 0;
  left: 8%; /* 8% separation from the left */
  width: 200px;
  height: 300px;
  background-color: var(--brand-yellow);
  border: 1.5px solid var(--text-light); /* #95948f */
  border-radius: 0 0 20px 20px; /* rounded lower corners 20px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); /* strong shadow overlays other layers */
  transition: transform 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              top 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              left 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              background-color 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              border-color 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              box-shadow 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              border-radius 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              padding 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              width 0.75s cubic-bezier(0.85, 0, 0.15, 1),
              height 0.75s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 10010;
}

body.loading .logo-badge {
  top: -310px; /* Starts off-screen at the top */
}

body.revealing .logo-badge,
body.loaded .logo-badge {
  top: 0; /* Slides down to top of screen */
}

.logo-badge img {
  position: absolute;
  bottom: 35px; /* separated 35px from bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  display: block;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

body.revealing .logo-badge img,
body.loaded .logo-badge img {
  opacity: 1;
}

/* Navigation Links */
nav {
  display: flex;
  gap: 40px;
  margin-left: auto; /* Aligns links to the right since logo-badge is absolute */
}

.nav-link {
  font-size: 15px;
  font-weight: 300; /* Light text for navigation */
  color: var(--bg-color); /* Matches background color (#f4f3ef) when unscrolled */
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease, opacity 1s ease-in-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Scroll Modifier: Header Desplazamiento */
header.scrolled {
  padding: 16px 60px;
  background-color: rgba(244, 243, 239, 0.75); /* Apple-style glassmorphism background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1.5px solid var(--text-light); /* light grey divider line #95948f */
}

header.scrolled .logo-badge {
  top: -150px; /* retracts up by 150px */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22); /* strong shadow overlays the glass header */
}

/* Textos cambian a color gris medio #95948f */
header.scrolled .nav-link {
  color: var(--text-light);
}

header.scrolled .nav-link::after {
  background-color: var(--text-light);
}

header.scrolled .nav-link:hover,
header.scrolled .nav-link.active {
  color: var(--text-dark);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.hero-explore-text {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  animation: pulse 2s infinite;
}

.hero-arrow {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
  animation: bounce 2s infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==========================================================================
   6. WORK SECTION
   ========================================================================== */
#work {
  padding: 140px 100px 100px 100px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 80px;
}

.section-tag {
  color: var(--text-light); /* #95948f */
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: inline-block;
}

.section-quote {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 300;
  color: var(--text-dark); /* #282a21 */
  max-width: 900px;
  margin-bottom: 20px;
}

.section-author {
  font-size: 15px;
  font-style: italic;
  color: var(--text-light); /* #95948f */
}

/* Filtering controls (Custom Dropdowns) */
.filter-container {
  margin-bottom: 60px;
  display: flex;
  gap: 50px;
  padding-bottom: 30px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Subtle Dropdown styling */
.custom-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 300; /* Light text for trigger */
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed var(--text-light);
  outline: none;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 2;
  transition: transform 0.3s;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: rgba(244, 243, 239, 0.85); /* glassmorphism dropdown menu */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid var(--text-light); /* #95948f border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 250px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-light);
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(40, 42, 33, 0.05);
  color: var(--text-dark);
}

.dropdown-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; /* 20% larger cards visual spacing */
  margin-top: 80px; /* Headroom for parallax scroll shift */
  margin-bottom: 120px; /* Space for parallax scroll shift */
  align-items: start;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 72px; /* reduced by 40% */
  will-change: transform;
}

.project-col-right {
  margin-top: 60px; /* Base offset on desktop */
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Vertical Portrait ratio */
  overflow: hidden;
  border: 1px solid var(--text-dark); /* pure black border */
  background-color: #e5e5e0;
  position: relative;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Escalar la imagen al pasar mouse, contenedor se mantiene del mismo tamaño */
.project-card:hover .project-image-wrapper img {
  transform: scale(1.06);
}

.project-info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-client {
  font-size: 13px;
  font-weight: 300; /* Light uppercase client label */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light); /* #95948f Client Name on top */
}

.project-title {
  font-size: 20px;
  font-weight: 300; /* Light project title */
  color: var(--text-dark); /* #282a21 Project Name below */
}

/* View More Button Container */
.explore-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.explore-more-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px;
  transition: var(--transition-fast);
}

.explore-more-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dark);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-fast);
}

.explore-more-btn:hover svg {
  transform: translateY(6px);
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
#about {
  padding: 120px 100px;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1.5px solid var(--text-light); /* sutil divider #95948f */
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  margin-top: 50px;
  margin-bottom: 80px;
}

.about-desc-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-desc-col p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
}

.about-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-info-sub {
  border-bottom: 1px solid rgba(131, 131, 131, 0.2);
  padding-bottom: 16px;
}

.about-info-sub:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-list li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dark);
}

.team-section-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 80px;
}

.team-section-subtitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.team-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.team-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card {
  width: calc(25% - 22.5px);
  min-width: 250px;
  flex-shrink: 0;
  border: 1px solid var(--text-light);
  background: var(--white);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-photo-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #e8e7e1;
  border: 1px solid rgba(40, 42, 33, 0.1);
  overflow: hidden;
  position: relative;
}

.team-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}

.team-card:hover .team-photo-box img {
  transform: scale(1.08);
  opacity: 0.85;
}

.team-card-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.team-card-info p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.team-nav {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.team-nav-btn {
  background-color: var(--bg-color);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text-dark);
  box-shadow: 3px 3px 0px var(--text-dark);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.2s;
  outline: none;
}

.team-nav-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 7px 7px 0px var(--text-dark);
  background-color: var(--white);
}

.team-nav-btn:active {
  transform: translate(0px, 0px);
  box-shadow: 1px 1px 0px var(--text-dark);
}

.team-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dark);
  stroke-width: 2;
  fill: none;
}

.about-stats-container {
  display: flex;
  gap: 32px; /* Grouped stats closer together */
  margin-top: 40px;
  border-top: none;
  padding-top: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stat-number {
  font-size: 54px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
}

/* ==========================================================================
   8. CONTACT SECTION
   ========================================================================== */
#contact {
  padding: 120px 100px;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1.5px solid var(--text-light); /* sutil divider #95948f */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 120px;
  align-items: start;
}

.contact-form-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-quote {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-dark);
}

.contact-subquote {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 300;
}

/* Brutalist Form Fields */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.form-input {
  background-color: transparent;
  border: none;
  border-bottom: 1.5px solid #838383; /* Solid medium gray border */
  padding: 12px 4px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.3s;
  outline: none;
}

.form-input::placeholder {
  color: #838383;
  opacity: 0.85;
}

.form-input:focus {
  border-bottom-color: var(--text-dark); /* Turns solid black when selected */
}

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

/* Brutalist Buttons (3D Shadow Lift Animation) */
.brutalist-btn {
  align-self: flex-start;
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 36px;
  border: 2px solid var(--text-dark);
  box-shadow: 4px 4px 0px var(--text-dark);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.brutalist-btn:hover {
  transform: translate(-6px, -6px);
  box-shadow: 10px 10px 0px var(--text-dark);
  background-color: var(--white);
}

.brutalist-btn:active {
  transform: translate(0px, 0px);
  box-shadow: 2px 2px 0px var(--text-dark);
}

/* Success State styling for contact form */
.form-success-msg {
  display: none;
  background-color: #e3efdb;
  border: 1px solid #7ea861;
  color: #3b5f24;
  padding: 20px;
  font-size: 15px;
  margin-top: 10px;
}

/* Follow Us Social Block */
.follow-us-block {
  margin-top: 20px;
}

.follow-us-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.social-buttons-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  position: relative; /* Added for tooltips placement */
  text-decoration: none;
  background-color: var(--bg-color);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text-dark);
  box-shadow: 3px 3px 0px var(--text-dark);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.2s;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#btn-social-behance .social-icon {
  fill: currentColor;
  stroke: none;
}

.social-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 7px 7px 0px var(--text-dark);
  background-color: var(--white); /* Changes to white on hover */
}

.social-btn:active {
  transform: translate(0px, 0px);
  box-shadow: 1px 1px 0px var(--text-dark);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
  background-color: var(--bg-color);
  border-top: 1.5px solid var(--text-light); /* sutil divider #95948f */
  padding: 30px 100px 20px 100px;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 45px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark); /* darker title */
  letter-spacing: 1.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px; /* reduced gap */
}

.footer-link {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light); /* lighter links */
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  align-self: flex-start;
}

.footer-link:hover {
  color: var(--text-dark); /* darker hover color */
  text-decoration: none;
}

.footer-bottom {
  border-top: 1.5px solid var(--text-light); /* sutil divider #95948f */
  padding-top: 20px;
  margin-left: -100px;
  margin-right: -100px;
  padding-left: 100px;
  padding-right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 13px;
  color: var(--text-light);
}

/* ==========================================================================
   10. MODAL: PROJECT DETAIL VIEW
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(40, 42, 33, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--transition-smooth), visibility 0.5s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Base Modal Panel Structure */
.modal-content-panel {
  width: 65%;
  height: 100%;
  background-color: var(--bg-color);
  background-image: radial-gradient(rgba(131, 131, 131, 0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Directional Sliding Classes */
.modal-content-panel.slide-right {
  right: 0;
  border-left: 1px solid var(--text-dark);
  box-shadow: -10px 0px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
}
.modal-overlay.open .modal-content-panel.slide-right {
  transform: translateX(0);
}

.modal-content-panel.slide-left {
  left: 0;
  border-right: 1px solid var(--text-dark);
  box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
}
.modal-overlay.open .modal-content-panel.slide-left {
  transform: translateX(0);
}

.modal-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--brand-yellow);
  transform: scale(1.05);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
}

.modal-scrollable-body {
  flex: 1;
  overflow-y: auto;
  padding: 80px;
}

/* Modal UI Elements */
.modal-project-title {
  font-size: 44px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 30px;
  margin-top: 20px;
}

.modal-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(131, 131, 131, 0.3);
  border-bottom: 1px solid rgba(131, 131, 131, 0.3);
  padding: 24px 0;
  margin-bottom: 40px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-meta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
}

.modal-meta-val {
  font-size: 14px;
  color: var(--text-dark);
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 780px;
  margin-bottom: 50px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-gallery-img-wrapper {
  width: 100%;
  border: 1px solid var(--text-dark);
  overflow: hidden;
  background-color: #eae9e4;
}

.modal-gallery-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-gallery-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--text-dark);
  background-color: #eae9e4;
  overflow: hidden;
  position: relative;
}
.modal-gallery-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  header, header.scrolled {
    padding: 20px 40px;
  }
  
  #work, #about, #contact, footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .portfolio-grid {
    gap: 40px;
  }
  
  .contact-grid {
    gap: 60px;
  }
  
  .modal-content-panel {
    width: 80%;
  }

  .team-card {
    width: calc(50% - 15px);
  }
  
  .footer-bottom {
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) {
  /* Cursor disabled on tablets/mobile */
  #custom-cursor, #custom-cursor-follower {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .project-col-right {
    margin-top: 0;
  }
  
  .about-content-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
    
  .modal-content-panel {
    width: 100%;
  }
  
  .modal-metadata-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .modal-scrollable-body {
    padding: 40px;
  }

  .team-card {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 600px) {
  header, header.scrolled {
    padding: 16px 20px;
  }
  
  #work, #about, #contact, footer {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
  }
  
  .logo-badge {
    width: 80px;
    height: 95px;
    border-radius: 0 0 10px 10px;
    left: 15px;
    padding: 0;
  }
  
  .logo-badge img {
    width: 54px;
    height: auto;
    bottom: 12px;
  }
  
  header.scrolled .logo-badge {
    top: -45px;
  }
  
  nav {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 11px;
  }
  
  .section-quote {
    font-size: 26px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   13. CUSTOM ANIMATIONS, REVEALS, TOOLTIPS, DRAG & DROP
   ========================================================================== */

/* Hardware accelerated scroll reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px); /* Starts blurred */
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0); /* Becomes sharp */
}

/* Brutalist Tooltip */
.brutalist-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -10px);
  background-color: var(--text-dark);
  color: var(--bg-color);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1.5px solid var(--text-dark);
  box-shadow: 2px 2px 0px var(--text-light);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.brutalist-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -18px);
}

@media (max-width: 600px) {
  .about-stats-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 0;
  }
  
  .about-stats-container .stat-number {
    font-size: 36px;
  }
  
  .about-stats-container .stat-label {
    font-size: 11px;
  }
}

/* Staggered Team Cards Scroll Reveal (Left to Right) */
.team-card.reveal-on-scroll {
  transform: translateX(-40px);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card.reveal-on-scroll.revealed {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
}

.team-card:nth-child(1) { transition-delay: 0.05s; }
.team-card:nth-child(2) { transition-delay: 0.1s; }
.team-card:nth-child(3) { transition-delay: 0.15s; }
.team-card:nth-child(4) { transition-delay: 0.2s; }
.team-card:nth-child(5) { transition-delay: 0.25s; }
.team-card:nth-child(6) { transition-delay: 0.3s; }
.team-card:nth-child(7) { transition-delay: 0.35s; }
.team-card:nth-child(8) { transition-delay: 0.4s; }
.team-card:nth-child(9) { transition-delay: 0.45s; }
.team-card:nth-child(10) { transition-delay: 0.5s; }

/* Contact Form Column Reveal (Left to Right) */
.contact-form-column.reveal-on-scroll {
  transform: translateX(-50px);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-form-column.reveal-on-scroll.revealed {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
}

/* Contact Info Column Reveal (Top to Bottom) */
.contact-info-column.reveal-on-scroll {
  transform: translateY(-50px);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s; /* Staggered delay relative to the form */
}
.contact-info-column.reveal-on-scroll.revealed {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* ==========================================================================
   12. LANGUAGE SWITCHER STYLES
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  background: none;
  border: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
header.scrolled .lang-switcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 6px;
  transition: var(--transition-fast);
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn.active {
  font-weight: 600;
  color: var(--brand-yellow);
  border-bottom: 2px solid var(--brand-yellow);
}
.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 300;
}
