:root {
  --gap: 1.25rem;
  --speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --closed: 10rem;
  --open: 40rem;
  --accent: #ff6b35;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Forum, serif;
  background: #121D23;
  color: #c5c7ce;
}

.head {
  max-width: 1400px;
  margin: auto;
  padding: 10% 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.head h2 {
  font: 400 1.5rem/1.2 Forum, serif;
  color: #fff;
}

@media (min-width: 1024px) {
  .head h2 {
    font-size: 2.25rem;
  }
}

.nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--accent);
  color:#121D23;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slider {
  max-width: 1400px;
  margin: auto;
  overflow: visible;
}

.controls {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.track {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
}

.track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 var(--closed);
  height: 26rem;
  border-radius: 1rem;
  overflow: Visible;
  cursor: pointer;
  transition: flex-basis var(--speed), transform var(--speed);
}

.project-card[active] {
  flex-basis: var(--open);
  transform: translateY(-4px);
  box-shadow: 5px 18px 55px #FF5722;
}

.project-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(75%);
  transition: filter 0.3s, transform var(--speed);
}

.project-card:hover .project-card__bg {
  filter: brightness(0.9) saturate(100%);
  transform: scale(1.06);
}

.project-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 0;
}

/* This div is only as big as the content, and holds the frosted glass */
.frosted-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 2rem 2.5rem;

  background: rgba(255, 255, 255, 0.05); /* brighter glass */
  border-radius: 1.25rem;

  /* stronger blur for glow */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  /* radiant edges */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.15);

  /* subtle light reflection */
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.frosted-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

.project-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}


.project-card__titleone {
  display:none;
}

.project-card__thumb,
.project-card__desc,
.project-card__btn {
  display: none;
}

.project-card[active] .project-card__content {
  flex-direction: row;
  align-items: center;
  padding: 1.2rem 2rem;
  gap: 1.1rem;
}

.project-card[active] .project-card__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 2.4rem;
}

.project-card[active] .project-card__thumb,
.project-card[active] .project-card__desc,
.project-card[active] .project-card__btn
{
  display: block;
}

.project-card[active] .example-2
{
  display: flex;
}

.project-card__thumb {
  width: 133px;
  height: 269px;
  border-radius: 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.project-card__desc {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 16rem;
}

.project-card__btn {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.project-card__btn:hover {
  background: #ff824f;
}

.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 20px 0;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 767px) {
  :root {
    --closed: 4rem;
    --open: 22rem;
  }
  
  .head {
    padding: 50px 20px 30px;
  }
  
  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  
  .project-card {
    height: 20rem;
  }
  
  .project-card__title {
    font-size: 1.1rem;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    padding-inline: 0.3rem;
  }
  
  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
  
}

@media (max-width: 767px) {
  :root {
    --closed: 100%;
    --open: 100%;
    --gap: 0.8rem;
  }

  .head {
    padding: 30px 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .slider {
    padding-top: 6px; /* give the active card room to rise */
    overflow: hidden; /* leave everything else as is */
  }

  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    gap: 0.8rem;
    padding-bottom: 20px;
  }

  .project-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  .project-card[active] {
    min-height: 300px;
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .project-card__content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }

  .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    margin-right: auto;
  }

  .project-card__thumb,
  .project-card__desc,
  .project-card__btn {
    display: none;
  }

  .project-card[active] .project-card__content {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .project-card[active] .project-card__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
  }

  .project-card[active] .project-card__thumb {
    width: 200px;
    height: 267px;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
  }

  .project-card[active] .project-card__desc {
    font-size: 0.95rem;
    max-width: 100%;
    margin-top: 5rem;
    margin-bottom: 1rem;
  }
  
  
@media (max-width: 767px) {
  
.project-card[active] .project-card__desc {
    font-size: 0.95rem;
    max-width: 100%;
    margin-top: 0rem;
    margin-bottom: 1rem;
  }
}
  .project-card[active] .project-card__btn {
    align-self: center;
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }

  .dots {
    display: none;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
    padding: 0 15px 20px;
  }

  .nav-btn {
    position: static;
    transform: none;
  }
  
}

.project-card {
  /* 2px Dodger‑Blue border that follows the existing 1rem radius */
  border: 2px solid #FF5722;
  /* no need to re‑declare radius if it’s already 1rem, 
     but you can reaffirm it here if you like: */
  border-radius: 1rem;
  /* clip any child overflow to keep the shape clean */
  overflow: hidden;
}

.project-card[active] {
  /* ensure the active card keeps the same border style */
  border: 2px solid #FF5722;
}

/* centre the wrapper that holds your <h3> + <p> */
.frosted-box > div {
  display: inline-flex; /* shrink‑to‑fit its contents */
  flex-direction: column; /* stack <h3> over <p> */
  align-items: center; /* horizontally centre both */
  text-align: center; /* ensure any text inside is centred */
}

/* make absolutely sure your subtext is centred and not left‑aligned */
.project-card__desc {
  margin: 0 auto; /* centre the block if it ever gets a width */
  text-align: center; /* centre its own text */
}


    .social {
      position: absolute;
      z-index: 10;
      bottom: 20px;
      right: 25px;
      color: #fff;
      opacity: 1;
    }
    
    .social a {
      display: inline-flex;          /* centra el icono */
      justify-content: center;
      align-items: center;
      width: 40px;                   /* mismo alto y ancho */
      height: 40px;
      margin-left: 10px;
      border-radius: 50%;            /* hace el círculo */
      text-decoration: none;
      color: inherit;
      transition: background 0.3s, opacity 0.3s;
    }
    
    .social a:hover {
      background: var(--accent);     /* color de fondo al pasar el mouse */
      opacity: 1;                    /* más visible */
    }
    
    svg{
        --fill: #fff;
        width: 55px;
        height: 100px;
    }
    
    svg:hover{
        --fill: #121D23;
    }
    

@media (max-width: 767px) {
        .controls{
            display:none;
        }
        
        .social {
            position: absolute;
            z-index: 10;
            bottom: 35px;
            right: 35px;
            color: #fff;
        }
        
        a   {
            display: inline-block;
            margin-left: 10px;
        }
    
        svg{
            --fill: #fff;
            width: 35px;
            height: 35px;
        }
    }
    
    
    
    .cursor {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  margin: calc(var(--size) * -0.5) 0 0 calc(var(--size) * -0.5);
  transition: transform .85s cubic-bezier(0, 0.02, 0, 1);
  display: none;
  pointer-events: none;
  
  @media (pointer: fine) {
    display: block;
  }
}

.cursor2 {
  --size: 2px;
  transition-duration: .7s;
}


ul {
  list-style: none;
}

.example-2 {
  display: none;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 19px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -43px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="iconn"] .filled,
.example-2 .icon-content a[data-social="iconn"] ~ .tooltip {
  background-color: #ff6b35;
}