* {
  box-sizing: border-box;
  transition: all 0.4s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(49, 49, 49);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
}

/* hides the vertical scrollbar when gallery is open */
body:has(#lightbox.show) {
  overflow: hidden;
}

#meter {
  position: fixed;
  inset: 0;                 /* full viewport */
  display: flex;
  justify-content: center;
  align-items: center;     
  pointer-events: none;     /* allow clicks to pass through */
  z-index: 5100;
}


#seven {
  position: relative;
  width: 735px;
  height: 90px;
  background-color: rgba(137, 43, 226, 0);

}

#sidebar {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  right: 10px;     
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 30px;
  height: 90px;
  gap: 7px;
  background-color: rgba(29, 29, 29, 0.8);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
}

#sidebar img {
  width: 16px;          /* ← THIS is what fixes it */
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.2s ease;
  opacity: 0.9;
}


#sidebar img:hover,
#sidebar img:active {
  transform: scale(0.9);
  opacity: 1;
}

#navbar {  
  position: relative;  
  background-color: rgba(19, 163, 43, 0);
  position: fixed;
  height: auto;
  width: 100%;
  top: 0;
  z-index: 5000;    
}

#showhome {
  position: relative;  
  background-color: rgba(19, 163, 43, 0);
  height: 10px;
  width: 100%;
  top: 0;
  z-index: -20;
}


#showcontact {
  position: absolute;  
  background-color: rgba(19, 163, 43, 0);
  height: 550px;
  width: 100%;
  margin: 150px auto;
  z-index: -30;
}


#iconbar {
  display: flex; 
  visibility: hidden;
  margin: 20px auto; 
  flex-wrap: wrap;
  width: 100%;
  max-width: 300px;
  height: 70px;
  border-radius: 100px;
  background-color: rgba(92, 104, 94, 0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* inner containers */
#iconbarinside1,
#iconbarinside2,
#iconbarinside3 {
  display: flex;   
  gap: 5px;
  flex-wrap: wrap;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  background-color: rgba(172, 172, 172, 0);

}

#iconbarinside1 {
  background-color: rgba(0, 0, 255, 0);
  width: 100px;
  height: 100%;    
}

#iconbarinside2 {
  width: 40%;
  height: 60%;
  background-color: rgba(39, 39, 39, 0.8); 
  border: 0.5px solid rgba(37, 37, 37, 0.2);
  gap: 10px; 
}

#iconbarinside3 {
  width: 20%;
  height: 100%;  
}

/* ---------- ICON SIZES + SCALE ---------- */

#iconbar1,
#iconbar2 {
  max-width: 38%;
  transition: transform 0.4s ease;
  transform-origin: center;
  cursor: pointer;
}

#iconbar3,
#iconbar4,
#iconbar5 {
  width: 25px;
  transition: transform 0.5s ease;
  transform-origin: center;
  cursor: pointer;
}

#iconbar6 {
  max-width: 75%;
  transition: transform 0.5s ease;
  transform-origin: center;
  cursor: pointer;
}

/* scale on interaction (desktop + touch) */
#iconbar1:hover,
#iconbar2:hover,
#iconbar3:hover,
#iconbar4:hover,
#iconbar5:hover,
#iconbar6:hover,
#iconbar1:active,
#iconbar2:active,
#iconbar3:active,
#iconbar4:active,
#iconbar5:active,
#iconbar6:active {
  transform: scale(0.9);
}



/* ---------- IMAGE SWAP (HOVER + TOUCH SAFE)

Desktop → hover image swap

Mobile → no change on tap

No sticky hover bugs ---------- */

@media (hover: hover) and (pointer: fine) {

  #iconbar1:hover { content: url("images/icon1111.png"); }
  #iconbar2:hover { content: url("images/icon7777.png"); }
  #iconbar3:hover { content: url("images/icon33.png"); }
  #iconbar4:hover { content: url("images/icon44.png"); }
  #iconbar5:hover { content: url("images/icon66.png"); }
  #iconbar6:hover { content: url("images/cg-bottom.png"); }

}


#dotgroup {
  display: block;
  position: fixed;
  text-align: center;
  width: 100%;
  height: 30px;
  top: 0;
  z-index: 7000;
}

/* container */
.navdotcontainer {
  position: relative;
  display: inline-block;
  margin-top: 302px;
  height: 4px;
  width: 55px;
  margin-right: -5px;
  left: -20px;
  background-color: rgb(65, 65, 65);
  box-shadow: 0px 1px 0px rgba(27, 27, 27, 0.8);
  transition: background-color 0.3s;
}

/* Active / hovered state */
.navdotcontainer.hovered {
  background-color: rgb(170, 136, 0);
  cursor: pointer;
}

.navdotcontainer:active {
  transform: scale(0.8);
}

