* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: 'Calibri', sans-serif;
}

:root {
  --bg-color: #f3e4cb;
  --second-bg-color: #d88e0d;
  --text-color: #ffffff;
  --main-color: #f3e3cb;
  --carousel-speed: 15s;
  --carousel-gap: 4rem;
  --carousel-padding: 3.75rem;
  --logo-width: 15rem;
  --gradient-width: 15%;
}

html[data-view="black"] {
  background-image: none;
  background-color: #050505;
}

html {
  font-size: 50%;
  overflow-x: hidden;
  background-image: url(../img/backgroundaboutme.png);
  background-size: cover;
}

html[data-view="black"] body {
  background: #050505;
  color: #ffffff;
}

body {
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 12rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 8% 1rem;
  background: #8a603bbb;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

span img {
  width: 20%;
  border-radius: 25%;
}


.logo {
  font-size: 3rem;
  color: #20190F;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo span {
  text-shadow: 0 0 25px var(--main-color);
  color: var(--main-color);
}

.navbar a {
  font-size: 2.3rem;
  color: #000000;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: #1E160E;
  border-bottom: 3px solid #1E160E;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 4rem;
}

.theme-switcher-label {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #20190F;
}

.theme-switcher-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  background: rgba(243, 228, 203, 0.18);
  border: 1px solid rgba(32, 25, 15, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.theme-option {
  min-width: 7.4rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
  border: 1px solid transparent;
}

.theme-option:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.theme-option[data-view="white"] {
  background: #ffffff;
  color: #20190F;
  box-shadow: inset 0 0 0 1px rgba(32, 25, 15, 0.12);
}

.theme-option[data-view="black"] {
  background: #111111;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.theme-option.active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--main-color), 0 6px 16px rgba(32, 25, 15, 0.18);
}

html[data-view="black"] .header {
  background: rgba(5, 5, 5, 0.92);
}

html[data-view="black"] .navbar a,
html[data-view="black"] .theme-switcher-label,
html[data-view="black"] .logo,
html[data-view="black"] .bio-text,
html[data-view="black"] .tech-icon span,
html[data-view="black"] .video-section pre,
html[data-view="black"] .video-section p,
html[data-view="black"] .mywork-description,
html[data-view="black"] .skill-icon .skill-name,
html[data-view="black"] .footer-text p {
  color: #ffffff;
}

html[data-view="black"] .navbar a:hover,
html[data-view="black"] .navbar a.active {
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

html[data-view="black"] .home,
html[data-view="black"] .tech-carousel-section,
html[data-view="black"] .projects-section,
html[data-view="black"] .mywork-section,
html[data-view="black"] .skills-section,
html[data-view="black"] .footer {
  background-color: #090909;
}

html[data-view="black"] .slide,
html[data-view="black"] .slider-container,
html[data-view="black"] .mywork-item,
html[data-view="black"] .skill-category {
  background: #111111;
  border-color: rgba(243, 228, 203, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html[data-view="black"] .tech-icon,
html[data-view="black"] .skill-icon,
html[data-view="black"] .social-link,
html[data-view="black"] .slider-nav-btn,
html[data-view="black"] .theme-switcher-controls {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-view="black"] .theme-option.active {
  box-shadow: 0 0 0 2px var(--main-color), 0 8px 18px rgba(0, 0, 0, 0.45);
}

html[data-view="black"] .img-wrapper img {
  border-color: var(--main-color);
}

a:focus-visible,
button:focus-visible,
#menu-icon:focus-visible {
  outline: 3px solid var(--main-color);
  outline-offset: 4px;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

section {
  margin-top: 60px;
  padding: 10rem 12% 10rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
  background-color: rgba(138, 96, 59, 0.73);
  min-height: 110vh;
  padding: 0 12%;
  position: relative;
  overflow: hidden;
}

/* Contenido principal */
.home-content {
  flex: 1;
  max-width: 800px;
  z-index: 1;
}

.greeting-wrapper {
  margin-bottom: 3rem;
}

.greeting-wrapper h1 {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.greeting-wrapper h1 .highlight {
  color: var(--main-color);
  position: relative;
  display: inline-block;
}

.greeting-wrapper h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--main-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.greeting-wrapper h1:hover .highlight::after {
  transform: scaleX(1);
  transform-origin: left;
}

.role-animation {
  margin-top: 2rem;
}

.role-animation h3 {
  font-size: 4rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Typed text animation styles */
.typed-text {
  color: var(--main-color);
  font-weight: 600;
  display: inline-block;
  min-height: 4rem;
  line-height: 4rem;
  margin-left: 5px;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 4rem;
  background-color: var(--main-color);
  margin-left: 5px;
  animation: blink 0.8s infinite;
  vertical-align: bottom;
}

.cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Bio section */
.bio-wrapper {
  margin: 4rem 0;
}

.bio-text {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.9;
}

.highlight-text {
  color: var(--main-color);
  font-weight: 600;
}

.tech-stack {
  color: #f3e4cb;
  font-weight: 500;
  padding: 0.2rem 0.8rem;
  background: rgba(243, 228, 203, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tech-stack:hover {
  background: rgba(243, 228, 203, 0.2);
  transform: translateY(-2px);
}

.achievement {
  color: #ffd700;
  font-weight: 500;
}

/* Technology Carousel Section */
.tech-carousel-section {
    background: rgba(138, 96, 59, 0.73);
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    margin-top: 1px;
}

.tech-carousel-section::before,
.tech-carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-carousel-section::before {
  left: 0;
  background: linear-gradient(to right, rgba(138, 96, 59, 0.95) 0%, transparent 100%);
}

.tech-carousel-section::after {
  right: 0;
  background: linear-gradient(to left, rgba(138, 96, 59, 0.95) 0%, transparent 100%);
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

.logos {
  display: flex;
  gap: 4rem;
  animation: scroll var(--carousel-speed) linear infinite;
  padding: 2rem 0;
  will-change: transform;
  width: max-content;
}

.logos:hover {
  animation-play-state: paused;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(243, 228, 203, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 228, 203, 0.1);
}

.tech-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(243, 228, 203, 0.2),
      transparent);
  transition: 0.5s;
}

.tech-icon i {
  font-size: 4rem;
  color: var(--main-color);
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(243, 228, 203, 0.3));
}

.tech-icon span {
  font-size: 1.6rem;
  color: var(--text-color);
  opacity: 0.9;
  transition: all 0.4s ease;
  text-align: center;
  font-weight: 500;
}

.tech-icon:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(243, 228, 203, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(243, 228, 203, 0.3);
}

.tech-icon:hover::before {
  left: 100%;
}

.tech-icon:hover i {
  color: #ffffff;
  transform: scale(1.2) rotate(360deg);
  filter: drop-shadow(0 0 12px rgba(243, 228, 203, 0.5));
}

.tech-icon:hover span {
  opacity: 1;
  color: var(--main-color);
  transform: scale(1.1);
}

/* Ensure smooth animation */
@media (prefers-reduced-motion: no-preference) {
  .logos {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-icon {
    min-width: 120px;
    padding: 1.5rem;
  }

  .tech-icon i {
    font-size: 3rem;
  }

  .tech-icon span {
    font-size: 1.4rem;
  }

  .logos {
    gap: 2rem;
  }
}


/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  .logos {
    gap: 4rem;
  }

  .tech-icon {
    min-width: 100px;
    padding: 1.5rem;
  }

  .tech-icon i {
    font-size: 3.5rem;
  }

  .tech-icon span {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logos {
    gap: 3rem;
  }

  .tech-icon {
    min-width: 80px;
    padding: 1rem;
  }

  .tech-icon i {
    font-size: 3rem;
  }

  .tech-icon span {
    font-size: 1.1rem;
  }
}

/* Social Icons */
.social-icons-wrapper {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
}

.social-link {
  position: relative;
  width: 5rem;
  height: 5rem;
  background: rgba(243, 228, 203, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.social-link i {
  font-size: 2.5rem;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.social-link .tooltip {
  position: absolute;
  top: -40px;
  background: var(--main-color);
  color: #20190F;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.social-link .tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--main-color) transparent transparent transparent;
}

.social-link:hover {
  background: var(--main-color);
  transform: translateY(-5px);
  border-color: var(--main-color);
}

.social-link:hover i {
  color: #20190F;
}

.social-link:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* CTA Buttons */
.cta-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-size: 1.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-button:hover::before {
  transform: translateX(100%);
}

.cta-button.primary {
  background: var(--main-color);
  color: #20190F;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
  background: #e3d4bb;
}

.cta-button.secondary:hover {
  background: var(--main-color);
  color: #20190F;
}

/* Imagen y Badge */
.home-img {
  position: relative;
  flex: 0 0 auto;
  margin-left: 4rem;
  perspective: 1000px;
}

.img-wrapper {
  position: relative;
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  background-color: rgba(138, 96, 59, 0.1);
  /* Color de fondo temporal para debugging */
  border: 1px solid rgba(243, 228, 203, 0.3);
  /* Borde temporal para debugging */
}

/* Debug outline para el contenedor de la imagen */
.home-img {
  position: relative;
  flex: 0 0 auto;
  margin-left: 4rem;
  perspective: 1000px;
  outline: none;
}

.img-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--main-color);
  border-radius: 22px;
  z-index: -1;
  transform: translateZ(-50px);
  opacity: 0.5;
}

.corner-accent {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-color);
  opacity: 0.8;
}

.corner-accent.top-left {
  top: -15px;
  left: -15px;
  border-right: none;
  border-bottom: none;
}

.corner-accent.top-right {
  top: -15px;
  right: -15px;
  border-left: none;
  border-bottom: none;
}

.corner-accent.bottom-left {
  bottom: -15px;
  left: -15px;
  border-right: none;
  border-top: none;
}

.corner-accent.bottom-right {
  bottom: -15px;
  right: -15px;
  border-left: none;
  border-top: none;
}

.img-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--main-color), transparent);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
  border: 4px solid #20190F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-img.loaded {
  opacity: 1;
}

.profile-img.image-error {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(243, 228, 203, 0.3),
      transparent 60%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-wrapper:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

.img-wrapper:hover img {
  transform: scale(1.02);
}

.img-wrapper:hover .img-overlay {
  opacity: 1;
}

.img-wrapper:hover .corner-accent {
  animation: accentPulse 1.5s infinite alternate;
}

@keyframes accentPulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.experience-badge {
  position: absolute;
  bottom: 40px;
  right: -30px;
  background: var(--main-color);
  color: #20190F;
  padding: 2rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.experience-badge .years {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 1200px) {
  .home {
    padding: 0 6%;
  }

  .img-wrapper {
    width: 350px;
    height: 450px;
  }

  .greeting-wrapper h1 {
    font-size: 6rem;
  }

  .header {
    padding: 1rem 5% 0rem
  }

  .navbar a {
    margin-left: 3rem;
  }
}

@media (max-width: 991px) {
  .home {
    flex-direction: column;
    gap: 5rem;
    padding-top: 8rem;
    text-align: center;
    min-height: auto;
  }

  .home-content {
    align-items: center;
    max-width: 100%;
  }

  .bio-text {
    text-align: left;
    font-size: 1.8rem;
  }

  .social-icons-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }

  .img-wrapper {
    width: 300px;
    height: 400px;
    margin: 0 auto;
  }

  .experience-badge {
    right: -20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
  }

  .header {
    padding: 1rem 1% 1rem;
  }

  .cta-wrapper {
    justify-content: center;
  }

  section {
    padding: 8rem 6% 6rem;
  }
}

@media (max-width: 480px) {
  .greeting-wrapper h1 {
    font-size: 4rem;
  }

  .role-animation h3 {
    font-size: 2.8rem;
  }

  .bio-text {
    font-size: 1.6rem;
    padding: 0 1rem;
  }

  .cta-wrapper {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }

  .img-wrapper {
    width: 280px;
    height: 350px;
  }

  .header {
    padding: 2rem 4% 1rem;
  }

  .navbar a {
    font-size: 1.8rem;
    margin-left: 2rem;
  }

  .social-link {
    width: 4rem;
    height: 4rem;
  }

  .social-link i {
    font-size: 2rem;
  }

  .cta-button {
    width: 100%;
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
  }

  section {
    padding: 6rem 4% 4rem;
  }

  .experience-badge {
    width: 80px;
    height: 80px;
    right: -10px;
    bottom: 10px;
  }

  .experience-badge .years {
    font-size: 2.4rem;
  }

  .experience-badge .text {
    font-size: 1rem;
  }
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Web Developer";
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: transparent;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: 100%;
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {

  0%,
  20% {
    content: "Game_Designer";
  }

  21%,
  40% {
    content: "Narrative_Designer";
  }

  41%,
  60% {
    content: "Tester";
  }

  61%,
  80% {
    content: "Programmer";
  }

  81%,
  100% {
    content: "IT_Consultant";
  }
}

@keyframes typing {

  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

/* ==== EDUCATION ==== */
.education {
  padding: 100px 10% 80px;
  background: #fff;
  color: #000;
  font-family: "Poppins", sans-serif;
}

.education .heading {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-color);
}

.education .heading span {
  color: var(--main-color);
}

.education-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.education-column {
  flex: 1 1 700px;
}

.education-column .title {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  text-align: center;
}

.education-box {
  border-left: 3px solid var(--main-color);
  padding-left: 2rem;
  position: relative;
}

.education-content {
  position: relative;
  margin-bottom: 2.5rem;
}

.education-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1.4rem;
  width: 20px;
  height: 20px;
  background: var(--main-color);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px var(--main-color);
}

.education-content .content {
  background: #f3f3f3;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.education-content .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.education-content .year {
  font-size: 1.2rem;
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.education-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.education-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.slide {
  display: flex;
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #926844;
  align-items: center;
  flex-direction: column;
}

.slide .video-section video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.slide .video-section b {
  display: block;
  font-size: 3rem;
  color: #ff6b6b;
  margin: 0.5rem 0;
}

.slide .video-section p {
  margin-top: 1rem;
  font-size: 2.5rem;
  line-height: 1.6;
}

.projects-section {
  background-color: rgba(138, 96, 59, 0.73);
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-section {
  padding: 10rem 12%;
  background-color: rgba(138, 96, 59, 0.73);
  color: whitesmoke;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.projects-section .heading {
  font-size: 8rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--text-color);
}


.gameboy-dpad button {
  width: 40px;
  height: 40px;
  background: var(--text-color);
  border: none;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gameboy-dpad button i {
  font-size: 2rem;
  color: #20190F;
  transition: all 0.3s ease;
}

.gameboy-dpad .btn-up {
  grid-area: up;
  justify-self: center;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.gameboy-dpad .btn-right {
  grid-area: right;
  justify-self: end;
  align-self: center;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
}

.gameboy-dpad .btn-down {
  grid-area: down;
  justify-self: center;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.gameboy-dpad .btn-left {
  grid-area: left;
  justify-self: start;
  align-self: center;
  clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
}

.gameboy-dpad button:hover {
  background-color: var(--main-color);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--main-color);
}

.gameboy-dpad button:active {
  transform: scale(0.95);
  background-color: #e3d4bb;
}

.gameboy-dpad .dpad-center {
  grid-area: center;
  width: 20px;
  height: 20px;
  background: var(--text-color);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  pointer-events: none;
}
.projects-section .heading span {
  color: var(--main-color);
  position: relative;
}

.projects-section .heading span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.projects-section .heading:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Legacy gameboy-dpad styles - Keeping for reference but not in use
.gameboy-dpad {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 2rem auto 4rem;
  background: #20190F;
  border-radius: 50%;
  padding: 15px;
  border: 2px solid var(--main-color);
  box-shadow: 0 0 20px rgba(243, 228, 203, 0.3);
  display: grid;
  grid-template-areas:
    ". up ."
    "left center right"
    ". down .";
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  gap: 5px;
  z-index: 2;
}
*/

.gameboy-dpad button {
  width: 40px;
  height: 40px;
  background: var(--text-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.gameboy-dpad button i {
  font-size: 2rem;
  color: #20190F;
  transition: all 0.3s ease;
}

.gameboy-dpad .btn-up {
  grid-area: up;
  justify-self: center;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.gameboy-dpad .btn-right {
  grid-area: right;
  justify-self: end;
  align-self: center;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
}

.gameboy-dpad .btn-down {
  grid-area: down;
  justify-self: center;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.gameboy-dpad .btn-left {
  grid-area: left;
  justify-self: start;
  align-self: center;
  clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
}

.gameboy-dpad button:hover {
  background-color: var(--main-color);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--main-color);
}

.gameboy-dpad button:active {
  transform: scale(0.95);
  background-color: #e3d4bb;
}

.gameboy-dpad .dpad-center {
  grid-area: center;
  width: 20px;
  height: 20px;
  background: var(--text-color);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  pointer-events: none;
}

/* Projects Section Navigation */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.slider-nav-btn {
  width: 60px;
  height: 60px;
  background: rgba(243, 228, 203, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn i {
  font-size: 2.8rem;
  transition: transform 0.3s ease;
}

.slider-nav-btn:hover {
  background: var(--main-color);
  color: #20190F;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(243, 228, 203, 0.4);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.slider-nav-btn:hover i {
  transform: translateX(0);
}

.slider-nav-btn.prev-btn:hover i {
  transform: translateX(-3px);
}

.slider-nav-btn.next-btn:hover i {
  transform: translateX(3px);
}

.nav-tooltip {
  position: absolute;
  top: -40px;
  background: var(--main-color);
  color: #20190F;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.nav-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--main-color) transparent transparent transparent;
}

.slider-nav-btn:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(146, 104, 68, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border: 2px solid rgba(243, 228, 203, 0.2);
  transition: all 0.3s ease;
}

.slider-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(243, 228, 203, 0.3);
}

/* Slider Indicators */
.slider-indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(243, 228, 203, 0.3);
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.slider-indicator:hover {
  background: rgba(243, 228, 203, 0.5);
  transform: scale(1.2);
}

.slider-indicator.active {
  background: var(--main-color);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(243, 228, 203, 0.5);
}

.slider-indicator.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  opacity: 0.5;
  animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.slider {
  width: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}


.video-section {
  flex: 2;
  margin-right: 20px;
  font-size: 25px;
}

.video-section video {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.video-section p {
  margin-top: 40px;
}

.images-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.images-section img {
  width: 100px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.dpad-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--main-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
}

.nav {
  width: 40px;
  height: 40px;
  background-color: #2a2a2a;
  color: var(--main-color);
  border: none;
  cursor: pointer;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.nav.prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.nav.next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.nav i {
  font-size: 2rem;
  transition: all 0.15s ease;
}

.nav .tooltip {
  position: absolute;
  background: var(--main-color);
  color: #20190F;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav.prev .tooltip {
  right: calc(100% + 10px);
  transform: translateY(-50%);
}

.nav.next .tooltip {
  left: calc(100% + 10px);
  transform: translateY(-50%);
}

.nav:hover {
  background-color: #3a3a3a;
}

.nav:active {
  transform: translateY(-50%) scale(0.95);
  background-color: var(--main-color);
  color: #20190F;
}

.nav:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.gameboy-dpad::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, var(--main-color), transparent);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.gameboy-dpad:hover::before {
  opacity: 0.5;
}

.prev {
  left: 10px;
  padding-right: 5px;
}

.next {
  right: 10px;
  padding-left: 5px;
}

@media (max-width: 768px) {
  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .projects-section .heading {
    font-size: 5rem;
  }

  .slider-wrapper {
    gap: 1rem;
  }

  .slider-nav-btn {
    width: 50px;
    height: 50px;
  }

  .slider-nav-btn i {
    font-size: 2.4rem;
  }

  .slider-container {
    padding: 1.5rem;
    min-height: 300px;
    border-radius: 15px;
  }

  .video-section {
    font-size: 18px;
    margin-right: 0;
  }

  .video-section video {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
  }

  .video-section b {
    font-size: 2.2rem;
  }

  .video-section p {
    margin-top: 1.5rem;
    font-size: 1.6rem;
  }

  .images-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: black;
  width: 50px;
}

.contact {
  background-color: black;
}

.contact h2 {
  margin-bottom: 3rem;
  color: white;
}

.contact form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
}

.carousel {
  position: relative;
  padding-block: var(--carousel-padding);
  display: flex;
  column-gap: var(--carousel-gap);
  overflow-x: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 15%);

  .logos {
    display: flex;
    column-gap: var(--carousel-gap);
    animation: scroll 120s linear infinite;
    will-change: transform;

    img {
      width: var(--logo-width);
      object-fit: contain;
      transition: scale 0.5s;
      user-select: none;

      &:hover {
        scale: 1.10;
      }
    }
  }

  &:hover .logos {
    animation-play-state: paused;
  }

  &::after,
  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--gradient-width);
    z-index: 1;
    pointer-events: none;
  }

  &::before {
    left: 0;
    background-image: linear-gradient(to right, rgb(0, 0, 0), transparent);
  }

  &::after {
    right: 0;
    background-image: linear-gradient(to left, rgb(0, 0, 0), transparent);
  }
}

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

  100% {
    transform: translateX(calc(-100% - var(--carousel-gap)));
  }
}


/* ==== FOOTER ==== */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: #8a603bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--main-color);
  font-family: "Limelight", sans-serif;
}

.footer-text p {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text-color);
}

.footer-iconTop {
  position: absolute;
  top: -30px;
  right: 20px;
}

.footer-iconTop a {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--main-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-iconTop a:hover {
  color: var(--text-color);
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  font-size: 2.4rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
  transform: scale(1.2) translateY(-10px);
}

/*Image hovering*/
.slide {
  width: 100%;
  padding: 2rem;
}

.video-section {
  margin-bottom: 3rem;
}

.video-section video {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.video-section b {
  font-size: 3rem;
  color: var(--main-color);
  display: block;
  margin-bottom: 1rem;
}

.video-section pre {
  font-size: 1.8rem;
  color: var(--text-color);
  margin: 1rem 0;
  font-family: 'Calibri', sans-serif;
  line-height: 1.6;
}

.video-section p {
  font-size: 2rem;
  color: var(--text-color);
  line-height: 1.6;
}

.images-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.images-section img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  filter: brightness(0.9);
}

.images-section img:hover {
  transform: scale(1.8) translateY(-20px);
  border-color: var(--main-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .images-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .images-section img:hover {
    transform: scale(1.5) translateY(-10px);
  }
}

@media (max-width: 480px) {
  .images-section {
    grid-template-columns: 1fr;
  }

  /* Hide navigation buttons on mobile */
  .slider-nav-btn {
    display: none;
  }

  /* Show indicators on mobile */
  .slider-indicators {
    display: flex;
  }

  .slider-wrapper {
    gap: 0;
    flex-direction: column;
  }

  .slider-container {
    padding: 1rem;
    min-height: 250px;
    border-radius: 10px;
    width: 100%;
    touch-action: pan-y pinch-zoom;
  }

  .slide {
    padding: 1rem;
  }

  .video-section {
    font-size: 14px;
  }

  .video-section video {
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }

  .video-section b {
    font-size: 1.8rem;
  }

  .video-section pre,
  .video-section p {
    font-size: 1.4rem;
    margin-top: 1rem;
  }

  .images-section {
    gap: 0.8rem;
  }

  .nav {
    width: 35px;
    height: 35px;
  }

  .nav i {
    font-size: 1.6rem;
  }

  .nav.prev {
    left: 5px;
  }

  .nav.next {
    right: 5px;
  }
}

.mywork-section {
  padding: 10rem 12%;
  background-color: rgba(138, 96, 59, 0.73);
  color: whitesmoke;
  text-align: center;
}

.mywork-section .heading {
  font-size: 8rem;
  margin-bottom: 5rem;
  position: relative;
}

.mywork-section .heading span {
  color: var(--main-color);
  position: relative;
}

.mywork-section .heading span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.mywork-section .heading:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mywork-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.mywork-item {
  background: rgba(146, 104, 68, 0.95);
  border-radius: 20px;
  padding: 3rem;
  width: 300px;
  min-height: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mywork-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--main-color), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mywork-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mywork-item:hover::before {
  opacity: 0.1;
}

.mywork-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.mywork-icon i {
  font-size: 3.5rem;
  color: #20190F;
}

.mywork-item:hover .mywork-icon {
  transform: scale(1.1) rotate(10deg);
}

.mywork-item h3 {
  font-size: 2.4rem;
  margin: 1.5rem 0;
  color: var(--main-color);
  transition: color 0.3s ease;
}

.mywork-description {
  font-size: 1.6rem;
  color: #f3e4cb;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.work-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 30px;
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(243, 228, 203, 0.1);
}

.work-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(243, 228, 203, 0.2),
      transparent);
  transition: 0.5s;
}

.work-link span {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.work-link i {
  font-size: 2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.work-link:hover {
  background: var(--main-color);
  color: #20190F;
  box-shadow: 0 5px 15px rgba(243, 228, 203, 0.3);
  transform: translateY(-2px);
}

.work-link:hover::before {
  left: 100%;
}

.work-link:hover span {
  transform: translateX(-5px);
}

.work-link:hover i {
  transform: translateX(5px);
}

/* ==== SKILLS ==== */

.skills-section {
  padding: 10rem 12%;
  background-color: #8a603bbb;
  color: whitesmoke;
  text-align: center;
}

.skills-section .heading {
  font-size: 8rem;
  margin-bottom: 5rem;
  position: relative;
}

.skills-section .heading span {
  color: var(--main-color);
  position: relative;
}

.skills-section .heading span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.skills-section .heading:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem;
}

.skill-category {
  background-color: rgba(146, 104, 68, 0.95);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(243, 228, 203, 0.2);
}

.skill-category h3 {
  color: var(--main-color);
  font-size: 2.4rem;
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
  padding-left: 2rem;
}

.skill-category h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--main-color);
  border-radius: 2px;
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(243, 228, 203, 0.1);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(243, 228, 203, 0.2),
      transparent);
  transition: 0.5s;
}

.skill-icon:hover::before {
  left: 100%;
}

.skill-icon i {
  font-size: 3rem;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.skill-icon .skill-name {
  font-size: 1.4rem;
  color: var(--text-color);
  text-align: center;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-5px);
  background: rgba(243, 228, 203, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-icon:hover i {
  transform: scale(1.2);
  color: #ffffff;
}

.skill-icon:hover .skill-name {
  color: var(--main-color);
}

@media (max-width: 768px) {
  .skill-icons {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }

  .skill-icon {
    padding: 1.5rem;
  }

  .skill-icon i {
    font-size: 2.5rem;
  }

  .skill-name {
    font-size: 1.2rem;
  }
}

/* ==== FOOTER ==== */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: #8a603bbb;
  /* acorde con tu paleta */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--main-color);
  font-family: "Limelight", sans-serif;
}

.footer-text p {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text-color);
}

.footer-iconTop {
  position: absolute;
  top: -30px;
  right: 20px;
}

.footer-iconTop a {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--main-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-iconTop a:hover {
  color: var(--text-color);
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  font-size: 2.4rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
  transform: scale(1.2) translateY(-10px);
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .footer {
    padding: 20px 0;
  }

  .footer-iconTop {
    top: -25px;
    right: 10px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    line-height: 36px;
  }
}

@media (max-width:991px) {
  header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .home-content h1 {
    color: #884400;
  }

  .home-content h3 {
    font-size: 4.6rem;
  }

  span {
    color: #884400;
  }

  .timeline-items::before {
    left: 7px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }

  .timeline-dot {
    left: 0;
  }

  .services {
    padding-bottom: 7rem;
  }

  .testimonials .wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact form {
    flex-direction: column;
  }

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

@media(max-width:895px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 2rem 4%;
    background: rgba(138, 96, 59, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--main-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    transition: 0.3s ease;
  }

  .navbar.active {
    display: block;
    top: 100%;
  }

  .navbar a {
    display: block;
    font-size: 2.2rem;
    margin: 2.5rem 0;
    text-align: center;
    color: var(--text-color);
    transition: 0.3s ease;
  }

  .navbar a:hover {
    color: var(--main-color);
    transform: translateX(10px);
  }

  .theme-switcher {
    display: flex;
    width: 100%;
    margin: 2rem 0 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .theme-switcher-label {
    color: var(--main-color);
  }

  .theme-switcher-controls {
    width: 100%;
    max-width: 24rem;
    justify-content: center;
    background: rgba(243, 228, 203, 0.12);
    border-color: rgba(243, 228, 203, 0.22);
  }

  .theme-option {
    flex: 1;
  }

  .home {
    flex-direction: column-reverse;
    padding: 12rem 6% 4rem;
    gap: 3rem;
  }

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

  .home-content h3 {
    font-size: 2.8rem;
  }

  .home-content h1 {
    font-size: 6rem;
    margin: 2rem 0;
  }

  .home-content p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.8rem;
  }

  .home-img {
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
  }

  .services h2 {
    margin-bottom: 3rem;
    font-size: 3.5rem;
  }

  .services-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
  }

  .social-icons a {
    width: 4.5rem;
    height: 4.5rem;
    border: 2px solid var(--main-color);
    font-size: 2.2rem;
    color: var(--main-color);
    margin: 2rem 1rem;
  }

  .social-icons a:hover {
    background: var(--main-color);
    color: #20190F;
  }
}

@media (max-width:425px) {

  /* Keep normal document flow on small screens to avoid clipping */
  body {
    display: block;
  }

  /* Reduce section padding so content fits smaller screens */
  section {
    padding: 5rem 4% 4rem;
  }

  /* Allow the home section to size naturally on small devices */
  .home {
    min-height: auto;
    padding: 4rem 4%;
    overflow: visible;
  }

  .services-container,
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Hide navigation buttons on mobile */
  .slider-nav-btn {
    display: none;
  }

  /* Show indicators on mobile */
  .slider-indicators {
    display: flex;
  }

  .slider-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .slider-container {
    padding: 0.8rem;
    min-height: 200px;
    width: 100%;
    touch-action: pan-y pinch-zoom;
  }

  .video-section video {
    margin-bottom: 1rem;
  }

  .projects-section .heading {
    font-size: 4rem;
  }
}

@media (max-width:375px) {
  body {
    display: block;
  }

  .services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.2rem;
    height: 4.2rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 2rem 1rem;
    transition: 0.3s ease-in-out;
  }

  /* Hide navigation buttons on mobile */
  .slider-nav-btn {
    display: none;
  }

  /* Show indicators on mobile */
  .slider-indicators {
    display: flex;
  }

  .slider-wrapper {
    gap: 0;
  }

  .slider-indicator {
    width: 10px;
    height: 10px;
  }

  .slider-container {
    padding: 0.5rem;
    min-height: 180px;
  }

  .video-section b {
    font-size: 1.6rem;
  }

  .video-section pre,
  .video-section p {
    font-size: 1.2rem;
  }

  .nav {
    width: 30px;
    height: 30px;
  }

  .nav i {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .mywork-container {
    gap: 3rem;
  }

  .mywork-item {
    width: 100%;
    max-width: 350px;
  }

  .mywork-section .heading {
    font-size: 6rem;
  }
}

@media (max-width: 480px) {
  .mywork-section {
    padding: 8rem 6%;
  }

  .mywork-section .heading {
    font-size: 4rem;
  }

  .mywork-item {
    padding: 2rem;
    min-height: 280px;
  }

  .mywork-icon {
    width: 60px;
    height: 60px;
  }

  .mywork-icon i {
    font-size: 2.5rem;
  }
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .footer {
    padding: 20px 0;
  }

  .footer-iconTop {
    top: -25px;
    right: 10px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    line-height: 36px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }
}