/* @import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Jost:wght@100..900&family=Montserrat+Alternates:wght@400;600;700;800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Jost:wght@100..900&family=Kode+Mono:wght@400..700&family=Montserrat+Alternates:wght@400;600;700;800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Inconsolata:wght@200..900&family=Jost:wght@100..900&family=Kode+Mono:wght@400..700&family=Montserrat+Alternates:wght@400;600;700;800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap'); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  /* font-family: "Poppins", sans-serif; */
  /* font-family: "Kode Mono", sans-serif; */
  /* font-family: "Montserrat Alternates", sans-serif; */
  /* font-family: "Consolas", sans-serif; */
  font-family: "JetBrains Mono", monospace;
  /* font-family: "Space Grotesk", sans-serif; */
  /* font-family: "Urbanist", sans-serif; */
}

:root {
  --bg-color: #1a1a1a;
  --second-bg-color: #1f1f1f;
  /* --main-color: #FFD700; */
  --main-color: #ff8c00;
  --white-color: #f5ebd9;
  --disabled-color: #5c5c5c;
  --highlight-color: rgba(255, 255, 150, 0.05);
}

/* ===== Custom Scrollbar Styling ===== */
html {
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: orange #1a1a1a;
  /* thumb color | track color */
}

html::-webkit-scrollbar {
  width: 10px;
  /* Scrollbar width */
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  /* Track color */
}

::-webkit-scrollbar-thumb {
  background-color: #ff8c00;
  /* Scroll thumb color */
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  /* Small gap look */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ff9900;
  /* Lighter orange on hover */
}

html {
  font-size: 62.5%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--white-color);
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  width: 100%;
}

/* ===== Custom Cursor Style ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  background-color: var(--main-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor.hovered {
  transform: scale(1.8);
  background-color: var(--main-color);
  border-color: var(--main-color);
}


/* hello typing intro showing while loading */
/* ===== Hello Typing Intro (new, additive) ===== */
.intro-hello {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introHelloFade 0.8s ease forwards;
  animation-delay: 2.6s;
}