/* clickable area */
.navdot {
  display: inline-block;
  position: relative;
  height: 100px;
  width: 55px;
  margin-top: -20px;
  background-color: transparent;
}

/* tooltip */
.navtip {
  visibility: hidden;
  position: absolute;
  background-color: rgba(65, 65, 65, 0.8);
  border-radius: 43%;
  width: 40px;
  height: 40px;
  margin: 46px 0 0 7px;
  box-shadow: 0px 1px 0px rgba(27, 27, 27, 0.2);
  opacity: 0;
  transform: scale(1);
  transition: transform 0.3s, opacity 0.3s;
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
}


/* ACTIVE (JS-controlled) */
.navdot.hovered .navtip {
  visibility: visible;
  transform: scale(1.7);
  opacity: 1;
}

.navtip:active {
  opacity: 0.7;
}

.navtip img,
.navimage {
  width: 60% ;     /* pick your size */  
  transform: scale(1);
}

.navimage:hover {
transform: scale(0.9);
}


#logocontainer {    
  position: fixed;
  height: 320px;
  width: 100%;
  background-color: rgb(44, 44, 44, 1); 
  background-size: contain; /* or cover */
  background-position: center;
  top: 0;   
  box-shadow: 0px 1px 0px rgba(27, 27, 27, 0.6);    
  left: 50%;             /* center horizontally */
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000; 
}

#logo {
  display: block;
  position: relative;
  max-width: 310px;
  height: auto;
  background-color: rgb(160, 160, 41, 0);  
  margin: 0 auto;
  cursor: pointer;
  top: 17px;
  transition: transform 0.4s ease-in-out;
  transform: scale(1.15);   
}

#logo:hover {  
  cursor: pointer; 
}


/* ================= TIP CONTAINER ================= */
#logotip {
  position: absolute;              
  margin-top: 222px;
  margin-left: 28px; 
  left: 50%;
  transform: translateX(-50%);  
  width: 190px;
  padding: 15px 15px 12px 15px;
  background-color: rgba(49, 57, 59, 0.712);
  color: rgb(126, 125, 88);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 2px 4px 8px rgba(27, 27, 27, 0.5);
  box-sizing: border-box;
  cursor: default;
  visibility: hidden;
  opacity: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 7500;
}

/* TIP LOGO */
#cglogotip {
  width: 65px;
  cursor: pointer;
  display: block;
  margin: 15px auto 8px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#cglogotip:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* BOLD TITLE */
.bold {
  font-size: 17px;
  color: rgb(170, 136, 0);
  font-weight: bold;
  display: block;
  margin: 0 0 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* NORMAL TEXT */
#logotip p {
  margin: 0 0 4px 0;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

/* LINKS */
#getsomelink,
#contactlink {
  display: block;
  margin: 0 0 4px 0;
  font-size: 1.2em;
  color: rgb(118, 118, 223);
  text-decoration: none;
  opacity: 0.7;
  pointer-events: none;
  line-height: 1.4;
}
#getsomelink:hover,
#contactlink:hover {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 480px) {
  
  #logotip {
    top: 20px + 50px + 120px; /* container top + logo height + smaller offset */
    width: 150px;
    font-size: 13px;
    padding: 12px;
  }

  #cglogotip {
    width: 50px;
  }

  .bold {
    font-size: 15px;
  }

  #logotip p {
    font-size: 13px;
  }

  #getsomelink,
  #contactlink {
    font-size: 1.15em;
  }
}

/* ================= TABLET RESPONSIVE ================= */
@media (min-width: 481px) and (max-width: 768px) {
  #logotip {
    top: 50px + 65px + 150px; /* container top + logo height + smaller offset */
    width: 170px;
    font-size: 14px;
    padding: 14px 13px 12px 13px;
  }

  #cglogotip {
    width: 55px;
  }

  .bold {
    font-size: 16px;
  }

  #logotip p {
    font-size: 14px;
  }

  #getsomelink,
  #contactlink {
    font-size: 1.2em;
  }
}


#navimage {
  width: 2rem;   /* scales with font size */
  height: auto;
}


/* Slideshow */

#slidecontainer {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 320px; /* moves slideshow down */
}

.slideshow-container {
  max-width: 850px;
  width: 100%;
  position: relative;
}

/* Hide all slides */
.mySlides {
  display: none;
  width: 100%;
}

/* Show active slide */
.mySlides.active {
  display: block;
}

/* Images */
.slideshow-container img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease; /* smooth scale effect */
}

/* Effect when clicked/tapped/swiped */
.slideshow-container img.active-effect {
  transform: scale(0.95);
}

/* =========================
   DOTS
========================= */
#indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  height: 8px;
  width: 8px;
  background-color: rgb(170, 136, 0);
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

