@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Hairline.ttf);
  font-weight: 100;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Thin.ttf);
  font-weight: 200;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Light.ttf);
  font-weight: 300;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Regular.ttf);
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Medium.ttf);
  font-weight: 500;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Bold.ttf);
  font-weight: 600;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-ExtraBold.ttf);
  font-weight: 700;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Black.ttf);
  font-weight: 800;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-ExtBlk.ttf);
  font-weight: 900;
}

:root {
  --yellow: #e8e26b;
  --blue: #64e2e8;
  --green: #82e86d;
  --pink: #e86b8c;
  --orange: #e8ad6d;
  --purple: #887acc;

  /* Responsive font sizes */
  --font-size-small: clamp(0.8rem, 2vw, 0.9rem);
  --font-size-base: clamp(1rem, 2.5vw, 1.2rem);
  --font-size-large: clamp(1.2rem, 3vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 4vw, 2rem);
  --font-size-xxl: clamp(2rem, 5vw, 3rem);

  /* Responsive spacing */
  --spacing-xs: clamp(0.5rem, 2vw, 1rem);
  --spacing-sm: clamp(1rem, 3vw, 1.5rem);
  --spacing-md: clamp(1.5rem, 4vw, 2rem);
  --spacing-lg: clamp(2rem, 5vw, 3rem);
  --spacing-xl: clamp(3rem, 6vw, 4rem);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Helvetica", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text selection styles */
::selection {
  background: transparent;
  color: inherit;
}

#container {
  position: relative;
  z-index: 1;
}

#selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
}

.selection-highlight {
  position: absolute;
  pointer-events: none;
  border-radius: 4px;
  opacity: 1;
  mix-blend-mode: multiply;
  transition: background 0.3s ease;
}

.highlighted {
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue));
  color: white;
  padding: 0 2px;
  border-radius: 2px;
}

.text-block {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
  font-size: var(--font-size-xl);
}

.text-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.bold {
  font-weight: 800;
}

/* Header styles */
header {
  width: 100%;
  height: auto;
  min-height: 50px;
  z-index: 9999;
  position: fixed;
  top: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid black;
  font-weight: 800;
  font-size: var(--font-size-large);
  z-index: -1;
  padding: 0 var(--spacing-sm);
}

.header-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid black;
  background-color: white;
  z-index: 99999;
  padding: 0 var(--spacing-sm);
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.header-bottom a {
  font-weight: 500;
  font-size: var(--font-size-small);
  text-decoration: none;
  color: black;
  border-color: rgb(218, 218, 218);
  cursor: pointer;
  transition: all 0.25s linear;
  border-radius: 5px;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header-bottom a:hover {
  font-weight: 700;
  border: 1px solid rgb(218, 218, 218);
  background-color: rgba(218, 218, 218, 0.1);
}

/* Mobile navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-large);
  cursor: pointer;
  padding: var(--spacing-xs);
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
}

/* Logo/Icon transitions */
.text,
.icon {
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.icon {
  opacity: 0;
  transform: translateY(20px);
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  fill: #333;
  z-index: -5555;
}

.text {
  opacity: 1;
  transform: translateY(0);
}

.active .text {
  opacity: 0;
  transform: translateY(-20px);
}

.active .icon {
  opacity: 1;
  transform: translateY(0);
}

/* Hero sections */
.hero {
  height: 50vh;
  min-height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
  margin-top: 100px;
  border-bottom: 1px solid black;
  padding: var(--spacing-md);
}

.hero2 {
  height: 25vh;
  min-height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-bottom: 1px solid black;
  padding: var(--spacing-md);
}

.hero2 img {
  max-width: min(300px, 80%);
  width: auto;
}

.hero3 {
  height: 10vh;
  min-height: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/background2.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-bottom: 1px solid black;
}

/* Main content */
.main {
  width: 100%;
  overflow-x: hidden;
}

/* About sections */
.about-me-1,
.about-me-2,
.about-me-3 {
  min-height: 40vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 500;
  padding: var(--spacing-lg) var(--spacing-md);
}

.about-me-4{
    margin-top: 20vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 500;
}
.about-me-3 {
  border-bottom: 1px solid black;
}

.about-me-3 p {
  cursor: pointer;
  font-weight: 700;
}

/* Content sections */
.content {
  width: 100%;
  padding: 0;
}

p {
  max-width: 90%;
  line-height: 1.6;
}

/* Email and social links */
.email-link,
.social-link {
  display: inline-block;
  position: relative;
  color: transparent;
  background-image: linear-gradient(90deg, black 60%, var(--yellow), var(--green), var(--blue));
  background-size: 400%;
  background-position: left center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: var(--font-size-large);
  transition: background-position 0.15s ease-in-out;
  line-height: 1.3;
  padding-bottom: 2px;
  word-break: break-word;
}

.email-link {
  font-size: var(--font-size-xl);
}

.email-link:hover,
.social-link:hover {
  background-position: right center;
}

/* Footer */
footer {
  min-height: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--spacing-lg) var(--spacing-md);
  gap: var(--spacing-sm);
}

footer p {
  margin: var(--spacing-sm);
  text-align: center;
}

/* Logo colors */
.cls-1 {
  fill: #e8e26b;
  transition: all 0.25s ease-in-out;
}

.cls-1:hover {
  fill: #e86b8c;
}

.cls-2 {
  fill: #0a1007;
}

.cls-3 {
  fill: #fff;
}

.cls-4 {
  fill: #080f05;
}

.cls-5 {
  fill: #82e86d;
  transition: all 0.25s ease-in-out;
}

.cls-5:hover {
  fill: #e8ad6d;
}

.cls-6 {
  fill: #64e2e8;
  transition: all 0.25s ease-in-out;
}

.cls-6:hover {
  fill: #887acc;
}

#Capa_1 {
  max-width: min(400px, 80%);
}