@keyframes introHelloFade {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.hello-svg-wrap {
  position: relative;
  width: 80%;
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hello__svg {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: var(--white-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 30px;
  stroke-dasharray: 5800px;
  stroke-dashoffset: 5800px;
  animation: helloDraw 2s ease forwards;
}

@keyframes helloDraw {
  0% {
    stroke-dashoffset: 5800px;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Blinking typing cursor next to hello */
.hello-cursor {
  display: inline-block;
  width: 0.7rem;
  height: 6rem;
  background: var(--white-color);
  margin-left: 1.2rem;
  opacity: 0;
  animation: cursorAppear 0.01s linear 2s forwards,
    cursorBlink 0.7s step-end infinite 2s;
}

@keyframes cursorAppear {
  to {
    opacity: 1;
  }
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}



/* Background Video */
.bg-universe-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: brightness(0.35);
}

/* ============================================= */
/* ===== THREE.JS 3D BACKGROUND CANVAS ========== */
/* ============================================= */
#three-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ============================================= */
/* ===== GLOBAL 3D DEPTH / PERSPECTIVE SETUP ==== */
/* NOTE: perspective is deliberately NOT put on   */
/* <body> — that would create a new containing    */
/* block and break position:fixed elements like   */
/* the header, cursor and terminal.                */
/* ============================================= */
.services-container,
.tech-container,
.overview-list,
.connect-container,
.project-container {
  perspective: 120rem;
}

/* ============================================= */
/* ===== 3D TILT CARD BASE (JS adds rotation) === */
/* ============================================= */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.tilt-3d>*:not(.tilt-glare) {
  transform: translateZ(2rem);
  transform-style: preserve-3d;
}

.tilt-3d .icon,
.tilt-3d h3,
.tilt-3d .btn {
  transform: translateZ(3.5rem);
}

/* glossy glare sweep that JS positions on hover */
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.tilt-3d:hover .tilt-glare {
  opacity: 1;
}

/* Elevated glow shadow on hover for 3D "lift" feel */
.services-container .services-box.tilt-3d:hover,
.tech-box.tilt-3d:hover,
.connect-box.tilt-3d:hover {
  box-shadow: 0 2.5rem 4rem rgba(0, 0, 0, 0.45), 0 0 3rem rgba(255, 140, 0, 0.18);
}

.overview-list .overview-item.tilt-3d:hover {
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.4), 0 0 1.8rem rgba(255, 140, 0, 0.15);
}

/* ============================================= */
/* ===== 3D FLOATING PROFILE IMAGE ============== */
/* ============================================= */
.home-img {
  perspective: 100rem;
}

.home-img .img-box {
  transform-style: preserve-3d;
  animation: float-3d 4.5s ease-in-out infinite;
  filter: drop-shadow(0 2rem 3rem rgba(255, 140, 0, 0.25));
  will-change: transform;
}

@keyframes float-3d {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-1.2rem) rotateX(3deg);
  }
}

.home-img .img-box .img-item img {
  transform: translateZ(4rem);
}

/* ============================================= */
/* ===== 3D PROJECT / TECH IMAGES ================ */
/* ============================================= */
.project-carousel .img-item {
  perspective: 80rem;
}

.project-carousel .img-item img {
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-style: preserve-3d;
}

.project-carousel .img-item:hover img {
  transform: scale(1.04) rotateX(2deg) rotateY(-2deg) translateZ(1rem);
  filter: brightness(1.08) saturate(1.1);
}

/* Reduce motion / disable tilt on touch or if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  .tilt-3d,
  .home-img .img-box {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tilt-3d:hover {
    transform: none !important;
  }
}

/* ============================================= */
/* ===== ALTERNATE COLOR PALETTES ================ */
/* Copy any ONE block below into :root (top of file) */
/* to change the entire site's color combination.    */
/* ============================================= */

/* --- Palette B: Cyber Purple (violet + cyan glow) ---
:root {
  --bg-color: #0d0b1a;
  --second-bg-color: #15122b;
  --main-color: #8b5cf6;
  --white-color: #ece9f7;
  --disabled-color: #5c5c5c;
  --highlight-color: rgba(139, 92, 246, 0.08);
}
*/

/* --- Palette C: Neon Teal (deep green-black + aqua) ---
:root {
  --bg-color: #08120f;
  --second-bg-color: #0f1f1a;
  --main-color: #2dd4bf;
  --white-color: #e6fff9;
  --disabled-color: #5c5c5c;
  --highlight-color: rgba(45, 212, 191, 0.08);
}
*/

/* --- Palette D: Royal Rose Gold (charcoal + rose gold) ---
:root {
  --bg-color: #161314;
  --second-bg-color: #201b1c;
  --main-color: #e0a96d;
  --white-color: #f7ece0;
  --disabled-color: #5c5c5c;
  --highlight-color: rgba(224, 169, 109, 0.08);
}
*/







/* Hide custom cursor on small screens (like mobile/tablet) */
@media (max-width: 1023px) {
  .cursor {
    display: none;
  }
}

/* ===== Custom Cursor Style Ends ===== */


/* Fullscreen Loader Container */
/* #loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
} */

/* Loader Wrapper */
/* .card-loader {
  display: flex;
  gap: 12px;
} */

/* Individual Cards */
/* .card {
  width: 24px;
  height: 42px;
  border-radius: 8px;
  background: #ff8c00;
  animation: blink 1.2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(250, 138, 2, 0.607);
} */

/* Colors for Each Card */
/* .c1 {
  background: #e90202;
  animation-delay: 0s;
}

.c2 {
  background: #f48600;
  animation-delay: 0.2s;
}

.c3 {
  background: #f0cd04;
  animation-delay: 0.4s;
}

.c4 {
  background: #03ed03;
  animation-delay: 0.6s;
}

.c5 {
  background: #057af0;
  animation-delay: 0.8s;
}

.c6 {
  background: #8103c0;
  animation-delay: 1s;
} */

/* Blinking Animation */
/* @keyframes blink {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
    filter: brightness(0.6);
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: brightness(1.4);
  }
} */

/* Text Under Loader */
/* .loader-text { */
/* margin-top: 15px; */
/* font-family: "Kode Mono", Tahoma, sans-serif; */
/* font-family: "Montserrat Alternates", sans-serif; */
/* font-family: "Consolas", sans-serif; */
/* font-size: 1.0rem;
  color: #fff;
  text-shadow: 0 0 4px #000000, 0 0 6px #f19c34;
  letter-spacing: 1.7px;
} */





#loader {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ===== Live Three.js 3D badge above the terminal loader card ===== */
.loader3d-stage {
  position: relative;
  width: 13rem;
  height: 13rem;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.loader-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--white-color);
  text-shadow: 0 0 1.5rem rgba(255, 140, 0, 0.75);
  pointer-events: none;
}

