*{
margin:0;
padding:0;
box-sizing:border-box;
}






/* HIDE SCROLLBAR - KEEP SCROLL WORKING */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE / old Edge */
body {
  -ms-overflow-style: none;
}









/* SPINNER */
.spinner{
  position:relative;
  width:60px;
  height:60px;

  /* smoother rotation */
  animation: spin 1.8s cubic-bezier(.4,0,.2,1) infinite;
}

/* DOT BASE */
.spinner span{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;

  top:50%;
  left:50%;

  background:#e53935;

  /* smoother fade */
  animation: fade 1.8s cubic-bezier(.4,0,.2,1) infinite;
}

/* DEPTH (IMPORTANT 🔥) */
.spinner span:nth-child(1){ transform: translate(-50%, -50%) rotate(0deg) translateY(-20px) scale(1); }
.spinner span:nth-child(2){ transform: translate(-50%, -50%) rotate(45deg) translateY(-20px) scale(0.9); }
.spinner span:nth-child(3){ transform: translate(-50%, -50%) rotate(90deg) translateY(-20px) scale(0.8); }
.spinner span:nth-child(4){ transform: translate(-50%, -50%) rotate(135deg) translateY(-20px) scale(0.7); }
.spinner span:nth-child(5){ transform: translate(-50%, -50%) rotate(180deg) translateY(-20px) scale(0.6); }
.spinner span:nth-child(6){ transform: translate(-50%, -50%) rotate(225deg) translateY(-20px) scale(0.7); }
.spinner span:nth-child(7){ transform: translate(-50%, -50%) rotate(270deg) translateY(-20px) scale(0.8); }
.spinner span:nth-child(8){ transform: translate(-50%, -50%) rotate(315deg) translateY(-20px) scale(0.9); }

/* DELAYS */
.spinner span:nth-child(1){ animation-delay:-1.6s; }
.spinner span:nth-child(2){ animation-delay:-1.4s; }
.spinner span:nth-child(3){ animation-delay:-1.2s; }
.spinner span:nth-child(4){ animation-delay:-1.0s; }
.spinner span:nth-child(5){ animation-delay:-0.8s; }
.spinner span:nth-child(6){ animation-delay:-0.6s; }
.spinner span:nth-child(7){ animation-delay:-0.4s; }
.spinner span:nth-child(8){ animation-delay:-0.2s; }

/* ROTATION */
@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* FADE */
@keyframes fade{
  0%{ opacity:1; }
  50%{ opacity:0.3; }
  100%{ opacity:1; }
}



#loader{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;

  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
}

#loader.hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}







body{
background:#000;
color:white;
font-family:'Poppins',sans-serif;
line-height:1.5;
padding-top: 5rem;
}


/* GLOBAL CONTAINER */

.container{
width:min(1200px,92%);
margin:auto;
}





/* ===============================
   PREMIUM HEADER REPLACE
=============================== */
.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;

  display: flex;
  justify-content: center;

  padding: 14px 0;

  transition: transform .35s ease, opacity .35s ease;
  will-change: transform;
}

.nav.hide{
  transform: translateY(-110%);
  opacity: .2;
}

.nav.show{
  transform: translateY(0);
  opacity: 1;
}

.nav-inner{
  width:min(1200px,92%);
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:14px 24px;
  border-radius:26px;

  /* LIGHT PREMIUM GLASS */
  background: linear-gradient(
    145deg,
    rgba(245,245,245,.95),
    rgba(220,220,220,.88)
  );

  border: 1px solid rgba(255,255,255,.7);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  position:relative;
  overflow:hidden;

  /* 3D DEPTH */
  box-shadow:
    inset 0 2px 8px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(0,0,0,.08),
    0 10px 25px rgba(0,0,0,.18),
    0 18px 40px rgba(0,0,0,.12);
}





/* SHINY EFFECT */
.nav-inner::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.25),
    transparent
  );
  transform:skewX(-25deg);
  animation:navShine 6s linear infinite;
}

@keyframes navShine{
  100%{ left:140%; }
}

.logo img{
  height:42px;
  position:relative;
  z-index:2;
}

.menu{
  display:flex;
  gap:28px;
  position:relative;
  z-index:2;
}

.menu a{
  color:#000000;
  text-decoration:none;
  font-weight:500;
  position:relative;
  transition:.3s;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#e53935;
  transition:.3s;
}

.menu a:hover{
  color:#e53935;
}

.menu a:hover::after{
  width:100%;
}

.menu-toggle{
  width:42px;
  height:42px;
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  position:relative;
  z-index:2;
}

.menu-toggle span{
  width:24px;
  height:2px;
  background:#fff;
  margin:auto;
  transition:.35s ease;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}


/* ===============================
   FINAL CREATIVE MOBILE PILLS
=============================== */
.mobile-menu{
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 99998;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;

  pointer-events: none;
}

.mobile-menu a{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 88vw;

  /* TIGHTER FIT */
  padding: 12px 20px;

  /* LESS ROUNDED */
  border-radius: 18px;

  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;

  /* SOLID PREMIUM RED */
  background: #9f1111;

  border: 1px solid rgba(255,255,255,.08);

  box-shadow:
    0 10px 22px rgba(0,0,0,.22),
    0 0 14px rgba(229,57,53,.12);

  opacity: 0;
  visibility: hidden;
  transform: translateX(40px) scale(.94);

  transition:
    opacity .4s ease,
    transform .4s cubic-bezier(.22,1,.36,1),
    visibility .4s ease;
}

