/* ================= HERO ================= */
.hero-layout{
  display:flex;
  gap:40px;
  align-items:center;
  margin-bottom:60px;
}

.hero-text{
  flex:1;
}

.hero-text h1{
  font-size:72px;
}

.hero-video{
  flex:1;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:18px;
}

.hero-video video{
  width:100%;
  height:100%;
  object-fit:cover;
}


/* ================= PROJECT GRID ================= */
.project-grid{
  display:flex;
  gap:20px;
}

.project-grid a{
  flex:1;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:16px;
}

.project-grid img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* PROJECT CARD WITH CAPTION OVERLAY */
.project-card{
  position:relative;
  display:block;
  overflow:hidden;
}

.project-caption{
  position:absolute;
  bottom:0;
  left:0;
  padding:16px 18px;
  background:linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), rgba(0,0,0,0));
  color:#fff;
  font-size:18px;
  font-weight:600;
  letter-spacing:0.3px;
  transition:transform 0.35s ease;
  z-index:5;
}

.project-card:hover .project-caption{
  transform:translateY(-3px);
}


/* ================= BUTTON ================= */
.calc-section{
  text-align:center;
  margin:50px 0;
}

/* =================================
   Glass Calculator Button
================================= */

.calc-btn{
  padding:18px 55px;
  border-radius:60px;

  font-size:16px;
  font-weight:600;
  color:#fff;

  border:1px solid rgba(255,255,255,0.25);

  /* 🔴 RED GLASS */
  background:rgba(229,57,53,0.18);

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.25),
    0 10px 30px rgba(0,0,0,0.35);

  cursor:pointer;
  transition: all .35s ease;
}
.calc-btn:hover{
  background:rgba(229,57,53,0.35);
  transform:translateY(-3px) scale(1.05);
}

}
.calc-btn:active{
  transform:scale(.97);
}
@media(max-width:768px){
  .calc-btn{
    padding:14px 30px;
    font-size:14px;
    width:100%;
  }
}





/* =================================================
   MOBILE HOME
================================================= */
@media(max-width:768px){

  /* stack hero */
  .hero-layout{
    flex-direction:column;
    text-align:center;
  }

  .hero-text h1{
    font-size:30px;
  }

  .hero-text p{
    font-size:13px;
  }

  /* stack projects */
  .project-grid{
    flex-direction:column;
  }

  .project-grid a{
    width:100%;
    aspect-ratio:16/10;
  }

  .calc-btn{
    padding:14px 24px;
    font-size:14px;
  }
}
/* ================= PROJECT HOVER (ONLY BIGGER) ================= */

.project-grid img{
  transition: transform .35s ease;
}

.project-grid a:hover img{
  transform: scale(1.10);
  z-index: 2;
}
/* ================= MOBILE BUTTON ================= */
@media(max-width:768px){

  .calc-btn{
    width:100%;          /* full width */
    padding:14px 20px;   /* smaller */
    font-size:14px;      /* smaller text */
    border-radius:14px;
  }

}
/* =====================================
   TABLET FIX (768px–1024px only)
   iPad hero text smaller
===================================== */
@media (max-width:1024px) and (min-width:769px){

  .hero-layout{
    flex-direction:column;
    text-align:center;
    gap:30px;
  }

  .hero-text h1{
    font-size:42px;   /* was 72px */
    line-height:1.3;
  }

  .hero-text p{
    font-size:16px;
  }

  .hero-video{
    width:100%;
    aspect-ratio:16/10;
  }

  /* project thumbnails bigger on tablet */
  .project-grid{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }
}

