*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#f6f7fb;
  color:#111827;
}


/* NAVBAR */

.navbar{
  position:fixed;
  top:0;
  width:100%;
  z-index:999;

  padding:22px 60px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  background:rgba(5,10,20,.72);
  backdrop-filter:blur(16px);
}

.logo{
  color:#fff;
  text-decoration:none;

  font-size:34px;
  font-weight:800;
}

.nav-links{
  display:flex;
  gap:34px;
}

.nav-links a{
  color:#ddd;
  text-decoration:none;
  font-size:15px;
}

.nav-links a.active,
.nav-links a:hover{
  color:#fff;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.nav-right a{
  text-decoration:none;
  color:#fff;
  font-size:14px;
}

.join-btn{
  background:#fff;
  color:#111 !important;

  padding:11px 20px;
  border-radius:14px;
  font-weight:600;
}

.ai-btn{
  background:rgba(255,255,255,.08);

  padding:11px 18px;
  border-radius:14px;
}

/* FULL WIDTH EXPLORE HERO */

.explore-page{
  max-width:100%;
  padding:0;
}

.explore-banner{
  position:relative;

  height:500px;

  background:
  linear-gradient(
    rgba(0,0,0,.55),
    rgba(0,0,0,.65)
  ),
  url('../images/banner.jpg');

  background-size:cover;
  background-position:center;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;
}

.banner-overlay{
  width:100%;
  padding:0 24px;
}

.banner-content{
  max-width:900px;
  margin:auto;
}

.banner-content h1{
  color:#fff;
  font-size:84px;
  font-weight:800;
  margin-bottom:18px;
  line-height:1.1;
}

.banner-content p{
  color:rgba(255,255,255,.9);
  font-size:22px;
  line-height:1.7;
  margin-bottom:40px;
}

/* SEARCH INSIDE HERO */

.hero-search{
  width:100%;
  max-width:780px;

  height:82px;

  margin:auto;

  background:#fff;

  border-radius:24px;

  display:flex;
  align-items:center;

  padding:0 16px;

  box-shadow:
  0 20px 60px rgba(0,0,0,.25);
}

.hero-search .search-input{
  flex:1;
  display:flex;
  align-items:center;
  gap:14px;

  color:#9ca3af;
}

.hero-search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;

  font-size:17px;
}

.hero-search .search-divider{
  width:1px;
  height:34px;
  background:#e5e7eb;
}

.hero-search .search-select{
  border:none;
  outline:none;
  background:transparent;

  font-size:15px;

  cursor:pointer;
}

.hero-search .search-btn{
  border:none;

  background:#111827;
  color:#fff;

  height:56px;
  padding:0 28px;

  border-radius:16px;

  font-weight:600;
  cursor:pointer;
}

/* CONTENT BELOW HERO */

.top-filter,
.categories,
.image-grid,
.load-more-wrapper{
  max-width:1400px;
  margin-left:auto;
  margin-right:auto;
  padding-left:32px;
  padding-right:32px;
}

.top-filter{
  margin-top:60px;
}

/* TOP FILTER */

.top-filter{
  margin-top:40px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  border-bottom:1px solid #e5e7eb;
  padding-bottom:18px;
}

.top-filter-left{
  display:flex;
  gap:24px;
}

.top-tab{
  border:none;
  background:none;
  color:#6b7280;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  position:relative;
  padding-bottom:14px;
}

.top-tab.active{
  color:#111827;
}

.top-tab.active::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-19px;
  width:100%;
  height:2px;
  background:#111827;
}

.filter-btn{
  border:none;
  background:#fff;
  border:1px solid #e5e7eb;

  display:flex;
  align-items:center;
  gap:10px;

  padding:14px 18px;
  border-radius:14px;

  cursor:pointer;
}



/* CATEGORIES */

.categories{
  margin-top:24px;

  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.category{
  border:none;
  background:#fff;
  padding:14px 22px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
  transition:.25s;
  border:1px solid #ececec;
}

.category:hover{
  transform:translateY(-2px);
}

.category.active{
  background:#111827;
  color:#fff;
}

.image-card{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  margin-bottom:22px;
  break-inside:avoid;
  cursor:pointer;

  background:#e5e7eb;
}

.image-card img{
  width:100%;
  display:block;

  transition:transform .5s ease;

  /* VERY FAST THUMBNAIL LOAD */

  aspect-ratio:auto;
  object-fit:cover;
}

.image-card:hover img{
  transform:scale(1.04);
}



/* OVERLAY */

.image-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  padding:18px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  background:
  linear-gradient(
    to top,
    rgba(0,0,0,.8),
    transparent
  );

  color:#fff;
}

.image-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.user-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
}

.image-stats{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:13px;
}

/* FOOTER */

