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

:root {
  /* Color Palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-tertiary: #262626;

  --text-primary: #f5f5f5;
  --text-secondary: #a1a1a1;
  --text-accent: #CA566B;

  /* BRAND */
  --color-primary: #BA6339;
  /* terracotta */
  --color-secondary-1: #293654;
  --color-secondary-2: #758A50;

  /* UI */
  --color-card: #141414;
  --color-border: #222222;

  --border-color: rgba(255, 255, 255, 0.1);
  --overlay-bg: rgba(10, 10, 10, 0.85);

  /* Typography */
  --font-headings: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Easings */
  --ease-out-expo: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.25, 1, 0.5, 1);
  --trans-fast: 0.15s var(--ease-out-expo);
  --trans-slow: 0.35s var(--ease-out-expo);
}

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

html {
  visibility: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

[data-i18n] {
  transition: opacity 0.15s ease-out;
}

/* Custom Cursor */
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  /* Hide default for custom cursor */
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 3rem);
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 300;
}

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

.accent-text {
  font-family: var(--font-headings);
  font-style: italic;
  color: var(--text-accent);
}

/* Custom Cursor Tracker */
#cursor,
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity var(--trans-fast);
}

#cursor {
  width: 10px;
  height: 10px;
  background: var(--text-accent);
}

#cursor-trail {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-accent);
  transition: width 0.15s var(--ease-out-expo), height 0.15s var(--ease-out-expo), border-color 0.15s var(--ease-out-expo);
}

body:hover #cursor,
body:hover #cursor-trail {
  opacity: 1;
}

.cursor-hover #cursor-trail {
  width: 80px;
  height: 80px;
  background: rgba(202, 86, 107, 0.12);
  border-color: transparent;
  backdrop-filter: blur(6px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition:
    background-color 0.15s var(--ease-out-expo),
    backdrop-filter 0.15s var(--ease-out-expo),
    border-color 0.15s var(--ease-out-expo);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-md) var(--space-lg);
  border-bottom-color: var(--border-color);
}

.nav-logo {
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.nav-logo img {
  display: block;
  width: auto;
  height: clamp(38px, 3vw, 52px);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-accent);
  transition: width var(--trans-fast);
}

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

.lang-switch {
  font-weight: 600;
  color: var(--text-secondary);
}

.lang {
  cursor: pointer;
  opacity: 0.5;
  transition: 0.15s ease-out;
}

.lang.active,
.lang:hover {
  opacity: 1;
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: white;
  transition: 0.15s ease-out;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-family: var(--font-headings);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: all var(--trans-fast);
}

.btn-primary {
  background: var(--text-accent);
  color: var(--bg-primary);
  border-color: var(--text-accent);
}

.btn::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transition: top var(--trans-fast);
  z-index: 1;
}

.btn-primary::before {
  background: #fff;
}

.btn span {
  position: relative;
  z-index: 2;
  transition: color var(--trans-fast);
}

.btn:hover::before {
  top: 0;
}

.btn:hover span {
  color: var(--bg-primary);
}

.btn-primary:hover span {
  color: var(--bg-primary);
}