.loader-percent::after {
  content: "%";
  font-size: 1.4rem;
  margin-left: 0.2rem;
  color: var(--main-color);
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* Developer-style terminal loader card */
.dev-loader {
  width: 34rem;
  max-width: 85vw;
  background: rgba(20, 20, 20, 0.85);
  border: 0.1rem solid var(--main-color);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0 3rem rgba(255, 140, 0, 0.25);
}

.dev-loader-bar-top {
  display: flex;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 0.1rem solid rgba(255, 140, 0, 0.2);
}

.dev-loader-bar-top .dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.dev-loader-body {
  padding: 1.8rem 1.6rem;
}

.dev-loader-line {
  font-size: 1.5rem;
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
}

.dev-loader-prompt {
  color: var(--white-color);
  margin-right: 0.6rem;
}

.dev-loader-typed {
  color: var(--white-color);
}

.dev-loader-cursor {
  display: inline-block;
  width: 0.9rem;
  height: 1.6rem;
  background: var(--main-color);
  margin-left: 0.3rem;
  vertical-align: middle;
  animation: devCursorBlink 0.8s step-end infinite;
}

@keyframes devCursorBlink {
  50% {
    opacity: 0;
  }
}

.dev-loader-progress {
  margin-top: 1.6rem;
  height: 0.6rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.dev-loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--main-color), #ffcf6b);
  border-radius: 1rem;
  animation: progressFill 1.4s ease-in-out infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  60% {
    width: 85%;
  }

  100% {
    width: 100%;
  }
}

/* Responsive tweak for small screens */
@media screen and (max-width: 480px) {
  .dev-loader {
    width: 28rem;
  }

  .dev-loader-line {
    font-size: 1.3rem;
  }
}








/* home section css codes starts */
/* ==== Animated Underline on Navbar ==== */
nav a {
  position: relative;
  font-size: 2rem;
  color: var(--white-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transition: color 0.3s ease;
}

/* Underline Effect */
nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.4s ease;
}

/* On Hover */
nav a:hover::after {
  width: 60%;
}

/* On Click (Active Link) */
nav a.active::after {
  width: 60%;
}

/* animated pulse underline hover effect starts */
nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.4s ease;
  animation: none;
}

nav a:hover::after {
  width: 60%;
  animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--main-color);
  }

  70% {
    box-shadow: 0 0 0 5px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Background highlight on hover */
nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10rem;
  padding: 0.2rem 0.5rem;
  transform: scale(1.05);
  text-shadow: 0 0 5px var(--main-color);
}

/* Decorative arrow on hover */
nav a::before {
  content: "";
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav a:hover::before {
  content: "→";
  margin-right: 0.3rem;
  color: var(--main-color);
  font-weight: bold;
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* padding: 2rem 9%; */
  padding: 1.2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  background: rgba(26, 26, 26, 0.15) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header.active {
  animation: show-header 1.5s linear forwards;
  animation-delay: 3.2s;
}

@keyframes show-header {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.logo {
  font-size: 3rem;
  color: var(--white-color);
  font-weight: 700;
}

.logo img {
  height: 0.8em;
  width: auto;
  object-fit: contain;
}

nav a {
  font-size: 2rem;
  color: var(--white-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transform: 0.5s;
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

/* #menu-icon {
  font-size: 4rem;
  display: none;
} */

/* Hide menu icon on desktop */
#menu-icon {
  display: none;
}


/* ===== Premium Floating Mobile Menu Button ===== */
#menu-icon {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0.1rem solid rgba(255, 140, 0, 0.45);
  border-radius: 1.5rem;

  background: rgba(255, 140, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 0.8rem 2.5rem rgba(0, 0, 0, 0.35),
    0 0 1.5rem rgba(255, 140, 0, 0.12);

  cursor: pointer;
  z-index: 1001;

  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


/* Hover */
#menu-icon:hover {
  background: rgba(255, 140, 0, 0.22);
  border-color: var(--main-color);

  transform: translateY(-2px) scale(1.06);

  box-shadow:
    0 1rem 3rem rgba(0, 0, 0, 0.45),
    0 0 2rem rgba(255, 140, 0, 0.28);
}


/* ===== Hamburger Lines ===== */
#menu-icon .menu-line {
  display: block;

  width: 2.4rem;
  height: 0.28rem;

  border-radius: 1rem;
  background: var(--main-color);

  transition:
    transform 0.4s cubic-bezier(0.68, -0.4, 0.32, 1.4),
    opacity 0.25s ease,
    width 0.3s ease,
    background 0.3s ease;
}


/* Hamburger container */
#menu-icon {
  flex-direction: column;
  gap: 0.55rem;
}


/* Hover lines */
#menu-icon:hover .menu-line {
  background: var(--white-color);
}


/* ===== Hamburger → X ===== */
#menu-icon.active .line-1 {
  transform: translateY(0.83rem) rotate(45deg);
}