.footer{
  background:#0b1120;
  padding:80px 70px 30px;
  color:#fff;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr 2fr;
  gap:50px;
}

.footer-grid h2{
  font-size:40px;
  margin-bottom:12px;
}

.footer-grid h4{
  margin-bottom:18px;
  color:#9ca3af;
}

.footer-grid a{
  display:block;
  margin-bottom:14px;

  color:#fff;
  text-decoration:none;
}

.newsletter{
  display:flex;
  margin-top:20px;
}

.newsletter input{
  flex:1;
  height:54px;

  border:none;
  outline:none;

  border-radius:14px 0 0 14px;

  padding:0 16px;
}

.newsletter button{
  width:60px;
  border:none;
  background:#fff;

  border-radius:0 14px 14px 0;
}

.socials{
  display:flex;
  gap:14px;
  margin-top:22px;
}

.socials a{
  width:42px;
  height:42px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(255,255,255,.08);
}

.footer-bottom{
  margin-top:50px;
  padding-top:24px;

  border-top:1px solid rgba(255,255,255,.08);

  display:flex;
  justify-content:space-between;

  color:#aaa;
}


/* RESPONSIVE */

@media(max-width:1100px){

  .image-grid{
    column-count:2;
  }

  .footer-links{
    grid-template-columns:1fr 1fr;
  }

}


@media(max-width:768px){

  .nav-links{
    display:none;
  }

  .hero h1{
    font-size:52px;
  }

  .search-bar{
    flex-direction:column;
    align-items:stretch;
  }

  .search-divider{
    display:none;
  }

  .image-grid{
    column-count:1;
  }

  .footer-links{
    grid-template-columns:1fr;
  }

}

.image-grid{

  margin-top:36px;

  column-count:4;
  column-gap:18px;

}



.image-card{

  position:relative;

  overflow:hidden;

  border-radius:22px;

  margin-bottom:18px;

  break-inside:avoid;

  background:#ececec;

}



.image-wrapper{

  position:relative;

  overflow:hidden;

}



.image-card img{

  width:100%;

  height:auto;

  display:block;

  object-fit:contain;

  opacity:0;

  transform:scale(1.02);

  transition:
  opacity .45s ease,
  transform .7s ease;

}



.image-card img.loaded{

  opacity:1;

  transform:scale(1);

}



.image-card:hover img{

  transform:scale(1.03);

}



/* SKELETON */

.image-skeleton{

  position:absolute;
  inset:0;

  background:
  linear-gradient(
    90deg,
    #ececec 25%,
    #f5f5f5 37%,
    #ececec 63%
  );

  background-size:400% 100%;

  animation:skeleton-loading 1.3s ease infinite;

}



@keyframes skeleton-loading{

  0%{
    background-position:100% 50%;
  }

  100%{
    background-position:0 50%;
  }

}

/* EXPLORE MORE */

.load-more-wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;

  margin:60px auto;

  clear:both;
}

.load-more-btn{
  border:none;

  background:#0f172a;
  color:#fff;

  padding:18px 40px;

  border-radius:18px;

  font-size:15px;
  font-weight:600;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:
    transform .3s ease,
    box-shadow .3s ease;

  box-shadow:
    0 10px 25px rgba(15,23,42,.18);
}

.load-more-btn:hover{
  transform:translateY(-2px);

  box-shadow:
    0 14px 35px rgba(15,23,42,.25);
}   
/* RESPONSIVE */

@media(max-width:1300px){

  .image-grid{
    column-count:3;
  }

}

@media(max-width:900px){

  .image-grid{
    column-count:2;
  }

}

@media(max-width:600px){

  .image-grid{
    column-count:1;
  }

}

/* AI DROPDOWN */

.dropdown{

  position:relative;

  list-style:none;

}



.dropdown-btn{

  border:none;

  background:rgba(255,255,255,.08);

  color:#fff;

  height:52px;

  padding:0 20px;

  border-radius:16px;

  font-size:15px;

  font-weight:600;

  cursor:pointer;

  display:flex;
  align-items:center;
  gap:8px;

}



.dropdown-content{

  position:absolute;

  top:65px;
  right:0;

  width:240px;

  background:#111827;

  border:1px solid rgba(255,255,255,.08);

  border-radius:18px;

  padding:10px;

  display:none;

  flex-direction:column;

  z-index:99999;

  box-shadow:
  0 20px 50px rgba(0,0,0,.35);

}



.dropdown-content.show{

  display:flex;

}



.dropdown-content a{

  color:#fff;

  text-decoration:none;

  padding:14px 16px;

  border-radius:12px;

  transition:.2s ease;

  font-size:15px;

}



.dropdown-content a:hover{

  background:rgba(255,255,255,.08);

}