.btn-all-projects {
  border-color: var(--text-accent);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.btn-all-projects span {
  position: relative;
  z-index: 2;
}

.btn-all-projects::before {
  background: var(--text-accent);
}

.btn-all-projects:hover span,
.btn-all-projects:hover {
  color: var(--text-primary);
}

/* Layout / Sections */
section {
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

/* Entrance Animations & Scroll Reveals */
.reveal,
.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .6s ease,
    transform .4s ease;
  will-change: transform, opacity;
}

.reveal.active,
.reveal-stagger.active {
  opacity: 1;
  transform: translateY(0);
}

.parallax-wrapper {
  overflow: hidden;
  position: relative;
}

/* Home: Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 5vw;
}

.hero-left {
  width: 50%;
  max-width: 600px;
  z-index: 2;
}

.hero-right {
  width: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}


.hero-media {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 580px;
  overflow: hidden;
  border-radius: 220px 220px 0 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}


.hero-image-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
}

.hero-plug {
  position: absolute;
  left: 50%;
  top: 10px !important;
  transform: translateX(-50%);
  width: 70px !important;
  height: auto !important;
  z-index: 10;
}


/* Animación */
@keyframes floatPlug {
  0% {
    transform: translate(-50%, 0px);
  }

  50% {
    transform: translate(-50%, -10px);
  }

  100% {
    transform: translate(-50%, 0px);
  }
}

.hero-plug {
  animation: floatPlug 2s ease-in-out infinite;
}

.hero-content {
  text-align: left;
  z-index: 10;
  position: relative;
}

.hero h1 {
  mix-blend-mode: difference;
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

/* Floating Elements */
.float-el {
  position: absolute;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.float-1 {
  top: 22%;
  right: 42%;
  left: auto;
  transform: rotate(-6deg);
}

.float-1 {
  z-index: 6;
}

.float-2 {
  bottom: 20%;
  right: 10%;
  animation-delay: -2s;
  transform: rotate(5deg);
}

.float-3 {
  top: 30%;
  right: 15%;
  animation-delay: -4s;
  transform: rotate(10deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }

  50% {
    transform: translateY(-20px) rotate(var(--rot, 0deg));
  }
}

/* Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--text-accent);
  color: var(--bg-primary);
  padding: var(--space-sm) 0;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 15s linear infinite;
  position: relative;
}

.marquee-content span {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/*Home About section*/

.home-about {
  padding: var(--space-2xl) 0;
  padding-top: 10%;
}

.home-about-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.home-about-title {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 1000px;
  margin: 0 auto;
}

.home-about .skill-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.home-about .tag {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);

  background: transparent;
  border: 1px solid rgba(202, 86, 107, 0.6);

  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  transition: all .25s ease;
}

.home-about .tag:hover {
  background: var(--text-accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.home-about-button {
  margin-top: 2rem;
}

/* ==========================================
   TAGS (GLOBAL)
========================================== */

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(202, 86, 107, 0.6);

  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;

  transition: all .2s ease;
}

.tag:hover {
  background: var(--text-accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ==========================================
   HOME - PROJECTS
========================================== */

.home-projects {
  padding: 5rem 0;
  max-width: 1350px;
  margin: 0 auto;
}

.home-projects-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-projects-title {
  margin-bottom: 1rem;
}

.home-projects-description {
  max-width: 650px;
  margin: 0 auto;
}

.home-projects-grid {
  margin-top: var(--space-lg);
}

.home-projects-button {
  margin-top: var(--space-lg);
  text-align: center;
}

.home-projects .card-category {
  margin: 0;
  font-size: .9rem;
}

/* Service / Portfolio Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: none;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.card-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out-expo);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(to top, var(--bg-primary) 20%, transparent);
  transform: translateY(20px);
  transition: transform var(--trans-slow);
}

.card:hover .card-content {
  transform: translateY(0);
}


/* ==========================================
   CTA SECTION
========================================== */

.cta-section {
  background: var(--text-primary);
  color: var(--bg-primary);

  margin: var(--space-xl) var(--space-lg);
  padding: var(--space-xl);

  border-radius: var(--radius-lg);
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -2px;
  margin-bottom: var(--space-sm);
}

.cta-description {
  max-width: 650px;
  margin: 0 auto var(--space-md);

  font-size: 1.5rem;
  color: var(--bg-secondary);
  line-height: 1.5;
}

.cta-section .btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--bg-primary);
}

.cta-section .btn::before {
  background: var(--text-accent);
}

.cta-section .btn:hover span {
  color: var(--bg-primary);
}

/* ==========================================
   ABOUT INTRO
========================================== */

.about-intro {
  padding: 8rem 0;
}

.about-intro-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.about-intro-text {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
}

.about-intro-button {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* ==========================================
   ABOUT - WHAT I DO
========================================== */

.about-services {
  padding: 8rem 0;
}

.about-services .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.about-services-title {
  margin-bottom: 2rem;
}

.about-services-tags {
  gap: var(--space-sm);
  justify-content: flex-start;
}

.about-service-tag {
  padding: 1rem 2rem;
}

/* ==========================================
   EXPERIENCE & EDUCATION
========================================== */

.experience-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem var(--space-lg);
}

.experience-section .section-title {
  margin-bottom: 4rem;
}

.experience-item {
  border-top: 1px solid var(--border-color);
  padding: 2.75rem 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.experience-info {
  flex: 1;
}

.experience-info h3 {
  margin: 0;
}

.experience-info p {
  margin: .5rem 0 0;
  color: var(--text-secondary);
}

.experience-date {
  flex-shrink: 0;

  padding: .45rem 1rem;

  border: 1px solid var(--border-color);
  border-radius: 999px;

  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

.experience-description {
  margin-top: 1.5rem;

  max-width: 900px;

  color: var(--text-secondary);

  line-height: 1.8;
}

/* Contact Section */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.contact-form {
  background: var(--bg-tertiary);
  border-radius: 40px;
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);

  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--text-accent);
}

.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.custom-select label {
  display: block;
  margin-bottom: .6rem;
  color: var(--text-secondary);
}

.select-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: .25s ease;
}

.select-btn:hover {
  border-color: var(--text-accent);
}

.select-arrow {
  transition: .25s ease;
}

.select-btn.active .select-arrow {
  transform: rotate(180deg);
}

.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  list-style: none;
  background: #171717;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  z-index: 50;
}

.select-menu.show {
  display: block;
}

.select-menu li {
  padding: 15px 20px;
  cursor: pointer;
  transition: .2s ease;
}

.select-menu li:hover {
  background: rgba(202, 86, 107, .15);
  color: var(--text-accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.contact-email {
  display: inline-block;
  margin-top: .75rem;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: .25s ease;
}

.contact-email:hover {
  color: var(--text-accent);
}

/* ==========================================
   CONTACT INFO
========================================== */

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(2rem, 4vw, 5rem);
}

/* Hero */

.contact-intro {
  margin-bottom: 4.5rem;
}

.contact-title {
  font-size: clamp(3.8rem, 6vw, 6rem);
  line-height: .9;
  margin: 0;
  padding-bottom: 3rem;
}

.contact-title .accent-text {
  display: block;
  margin-top: .25rem;
}

.contact-description {
  margin-top: 2rem;
  max-width: 620px;
  line-height: 1.7;

  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Email */

.contact-email-block {
  margin-bottom: 2.5rem;
}

.contact-block h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.contact-email {
  display: inline-block;

  font-family: var(--font-headings);
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  font-weight: 700;

  color: var(--text-primary);

  text-decoration: underline;
  text-underline-offset: 6px;

  transition: .25s;
  padding-bottom: 2.5rem;
}

.contact-email:hover {
  color: var(--text-accent);
}


/* Social */

.contact-social-block h4 {
  margin: 0 0 .85rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
}

.social-links a {
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}


/* Footer */
.footer {
  padding: 60px 5%;
  background: #000;
  margin-bottom: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner>*:last-child {
  margin-bottom: 0;
}



/* LOGO */
.footer-logo a {
  display: inline-block;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 70px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity .3s ease, transform .3s ease;
}

.footer-logo:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* NAV */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

/* SOCIAL */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--text-accent);
  color: #000;
  border-color: transparent;
}

/* COPYRIGHT */
.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-md) var(--space-sm);
    transform: scale();
  }

  .navbar.scrolled {
    padding: var(--space-sm) var(--space-sm);
    transform: scale();
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.8rem;
  }

  .lang-switch {
    position: relative;
    z-index: 1001;
    margin-left: auto;
    margin-right: 1.5rem;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  section {
    padding: var(--space-lg) var(--space-sm);
  }

  .cta-section {
    margin: var(--space-lg) var(--space-sm);
  }

  .float-el {
    display: none;
  }

  /* Simplify on mobile for performance */
}