/* Music section */
.my-music {
  width: 100%;
}

.my-tracks p {
  padding: var(--spacing-md);
  font-size: var(--font-size-large);
  font-weight: 600;
}

.track {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 120px;
  transition: all 0.25s ease-in-out;
  padding: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  border-bottom: 1px solid black;
}

#track1:hover {
  background-color: var(--yellow);
}

#track2:hover {
  background-color: var(--green);
}

#track3:hover {
  background-color: var(--blue);
}

.track img {
  max-height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.music-title {
  margin: var(--spacing-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.music-subtitle {
  font-weight: 500;
  margin-left: 5px;
  font-size: var(--font-size-base);
}

.music-url {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.music-url a {
  text-decoration: none;
  color: black;
  transition: all 0.25s ease-in-out;
  border-radius: 4px;
  font-size: var(--font-size-small);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-url a:hover {
  font-weight: 700;
}

/* Design section */
.designs-section {
  width: 100%;
}

.designs-section p {
  padding: var(--spacing-md);
  font-size: var(--font-size-large);
  font-weight: 600;
}

.design {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 120px;
  transition: all 0.25s ease-in-out;
  padding: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
    border-bottom: 1px solid black;
}

.design-title {
  margin: var(--spacing-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.design-subtitle {
  font-weight: 600;
  font-size: var(--font-size-base);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.design-url {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

.design-url a {
  text-decoration: none;
  color: black;
  transition: all 0.25s ease-in-out;
  border-radius: 4px;
  font-size: var(--font-size-small);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-url a:hover {
  font-weight: 700;
}

/* Archive section */
.archives {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: var(--spacing-md);
}

.archive-container {
  width: 100%;
  max-width: 1200px;
  padding: var(--spacing-md);
  margin-top: -50px;
  column-count: 3;
  column-gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden {
  display: none;
}

.archive-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.archive-item:hover {
  transform: translateY(30px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.archive-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.archive-item:hover img {
  filter: brightness(1.05);
}

.archive-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: var(--spacing-md);
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}

.archive-item:hover .archive-item-overlay {
  opacity: 1;
}

.archive-item-title {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin: 0;
}

.archive-item-category {
  font-weight: 400;
  font-size: var(--font-size-small);
  margin-top: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
}

.archive-header {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  font-size: var(--font-size-xxl);
  font-weight: 800;
  margin-top: 100px;
}

.archive-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-md);
}

.filter-btn {
  background: none;
  border: 1px solid black;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 500;
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: black;
  color: white;
}

.filter-btn.yellow:hover,
.filter-btn.yellow.active {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: black;
}

.filter-btn.green:hover,
.filter-btn.green.active {
  background-color: var(--green);
  border-color: var(--green);
  color: black;
}

.filter-btn.blue:hover,
.filter-btn.blue.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: black;
}

.filter-btn.pink:hover,
.filter-btn.pink.active {
  background-color: var(--pink);
  border-color: var(--pink);
  color: black;
}

.filter-btn.orange:hover,
.filter-btn.orange.active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: black;
}

.filter-btn.purple:hover,
.filter-btn.purple.active {
  background-color: var(--purple);
  border-color: var(--purple);
  color: black;
}

/* Media Queries for Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .archive-container {
    column-count: 2;
  }
  .hero {
    height: 40vh;
    min-height: 300px;
  }

  #Capa_1 {
    width: 50%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --font-size-small: clamp(0.75rem, 2.5vw, 0.85rem);
    --font-size-base: clamp(0.9rem, 3vw, 1.1rem);
    --font-size-large: clamp(1.1rem, 3.5vw, 1.3rem);
    --font-size-xl: clamp(1.3rem, 4.5vw, 1.6rem);
    --font-size-xxl: clamp(1.6rem, 5.5vw, 2.2rem);
  }
  .about-me-4{
    margin-top: 10vh;
  }

      #mobile{
    display: none;
    }

  .header-bottom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid black;
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .header-bottom.mobile-open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .archive-container {
    column-count: 1;
    padding: var(--spacing-sm);
  }

  .track {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .track img {
    margin-bottom: var(--spacing-sm);
  }

  .design {
    flex-direction: column;
    align-items: flex-start;
  }

  .design-url {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    height: 35vh;
    min-height: 250px;
  }

  .hero2 {
    height: 20vh;
    min-height: 150px;
  }

  .about-me-1,
  .about-me-2,
  .about-me-3 {
    min-height: 30vh;
    padding: var(--spacing-md);
  }

  footer {
    flex-direction: column;
    padding: var(--spacing-md);
  }

  footer p {
    margin: var(--spacing-xs);
  }

  .archive-filters {
    gap: var(--spacing-xs);
  }

  .filter-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .header-top {
    height: 60px;
    font-size: var(--font-size-xl);
  }

  .header-bottom {
    padding: var(--spacing-sm);
  }

  .hero {
    height: 30vh;
    min-height: 200px;
    margin-top: 60px;
  }

  .hero2 {
    height: 15vh;
    min-height: 120px;
  }

  .about-me-1,
  .about-me-2,
  .about-me-3 {
    min-height: 25vh;
    padding: var(--spacing-sm);
  }

  .track {
    padding: var(--spacing-sm);
  }

  .track img {
    max-height: 60px;
    width: 60px;
  }

  .design {
    padding: var(--spacing-sm);
  }

  .archive-container {
    padding: var(--spacing-xs);
    margin-top: 20px;
  }

  .archive-header {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    margin-top: 60px;
  }

  .archive-filters {
    padding: 0 var(--spacing-xs);
  }

  .filter-btn {
    padding: var(--spacing-xs);
    font-size: 0.75rem;
    min-height: 40px;
  }

  .music-url,
  .design-url {
    justify-content: center;
    gap: var(--spacing-xs);
  }

  .music-url a,
  .design-url a {
    font-size: 0.75rem;
    min-height: 40px;
  }

  #Capa_1 {
    max-width: 90%;
  }

  .hero2 img {
    max-height: 80%;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .header-top {
    height: 50px;
  }

  .hero {
    margin-top: 50px;
    height: 25vh;
    min-height: 180px;
  }

  .about-me-1,
  .about-me-2,
  .about-me-3 {
    min-height: 20vh;
  }

  .track img {
    max-height: 50px;
    width: 50px;
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: 0.4rem;
    min-height: 36px;
  }

  .music-url a,
  .design-url a {
    font-size: 0.7rem;
    min-height: 36px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 60vh;
    min-height: 300px;
  }

  .hero2 {
    height: 40vh;
    min-height: 200px;
  }

  .about-me-1,
  .about-me-2,
  .about-me-3 {
    min-height: 80vh;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .archive-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  header {
    position: static;
  }

  .hero,
  .hero2,
  .hero3 {
    background-image: none;
    border: 1px solid black;
  }

  .archive-container {
    column-count: 2;
  }

  .filter-btn {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .text-block {
    transition: none;
    opacity: 1;
    transform: none;
  }
}