.dot.active {
  background-color: rgb(65, 65, 65);
  width: 40px;
}

/* =========================
   FADE ANIMATION
========================= */
.fade {
  animation: fade 1s ease;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 320px) {
  .text {
    font-size: 14px;
  }
}




#cggallery {
  position: relative;
  width: 100%;
  padding: 30px 0;
}

#showgallery {
position: absolute;
top: 10%;
width: 100%;
height: 85%;
background-color: rgba(68, 68, 129, 0);
z-index: -10;
}




/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 80px auto;
}

@media (min-width: 500px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery img {
  width: 100%;
  max-width: 650px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* =========================
   LIGHTBOX
========================= */
#lightbox {
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(
      145deg,
      rgba(48, 48, 48, 0.15),
      rgba(0, 0, 0, 0.3)
    ),
    rgba(49, 49, 49, 0.15);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#lightbox.show {
  opacity: 1;
  visibility: visible;
}

/* ================= IMAGE WRAPPER ================= */
#lb-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}

#lightbox.fullscreen #lb-image-wrapper {
  transform: scale(1.05);
}

/* ================= IMAGE ================= */
#lb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1), opacity 0.6s ease;
  pointer-events: auto;
  z-index: 1;
  touch-action: pan-x pinch-zoom;
}

#lightbox.show #lb-image {
  opacity: 1;
  transform: scale(1);
}

/* ================= TITLE + COUNTER ================= */
#lb-title-counter {
  display: flex;
  justify-content: space-between;
  width: 60%;
  font-size: 14px;
  margin-top: 4px;
}

#lb-title { color: rgb(170, 136, 0); }
#lb-counter { color: #5e5e5e; }

/* ================= NAV BUTTONS ================= */
#lb-prev, #lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 35px;
  color: rgb(170, 136, 0);
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.8;
  z-index: 10001;
}

#lb-prev { left: 15px; }
#lb-next { right: 15px; }

#lb-prev:hover, #lb-prev:active,
#lb-next:hover, #lb-next:active {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

/* ================= TOP RIGHT BUTTONS (HORIZONTAL, CASCADE, HOVER FIX) ================= */
#lb-buttons-container {
  position: fixed;
  top: 25px;       /* near top */
  right: 30px;     /* desktop: 50px from right */
  display: flex;   /* horizontal layout */
  gap: 17px;       /* space between buttons */
  z-index: 10002;
}

/* Buttons initial state (hidden & scaled down for cascade effect) */
#lb-stop, #lb-fullscreen, #lb-close {
  width: 25px;
  height: 40px;
  background: transparent;
  border: none;
  color: rgb(170, 136, 0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;                  /* initial opacity */
  transform: translateY(-10px) scale(0); 
  transition: transform 0.9s cubic-bezier(.22,.61,.36,1), opacity 0.3s ease;
  pointer-events: auto;           /* ensure hover works */
}

/* Staggered transition delays for cascade effect */
#lb-stop { transition-delay: 0.1s; font-size: 20px; }
#lb-fullscreen { transition-delay: 0.2s; font-size: 20px; }
#lb-close { transition-delay: 0.3s; font-size: 50px; font-weight: 570; }

/* Animate buttons when lightbox shows */
#lightbox.show #lb-stop,
#lightbox.show #lb-fullscreen,
#lightbox.show #lb-close {
  opacity: 0.8;                  /* still 0.8 after animation */
  transform: translateY(0) scale(1);
}

/* Hover / active effect */
#lb-stop:hover, #lb-stop:active,
#lb-fullscreen:hover, #lb-fullscreen:active,
#lb-close:hover, #lb-close:active {
  opacity: 1 !important;          /* full opacity on hover */
  transform: scale(1.15) !important;
}

/* ================= THUMBNAILS ================= */
#lb-thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border-radius: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  position: relative;
}

#lb-thumbnails::-webkit-scrollbar { display: none; }

#lb-thumbnails img,
#lb-thumbnails .lb-thumb {
  height: 64px;
  width: auto;
  object-fit: cover;
  opacity: 0.75;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease;
  scroll-snap-align: center;
  position: relative;
  border-radius: 6px;
  background: transparent;
}

#lb-thumbnails img.active,
#lb-thumbnails .lb-thumb.active {
  opacity: 1;
  border: 2px solid rgb(170, 136, 0);
  transform: scale(0.88);
}

#lb-thumbnails img:hover,
#lb-thumbnails .lb-thumb:hover { transform: scale(1.05); opacity: 1; }
#lb-thumbnails img:active,
#lb-thumbnails .lb-thumb:active { transform: scale(0.95); opacity: 0.9; }