/* Filter buttons */
.filter-container {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: none;
  transition: var(--trans-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Project Detail Layout */
.project-header {
  height: 60vh;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  color: var(--text-secondary);
}

.project-hero-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 12px;
  grid-auto-rows: 1px;
  align-items: start;
  margin-bottom: 0;
}

.project-grid-item {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: auto;
  display: block;
  margin-bottom: 0;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.project-sidebar h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.project-sidebar p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .project-content {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Transition Layer */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.page-transition.active {
  transform: scaleY(1);
  transform-origin: top;
}

/* About Page Layered Hero (Strict) */
.about-hero-strict {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 0;
  margin: 0;
}

.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(202, 86, 107, 0.18) 0%, transparent 65%);
  z-index: 0;
}

.hero-name {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.hero-main {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3;
  height: 100%;
}

.hero-real,
.hero-sim-hover {
  width: clamp(340px, 34vw, 520px);
  height: auto;
}

.hero-plug-about {
  position: absolute;
  top: 80px !important;
  left: 50%;
  transform: translateX(-50%);
  width: 70px !important;
  height: auto !important;
  z-index: 20;
}

.hero-character {
  position: relative;
  margin-bottom: -30px;
}

.hero-img {
  display: block;
  width: clamp(340px, 34vw, 520px);
  height: auto;
}

.hero-real {
  opacity: 1;
  transition: .35s;
}

.hero-sim-hover {
  position: absolute;
  pointer-events: none;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease;
}

.hero-character:hover .hero-real {
  opacity: 0;
}

.hero-character:hover .hero-sim-hover {
  opacity: 1;
}

.hero-card {
  position: absolute;
  left: 6%;
  bottom: 12%;

  z-index: 4;

  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);

  padding: 1.2rem 1.8rem;

  backdrop-filter: blur(10px);

  max-width: 320px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hero-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
}

.hero-card:hover {
  transform: scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(202, 86, 107, 0.2);
}

#status-text,
#mood-text {
  transition: opacity 0.2s ease;
}

