/*service.html*/
html{
    margin: 0;
    padding: 0;
}

:root{
    --heightnav:50px;
    --fontfamily:"Montserrat", sans-serif;
    --font2:"PT Serif Caption";
    --pfont:"quicksand";
    --bordercolor:#0181a4;
}
body{
    margin: 0;
    padding: 0;
    font-family: var(--fontfamily);
    scroll-behavior: smooth;
}

.navbar {
  display: grid;
  grid-template-columns:2fr 1fr 1fr 1fr 1fr 2fr;
  align-items: center;
  padding: 12px 24px;
  background:rgb(63, 63, 63);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease,box-shadow 0.3s ease,border 0.3s ease;
}

.navbar a{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: clamp(1rem,1.4rem,1.4rem);
    padding: 8px 12px;
    font-family: var(--pfont);
    transition: transform 0.2s ease;
}
.navbar.scrolled{
  background-color: rgb(63, 63, 63);
  border-bottom: 2px solid var(--bordercolor);
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  
}
.navbar a:hover {
    transform: scale(1.2);
}

@media (max-width:700px) {
  .navbar {
    grid-template-columns: repeat(4, 1fr); /* second row has 4 columns */
    grid-template-rows: auto auto; /* 2 rows */
  }

  .navbar > :first-child {
    justify-self: center;
    grid-column: span 4; /* make first item full width of second row grid */
  }
  .navbar a{
    font-size: 1.2rem;
    padding: 4px 0px;
}
.navbar a:hover {
    transform: scale(1);
}

}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: calc(var(--i) * 0.25s);
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
#h_1{
  font-family: "PT Serif Caption", serif;
  margin-top: 40px;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2rem,2.5rem,2.5rem);
  color: black;
  text-align: center;
}
#p2{
  color: rgb(53, 53, 53);
  font-size: 1.2rem;
  text-align: center;
  font-family:var(--pfont);
  font-weight: 500;
}
.list-column {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 20px;               
    padding: 0;
    margin: 0;
    font-family: var(--font2);
    font-size: clamp(1.2rem,1.7rem,1.8rem);
    font-weight: 500;
    text-align: center;
    
  }

  .list-column li {
    list-style: none;       
    transition: scale 0.3s ease; 
  }

  .list-column li a {
    text-decoration: none;
    color: black;
  }
  .hover-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #000000e5;
}

.hover-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px; /* distance from text */
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(.4, 0, .2, 1);
  transform: translateX(-50%);
}

.hover-underline:hover::after {
  width: 100%;
}

.servicebg2{
  scroll-margin-top: 15vh;
  background-color: rgb(255, 255, 255);
  padding: 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0,0.7);
}


.servicebg3{
    scroll-margin-top: 10vh;
    margin-top:-30px ;
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0,0.7);

}
.grid{
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    grid-template-rows: 1fr;
    gap: 20px;
}
.video-section {
  width: fit-content;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.video-card {
  width: auto;          /* change size if needed */
  aspect-ratio: 3/4 ;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: scale 0.3s ease;
}
.video-card:hover{
  scale:1.05;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-section {
  text-align: center;
}
.grid4{
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.video-card2 {
  height: 200px;
  width: auto;          /* change size if needed */
  aspect-ratio: 2/1 ;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: scale 0.3s ease;
}
.video-card2:hover{
  scale: 1.02;
}
.video-card2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid5{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.image-card {
  width: auto;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: scale 0.3s ease;
}
.image-card:hover{
  scale: 1.02;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width:700px){
    .grid{
        grid-template-columns: 1fr 1fr;
    }
    .grid4{
      grid-template-columns: 100%;
      grid-template-rows: auto auto;
    }
    .video-card2{
      height: auto;
    }
    .grid5{
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .grid5 > :nth-child(3) {
    grid-column: span 2; /* make first item full width of second row grid */
  }
}


#Contact{
  scroll-margin-top: 15vh;
  margin-top: -30px;
  padding-top: 10px;
  position: relative;
  z-index: 1;
  background-color:var(--bordercolor);
  backdrop-filter: blur(10px);
  color: white;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}
.grid3{
  display: grid;
  margin: 20px;
  grid-template-columns: 50% 50%;
  padding: 50px;
  align-items:flex-start;
  justify-content: left;
  gap: 50px;
}
.flex3{
  display: flex;
  align-items: flex-end;
  justify-content:center;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}
#p3{
  font-family:var(--pfont);
  font-size: 1rem;
}
.h3{
  font-family: "PT Serif Caption", serif;
  font-weight: bold;
  font-style: normal;
  font-size: clamp(1.2rem,1.6rem,2rem);
  color: rgb(255, 255, 255);
  margin-bottom: 0.5em;
}
#p4{
  display: inline-block;
  width: 30vw;
  height: auto;
  font-family:var(--pfont);
  font-size:clamp(1rem,1.2rem,1.3rem);
  margin-bottom: 1em;
  font-weight: 500;
}
.social-links{
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links a{
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--bordercolor);
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover{
  transform: scale(1.1);
  background: #ffffff;
}
.contact-box{
  color: #ffffff;
  font-size: clamp(1rem,1.2rem,1.3rem);
  text-decoration: none;
  font-family: var(--pfont);
  font-weight: 500;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  
}

.contact-item i{
  width: 30px;
  color: #ffffff;
}

.contact-item a{
  color: inherit;
  text-decoration: none;
}
.contact-item a:hover{
  text-decoration: none;
}
@media (max-width:700px){
  .grid3{
    grid-template-columns: 100%;
    grid-template-rows:  40% 40%;
    padding-top: 40px;
    padding: 20px;
  }
  #p4{
  width: 90%;
}
#Contact{
  margin-top: -30px;
  padding-top: 20px;
  position: relative;
  z-index: 1;
  background-color:var(--bordercolor);
}
}

#Services{
    z-index: 6;
}
#Gem_cutting{
    z-index: 5;
}
#Gem_3D_cutting{
    z-index: 4;
}
#Buy_and_Sell{
    z-index: 3;
}
#Jewelry{
    z-index: 2;
}
.map-btn {
  position: fixed;
  top: 110px;              /* under navbar */
  right: 10px;
  display: flex;
  align-items: center;
  gap:0;

  padding: 10px 15px;
  background:rgb(63,63,63);
  border: solid 2px var(--bordercolor);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  /* animation polish */
  transition: all 0.3s ease;
  overflow: hidden;
}
@media(max-width:768px){
  .map-btn{
    top: 140px;
  }
}
.map-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* text hidden by default */
.map-btn .text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: var(--pfont);
  font-size: clamp(1rem,1.2rem,1.4rem);;
}

/* hover reveals text */
.map-btn:hover .text {
  max-width: 100px;
  opacity: 1;
  
}

/* optional: expand button slightly on hover */
.map-btn:hover {
  padding-right: 18px;
  gap: 8px;
}