/* ================= FULLSCREEN MODE ================= */
#lightbox.fullscreen #lb-thumbnails,
#lightbox.fullscreen #lb-title-counter {
  display: none;
}

/* ================= MOBILE / DESKTOP SCROLLBAR ================= */
@media (max-width: 649px) {
  #lb-thumbnails {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  #lb-thumbnails::-webkit-scrollbar { display: none; }
}

@media (min-width: 650px) {
  #lb-thumbnails {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto; 
    scrollbar-color: rgba(170, 136, 0, 0.6) rgba(255, 255, 255, 0);
  }

  #lb-thumbnails::-webkit-scrollbar { height: 16px; }
  #lb-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(170, 136, 0, 0.6);
    border-radius: 8px;
    transition: background 0.3s ease;
  }

  #lb-thumbnails:hover::-webkit-scrollbar-thumb { background: rgba(170, 136, 0, 1); }
  #lb-thumbnails::-webkit-scrollbar-track { background: rgba(255,255,255,0); transition: background 0.3s ease; }
  #lb-thumbnails:hover::-webkit-scrollbar-track { background: rgba(170,136,0,0.05); }
}







/********************** contact form **********************/

.formbar {
  width: 100%;
  height: 750px;
  background-color: rgb(41, 41, 41);
  padding-top: 40px;
}

.contact-form {
  display: flexbox;
  margin: 115px auto;
  padding: 50px auto;
  width: 350px;
  text-align: center;
}

.contact-me {
  width: 38%;
  margin-left: 5%;
  color: rgb(170, 136, 0);
  font-size: 1.25rem;
}

.form-control {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: block;
  height: calc(1.5em + 0.75rem + 20px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #c5c5c5;
  background-color: rgb(34, 34, 34);
  background-clip: padding-box;
  border: 1px solid rgb(34, 34, 34);
  outline: none;
  border-radius: 0.75rem;
}

.contact-form input {
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
}

.contact-form textarea {
  width: 90%;
  margin: 5px auto;
  padding: 10px;
  height: 180px;
}

.g-recaptcha {
  overflow: hidden;
  width: 160px;
  height: 64px;
  margin-left: 18px;
  margin-top: 7px;
  background-color: rgb(34, 34, 34);
  border: 1px solid rgb(34, 34, 34);
  border-radius: 0.75rem;
}

iframe {
  margin: -5px 0px 0px -3px;
}

.submit-btn {
  cursor: pointer;
  color: rgb(170, 136, 0);
  background-color: rgb(34, 34, 34);
  border: 1px solid rgb(170, 136, 0);
  border-radius: 0.75rem;
  font-size: 1.2rem;
  width: 147px !important;
  height: 62px;
  margin: -63px 0px 0px 185px !important;
}

.submit-btn:hover {
  color: rgb(34, 34, 34);
  background-color: rgb(170, 136, 0);
}

.backtotop {
  width: 100%;
  height: 205px;
  background-color: rgb(36, 36, 36);
}

#topButton {
  border: solid rgb(70, 70, 70);
  border-width: 0 7px 7px 0;
  display: inline-block;
  padding: 7px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
  margin-top: 45px;
  margin-left: calc(60% + 60px);
  transition: 0.5s ease;
}

#topButton:hover {
  border: solid rgb(170, 136, 0);
  border-width: 0 7px 7px 0;
  cursor: pointer;
  -webkit-transform: scale(1.1) rotate(-135deg);
  -moz-transform: scale(1.1) rotate(-135deg);
  -o-transform: scale(1.1) rotate(-135deg);
  transform: scale(1.1) rotate(-135deg);
}

#topButton:active {
  -webkit-transform: scale(0.9) rotate(-135deg);
  -moz-transform: scale(0.9) rotate(-135deg);
  -o-transform: scale(0.9) rotate(-135deg);
  transform: scale(0.9) rotate(-135deg);
}

.logo-footer {
  display: block;
  width: 170px;
  margin: -25px auto; 
  transition: transform 0.5s ease, opacity 0.5s ease; 
}

.logo-footer:hover {
  cursor: pointer;
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
  opacity: 0.85;
}

.buttoncenter {
  text-align: center;
  background-color: rgb(36, 36, 36);
  padding-bottom: 10px;
}

.button {
  border: none;
  color: rgb(95, 95, 95);
  background-color: transparent;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor: pointer;
}

.button:hover {
  color: rgb(129, 129, 129);
}

.ig {
  color: rgb(41, 41, 41);
  text-decoration: none;
}

#instagramfooter {
  width: 15px;
  cursor: pointer;
  margin-bottom: 1px;
}

#ftr {
  text-align: center;
  font-size: 11px;
  color: rgb(41, 41, 41);
  background-color: rgb(170, 136, 0);
  padding: 10px;
  bottom: 0;
}
