:root {
  --black: #1b1a1a;
  --white: #eeeeee;
  --dark-red: #ec4e3d;
  --rose-red: #8e1616;
  --blue: #0078ab;
  --sky-blue: #68c5db;
  --light-blue: #bfd7fa;
}

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

body {
  min-height: 100vh;
  background-color: var(--black);
  overflow-x: hidden;
  overflow-y: auto;
  background-image: url("../images/gradient.d0e3876ea212.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
  background-attachment: scroll;
}

/* bg ma hex animation ko lagi */

.hex-container {
  position: relative;
  min-height: 100vh;
  z-index: 2;
  overflow: hidden;
}

.row {
  display: inline-flex;
  margin-top: -32px;
  margin-left: -50px;
  height: auto;
}
.row:nth-child(even) {
  margin-left: 1px;
}
.hexagon {
  position: relative;
  width: 100px;
  height: 110px;
  background-color: var(--black);
  margin: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: 2s;
  z-index: 1;
}
.hexagon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.02);
  z-index: 0; 
}
.hex-wrapper {
  position: relative;
}

#cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background-color: #0f0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursor-animation 4s linear infinite;
  z-index: 0;
}

@keyframes cursor-animation {
  0% {
    filter: hue-rotate(0deg) blur(50px);
  }

  100% {
    filter: hue-rotate(360deg) blur(50px);
  }
}
/* hex animation done */
.hex-container,
.hex-wrapper,
#hex-grid,
#cursor {
  pointer-events: none;
}
.content,
.content * {
  pointer-events: auto;
}

/* hex mathi ko elements */
.content {
  position: absolute;
  width: 100%;
  height: auto;
  display: flex;
  top: 85px;
}
.text-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: white;
  z-index: 10;
}
.text-box h2 {
  font-size: 28px;
  margin-bottom: 10px;
  padding: 6vw;
}
.text-box img {
  width: 70%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 80px;
}
.hero-btns {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  gap: 40px;
}
.hero-btn-1,
.hero-btn-2 {
  display: inline-block;
  padding: 23px 30px;
  font-size: 20px;
  color: white;
  border: 2px solid var(--rose-red);
  border-radius: 8px;
  text-decoration: none;
  background-color: var(--rose-red);
  position: relative;
}
.hero-btn-1:hover,
.hero-btn-2:hover {
  background-color: var(--sky-blue);
  color: var(--white);
  transition: 0.3s;
  border-color: var(--sky-blue);
}
.animated-box {
  color: var(--blue);
}

/* hex mathi ko element FINISHED */

/* our vision part */

.our-vision {
  width: 100%;
  margin: auto;
  text-align: center;
  margin-bottom: 30px;
}

.our-vision h1 {
  font-size: 75px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--rose-red);
}
.horizontal-line {
  width: 35%;
  height: 6px;
  border: 0 none;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: var(--blue);
  color: var(--blue);
}

.our-vision p,
.text-box p {
  color: var(--light-blue);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
  letter-spacing: 0.5px;
  word-spacing: 2px;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.vision-text {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  color: var(--white);
  line-height: 1.8;
  font-size: 1.2vw;
}

.vision-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
  padding: 9vw 4vw;
}

.vision-wrapper .vision-heading {
  display: flex;
  justify-content: center;
  height: auto;
  align-items: center;
  padding: 3vw 5vw;
  justify-self: center;
  margin-left: 0;
  border: 2px solid var(--rose-red);
  border-radius: 10px;
  width: fit-content;
  background-color: var(--rose-red);
  align-self: center;
}
.vision-wrapper .vision-heading h1 {
  font-size: 6vw;
}

.vision-wrapper .vision-heading:hover {
  border: 2px solid var(--blue);
  background-color: var(--sky-blue);
}

.vision-wrapper .vision-heading h1 {
  margin: 0;
  color: white;
  font-size: 3vw;
  text-align: center;
}

.vision-text p {
  font-size: 1.2vw;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  letter-spacing: 0.5px;
  word-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  text-align: center;
  color: var(--light-blue);
}
.layer-blur {
  position: absolute;
  top: 30%;
  right: 10%;
  transform: translateY(-50%) rotate(-20deg);
  width: 40vw;
  height: 20vw;
  border-radius: 50% / 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 80%
  );
  z-index: -5;
  pointer-events: none;
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: translateY(-50%) rotate(-20deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50%) rotate(-20deg) scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-50%) rotate(-20deg) scale(1);
    opacity: 0.3;
  }
}

.robot-3d {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 100%;
  height: 500px; 
  justify-self: center;
  align-self: center;
}

/* vision FINISHED */

/* gallery section */

.gallery-section {
  margin-top: 1vw;
}

.gallery-box {
  width: 100%;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  height: 550px;
  overflow: hidden;
  margin-bottom: 80px;
}
.gallery-box h1 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--rose-red);
  padding-top: 35px;
}

.scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: inline-flex;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
}
.scroll-content {
  display: inline-flex;
  width: max-content;
  animation: scrollAnim 25s linear infinite;
}

/* STOP animation on hover */
.scroll:hover .scroll-content {
  animation-play-state: paused;
}

/* Optional: stop while clicking/touching */
.scroll:active .scroll-content {
  animation-play-state: paused;
}


.scroll-content img {
  height: 350px;
  margin-right: 20px;
  border-radius: 10px;
  object-fit: cover;
}
.scroll-content img {
  transition: transform 0.3s ease;
}

.scroll-content img:hover {
  transform: scale(1.05);
}
@keyframes scrollAnim {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.full-line {
  width: 100%;
  height: 2px;
  background-color: var(--sky-blue);
  margin: 20px 0;
  border: none;
  justify-self: center;
}
/* gallery finished */

/* breakpoints  */
@media (max-width: 992px) {
  #cursor {
    width: 200px;
    height: 200px;
  }
  .text-box img {
    width: 85%;
  }
  .vision-wrapper .vision-heading {
    margin-left: 0;
    justify-self: center;
    width: fit-content;
  }
  .vision-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 4vw;
  }

  .vision-heading {
    order: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3vw 5vw;
    margin: 150px 0px 0px;
  }

  .vision-text {
    order: 2;
    width: 100%;
    max-width: 700px;
    text-align: center;
  }

  .robot-3d {
    order: 3;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
  }
  .layer-blur {
    display: none;
  }
}

@media (max-width: 768px) {
  .vision-wrapper .vision-heading h1 {
    font-size: 6vw;
  }
  .vision-text p {
    font-size: 3.8vw;
    margin: 2vw auto;
  }
}

@media (max-width: 568px) {
  .our-vision h1 {
    font-size: 40px;
  }
}

@media (max-width: 470px) {
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-btn-1,
  .hero-btn-2 {
    width: 200px;
    text-align: center;
  }
  .robot-3d {
    height: 100vw;
  }
}


/* ===== Day/Night overrides for home page elements ===== */
html.light-mode body {
  background-image: none; /* the dark gradient texture doesn't suit a light bg */
}

html.light-mode .gallery-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

html.light-mode .layer-blur {
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 80%
  );
}
/* ===== Hex grid visibility in light mode ===== */
html.light-mode .hexagon {
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(142, 22, 22, 0.12); /* rose-red honeycomb edges */
}

html.light-mode .hexagon::before {
  background-color: rgba(104, 197, 219, 0.1); /* sky-blue tint on left half */
}