*{
    box-sizing: border-box;
    margin: 0px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: none;
}

html{
    scroll-behavior: smooth;
}

  

#section{
    background-color: black;
    color: white;
}

header{
    padding: 32px;
    background-color: black;
    display: block;
    position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 999;
   transition: transform 0.35s ease;
}

header.hide {
    transform: translateY(-100%);
  }

.menu a{
    background-color: #141414;
    color: white;
    padding: 16px;
    text-decoration: none;
    border-radius: 40px;
    margin-left: 32px;
    padding-left: 32px;
    padding-right: 32px;
}

.sec1{
    background-color: black;
    color: white;
    height: 100vh;
    /* margin-left: 30%; */
    /* margin-top: 25%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec1 p{
    font-size: 40px ;
}

.row1{
    /* background-color: #141414; */
    padding: 50px;
    border-radius: 30px;
    /* width: 200px; */
}

.btn1{
    background-color: rgb(44, 44, 44);
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    text-decoration: none;
    border: 0px;
    padding: 16px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 40px;
}

.sec2{
    background-color: black;
    color: white;
    
   
}

/* .row2{
    display: flex; 
    justify-content: left;
    align-items: center;
    padding-left: 80px;
    background-color: black;
   

}

.row2 .col{
    height: 400px;
    width: 300px;
    margin: 8px;
    border-radius: 40px;
} */

.sec3{
    background-color: black;
    color: white;
    padding-top: 100px;
    height: 85vh;
    /* margin-left: 30%; */
    /* margin-top: 25%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec3 p{
    
    font-size: 40px ;
}

.row3{
    background-color: #141414;
    padding: 50px;
    border-radius: 30px;
    width: 500px;
}

.row3:hover{
    transform: scale(1.05);
    transition: .2s ease-out;
}

.btn2{
    background-color: #141414;
    padding: 16px;
    color: white;
    border: 0px;
    border-radius: 40px;
    margin-top: 20px;

}

.btn2:hover{
    padding: 16px;
    background-color: black;
    transition: .5s;
}


footer{
    background-color: black;
    color: white;
    font-size:40px ;
    padding: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.box .div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.box .time{
    display: flex;
    justify-content: center;
    align-items: center;
}

.box .btn4{
    font-size: 16px;
    background-color: rgb(44, 44, 44);
    color: white;
    margin-top: 30px;
    padding: 14px;
    padding-left: 60px;
    padding-right: 60px;
    border: 0px;
    border-radius: 40px;
}

.sec-img{
    background-image: url(Images/DSC06740.JPG);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;
}


.work{
    background-color: black;
    position: relative;
    /* padding-top: 80px ;
    padding-bottom: 80px; */
}

.row4{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    height: 400px;
    width: 100%;
}

.row4 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}


.row4 img:hover{
    background-color: black;
    opacity: 1;
}

.row5{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 400px;
    width: 100%;
}

.row5 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}






.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,1);
    color: white;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  
  /* Modal box */
  .modal-content {
    color: white;
    padding: 40px;
    max-width: 100vh;
    display: flex;
    justify-content: center;
    width: 90%;
    border-radius: 12px;
    position: relative;
    transform: translateY(100px); /* starts 100px below */
    opacity: 0;                    /* fully transparent initially */
    transition: transform 0.5s ease, opacity 0.5s ease; /* smooth slide + fade */
    
  }

.modal-content p{
    font-size: 35px;
}


  .modal .modal-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Close button */
  .close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Hide modal by default */
.modal {
    opacity: 0;
    visibility: hidden;
    display: flex; /* already in your code */
    align-items: center;
    justify-content: center;
  }
  
  /* Show modal when .show is added */
  .modal.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Animate modal content when modal is visible */
  .modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
}

  
  body {
    margin: 0;
    background: #000;
    color: #fff;
    /* font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif; */
  }
  
  .projects {
    background-color: black;
    padding: 120px 0;
    overflow: hidden;
  }
  
  .projects-title {
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    /* margin-bottom: 40px; */
    opacity: 0.9;
  }
  
  .projects-row {
    display: flex;
    gap: 28px;
    padding: 80px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  
  .projects-row::-webkit-scrollbar {
    display: none;
  }
  
  .project-card {
    position: relative;
    min-width: 260px;
    height: 360px;
    border-radius: 28px;
    padding: 32px;
    display: flex;
    align-items: flex-end;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  }
  
  .card-content {
    z-index: 2;
  }
  
  .card-meta {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 6px;
  }
  
  .card-title {
    font-size: 20px;
    font-weight: 500;
  }
  
  .card-arrow {
    position: absolute;
    bottom: 22px;
    right: 22px;
    font-size: 18px;
    opacity: 0.7;
  }
  
  /* Gradients */
  .gradient-1 {
    background: linear-gradient(135deg, #e6e6e6, #9bd18f);
    color: #111;
  }
  
  .gradient-2 {
    background: linear-gradient(135deg, #e9dccb, #6a7c4f);
    color: #111;
  }
  
  /* Image overlay for readability */
  .image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    border-radius: inherit;
  }

  .cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 1) 100%,
      transparent 80%
    );
    mix-blend-mode: lighten;
    z-index: 9999;
    transition: opacity 0.2s ease;
  }

  a:hover ~ .cursor-glow,