.hero-sim {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 18vw, 320px);
  z-index: 2;
  pointer-events: auto;
}

.hero-sim img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#status-text,
#mood-text {
  transition: opacity 0.2s ease;
}

#sim-img {
  transition: transform 0.3s ease;
}

/* Wireframe Project Layout */
.project-editorial-header {
  padding: var(--space-xl) var(--space-lg);
}

.project-wireframe-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 900px) {
  .project-wireframe-layout {
    display: flex;
    flex-direction: column;
  }

  .project-sidebar {
    order: 2;
    position: static;
    margin-top: var(--space-lg);
  }

  .project-content-flow {
    order: 1;
  }
}

.project-sidebar {
  position: sticky;
  top: 100px;
}

.project-content-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.block-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.block-mixed-wire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.block-mixed-wire-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.block-mixed-wire-left img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.block-mixed-wire>img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.block-horizontal {
  display: flex;
  justify-content: center;
}

.block-horizontal img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.block-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.block-grid-4 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}



/* MOBILE CORRECTIONS */

/* cursor */

@media (max-width: 768px) {

  .cursor {

    display: none !important;

  }

  .cursor-dot {

    display: none !important;

  }


  /* hero */

  .hero-inner {
    height: auto;
    min-height: 80svh;
  }

  .hero-media {
    display: none;
  }

  .hero {
    display: flex;
    align-items: center;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
    padding-top: 40%;
  }

  .hero-right {

    width: auto;
    height: auto;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;

  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }

  .hero .btn {

    padding: .85rem 2rem;
    font-size: .85rem;
    letter-spacing: 1.5px;
    padding: .9rem 2rem;
  }

  .hero-plug {
    width: 65px !important;
  }

  /* MARQUE*/

  .marquee-container {
    padding: .75rem 0;
  }

  .marquee-content {
    animation: marquee 20s linear infinite;
  }

  .marquee-content span {
    font-size: 1.2rem;
    margin-right: 1.25rem;
  }

  /*Home about*/

  .home-about {
    padding: 4rem 0;
  }

  .home-about-content {
    max-width: 100%;
    padding: 0 1.75rem;
  }

  .home-about-title {
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.45;
    max-width: 95%;
    margin: 0 auto;
  }

  .home-about .skill-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .home-about .tag {
    width: 180px;
    text-align: center;
  }

  .home-about-button {
    margin-top: 10%;
  }

  .home-about-button .btn {
    width: 240px;
    justify-content: center;
  }


  /* ==========================================
   HOME - PROJECTS
========================================== */

  .home-projects {
    padding: 2rem 0;
  }

  .home-projects-header {
    padding: 0 1.75rem;
  }

  .home-projects-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.1;
  }

  .home-projects-description {
    font-size: .95rem;
    line-height: 1.6;
  }

  .home-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.75rem;
    margin-top: 2rem;
  }

  .home-projects .card-img {
    height: 260px;
  }

  .home-projects .card-content {
    transform: none;
    padding: 1.25rem;
  }

  .home-projects .card-category {
    font-size: .8rem;
  }

  .home-projects-button {
    margin-top: 2rem;
  }

  .home-projects .card:hover,
  .home-projects .card:hover .card-img {
    transform: none;
  }

  /* ==========================================
   CTA SECTION
========================================== */

  .cta-section {
    margin: 4rem 1.75rem;
    padding: 3rem 2rem;
  }

  .cta-title {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: .95;
  }

  .cta-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1.25rem auto 2rem;
  }

  .cta-section .btn {
    width: 220px;
    justify-content: center;
  }

  /* ==========================================
   FOOTER
========================================== */

  .footer {
    padding: 4rem 2rem 3rem;
  }

  .footer-logo img {
    height: 55px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .footer-nav a {
    font-size: .85rem;
    letter-spacing: .12em;
  }

  .footer-social {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: .8rem;
  }

  .footer-copy {
    font-size: .7rem;
    line-height: 1.6;
    opacity: .5;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* ==========================================
   ABOUT HERO - MOBILE
========================================== */


  .about-hero-strict {
    height: auto;
    min-height: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 15rem 1.5rem 5rem;
  }

  .hero-name {
    display: none;
  }

  .hero-sim {
    display: none;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: auto;
  }

  .hero-character {
    margin-bottom: 0;
  }

  .hero-img {
    width: min(68vw, 300px);
  }

  .hero-plug-about {
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    top: -90px !important;
    width: 52px !important;
    height: auto;
    z-index: 20;
  }

  @keyframes plumbobFloat {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }

    50% {
      transform: translateX(-50%) translateY(-8px);
    }
  }

  .hero-card {

    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 0rem;
    width: 100%;
    max-width: 320px;
    padding: 1.2rem 1.5rem;
    text-align: left;
  }

  .hero-card p {
    margin: .35rem 0;
    font-size: .95rem;
    line-height: 1.6;

  }

  .hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ==========================================
   ABOUT INTRO - MOBILE
========================================== */

  .about-intro {
    padding: 4rem 0;
  }

  .about-intro-content {
    max-width: 100%;
    padding: 0 1.75rem;
  }

  .about-intro-text {
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.6;
    max-width: 100%;
  }

  .about-intro-button {
    margin-top: 2.5rem;
  }

  .about-intro-button .btn {
    width: 240px;
    justify-content: center;
  }

  /* ==========================================
   ABOUT - WHAT I DO (MOBILE)
========================================== */

  .about-services {
    padding: 4rem 0;
  }

  .about-services-title {
    text-align: center;
    margin-bottom: 2rem;
  }

  .about-services-tags {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .about-service-tag {
    width: 240px;
    padding: 1rem;
    text-align: center;
    font-size: .95rem;
  }

  /* ==========================================
   EXPERIENCE MOBILE
========================================== */

  .experience-section {
    padding: 4rem 1.5rem;
  }

  .experience-section .section-title {
    margin-bottom: 2.5rem;
  }

  .experience-item {
    padding: 2rem 0;
  }

  .experience-header {
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }

  .experience-info h3 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    line-height: 1.2;
  }

  .experience-info p {
    font-size: 1rem;
  }

  .experience-date {
    align-self: flex-start;
    font-size: .95rem;
  }

  .experience-description {
    margin-top: 1.25rem;

    font-size: 1rem;

    line-height: 1.8;
  }

  /* ==========================================
   CONTACT - MOBILE
========================================== */


  .split-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .contact-info {
    width: 100%;
    order: 1;
  }

  .contact-form {
    width: 100%;
    order: 2;

    padding: 2rem;
    border-radius: 2rem;
  }

  .contact-info h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
    line-height: .9;
    margin-bottom: 1.5rem;
  }

  .contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
  }

  .contact-email {
    font-size: clamp(1rem, 7vw, 1.5rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
  }

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

  .contact-intro {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
  }

  .contact-block {
    margin-bottom: 2.5rem;
  }

  .contact-block:last-child {
    margin-bottom: 0;
  }

  .contact-block h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .social-links {
    display: flex;
    gap: 2rem;
    margin-top: .75rem;
  }

  .social-links a {
    font-size: 2rem;
  }

  .social-links {
    justify-content: flex-start;
    gap: 1.2rem;
  }

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

  .form-control {
    font-size: 1rem;
  }

  .select-btn {
    padding: 15px 18px;
  }

  textarea.form-control {
    min-height: 140px;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  section.contact-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

}

/* Disable custom cursor on touch devices */
@media (hover: none),
(pointer: coarse) {

  #cursor,
  #cursor-trail {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

}