#menu-icon.active .line-2 {
  opacity: 0;
  width: 0;
}

#menu-icon.active .line-3 {
  transform: translateY(-0.83rem) rotate(-45deg);
}


/* ===== Active Button ===== */
#menu-icon.active {
  background: rgba(255, 140, 0, 0.18);
  border-color: var(--main-color);

  box-shadow:
    0 0 2rem rgba(255, 140, 0, 0.25),
    inset 0 0 1rem rgba(255, 140, 0, 0.08);
}


/* ===== Mobile ===== */
@media screen and (max-width: 768px) {
  #menu-icon {
    display: flex;
  }
}

/* ===== Backdrop overlay behind the sliding-in mobile nav ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Lock background scroll while the 3D nav panel is open */
body.nav-open {
  overflow: hidden;
}


header,
section {
  opacity: 1;
  visibility: visible;
}

.bars-box,
header,
section {
  transition-delay: 0s;
  animation-delay: 0s;
}

/* .bars-box {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.bars-box .bar {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: hide-bars 0.5s ease-in-out both;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes hide-bars {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.bars-box.active .bar {
    animation: show-bars 0.5s ease-in-out both;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
} */

.bars-box .bar {
  animation: none;
  background: var(--bg-color);
}

section {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10rem 9% 2rem;
  /* background: var(--bg-color); */
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
}

section.active {
  animation: show-content 1.5s linear forwards;
  animation-delay: 3.4s;
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
    overflow: auto;
  }
}