button:hover ~ .cursor-glow {
  opacity: 0.35;
}

@media (max-width: 768px) {
    .cursor-glow {
      display: none;
    }
  }

  /* Overlay */
.modal-overlay1 {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9998;
  }
  
  /* Modal */
  .modal1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 420px);
    padding: 40px;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 20px;
    transform: translate(-50%, -40%) scale(0.96);
    transition: transform 0.35s ease;
  }
  
  /* Open state */
  .modal-overlay1:target {
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-overlay1:target .modal1 {
    transform: translate(-50%, -50%) scale(1);
  }
  
  /* Close button */
  .close1 {
    position: absolute;
    top: 14px;
    right: 18px;
    text-decoration: none;
    font-size: 28px;
    color: #fff;
    opacity: 0.8;
  }
  
  /* Services list */
  .services-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
  }
  
  .services-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 16px;
  }
  
  /* Base state */
.h-reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Visible */
  .h-reveal.show {
    opacity: 1;
    transform: translateY(16px);
  }
  
  /* Grain mask */
  .grainy {
    --mask-size: 0%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-size: 200px 200px;
    mask-repeat: repeat;
    mask-position: center;
    mask-composite: intersect;
  
    -webkit-mask-image: inherit;
    -webkit-mask-size: inherit;
    -webkit-mask-repeat: inherit;
    -webkit-mask-position: inherit;
  
    transition: mask-position 0.8s ease, opacity 0.6s ease;
  }
  
  /* Dissolved state */
  .grainy.dissolve {
    opacity: 0;
    transform: translateY(10px);
    mask-position: 100% 100%;
  }

  /* ---------------------mobile optimisation------------------ */

  @media (max-width: 768px) {

    /* ========== GLOBAL ========== */
    body {
      cursor: auto; /* restore system cursor on mobile */
    }
  
    * {
      cursor: auto;
    }
  
    /* Disable heavy effects on mobile */
    .cursor-glow {
      display: none !important;
    }
  
    /* ========== HEADER / NAV ========== */
    header {
      padding: 16px;
    }
  
    .menu {
      display: flex;
      justify-content: center;
      gap: 10px;
    }
  
    .menu a {
      margin-left: 0;
      padding: 12px 18px;
      font-size: 14px;
    }
  
    /* ========== HERO (SEC1) ========== */
    .sec1 {
      padding: 0 20px;
      height: 100svh; /* better mobile viewport handling */
      text-align: center;
    }
  
    .sec1 p {
      font-size: 22px;
      line-height: 1.4;
    }
  
    .row1 {
      padding: 30px;
    }
  
    /* ========== IMAGE PARALLAX SECTION ========== */
    .sec-img {
      min-height: 60vh;
      background-attachment: scroll; /* FIX iOS parallax bug */
    }
  
    /* ========== ABOUT SECTION (SEC3) ========== */
    .sec3 {
      padding: 80px 20px;
      padding-top: 150px;
      height: auto;
    }
  
    .sec3 p {
      font-size: 22px;
      line-height: 1.4;
    }
  
    .row3 {
      width: 100%;
      padding: 30px;
    }
  
    .row3:hover {
      transform: none; /* remove hover scaling on touch */
    }
  
    /* ========== ABOUT MODAL ========== */
    .modal-content {
      padding: 24px;
      max-width: 100%;
    }
  
    .modal-content p {
      font-size: 18px;
      line-height: 1.5;
    }
  
    .close {
      font-size: 28px;
    }
  
    /* ========== PROJECTS SECTION ========== */
    .projects {
      padding: 80px 0;
    }
  
    .projects-title {
      font-size: 26px;
      padding: 0 20px;
    }
  
    .projects-row {
      padding: 40px 20px;
      gap: 16px;
      margin: 10px;
    }
  
    .project-card {
      min-width: 220px;
      height: 300px;
      padding: 24px;
    }
  
    .card-title {
      font-size: 18px;
    }
  
    .card-meta {
      font-size: 13px;
    }
  
    /* ========== FOOTER ========== */
    footer {
      padding: 60px 20px;
      font-size: 22px;
      text-align: center;
    }
  
    .box {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
  
    .time {
      font-size: 20px;
    }
  
    /* ========== SERVICES MODAL (BOTTOM SHEET STYLE) ========== */
    .modal-overlay1 {
      align-items: flex-end;
    }
  
    .modal1 {
      top: auto;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      border-radius: 24px 24px 0 0;
      padding: 28px;
    }
  
    .modal-overlay1:target .modal1 {
      transform: translateX(-50%);
    }
  
    .services-list li {
      font-size: 16px;
      padding: 12px 0;
    }
    
    .grainy {
        mask-image: none;
        -webkit-mask-image: none;
      }
  
  }