/* ONLY SHOW WHEN ACTIVE */
.mobile-menu.active{
  pointer-events: auto;
}

.mobile-menu a.show{
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.menu a.active{
  color:#e53935;
}

.menu a.active::after{
  width:100%;
}

.mobile-menu a.active{
  background:#e53935;
}







@media(max-width:900px){
  .menu{
    display:none;
  }

  .menu-toggle{
    display:flex;
  }

  .nav{
    padding:10px 0;
  }

  .nav-inner{
    width:94%;
    border-radius:18px;
    padding:12px 16px;
  }

  .logo img{
    height:36px;
  }
}















/* ===============================
   PORTFOLIO SECTION
=============================== */

.portfolio-section {
  padding: 100px 5%;
  background: #0a0a0a;
  color: #fff;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header h2 {
  font-size: 42px;
}

.portfolio-header p {
  opacity: 0.6;
}

/* GRID */
/* MASONRY GRID */
.portfolio-grid{
  column-count: 4;
  column-gap: 20px;
}

/* ITEMS */
.portfolio-item{
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
}


.portfolio-group{
  column-span: all;
  width: 100%;
  margin: 50px 0 30px;
  position: relative;
}

/* THIN DIVIDER LINE */
.portfolio-group::before{
  content:"";
  display:block;
  width:100%;
  height:1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
}





@media (max-width:1024px){
  .portfolio-grid{ column-count: 3; }
}

@media (max-width:768px){
  .portfolio-grid{
    column-count: 2;
    column-gap: 12px;
  }
}

html, body{
  overflow-x: hidden;
}


/* ITEM */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;

  transform: translateY(60px);
  opacity: 0;

  transition: 0.5s ease;
}

/* SHOW ANIMATION */
.portfolio-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* IMAGE */
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.6s ease;
}


.portfolio-item.active{
  position: fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(1.1);
  z-index:9999;
  width:60%;
  max-width:700px;
}


/* DESKTOP ONLY HOVER */
@media (hover: hover) and (pointer: fine){

  .portfolio-item{
    transition: transform .4s ease, filter .4s ease;
  }

  .portfolio-item img{
    transition: transform .6s ease;
  }

  .portfolio-item:hover{
    transform: translateY(-6px);
    filter: brightness(1.05);
  }

  .portfolio-item:hover img{
    transform: scale(1.04);
  }

}


.portfolio-item{
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.portfolio-item:hover{
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* DISABLE HOVER EFFECT WHEN ACTIVE */
.portfolio-item.active:hover{
  transform: translate(-50%, -50%) scale(1.1) !important;
  filter: none !important;
}

.portfolio-item.active:hover img{
  transform: none !important;
}




/* ===============================
   MOBILE MODE
=============================== */

@media (max-width:768px){

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .overlay {
    bottom: 0;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
  }

   .portfolio-item.active .overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* BLUR BACKGROUND */
  .portfolio-grid.active-mode .portfolio-item {
    filter: blur(6px) brightness(0.4);
    transform: scale(0.95);
  }

  /* ACTIVE CARD */
 .portfolio-item.active {
    position: fixed;
    
    top: 50%;
    left: 50%;

    width: 92%;
    max-width: 380px;

    transform: translate(-50%, -50%) !important;

    z-index: 9999;
    filter: none !important;

    margin: 0; /* 🔥 important */
  }

  .portfolio-item.active img {
    transform: scale(1.05);
  }

  .portfolio-item.active .overlay {
    bottom: 0;
  }

  /* BACKDROP */
  .portfolio-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
  }
}



.portfolio-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  display: none;
}

















.site-footer{
  background:#000;
  color:#fff;
  padding:clamp(4rem,8vw,6rem) 0 2rem;
}

/* CONTAINER */
.footer-container{
  width:min(1100px,92%);
  margin:auto;

  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:2rem;
}

/* LOGO */
.footer-logo{
  font-size:1.8rem;
  font-weight:800;
  margin-bottom:1rem;
}

/* TEXT */
.footer-brand p{
  color:#aaa;
  max-width:300px;
  line-height:1.6;
}

/* LINKS */
.footer-links h4,
.footer-contact h4{
  margin-bottom:1rem;
}

.footer-links a{
  display:block;
  color:#aaa;
  text-decoration:none;
  margin-bottom:0.5rem;
  transition:0.3s;
}

.footer-links a:hover{
  color:#fff;
}

/* CONTACT */
.footer-contact p{
  color:#aaa;
  margin-bottom:0.5rem;
}

/* SOCIAL */
.footer-social{
  margin-top:1rem;
  display:flex;
  gap:12px;
}

.footer-social a{
  width:35px;
  height:35px;
  border:1px solid #333;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  text-decoration:none;
  color:#fff;
  transition:0.3s;
}

.footer-social a:hover{
  background:#c62828;
  border-color:#c62828;
}

/* CTA */
.footer-cta{
  text-align:center;
  margin-top:4rem;
}

.footer-cta h3{
  font-size:2rem;
  margin-bottom:1rem;
}

.footer-btn{
  display:inline-block;
  padding:12px 28px;
  background:#c62828;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.footer-btn:hover{
  background:#e53935;
  transform:translateY(-2px);
}

/* BOTTOM */
.footer-bottom{
  text-align:center;
  margin-top:3rem;
  color:#666;
  font-size:0.9rem;
}


@media (max-width:768px){

  .footer-container{
    grid-template-columns:1fr;
    text-align:left;
  }

  .footer-cta h3{
    font-size:1.5rem;
  }

}

