/* ================= RESET ================= */
html, body {
  margin: 0;
  padding: 0;
  background: black;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* DESKTOP NO SCROLL */
@media (min-width: 769px) {
  html, body {
    overflow: hidden;
  }
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preloader .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/ayushiimage.png') center/cover no-repeat;
  filter: brightness(0.5);
}

#loader-text {
  position: relative;
  color: white;
  font-size: 50px;
  letter-spacing: 6px;
}

/* FINAL NAME ANIMATION */
.final-name {
  display: inline-block;
  animation: zoomBounce 0.8s ease forwards;
}

@keyframes zoomBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); }
}

/* ================= GRID ================= */
.main-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr; /* equal rows */

  gap: 15px;
  height: 100vh;

  padding: 15px;
  box-sizing: border-box;
}
/* ================= BOX ================= */
.box {
  position: relative;
  overflow: hidden;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;

  opacity: 0;
  transform: translateY(40px);
}

.box.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.4s ease;
}

/* ================= PROJECT 1 ================= */
.box:nth-child(1) {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 20px;
}

.box:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/ayushiself.jpg') center/contain no-repeat;
}

.box:nth-child(1) h2 {
  font-size: 18px;
  font-weight: 300;
  z-index: 2;
}

/* ================= OVERLAY ================= */
.box .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

/* ================= INFO BOX ================= */
.info-box {
  background: black !important;
}

.info-box .content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ================= WHITE CARD ================= */
.white-card {
  background: #fff !important;
  color: #000;
}

.white-card .overlay {
  display: none;
}

.card-inner {
  border: 1px solid #000;
  padding: 20px;
  width: 85%;
  margin: auto;
  height: 100%;
}

/* TEXT */
.name, .welcome {
  font-size: 18px;
  font-weight: 400;
}

.role {
  font-size: 13px;
  color: #555;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* ================= POPUP ================= */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.popup-content {
  background: #111;
  padding: 25px;
  color: #fff;
  width: 300px;
  text-align: center;
  border: 1px solid #fff;
  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#close {
  cursor: pointer;
  float: right;
}

#close-book{
    position:absolute;
    top:30px;
    right:30px;
    color:#fff;
    font-size:35px;
    cursor:pointer;
}
/* ================= HOVER ================= */
.box:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.box:nth-child(1) {
  background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/ayushiself.png') center/contain no-repeat;
}
.box:nth-child(2) {
  background: url('your-image3.jpg') center/cover no-repeat;}

.box:nth-child(3) {
     background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/ayushiabout.png') center/contain no-repeat;
  
}
.box:nth-child(6) {
  background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/lio.png') no-repeat center center;
  background-size: cover;
}
.box:nth-child(8) {
  background: url('https://ayushiwebstudio.site/wp-content/uploads/2026/04/caseone.png') no-repeat center center;
  background-size: cover;
}
/* PROJECT 7 BACKGROUND */
.box:nth-child(7) {
  background: #000;
  color: #fff;
}

/* TEXT WHITE */
.white-text {
  color: #fff;
}

/* BUTTON BLACK STYLE */
.dark-btn {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}
.portfolio-heading.white-text {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 400;
}
/* HOVER */
.dark-btn:hover {
  background: #fff;
  color: #000;
}

/* ================= SKILLS CARD ================= */
.skills-box {
  background: #000;   /* pura background black */
  color: #fff;        /* text white */
}

.skills-box .overlay {
  display: none;
}

.skills-content {
  width: 80%;
  margin: auto;
}

/* HEADING */
.skills-content h3 {
  font-size: 18px;
  font-weight:400;
  margin-bottom: 15px;
  color: #fff; /* heading white */
}

/* SKILL ROW */
.skill {
  margin-bottom: 10px;
}

.skill span {
  font-size: 12px;
  display: block;
  margin-bottom: 3px;
  color: #fff; /* label white */
}

/* BAR */
.bar {
  width: 100%;
  height: 4px;
  background: #333; /* dark grey track */
}

/* FILL */
.fill {
  height: 100%;
  background: #fff; /* white fill */
}

.text-center {
  text-align: center;
}

/* HEADING */
.portfolio-heading {
  font-size: 16px;
  margin-bottom: 15px;
  color: #000;
  font-weight: 400;
}

/* BUTTON */
.portfolio-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: 0.3s ease;
}

/* HOVER */
.portfolio-btn:hover {
  background: #000;
  color: #fff;
}
.contact-form-box input{
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    box-sizing: border-box;
}

.contact-form-box input::placeholder{
    color: #ccc;
}
.contact-form-box .overlay{
    z-index: 1;
}

.contact-form-box .card-inner{
    position: relative;
    z-index: 2;
}
.box:nth-child(7) .card-inner{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}
.white-card .row{
    line-height: 1.8;
}
.tag{
    font-size: 18px;
    font-weight: 500;
}
body,
h1,h2,h3,h4,h5,h6,
p,span,a,input,button,div {
    font-family: 'Montserrat', sans-serif;
}

.fas,
.fa,
.far,
.fab {
    font-family: "Font Awesome 5 Free" !important;
}
#book-popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.95);
    z-index:999999;

    justify-content:center;
    align-items:center;
}

.flip-book{
    width:800px !important;
    height:550px !important;

    position:absolute !important;
    top:50% !important;
    left:50% !important;

    transform:translate(-50%, -50%) !important;
}

#flipbook{
    overflow: visible !important;
}

.page img{
    width:100%;
    height:100%;
    object-fit:cover;
}
/* PERCENTAGE */
.fill.html { width: 60%; }
.fill.wp   { width: 70%; }
.fill.css  { width: 40%; }
.fill.php  { width: 40%; }
/* ================= MOBILE (LAST) ================= */
@media (max-width: 768px) {

  html, body {
    overflow: auto;
  }

  .main-grid {
    grid-template-columns: 1fr !important;
      gap: 20px !important;
    padding: 12px !important;
    height: auto !important;
  }

  .box {
    width: 100% !important;
    height: 420px !important;
    min-height: 420px !important;
    box-sizing: border-box !important;
    border: 1px solid #fff !important;
  }

  .card-inner {
    width: 100% !important;
    height: 100% !important;
    padding: 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
  }

}