.home {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.animated-text {
  font-size: 3rem;
  font-weight: 700;
}

/* Gradient text for first name */
.first-name {
  background: linear-gradient(90deg, var(--main-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Plain color for last name */
.last-name {
  color: var(--white-color);
}


.home-detail h1 {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-detail h2 {
  display: inline-block;
  font-size: 3.2rem;
  margin-top: -1rem;
}

.home-detail h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.07rem var(--main-color);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {

  25%,
  100% {
    display: none;
  }
}

.home-detail h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 0.2rem solid var(--main-color);
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {

  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.home-detail p {
  font-size: 1.6rem;
  margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--bg-color);
  font-weight: 500;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

.home-detail .btn-sci .sci {
  margin-left: 2rem;
}

.home-detail .btn-sci .sci a {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
}

.home-detail .btn-sci .sci a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.home-img .img-box {
  position: relative;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 50rem;
  height: 50rem;
  background: conic-gradient(transparent,
      transparent,
      transparent,
      var(--main-color));
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: 50%;
  border: 0.01rem solid var(--bg-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: lighten;
}

/* logo bounce effects starts */

.logo {
  animation: bounceLogo 2s ease-in-out infinite alternate;
}

@keyframes bounceLogo {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

/* logo bounce effects ends */
/* hooe/intro section css codes ends */

/* services section css codes starts */

.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.heading span {
  color: var(--main-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.services-container .services-box {
  padding: 3rem 2.5rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  border-radius: 2.5rem;
  transition: 0.5s;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}


.services-container .services-box {
  padding: 3rem 2.5rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  border-radius: 2.5rem;
  transition: 0.5s ease;
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.services-container .services-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg,
      transparent 45%,
      var(--highlight-color) 50%,
      transparent 55%);
  opacity: 1;
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 0;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.04);
  background: linear-gradient(135deg,
      var(--second-bg-color) 0%,
      rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.services-container .services-box * {
  position: relative;
  z-index: 1;
}

.services-box .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-box .icon i {
  font-size: 4.5rem;
  transition: 0.5s;
}

.services-box:hover .icon :not(a i) {
  color: var(--main-color);
}

.services-box .icon a {
  display: inline-flex;
  background: var(--white-color);
  border-radius: 50%;
  padding: 1rem;
  transition: 0.5rem;
}

.services-box:hover .icon a {
  background: var(--main-color);
}

.services-box .icon a i {
  font-size: 3rem;
  color: var(--bg-color);
  transform: rotate(225deg);
}

.services-box .icon a:hover i {
  transform: rotate(180deg);
}

.services-box h3 {
  font-size: 3rem;
  margin: 0.5rem 0 2rem;
  transition: 0.5s;
}

.services-box:hover h3 {
  color: var(--main-color);
}

.services-box p {
  font-size: 1.6rem;
}

.services .cont p {
  font-size: 1.6rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* services section css codes ends */

/* overview section css codes starts */

.overview-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}

.overview-box h2 {
  font-size: 4.5rem;
}

.overview-box p {
  font-size: 1.6rem;
}

.overview-box desc {
  margin: 2rem 0 2.5rem;
}

/* === Enhanced overview Buttons with Emoji Styling === */

.overview-box .overview-btn {
  width: 100%;
  height: 5.2rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 2.5rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 1rem rgba(255, 215, 0, 0.1);
}

.overview-box .overview-btn:hover {
  color: var(--main-color);
  background: transparent;
  border-color: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
  transform: scale(1.02);
}

.overview-box .overview-btn.active {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
}

/* Optional: Animate emojis on hover */
.overview-box .overview-btn:hover::before {
  animation: bounce 0.6s ease;
}

/* Bounce effect for emoji */
@keyframes bounce {
  0% {
    transform: scale(1) translateY(0);
  }

  30% {
    transform: scale(1.1) translateY(-5px);
  }

  60% {
    transform: scale(0.95) translateY(2px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}


.overview-detail {
  display: none;
}

.overview-detail.active {
  display: block;
}

.overview-box .heading {
  font-size: 3.5rem;
  text-align: left;
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
  gap: 2rem;
  height: 45rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.overview-list::-webkit-scrollbar {
  width: 0.7rem;
}

.overview-list::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 1rem;
}

.overview-list:hover::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.overview-list .overview-item {
  background: var(--second-bg-color);
  border-radius: 2.5rem;
  padding: 3rem 2.5rem;
  height: calc((45rem - 2rem) / 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-item .year {
  color: var(--main-color);
}

.overview-item h3 {
  font-size: 2.2rem;
}

.overview-item .company {
  position: relative;
  margin-left: 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.overview-item .company img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}

.overview-item .company::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  background: var(--main-color);
  border-radius: 50%;
  margin-left: -2rem;
}

.overview-item h3 img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.overview-detail.skills .overview-list {
  /* grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  height: auto;
  overflow: visible;
}

.overview-detail.skills .overview-item {
  height: auto;
  position: relative;
  align-items: center;
}

.overview-detail.skills .overview-item i {
  /* font-size: 8.5rem; */
  font-size: 6rem;
  transition: 0.5s;
}

.overview-detail.skills .overview-item:hover i {
  color: var(--main-color);
}

.overview-detail.skills .overview-item span {
  position: absolute;
  top: -20%;
  background: var(--white-color);
  color: var(--bg-color);
  font-size: 1.6rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.2s;
}

.overview-detail.skills .overview-item:hover span {
  top: -25%;
  opacity: 1;
  transform: scale(1);
}

.overview-detail.about .overview-list {
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.overview-detail.about .overview-item {
  height: auto;
  padding: 0 1rem 0.5rem;
  background: transparent;
}

.overview-detail.about .overview-item p {
  color: var(--main-color);
}

.overview-detail.about .overview-item p span {
  color: var(--white-color);
  margin-left: 1rem;
  font-size: 1.8rem;
}














/* ===== Overview Buttons → Mobile Dropdown ===== */
@media screen and (max-width: 768px) {

  /* Hide dropdown toggle on desktop by default */
  .overview-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--second-bg-color);
    padding: 1.4rem 2rem;
    border-radius: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
  }

  .overview-dropdown-toggle i {
    font-size: 2.4rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
  }

  /* Buttons hidden initially */
  .overview-btn-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* When dropdown is open */
  .overview-btn-group.active {
    max-height: 60rem;
  }

  /* Rotate arrow */
  .overview-btn-group.active+.overview-dropdown-toggle i {
    transform: rotate(180deg);
  }

  /* Buttons spacing */
  .overview-btn {
    width: 100%;
    margin-bottom: 1.2rem;
  }
}


/* overview section css codes ends */

/* ===== Tech Section – matches existing card style starts ===== */

.tech-section {
  padding: 10rem 9% 5rem;
  min-height: 100vh;
  visibility: hidden;
  opacity: 0;
}

.tech-section.active {
  animation: show-content 1.5s linear forwards;
  animation-delay: 3.4s;
}

/* grid holds six cards, behaves like services-container */
.tech-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-box {
  padding: 3rem 2.5rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  border-radius: 2.5rem;
  transition: 0.4s ease;
}

.tech-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.tech-box h3 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.tech-box p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

/* Responsive tweak for narrow screens */
@media screen and (max-width: 768px) {
  .tech-container {
    grid-template-columns: 1fr;
  }
}

.tech-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-box p {
  text-align: center;
}

.tech-box .btn {
  margin-top: auto;
}

/* ===== Tech Section – matches existing card style ends ===== */

/* project section css codes starts */

.project-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.project-detail {
  display: none;
}

.project-detail.active {
  display: block;
}

.project-container .numb {
  font-size: 8rem;
  -webkit-text-stroke: 0.07rem var(--white-color);
  color: transparent;
  line-height: 1;
}

.project-box h3 {
  font-size: 3.5rem;
  margin: 0.8rem 0 2rem;
}

.project-box p {
  font-size: 1.6rem;
}

/* ========================================= */
/* PROJECT STATUS BADGES, PILLS & DESC       */
/* ========================================= */

/* Title & Badge Alignment */
.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0.8rem 0 1.5rem;
  flex-wrap: wrap;
}

.project-title-wrapper h3 {
  margin: 0 !important;
}

/* Base Pill Shape for Badges */
.status-badge {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

/* 🟢 Live Badge Styling */
.status-badge.live {
  background: rgba(39, 201, 63, 0.15);
  color: #27c93f;
  border: 0.1rem solid rgba(39, 201, 63, 0.3);
}

/* 🛠️ Local Build / Dev Badge Styling */
.status-badge.dev {
  background: rgba(255, 189, 46, 0.15);
  color: #ffbd2e;
  border: 0.1rem solid rgba(255, 189, 46, 0.3);
}

/* Clean & Readable Description */
.project-desc {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 2.2rem;
}

/* Tech Stack Pill Shapes (No Hover) */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.784);
}

.tech-stack span {
  background: rgba(255, 255, 255, 0.05);
  color: var(--main-color);
  padding: 0.5rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-family: 'Consolas', monospace;
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.project-box .live-github a {
  position: relative;
  display: inline-flex;
  padding: 1.3rem;
  font-size: 3rem;
  color: var(--white-color);
  border-radius: 50%;
  background: var(--second-bg-color);
  transition: 0.5s;
}

.project-box .live-github a:hover {
  color: var(--main-color);
}

.project-box .live-github a:first-child {
  margin-right: 1.5rem;
}

.project-box .live-github a:first-child i {
  transform: rotate(135deg);
}

.project-box .live-github a span {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font-size: 1.6rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  pointer-events: none;
  background: var(--white-color);
  color: var(--bg-color);
  opacity: 0;
  transition: 0.2s;
}

.project-box .live-github a:hover span {
  top: -70%;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.project-box .project-carousel {
  width: 100%;
  height: 45rem;
  border-radius: 1rem;
  overflow: hidden;
}

.project-carousel .img-slide {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 2rem;
  height: inherit;
  transition: 0.5s;
}

.project-carousel .img-item {
  height: inherit;
}

.project-carousel .img-item img {
  width: 100%;
  height: 100%;
  object-fit: unset;
  display: block;
  border-radius: 2.5rem;
}

.project-box .navigation {
  text-align: right;
  margin-top: 2rem;
}

.project-box .navigation button {
  display: inline-flex;
  padding: 0.4rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 2.5rem;
  font-size: 4rem;
  color: var(--main-color);
  cursor: pointer;
}

.project-box .navigation button.disabled {
  border-color: var(--second-bg-color);
  color: var(--disabled-color);
}

.project-box .navigation .arrow-right {
  margin-left: 1.5rem;
}

/* project section css codes ends */

/* connect section css codes starts */

.connect-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.connect-container .connect-box:first-child {
  align-self: center;
}

.connect-box h2 {
  font-size: 4.5rem;
}

.connect-box p {
  font-size: 1.6rem;
}

.connect-box .desc {
  margin: 1.5rem 0 2.5rem;
}

.connect-box .connect-detail {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.connect-detail i {
  display: inline-flex;
  background: var(--second-bg-color);
  color: var(--main-color);
  font-size: 3rem;
  padding: 1.2rem;
  border-radius: 2.5rem;
  margin-right: 1.5rem;
}

.connect-detail .detail p:first-child {
  color: var(--main-color);
}

.connect-box form {
  background: var(--second-bg-color);
  padding: 2.5rem 3.5rem 3.5rem;
  border-radius: 2.5rem;
  text-align: center;
}

.connect-box .heading {
  font-size: 3.5rem;
}

.connect-box .field-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.connect-box .field-box input,
.connect-box .field-box textarea {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 2.5rem;
  font-size: 1.6rem;
  color: var(--white-color);
  border: 0.15 solid var(--bg-color);
}

.connect-box .field-box textarea {
  grid-column: 1 / -1;
  height: 26rem;
  resize: none;
}

.connect-box .field-box input:focus,
.connect-box .field-box textarea:focus {
  border-color: var(--main-color);
}

.connect-box .btn {
  margin-top: 2rem;
  cursor: pointer;
}

/* connect section css codes ends */

/* responsive css codes starts */

@media screen and (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media screen and (max-width: 992px) {
  header {
    /* padding: 2rem 4%; */
    padding: 1.2rem 4%;
  }

  section {
    padding: 10rem 4% 2rem;
  }
}

@media screen and (max-width: 810px) {
  .connect-box .field-box {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {

  /* for navbar open top to down side in mobile screen */
  /* #menu-icon {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    margin: 4rem 0;
  } */


  /* for nav bar open from right to left side in mobile screen */
  #menu-icon {
    display: flex;
    cursor: pointer;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-color);
    padding: 10rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 5.5rem 0 0 5.5rem;
    z-index: 1000;
    transform-origin: right center;
    perspective: 900px;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 2.4rem;
    margin: 0;
  }


  .home {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 2rem;
  }

  .home-img .img-box {
    width: 35rem;
    height: 35rem;
  }

  .overview-container,
  .project-container,
  .connect-container {
    grid-template-columns: 1fr;
  }

  .overview-container {
    gap: 3rem;
  }

  .project-container .project-box:first-child {
    order: 1;
  }

  .connect-box .field-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .home-img .img-box {
    width: 30rem;
    height: 30rem;
  }

  .connect-box .field-box {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media screen and (max-width: 400px) {

  .home-detail,
  .overview-box,
  .overview-box .heading,
  .overview-box .desc,
  .overview-detail.about .overview-item {
    text-align: center;
  }

  .home-detail .btn-sci {
    flex-direction: column-reverse;
  }

  .home-detail .btn-sci .sci {
    margin-left: 0;
    margin-bottom: 2rem;
  }

  .connect-box form {
    padding: 2.5rem 3rem 3.5rem;
  }

  .connect-box h2 {
    font-size: 3.5rem;
  }
}





/* ================= OVERVIEW DROPDOWN ================= */

/* DESKTOP VIEW */
.overview-dropdown {
  display: none;
}

/* MOBILE VIEW */
@media screen and (max-width: 768px) {

  .overview-dropdown {
    display: flex;
    /* justify-content: space-between; */
    justify-content: center;
    align-items: center;

    background: var(--second-bg-color);
    padding: 1.4rem 2rem;
    border-radius: 2.5rem;

    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
    margin-bottom: 1.2rem;
  }

  .overview-dropdown i {
    font-size: 2.6rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
  }

  /* Dropdown CLOSED */
  .overview-buttons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* Dropdown OPEN */
  .overview-buttons.open {
    max-height: 100rem;
  }

  /* Rotate arrow */
  .overview-dropdown.open i {
    transform: rotate(180deg);
  }

  /* Mobile buttons */
  .overview-btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* responsive css codes ends */




/* ================= HIDDEN TERMINAL UI (EASTER EGG) ================= */
#terminal-ui {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 50rem;
  max-width: calc(100vw - 4rem);
  height: 40rem;
  max-height: calc(100vh - 4rem);

  /* Premium Dark Glassmorphism */
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 0.1rem solid rgba(255, 255, 255, 0.08);

  /* Curved like Command Palette */
  border-radius: 2.4rem;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: 'Consolas', 'Kode Mono', monospace;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.terminal-hidden {
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.terminal-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 2.3rem;
  border-top-right-radius: 2.3rem;
  color: #aaa;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.06);
}

/* Upgraded Mac-Style Close Button */
#close-terminal {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
  border: 0.1rem solid rgba(255, 95, 86, 0.3);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

#close-terminal:hover {
  background: #ff5f56;
  color: #fff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 1rem rgba(255, 95, 86, 0.4);
}

.terminal-body {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  color: #27c93f;
  font-size: 1.45rem;
  line-height: 1.6;
}

/* Custom Sleek Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
  width: 0.5rem;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
}

.terminal-body p {
  margin-bottom: 0.6rem;
  word-wrap: break-word;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  border-bottom-left-radius: 2.3rem;
  border-bottom-right-radius: 2.3rem;
}

.terminal-input-line .prompt {
  color: var(--main-color);
  margin-right: 1.2rem;
  font-size: 1.6rem;
  font-weight: bold;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.55rem;
  font-family: 'Consolas', 'Kode Mono', monospace;
}

#terminal-input:focus {
  outline: none;
}

/* ================= RESPONSIVE TERMINAL (Mobile/Tablet) ================= */
@media screen and (max-width: 768px) {
  #terminal-ui {
    width: 90vw;
    height: 50vh;
    bottom: 5vh;
    right: 5vw;
    border-radius: 2rem;
  }

  .terminal-header {
    border-top-left-radius: 1.9rem;
    border-top-right-radius: 1.9rem;
    padding: 1rem 1.5rem;
  }

  .terminal-input-line {
    border-bottom-left-radius: 1.9rem;
    border-bottom-right-radius: 1.9rem;
    padding: 1.2rem 1.5rem;
  }

  .terminal-body {
    font-size: 1.3rem;
    padding: 1.2rem 1.5rem;
  }

  #close-terminal {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
  }
}


/* ================================================= */
/* ADVANCED COMMAND PALETTE STYLING (Curved Dark Glass)*/
/* ================================================= */

#cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cmd-palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

#cmd-palette-modal {
  width: 65rem;
  max-width: 90vw;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 0.1rem solid rgba(255, 255, 255, 0.08);

  /* More curved edges for advanced look */
  border-radius: 2.4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Consolas', monospace;
  transform: scale(0.96) translateY(1rem);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cmd-palette-overlay.active #cmd-palette-modal {
  transform: scale(1) translateY(0);
}

.cmd-search-box {
  display: flex;
  align-items: center;
  padding: 2rem 2.4rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.cmd-search-box i.bx-search {
  font-size: 2.4rem;
  color: var(--disabled-color);
  margin-right: 1.5rem;
}

#cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white-color);
  font-size: 1.7rem;
  font-family: 'Consolas', monospace;
}

#cmd-palette-input::placeholder {
  color: var(--disabled-color);
}

.cmd-kbd {
  background: rgba(255, 255, 255, 0.05);
  color: var(--disabled-color);
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

#cmd-palette-results {
  max-height: 38rem;
  overflow-y: auto;
  padding: 1.5rem;
}

#cmd-palette-results::-webkit-scrollbar {
  width: 0.4rem;
}

#cmd-palette-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

.cmd-group-title {
  font-size: 1.1rem;
  color: var(--disabled-color);
  padding: 1.2rem 1.4rem 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  cursor: pointer;
  color: #a0a0a0;
  font-size: 1.45rem;
  transition: all 0.2s ease;
  margin-bottom: 0.4rem;
}

.cmd-item i {
  font-size: 2.2rem;
  margin-right: 1.5rem;
  color: #777;
  transition: color 0.2s ease;
}

.cmd-item span.cmd-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rounded Pill Badges */
.cmd-shortcut {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #777;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* AI Specific Badge */
.cmd-shortcut.ai-badge {
  background: rgba(39, 201, 63, 0.1);
  color: #27c93f;
  border-color: rgba(39, 201, 63, 0.2);
}

/* Pure Dark Hover State */
.cmd-item.active,
.cmd-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-color);
}

/* Highlight icon to orange on hover */
.cmd-item.active i:not(.bx-bot),
.cmd-item:hover i:not(.bx-bot) {
  color: var(--main-color);
}

.cmd-item.active .cmd-shortcut:not(.ai-badge),
.cmd-item:hover .cmd-shortcut:not(.ai-badge) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-color: rgba(255, 255, 255, 0.15);
}

.cmd-palette-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 2.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 0.1rem solid rgba(255, 255, 255, 0.04);
  font-size: 1.15rem;
  color: #666;
}

.cmd-palette-footer b {
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  margin: 0 0.3rem;
  font-family: inherit;
}

/* ========================================= */
/* DEVELOPER SHORTCUTS HINT BOX              */
/* ========================================= */

.dev-shortcuts-hint {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.1rem solid rgba(255, 140, 0, 0.2);
  border-radius: 1.2rem;
  font-size: 1.3rem;
  color: #aaa;
  display: inline-block;
  font-family: 'Consolas', monospace;
}

.dev-shortcuts-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  color: var(--main-color);
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
  font-weight: bold;
}

.dev-shortcuts-hint .logo-trigger {
  color: var(--main-color);
  font-weight: bold;
  cursor: pointer;
}

/* Responsive Switching */
.mobile-hint {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-hint {
    display: none;
  }

  .mobile-hint {
    display: inline-block;
  }

  .dev-shortcuts-hint {
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
  }
}

#terminal-fab {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 0.15rem solid var(--main-color);
  color: var(--main-color);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 1.5rem rgba(255, 140, 0, 0.35);
  transition: all 0.3s ease;
}

#terminal-fab i {
  color: inherit;
}

#terminal-fab:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: scale(1.1);
  box-shadow: 0 0 2.5rem var(--main-color);
}

#terminal-fab.hide-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

@media screen and (max-width: 1023px) {
  #terminal-fab {
    display: none;
  }
}