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

*::selection {
  background-color: rgba(34, 211, 238, 0.15);
  color: #fff;
}

*::-moz-selection {
  background: rgba(34, 211, 238, 0.15);
  color: #fff;
}

/* Allow text selection on content areas */

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  cursor: default;

  /* Palette */
  --color-white: #ededed;
  --color-black: #000;
  --color-dark-mode: #0c0c0f;
  --color-light-mode: #f0f4f8;
  --color-Active-mode: #00D084;
  --color-ddd-color: #a1a1aa;
  --color-gray: #71717a;
  --color-purple: #00B4FF;
  --color-light-purple: #38bdf8;
  --color-light-blue: #22d3ee;
  --color-light-lblue: #00F5AA;
  --color-light-lpink: #00D084;
  --color-light-llblue: #00B4FF;
  --color-light-dblue: #00F5AA;
  --color-navbarBorder-dark: rgba(255,255,255,0.06);
  --color-shadowDark: rgba(0, 180, 255, 0.08);
  --static-heading-gradient-blue: #22d3ee;
  --static-heading-gradient-pink: #38bdf8;
  --tech-stack-box-first-color: #0f172a;
  --tech-stack-box-second-color: rgba(15, 23, 42, 0);
  --tech-stack-box-border-color: rgba(255,255,255,0.06);

  /* Spacing tokens */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transition tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;

  /* Surface colors */
  --surface-1: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.05);
  --surface-3: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.1);
  --text-primary: #ededed;
  --text-secondary: #d4d4d8;
  --text-tertiary: #a1a1aa;
  --accent: #22d3ee;
  --accent-muted: rgba(34, 211, 238, 0.1);

  /* Type scale (Major Third 1.25) */
  --text-xs: 1.05rem;
  --text-sm: 1.2rem;
  --text-base: 1.4rem;
  --text-lg: 1.6rem;
  --text-xl: 2rem;
  --text-2xl: 2.4rem;
  --text-3xl: 3rem;
  --text-4xl: 4.5rem;
  --text-5xl: 6.5rem;

  /* Content width – use more of viewport, reduce side gaps */
  --content-width: min(92%, 1400px);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

body {
  background-color: var(--color-dark-mode);
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-in-out);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.06), transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  animation: pageLoad 0.6s var(--ease-out) both;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--accent);
  color: #0c0c0f;
  font-weight: 600;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--duration-normal) var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* Custom cursor styles */
.cursor-inner {
    width: 5px;
    height: 5px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 99999999;
    pointer-events: none;
    transition: width var(--duration-fast) var(--ease-out),
                height var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
    mix-blend-mode: difference;
}

.cursor-outer {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 99999998;
    pointer-events: none;
    transition: width var(--duration-normal) var(--ease-out),
                height var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.cursor-inner.hover {
    width: 10px;
    height: 10px;
    background-color: rgba(34, 211, 238, 0.5);
    transition: all var(--duration-fast) var(--ease-out);
}

.cursor-outer.hover {
    width: 44px;
    height: 44px;
    border-color: rgba(34, 211, 238, 0.3);
    border-width: 1.5px;
    transition: all var(--duration-fast) var(--ease-out);
}

/* for light mode */
.light-mode {
  --color-dark-mode: #fafafa;
  --color-black: #fff;
  --color-white: #18181b;
  --color-Active-mode: #0d9488;
  --color-ddd-color: rgb(63, 63, 70);
  --color-navbarBorder-dark: rgba(0,0,0,0.06);
  --static-heading-gradient-blue: #0f7878;
  --static-heading-gradient-pink: #0891b2;
  --color-shadowDark: rgba(0,0,0,0.04);
  --tech-stack-box-first-color: #f4f4f5;
  --tech-stack-box-second-color: rgba(244,244,245,0);
  --tech-stack-box-border-color: rgba(0,0,0,0.06);
  --surface-1: rgba(0,0,0,0.02);
  --surface-2: rgba(0,0,0,0.04);
  --surface-3: rgba(0,0,0,0.06);
  --border-subtle: rgba(0,0,0,0.06);
  --border-default: rgba(0,0,0,0.1);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --accent: #0891b2;
  --accent-muted: rgba(8, 145, 178, 0.1);
}

.setting-container {
  width: 60px;
  height: 50px;
  margin-left: 50px;
  display: flex;
  align-items: center;
  transform-origin: left;
  transition-duration: 0.5s;
  gap: 30px;
  padding: 20px 0px;
}

#labelforsetting {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 20px;
  background-image: url(src/svg/settings-svgrepo-com.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  transition-duration: 0.5s;
  cursor: pointer;
}

.invertsettinglabel {
  filter: invert(1);
}

.settingactivate {
  transform-origin: left;
  width: 200px;
  transition-duration: 0.5s;
}

.visualmodetogglebuttoncontainer {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50px) scale(0);
  transition-duration: 0.3s;
}

.visualmodeshow {
  transition-duration: 0.3s;
  transform: translate(0px) scale(1);
}

#switchforsetting {
  display: none;
}

#switchforsetting:checked + #labelforsetting {
  transform: rotate(180deg);
  transition-duration: 0.5s;
}

#labelforvisualmode {
  position: relative;
  width: 40px;
  height: 40px;
  background-image: url(src/png/crescent-moon\ \(1\).png);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  transition-duration: 0.5s;
  cursor: pointer;
}

#switchforvisualmode {
  display: none;
}

#switchforvisualmode:checked + #labelforvisualmode {
  transform: rotate(360deg);
  transition-duration: 0.5s;
  background-image: url(src/png/sun.png);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

/* for sound */
.soundtogglebuttoncontainer {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-130px) scale(0);
  transition-duration: 0.3s;
}

.soundmodeshow {
  transition-delay: 0.1s;
  transition-duration: 0.5s;
  display: inline-block;
  transform: translate(0px) scale(1);
}

#labelforsound {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-image: url(src/svg/Mute_Icon.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition-duration: 0.5s;
}

.invertapplied {
  filter: invert(1);
}

#switchforsound {
  display: none;
}

#switchforsound:checked + #labelforsound {
  transition-duration: 0.5s;
  background-image: url(src/svg/Speaker_Icon.svg);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

header {
  width: 100%;
  height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#preloader {
  background-color: var(--color-dark-mode);
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-brand {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

noscript {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark-mode);
  font-size: 4rem;
  color: white;
  z-index: 999999;
}

.fakenavbar {
  height: 0px;
  width: 0%;
  background-color: transparent;
}

.navbar {
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  height: 64px;
  width: min(85%, 1200px);
  display: flex;
  align-items: center;
  padding: 0px var(--space-lg);
  justify-content: space-between;
  position: fixed;
  z-index: 999;
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-slow) var(--ease-out);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.navbar-tabs {
  display: flex;
  height: 100%;
  width: 80%;
  align-items: center;
  padding-right: 20px;
}

.navbar-tabs-ul {
  height: 100%;
  width: 100%;
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  gap: 45px;
  color: var(--color-white);
}

.navbar-tabs-ul li {
  width: fit-content;
  height: 36px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--duration-normal) var(--ease-out);
  text-transform: uppercase;
}

.navbar-tabs-ul li:hover {
  transform: translateY(-1px);
}

.navbar-tabs-ul li::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.navbar-tabs-ul li:hover::after {
  width: 100%;
}

.navbar-tabs-ul a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

.navbar-tabs-ul a:hover {
  color: var(--text-primary);
}

.logo {
  position: relative;
  width: auto;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-left: 15px;
  margin-right: 20px;
}

.hey {
  color: var(--text-primary);
  position: absolute;
  font-size: 2rem;
  font-weight: 400;
  background-color: var(--surface-3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  left: 120px;
  bottom: 80px;
  opacity: 0;
  border: 1px solid var(--border-subtle);
}

.popup {
  animation: pop-up 3s linear;
}

@keyframes pop-up {
  from {
    bottom: -50px;
    left: 50px;
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.logo-top {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom;
  position: relative;
}

.logo-top img,
.logo-top .header-footer-avatar,
.logo-top .memoji-avatar,
.logo-top .sticker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  border: 1.5px solid var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.memoji-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.memoji-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Navbar avatar specific styling */
#nav-avatar {
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo:hover .header-footer-avatar,
.logo:hover .memoji-avatar,
.logo:hover .sticker-avatar,
.logo:hover img {
  transform: scale(1.2) translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.logo:hover {
  transform: translateY(-2px);
  transition-duration: 0.3s;
}

.activeThistab {
  color: var(--text-primary) !important;
}

.activeThistab::after {
  width: 100% !important;
  background: var(--accent) !important;
}

/* navbar code ends here */

/* landing page code starts from here */
.main {
  width: 100%;
  height: fit-content;
  position: relative;
  overflow-x: hidden;
}

/* blob */
.blob {
  position: absolute;
  right: -5%;
  top: -15%;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 65%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: breath 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes breath {
  from {
    opacity: 0.08;
    transform: scale(1) translate(0, 0);
  }

  to {
    opacity: 0.16;
    transform: scale(1.05) translate(-15px, 15px);
  }
}

.landing-page-container {
  width: 100%;
  height: calc(100vh - 0px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}


.text-content {
  display: flex;
  flex-direction: column;
  width: var(--content-width);
  max-width: 100%;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-left: max(5vw, 24px);
}

#hello-friend {
  font-size: 2.8rem;
  font-weight: 500;
  width: fit-content;
  display: flex;
  align-items: flex-end;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  letter-spacing: 1px;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typeIn 1.8s steps(14) 0.5s forwards;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes typeIn {
  to { width: 14ch; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@-webkit-keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }

  20% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }

  40% {
    -webkit-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
  }

  60% {
    -webkit-transform: translate(2px, 2px);
    transform: translate(2px, 2px);
  }

  80% {
    -webkit-transform: translate(2px, -2px);
    transform: translate(2px, -2px);
  }

  100% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

@keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }

  20% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }

  40% {
    -webkit-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
  }

  60% {
    -webkit-transform: translate(2px, 2px);
    transform: translate(2px, 2px);
  }

  80% {
    -webkit-transform: translate(2px, -2px);
    transform: translate(2px, -2px);
  }

  100% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

/* #name:hover{
    -webkit-animation: vibrate-1 0.3s linear both;
    animation: vibrate-1 0.3s linear both;
}
   */
#name {
  padding-top: 8px;
  font-size: 6.5rem;
  font-weight: 700;
  width: fit-content;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #e0e0e0 50%,
    var(--accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  -webkit-animation: gradient 4s ease infinite;
  animation: gradient 4s ease infinite;
  font-family: "Inter", "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -1.5px;
}

@keyframes gradient {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

#work {
  font-size: 6.5rem;
  padding-top: 6px;
  width: fit-content;
  display: flex;
  align-items: flex-start;
  color: var(--text-secondary);
  flex-wrap: wrap;
  font-family: "Inter", "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -1px;
}

#work div {
  display: flex;
  margin: 0px 12px 0px 0px;
}

.jello:hover {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: var(--accent);
  -webkit-animation: jello-vertical 0.9s both;
  animation: jello-vertical 0.9s both;
}

@-webkit-keyframes jello-vertical {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  40% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  50% {
    -webkit-transform: scale3d(0.85, 1.15, 1);
    transform: scale3d(0.85, 1.15, 1);
  }

  65% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  75% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes jello-vertical {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  40% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  50% {
    -webkit-transform: scale3d(0.85, 1.15, 1);
    transform: scale3d(0.85, 1.15, 1);
  }

  65% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  75% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

#info-para {
  width: 65%;
  font-size: 1.65rem;
  font-weight: 400;
  padding-top: var(--space-lg);
  color: var(--text-tertiary);
  line-height: 1.8;
  letter-spacing: 0.1px;
}

.contact-btn-div {
  width: 100%;
  padding-top: var(--space-xl);
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-link {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.3px;
}

.hero-link:hover {
  background: var(--surface-2);
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.letsTalkBtn {
  position: relative;
  background-color: transparent;
  border: none;
  width: 160px;
  height: 40px;
  border-radius: 0px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  display: inline-flex;
}

.letsTalkBtn-text {
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-dark-mode);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: 1.35rem;
}

.letsTalkBtn-BG {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: -1;
  left: 4px;
  top: 4px;
  border-radius: var(--radius-full);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.letsTalkBtn:hover {
  transform: translateY(-2px) translateX(-2px);
}

.letsTalkBtn:hover .letsTalkBtn-BG {
  transform: translateY(2px) translateX(2px);
}

.letsTalkBtn:active {
  transform: translateY(5px) translateX(5px);
}

.letsTalkBtn:active .letsTalkBtn-BG {
  transform: translateY(-5px) translateX(-5px);
}

.resume-btn {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background: linear-gradient(
    82.3deg,
    rgba(150, 93, 233, 1) 10.8%,
    rgba(99, 88, 238, 1) 94.3%
  );
  position: relative;
}

/* plus sign */
.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

.sign svg path {
  fill: white;
}

/* text */
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1em;
  font-weight: 600;
  transition-duration: 0.3s;
}

/* hover effect on button width */
.resume-btn:hover {
  width: 130px;
  border-radius: 40px;
  transition-duration: 0.3s;
}

.resume-btn:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 20px;
}

/* hover effect button's text */
.resume-btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 10px;
}

/* button click effect*/
.resume-btn:active {
  transform: translate(2px, 2px);
}

/* Scroll-down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.4s var(--ease-out);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* landing page code ends here */

/* about section starts from here */
.about-section-container {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: var(--space-3xl);
}

.about-section {
  width: var(--content-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.section-heading-article {
  font-size: 2.6rem;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  -webkit-text-fill-color: unset;
}

.sectionHeadingP {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--border-default),
    transparent
  );
}

.info-dp-section {
  width: 100%;
  display: flex;
  margin-top: 30px;
}

.about-info {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.about-info p {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-secondary);
  letter-spacing: 0.1px;
}

.dp {
  width: 40%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  transition-duration: 0.5s;
}

.dp img {
  width: 240px;
  height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
}

.dp img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.dp::before {
  content: "";
  background-color: transparent;
  height: 340px;
  width: 240px;
  position: absolute;
  z-index: -2;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  transition: all var(--duration-slow) var(--ease-out);
}

.dp::after {
  display: none;
}

/* hover effect on dp */
.dp:hover::before {
  transform: translate(10px, 10px);
  opacity: 0.5;
}

/* Stats row in about section */
.stats-row {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* about section ends
 */
/* skills section starts */
.skills-section-container {
  padding-top: var(--space-3xl);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-section {
  width: var(--content-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skills-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-heading-article {
  font-size: 2.6rem;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.skillsHeadingP {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-default), transparent);
}

.language-speak {
  width: 100%;
  display: flex;
  align-items: center;
  height: 50px;
  justify-content: center;
}

.language-speak article {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.frontend-dev-section {
  width: 100%;
  margin-top: 50px;
}

.frontend-dev-heading {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 600;
  height: 80px;
  letter-spacing: 3px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.tech-stack-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tech-stack-box {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.tech-stack-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  background: var(--surface-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-stack-box img {
  width: 55%;
  transition: transform var(--duration-normal) var(--ease-out);
  opacity: 0.8;
}

.tech-stack-box:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.tech-stack-box:hover .tooltip {
  opacity: 1;
}

.tooltip {
  position: absolute;
  top: -32px;
  opacity: 0;
  background: var(--color-dark-mode);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  transform: translateY(4px);
  pointer-events: none;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-stack-box:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tech-stack-category {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 0 4px;
  font-family: 'JetBrains Mono', monospace;
  list-style: none;
}

/* skills section ends */
/* ######################################################## */
/* projects section starts */
.projects-section-container {
  padding: var(--space-3xl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Project-specific card styling */
.project-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-out);
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  z-index: 2;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34, 211, 238, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(34, 211, 238, 0.05);
  background: var(--surface-2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card .info-div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
  position: relative;
  z-index: 2;
}

.projects-section-div {
  width: var(--content-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projects-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.projects-heading-article {
  font-size: 2.6rem;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.projectsHeadingP {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-default), transparent);
}

.project-boxes-div {
  width: 100%;
  height: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.project-box-wrapper {
  width: 100%;
}

#education .project-boxes-div,
#experience .project-boxes-div {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Experience timeline connector */
#experience .project-boxes-div {
  position: relative;
  padding-left: 32px;
}

#experience .project-boxes-div::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--border-default);
}

#experience .project-box-wrapper {
  position: relative;
}

#experience .project-box-wrapper::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-tertiary);
  border: 2px solid var(--surface-1);
  z-index: 1;
}

/* Pulsing accent dot for current role (first entry) */
#experience .project-box-wrapper:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
  animation: pulse-timeline 2s ease-in-out infinite;
}

@keyframes pulse-timeline {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-muted); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.05); }
}

.project-box {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  width: 100%;
  min-height: 200px;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.project-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height var(--duration-slow) var(--ease-out);
}

.project-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: var(--surface-2);
}

.project-box:hover::before {
  height: 100%;
}

.info-div {
  width: 75%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
}

.faviconforProject {
  width: 30px;
  border-radius: 50%;
}

.faviconforProjectAquaregia {
  width: 20px;
}

.image-div {
  width: 25%;
  height: auto;
  min-height: 200px;
  overflow: hidden;
  padding: 30px 15px 30px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-div img {
  height: 100%;
  border-top-left-radius: 30px;
}

/* Company logo styling for education & experience sections */
#education .image-div .company-logo,
#experience .image-div .company-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 15px;
  border-top-left-radius: 30px;
}

/* Specific styling for work icon in education & experience */
#education .image-div .work-icon,
#experience .image-div .work-icon {
  margin: 0 auto;
  padding-right: 12px;
  display: block;
}


.ProjectHeading {
  color: var(--text-primary);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.project-card .ProjectHeading {
  font-size: 2rem;
}

.ProjectDescription {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.1px;
}

.project-box .ProjectDescription {
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-box .ProjectHeading {
  font-size: 2.4rem;
}

/* Project visit button */
.project-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.github-redirect {
  text-decoration: none;
  width: 36px;
}

.github-redirect img {
  width: 28px;
  height: auto;
  transition: all var(--duration-normal) var(--ease-out);
  filter: brightness(1.2);
  opacity: 0.5;
}

.github-redirect:hover img {
  filter: brightness(2);
  opacity: 1;
  transform: scale(1.05);
}

.cta {
  position: relative;
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  width: 42px;
  height: 42px;
  transition: all var(--duration-normal) var(--ease-out);
}

.cta span {
  position: relative;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--text-secondary);
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all var(--duration-normal) var(--ease-out);
}

.cta:hover:before {
  width: 100%;
  /* background: #b1dae7; */
}

.cta:hover span {
  color: var(--text-primary);
}

.cta:hover svg {
  stroke: var(--text-primary);
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.95);
}

/* Project visit button */

/* Project subheading */
.ProjectSubheading {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-top: -4px;
  opacity: 0.85;
}

/* Project date badge */
.project-date {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Tech tag badges */
.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.tech-tag {
  font-size: 1rem;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

.tech-tag:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Show More / Show Less button */
.show-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0 var(--space-xl);
}

.show-more-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.3px;
}

.show-more-btn:hover {
  background: var(--surface-3);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-more-btn svg {
  transition: transform var(--duration-slow) var(--ease-out);
}

/* Hidden / visible toggle for more projects */
.more-projects-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.more-projects-visible {
  max-height: 8000px;
  opacity: 1;
  transition: max-height 0.8s ease, opacity 0.5s ease 0.1s;
}

/* Project preview thumbnails */
.project-preview {
  width: 100%;
  height: 180px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--grad-from, #0ea5e9), var(--grad-to, #6366f1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.preview-initial {
  font-size: 3.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.preview-overlay svg {
  transition: transform 0.3s var(--ease-out);
}

.project-preview:hover .preview-overlay {
  opacity: 1;
}

.project-preview:hover .preview-overlay svg {
  transform: scale(1.15);
}

.project-preview:hover .preview-gradient {
  transform: scale(1.08);
}

.project-preview:hover .preview-mockup {
  transform: scale(1.03);
  transition: transform 0.5s var(--ease-out);
}

/* Mini mockup previews */
.preview-mockup {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== LegacyLens — RAG Search UI ===== */
.preview-rag {
  background: #0c0c14;
  display: flex;
  height: 100%;
}

.rag-sidebar {
  width: 40px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
}

.rag-logo {
  font-size: 9px;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(34,211,238,0.1);
  border-radius: 4px;
  padding: 3px 5px;
  letter-spacing: 1px;
}

.rag-nav-item {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.rag-nav-item.active { background: #22d3ee; opacity: 0.7; }

.rag-main {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rag-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 8px;
}

.rag-search-icon { font-size: 9px; opacity: 0.5; }

.rag-search-text {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: ragType 2s steps(30) 0.5s forwards;
}

@keyframes ragType { to { width: 170px; } }

.rag-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rag-chunk {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  border-left: 2px solid #22d3ee;
  opacity: 0;
  animation: ragFadeIn 0.3s ease forwards;
}

.rag-chunk:nth-child(1) { animation-delay: 1.5s; }
.rag-chunk:nth-child(2) { animation-delay: 1.8s; border-left-color: #8b5cf6; }
.rag-chunk:nth-child(3) { animation-delay: 2.1s; border-left-color: #22c55e; }

@keyframes ragFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rag-tag {
  font-size: 6px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(34,211,238,0.15);
  color: #22d3ee;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.rag-chunk:nth-child(2) .rag-tag { background: rgba(139,92,246,0.15); color: #a78bfa; }
.rag-chunk:nth-child(3) .rag-tag { background: rgba(34,197,94,0.15); color: #22c55e; }

.rag-match {
  font-size: 7px;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== GhostGuide — Finance Dashboard ===== */
.preview-finance {
  background: #0a0e1a;
  display: flex;
  height: 100%;
}

.fin-sidebar {
  width: 36px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}

.fin-logo {
  font-size: 8px;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(34,211,238,0.1);
  border-radius: 4px;
  padding: 3px 4px;
}

.fin-nav {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}

.fin-nav.active { background: #22d3ee; }

.fin-main {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fin-header {
  display: flex;
  gap: 12px;
}

.fin-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fin-val {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-family: 'JetBrains Mono', monospace;
}

.fin-val.fin-green { color: #22c55e; }

.fin-label {
  font-size: 6px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fin-chart-area {
  flex: 1;
  min-height: 40px;
  position: relative;
}

.fin-line-chart {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: finChartIn 0.8s ease 0.3s forwards;
}

@keyframes finChartIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fin-chat-bubble {
  font-size: 7px;
  color: rgba(255,255,255,0.5);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 8px 8px 8px 2px;
  padding: 4px 8px;
  width: fit-content;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  animation: finBubbleIn 0.4s ease 1s forwards;
}

@keyframes finBubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CollabBoard — Whiteboard App ===== */
.preview-whiteboard {
  background: #12121f;
  display: flex;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 16px 16px;
}

.wb-toolbar {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
}

.wb-tool {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  width: 18px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.wb-tool.active { background: rgba(34,211,238,0.2); color: #22d3ee; }

.wb-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 30px 16px 10px;
}

.wb-sticky {
  position: absolute;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 7px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  animation: wbPop 0.4s var(--ease-out) forwards;
}

.wb-sticky-line {
  height: 2px;
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
  margin-top: 3px;
  width: 80%;
}

.wb-sticky-line.short { width: 50%; }

.wb-s1 { background: #fbbf24; top: 28%; left: 8%; transform: rotate(-2deg); animation-delay: 0.3s; }
.wb-s2 { background: #60a5fa; top: 25%; left: 52%; transform: rotate(1deg); animation-delay: 0.5s; }
.wb-s3 { background: #34d399; top: 60%; left: 35%; transform: rotate(-1deg); animation-delay: 0.7s; }

@keyframes wbPop {
  from { opacity: 0; transform: scale(0.6) rotate(0deg); }
  to { opacity: 1; transform: scale(1); }
}

.wb-arrow {
  position: absolute;
  top: 45%;
  left: 28%;
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  transform: rotate(15deg);
  opacity: 0;
  animation: wbPop 0.3s ease 1s forwards;
}

.wb-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(255,255,255,0.15);
}

.wb-cursor {
  position: absolute;
  width: 8px;
  height: 10px;
  opacity: 0;
  animation: wbCursorIn 0.3s ease 0.8s forwards;
}

.wb-cursor span {
  width: 0;
  height: 0;
  border-left: 4px solid;
  border-right: 4px solid transparent;
  border-bottom: 6px solid transparent;
  display: block;
}

.wb-c1 { top: 40%; left: 25%; animation: wbCursorIn 0.3s ease 0.8s forwards, wbDrift1 3s ease-in-out 1.1s infinite alternate; }
.wb-c1 span { border-left-color: #f472b6; }
.wb-c2 { top: 55%; left: 65%; animation: wbCursorIn 0.3s ease 1s forwards, wbDrift2 4s ease-in-out 1.3s infinite alternate; }
.wb-c2 span { border-left-color: #a78bfa; }

@keyframes wbCursorIn { from { opacity: 0; } to { opacity: 0.8; } }
@keyframes wbDrift1 { from { transform: translate(0,0); } to { transform: translate(15px, -10px); } }
@keyframes wbDrift2 { from { transform: translate(0,0); } to { transform: translate(-10px, 8px); } }

/* ===== EventIQ — Pipeline Monitor ===== */
.preview-pipeline {
  background: #080c18;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.pipe-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipe-badge {
  font-size: 6px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.pipe-badge.pipe-live {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  animation: pipePulse 2s ease-in-out infinite;
}

@keyframes pipePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pipe-title {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.pipe-count {
  font-size: 7px;
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}

.pipe-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}

.pipe-node {
  font-size: 7px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.pipe-n1 { border-color: rgba(34,211,238,0.3); }
.pipe-n2 { border-color: rgba(139,92,246,0.3); }
.pipe-n3 { border-color: rgba(245,158,11,0.3); }
.pipe-n4 { border-color: rgba(34,197,94,0.3); }

.pipe-connector {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pipe-connector span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: pipeFlow 1.5s ease-in-out infinite;
}

.pipe-connector span:nth-child(2) { animation-delay: 0.2s; }
.pipe-connector span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pipeFlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; background: #22d3ee; }
}

.pipe-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pipe-evt {
  font-size: 7px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  opacity: 0;
  animation: ragFadeIn 0.3s ease forwards;
}

.pipe-evt:nth-child(1) { animation-delay: 0.5s; }
.pipe-evt:nth-child(2) { animation-delay: 0.8s; }
.pipe-evt:nth-child(3) { animation-delay: 1.1s; }

.pipe-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pipe-dot.green { background: #22c55e; }
.pipe-dot.blue { background: #3b82f6; }
.pipe-dot.yellow { background: #f59e0b; }

.pipe-ts {
  margin-left: auto;
  color: rgba(255,255,255,0.2);
}

/* ===== LexivoAI — Writer App ===== */
.preview-writer {
  background: #111118;
  display: flex;
  height: 100%;
}

.wr-sidebar {
  width: 36px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}

.wr-logo {
  font-size: 8px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139,92,246,0.1);
  border-radius: 4px;
  padding: 3px 4px;
  font-style: italic;
}

.wr-doc {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
}

.wr-doc.active { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.08); }

.wr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wr-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.wr-ai-btn {
  margin-left: auto;
  font-size: 6px;
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.wr-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wr-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  width: 90%;
}

.wr-line.wr-heading {
  height: 5px;
  width: 50%;
  background: rgba(255,255,255,0.2);
  margin-bottom: 4px;
}

.wr-line.short { width: 60%; }

.wr-highlight {
  display: flex;
  align-items: center;
  background: rgba(139,92,246,0.06);
  border-left: 2px solid #a78bfa;
  padding: 3px 6px;
  border-radius: 0 3px 3px 0;
  margin: 2px 0;
  opacity: 0;
  animation: ragFadeIn 0.4s ease 1.2s forwards;
}

.wr-suggestion {
  font-size: 6px;
  color: #a78bfa;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ===== Legacy mockups for secondary projects ===== */
.preview-terminal {
  background: #0d1117;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-terminal::before {
  content: "";
  display: flex;
  width: 100%;
  height: 14px;
  background:
    radial-gradient(circle 4px at 10px 7px, #ff5f57 99%, transparent),
    radial-gradient(circle 4px at 26px 7px, #ffbd2e 99%, transparent),
    radial-gradient(circle 4px at 42px 7px, #28c840 99%, transparent);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.term-line {
  height: 3px;
  border-radius: 2px;
  opacity: 0;
  animation: termType 0.3s var(--ease-out) forwards;
}

.term-line:nth-child(2)  { width: 70%; background: #7ee787; animation-delay: 0.3s; }
.term-line:nth-child(3)  { width: 55%; background: #79c0ff; animation-delay: 0.5s; }
.term-line:nth-child(4)  { width: 85%; background: #d2a8ff; animation-delay: 0.7s; }
.term-line:nth-child(5)  { width: 40%; background: #ffa657; animation-delay: 0.9s; }
.term-line:nth-child(6)  { width: 65%; background: #79c0ff; animation-delay: 1.1s; }
.term-line:nth-child(7)  { width: 50%; background: #7ee787; animation-delay: 1.3s; }
.term-line:nth-child(8)  { width: 75%; background: #ff7b72; animation-delay: 1.5s; }
.term-line:nth-child(9)  { width: 45%; background: #d2a8ff; animation-delay: 1.7s; }
.term-line:nth-child(10) { width: 60%; background: #ffa657; animation-delay: 1.9s; }
.term-line:nth-child(11) { width: 35%; background: #79c0ff; animation-delay: 2.1s; }

.preview-terminal .term-line:last-child::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  background: #7ee787;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes termType {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 0.6; transform: translateX(0); }
}

.preview-dashboard {
  background: #111827;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-topbar { display: flex; gap: 6px; align-items: center; }
.dash-topbar span { height: 8px; border-radius: 4px; opacity: 0.4; }
.dash-topbar span:nth-child(1) { width: 50px; background: #36cfcc; opacity: 0.8; }
.dash-topbar span:nth-child(2) { width: 30px; background: #6b7280; }
.dash-topbar span:nth-child(3) { width: 30px; background: #6b7280; }
.dash-topbar span:nth-child(4) { width: 30px; background: #6b7280; margin-left: auto; }

.dash-chart { display: flex; align-items: flex-end; gap: 5px; flex: 1; padding-top: 8px; }
.dash-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 10px; background: #36cfcc; animation: barGrow 1.2s var(--ease-out) forwards; transform-origin: bottom; }
.dash-bar:nth-child(1)  { --bar-h: 40%;  animation-delay: 0.1s; }
.dash-bar:nth-child(2)  { --bar-h: 65%;  animation-delay: 0.15s; }
.dash-bar:nth-child(3)  { --bar-h: 45%;  animation-delay: 0.2s; }
.dash-bar:nth-child(4)  { --bar-h: 80%;  animation-delay: 0.25s; }
.dash-bar:nth-child(5)  { --bar-h: 55%;  animation-delay: 0.3s; }
.dash-bar:nth-child(6)  { --bar-h: 70%;  animation-delay: 0.35s; }
.dash-bar:nth-child(7)  { --bar-h: 35%;  animation-delay: 0.4s; }
.dash-bar:nth-child(8)  { --bar-h: 90%;  animation-delay: 0.45s; }
.dash-bar:nth-child(9)  { --bar-h: 50%;  animation-delay: 0.5s; }
.dash-bar:nth-child(10) { --bar-h: 60%;  animation-delay: 0.55s; }

@keyframes barGrow { from { height: 0; opacity: 0.3; } to { height: var(--bar-h); opacity: 0.8; } }

.preview-editor { background: #1e1e2e; display: flex; height: 100%; }
.editor-sidebar { width: 30px; background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 8px; }
.editor-sidebar span { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.editor-sidebar span:first-child { background: #8b5cf6; opacity: 0.7; }
.editor-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.editor-line { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); animation: editorType 0.4s var(--ease-out) forwards; opacity: 0; }
.editor-line:nth-child(1) { width: 60%; background: rgba(139,92,246,0.4); height: 5px; animation-delay: 0.1s; }
.editor-line:nth-child(2) { width: 90%; margin-top: 4px; animation-delay: 0.2s; }
.editor-line:nth-child(3) { width: 75%; animation-delay: 0.35s; }
.editor-line:nth-child(4) { width: 85%; animation-delay: 0.5s; }
.editor-line:nth-child(5) { width: 45%; animation-delay: 0.65s; }
.editor-line:nth-child(6) { width: 0; height: 6px; animation-delay: 0.7s; }
.editor-line:nth-child(7) { width: 70%; animation-delay: 0.85s; }
.editor-line:nth-child(8) { width: 80%; animation-delay: 1.0s; }
.editor-line:nth-child(9) { width: 55%; animation-delay: 1.15s; }

@keyframes editorType { from { opacity: 0; width: 0; } to { opacity: 1; } }

/* Stream mockup — for event/data streaming projects */
.preview-stream {
  background: #0f172a;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.stream-event {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border-left: 2px solid;
  animation: streamSlide 0.4s var(--ease-out) forwards;
  opacity: 0;
  transform: translateX(-12px);
}

.stream-event:nth-child(1) { animation-delay: 0.2s; }
.stream-event:nth-child(2) { animation-delay: 0.5s; }
.stream-event:nth-child(3) { animation-delay: 0.8s; }
.stream-event:nth-child(4) { animation-delay: 1.1s; }
.stream-event:nth-child(5) { animation-delay: 1.4s; }

@keyframes streamSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.stream-event span {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

.stream-event:nth-child(1) { border-color: #22c55e; }
.stream-event:nth-child(1) span:first-child { width: 20px; background: #22c55e; opacity: 0.6; }
.stream-event:nth-child(1) span:last-child { width: 60px; }
.stream-event:nth-child(2) { border-color: #f59e0b; }
.stream-event:nth-child(2) span:first-child { width: 25px; background: #f59e0b; opacity: 0.6; }
.stream-event:nth-child(2) span:last-child { width: 45px; }
.stream-event:nth-child(3) { border-color: #ef4444; }
.stream-event:nth-child(3) span:first-child { width: 18px; background: #ef4444; opacity: 0.6; }
.stream-event:nth-child(3) span:last-child { width: 55px; }
.stream-event:nth-child(4) { border-color: #3b82f6; }
.stream-event:nth-child(4) span:first-child { width: 22px; background: #3b82f6; opacity: 0.6; }
.stream-event:nth-child(4) span:last-child { width: 50px; }
.stream-event:nth-child(5) { border-color: #22c55e; }
.stream-event:nth-child(5) span:first-child { width: 15px; background: #22c55e; opacity: 0.6; }
.stream-event:nth-child(5) span:last-child { width: 65px; }

/* Cloud mockup — for infrastructure/AWS projects */
.preview-cloud {
  background: #0c1222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.cloud-node {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: cloudPop 0.4s var(--ease-out) forwards;
}

.cloud-node:nth-child(1) { animation-delay: 0.2s; }
.cloud-node:nth-child(2) { animation-delay: 0.4s; }
.cloud-node:nth-child(3) { animation-delay: 0.6s; }
.cloud-node:nth-child(4) { animation-delay: 0.8s; }

.cloud-node::after {
  content: "";
  position: absolute;
  right: -14px;
  width: 12px;
  height: 1.5px;
  background: rgba(255,255,255,0.15);
  animation: connectorDraw 0.3s var(--ease-out) forwards;
  animation-delay: inherit;
  transform: scaleX(0);
  transform-origin: left;
}

.cloud-node:last-child::after { display: none; }

.cloud-inner {
  animation: nodePulse 2s ease-in-out infinite;
}

.cloud-node:nth-child(2) .cloud-inner { animation-delay: 0.5s; }
.cloud-node:nth-child(3) .cloud-inner { animation-delay: 1s; }
.cloud-node:nth-child(4) .cloud-inner { animation-delay: 1.5s; }

@keyframes cloudPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 0.7; transform: scale(1); }
}

@keyframes connectorDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.cloud-node:nth-child(1) { border-color: #f59e0b; background: rgba(245,158,11,0.1); }
.cloud-node:nth-child(2) { border-color: #3b82f6; background: rgba(59,130,246,0.1); }
.cloud-node:nth-child(3) { border-color: #10b981; background: rgba(16,185,129,0.1); }
.cloud-node:nth-child(4) { border-color: #8b5cf6; background: rgba(139,92,246,0.1); }

.cloud-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cloud-node:nth-child(1) .cloud-inner { background: #f59e0b; }
.cloud-node:nth-child(2) .cloud-inner { background: #3b82f6; }
.cloud-node:nth-child(3) .cloud-inner { background: #10b981; }
.cloud-node:nth-child(4) .cloud-inner { background: #8b5cf6; }

/* When a real screenshot is used instead of gradient */
.project-preview img.preview-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-preview:hover img.preview-screenshot {
  transform: scale(1.05);
}

/* Live demo link */
.live-demo-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 5px 16px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.4px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.live-demo-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.3s var(--ease-out);
  z-index: -1;
}

.live-demo-link:hover {
  color: #0c0c0f;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.live-demo-link:hover::before {
  transform: translateX(0);
}


/* projects ends */

/* Contact section */
.contact-section {
  padding: var(--space-3xl) 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.contact-section-div {
  width: var(--content-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  transition: border-color var(--duration-normal) var(--ease-out);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-row {
  display: flex;
  gap: var(--space-md);
}

.contact-submit {
  align-self: flex-start;
  padding: 12px 32px;
  background: var(--text-primary);
  color: var(--color-dark-mode);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.3px;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-error {
  font-size: 1.15rem;
  color: #ef4444;
  min-height: 1.4em;
  letter-spacing: 0.2px;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #ef4444;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.contact-submit.loading .submit-text { opacity: 0.6; }
.contact-submit.loading .submit-spinner { display: inline-block; }
.contact-submit.loading { pointer-events: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-feedback {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 8px 0;
  min-height: 1.8em;
}

.form-feedback.success { color: #22c55e; }
.form-feedback.error { color: #ef4444; }

/* Status badge for hero section */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

#backtotopbutton {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  width: 42px;
  height: 42px;
  z-index: 101;
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#backtotopbutton:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* footer starts */
footer {
  width: 100%;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-2xl);
}

.footer-background {
  width: 100%;
  min-height: 40vh;
  background-color: #050505;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.footer-blob {
  width: 100%;
  height: 200px;
  background-color: var(--accent);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.footer-foreground {
  position: absolute;
  top: 0;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.footercontainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.two-words {
  color: var(--text-tertiary);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-words article {
  font-size: 2.4rem;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.social-media-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-media-container a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  box-shadow: none;
}

.getintouch-heading {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.neon {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--accent);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.4;
  text-indent: 0;
  letter-spacing: -0.5px;
}


.logos {
  display: flex;
  width: 100%;
  gap: 30px;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.SocialHandle {
  fill: white;
  width: 60%;
}

#GmailLogo {
  height: 70%;
  fill: white;
}

.social-media-container a:hover {
  border-color: var(--text-secondary);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.social-media-container a::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  border-radius: 50%;
  transform: scale(0);
  background-color: #8000ff;
  background-color: transparent;
  transition-duration: 0.3s;
  z-index: -1;
}

.social-media-container a:hover::before {
  transform: scale(1);
  transition-duration: 0.3s;
}

.footer-avatar-container {
  width: fit-content;
  /* background-color: red; */
  margin-top: 20px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer-avatar-img,
.footer-avatar-container .header-footer-avatar,
.footer-avatar-container .memoji-avatar,
.footer-avatar-container .sticker-avatar,
.footer-avatar-container img.sticker-avatar {
  width: 160px;
  height: 160px;
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  border: 2px solid var(--border-default);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.footer-avatar-container .memoji-avatar {
  display: inline-flex;
}

.footer-avatar-container .memoji-avatar svg {
  width: 100%;
  height: 100%;
}

.footer-avatar-container:hover .footer-avatar-img,
.footer-avatar-container:hover .header-footer-avatar,
.footer-avatar-container:hover .memoji-avatar,
.footer-avatar-container:hover .sticker-avatar {
  transform: scale(1.12) translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-muted), 0 12px 32px rgba(0, 0, 0, 0.5);
}

.footer-bottom {
  background-color: #050505;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  z-index: 3;
}

.footer-bottom article {
  color: var(--text-tertiary);
  font-size: 1.4rem;
  font-family: 'Inter', 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.fa-copyright {
  font-size: 1.5rem;
  color: rgb(176, 176, 176);
}

/* footer enda */
.mobiletogglemenu {
  display: none;
}

.hamburger {
  display: none;
}

.tonechange {
  color: black;
}

/* Custom reveal animations (replaces AOS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 100000;
  transition: none;
  transform-origin: left;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Auto dark/light based on system preference */
@media (prefers-color-scheme: light) {
  body:not(.dark-mode-override) {
    --color-dark-mode: #fafafa;
    --color-black: #fff;
    --color-white: #18181b;
    --color-Active-mode: #0d9488;
    --color-ddd-color: rgb(63, 63, 70);
    --color-navbarBorder-dark: rgba(0,0,0,0.06);
    --static-heading-gradient-blue: #0f7878;
    --static-heading-gradient-pink: #0891b2;
    --color-shadowDark: rgba(0,0,0,0.04);
    --tech-stack-box-first-color: #f4f4f5;
    --tech-stack-box-second-color: rgba(244,244,245,0);
    --tech-stack-box-border-color: rgba(0,0,0,0.06);
    --surface-1: rgba(0,0,0,0.02);
    --surface-2: rgba(0,0,0,0.04);
    --surface-3: rgba(0,0,0,0.06);
    --border-subtle: rgba(0,0,0,0.06);
    --border-default: rgba(0,0,0,0.1);
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --accent: #0891b2;
    --accent-muted: rgba(8, 145, 178, 0.1);
  }
}

/* Light mode depth & polish */
.light-mode .SocialHandle,
.light-mode #GmailLogo {
  fill: #18181b;
}

.light-mode .github-redirect img {
  filter: invert(1) brightness(0.2);
}

.light-mode {
  background-color: #fafafa;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(8, 145, 178, 0.06), transparent 50%),
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

.light-mode .project-card,
.light-mode .project-box {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.light-mode .project-card:hover,
.light-mode .project-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.06);
}

.light-mode .navbar {
  background: rgba(250, 250, 250, 0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.light-mode .tech-stack-box {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.light-mode #preloader {
  background-color: #fafafa;
}

/* responsive code below*/
@media screen and (max-width: 1200px) {
  html {
    font-size: 60%;
  }

  .text-content {
    width: var(--content-width);
    padding-left: max(4vw, 20px);
  }

  .footer-bottom article {
    font-size: 1.4rem;
  }
}

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

  .blob {
    display: none;
  }

  .cursor-inner,
  .cursor-outer {
    display: none;
  }

  .navbar-tabs-ul {
    display: none;
  }

  .stopscrolling {
    overflow: hidden;
  }

  .hamburger {
    /* display: block; */
    position: fixed;
    top: 0px;
    /* right: 0; */
    width: 100vw;
    height: 115px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9998;
    background-color: transparent;
  }

  .hamburgerbase {
    width: 80%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
  }

  #hamburger-button {
    font-size: 3rem;
    font-weight: 800;
    width: 4.5rem;
    height: 3.5rem;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  #burger-bar1 {
    width: 60%;
    height: 3px;
    border-radius: 0px;
    transition-duration: 0.3s;
  }

  #burger-bar2 {
    width: 100%;
    height: 3px;
    border-radius: 0px;
    transition-duration: 0.3s;
  }

  #burger-bar3 {
    width: 60%;
    height: 3px;
    border-radius: 0px;
    transition-duration: 0.3s;
  }

  .burger-bar {
    background-color: var(--color-white);
  }

  .hamburger-animation1 {
    transform: rotate(45deg) scaleX(1.7);
    transition-duration: 0.3s;
    transform-origin: left;
    background-color: var(--color-white);
  }

  .hamburger-animation2 {
    transform: scaleX(0);
    background-color: var(--color-white);
  }

  .hamburger-animation3 {
    transform: rotateZ(-45deg) scaleX(1.7);
    transform-origin: left;
    transition-duration: 0.3s;
    background-color: var(--color-white);
  }

  .mobiletogglemenu {
    background-color: transparent;
    z-index: 9990;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    text-decoration: none;
    list-style: none;
    font-size: 2rem;
    cursor: pointer;
    /* display: none; */
    display: flex;
    transform: translate(1000px);
    transition-duration: 1s;
  }

  .show-toggle-menu {
    transform: translate(0);
    transition-duration: 0.6s;
  }

  .mobile-navbar-tabs-ul {
    background-color: var(--color-dark-mode);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 70px;
    box-shadow: -0px 0px 30px rgba(0, 0, 0, 0.176);
  }

  .mobile-navbar-tabs-ul a {
    text-decoration: none;
    color: var(--color-white);
  }

  .mobile-navbar-tabs-li {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    font-family: 'Inter', 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    height: 30px;
    width: fit-content;
  }

  .info-dp-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 30px;
  }

  .about-info {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .dp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .activeThismobiletab {
    color: var(--color-white);
  }

  .activeThismobiletab:before {
    content: "";
    background-color: var(--color-white);
    position: absolute;
    height: 10px;
    width: 10px;
    left: -20px;
    border-radius: 50%;
  }

  .projects-section-div {
    width: var(--content-width);
  }

  .project-boxes-div {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }

  .project-box {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .info-div {
    width: 100%;
    height: auto;
  }

  .image-div {
    padding: 0;
    width: 100%;
    height: auto;
    padding-left: 40px;
  }
}

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

  .navbar {
    position: relative;
  }

  .text-content {
    padding-left: max(4vw, 20px);
    width: var(--content-width);
  }

  #hello-friend {
    height: 100px;
    font-size: 3.5rem;
    margin-bottom: 30px;
  }

  #name{
    font-size: 4.5rem;
    padding-top: 25px;
  }

  #work {
    font-size: 4.5rem;
  }

  #info-para {
    width: 100%;
  }

  .contact-btn-div {
    height: 140px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }

  .setting-container {
    margin-left: 0px;
  }

  .dp::before {
    display: none;
  }

  .dp::after {
    display: none;
  }

  .logo {
    width: 18%;
  }

  .logo:hover {
    transform: translateY(-3px);
    transition-duration: 0.3s;
  }

  .language-name {
    width: 100%;
  }

  .about-section-container {
    width: 100%;
    height: fit-content;
    display: flex;
    height: calc(170vh - 115px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 60px;
  }

  .neon {
    padding-bottom: 20px;
  }

  .projects-section-div {
    width: var(--content-width);
  }

  .project-boxes-div {
    padding: 40px 0;
  }

  .two-words article {
    padding-bottom: 30px;
  }

  .footer-bottom {
    height: 55px;
    /* Adjust the height for smaller screens */
  }

  .footer-bottom article {
    font-size: 1.3rem;
  }

  .footer-avatar-img,
  .footer-avatar-container .header-footer-avatar {
    height: 200px;
    width: 200px;
    max-width: 220px;
  }

  .project-preview {
    height: 120px;
  }

  .stats-row {
    gap: var(--space-lg);
  }

  /* Hide timeline on mobile */
  #experience .project-boxes-div {
    padding-left: 0;
  }
  #experience .project-boxes-div::before { display: none; }
  #experience .project-box-wrapper::before { display: none; }

  .scroll-indicator { display: none; }
}

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

  .navbar {
    height: 70px;
  }

  #hamburger {
    margin-right: 20px;
    height: 115px;
    align-items: flex-end;
  }

  .hamburgerbase {
    height: 50px;
  }

  .two-words article {
    font-size: 2.5rem;
  }

  .hey {
    left: 70px;
  }

  .logo:hover {
    transform: translateY(-3px);
    transition-duration: 0.3s;
  }

  #hello-friend {
    font-size: 2.5rem;
    margin-bottom: 25px;
  }

  .landing-page-container {
    height: 85vh;
  }

  .text-content {
    justify-content: flex-start;
  }

  .project-box {
    min-height: 350px;
    height: auto;
    /* Maintain glassmorphism on smaller screens */
    backdrop-filter: blur(8px);
  }

  .project-boxes-div {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card .info-div {
    padding: 28px 24px;
  }

  .info-div {
    height: auto;
    width: 75%;
    padding: 25px 30px;
  }

  .image-div {
    height: auto;
    width: 25%;
    min-height: 150px;
    padding: 25px 10px 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-div img {
    border-top-left-radius: 10px;
  }

  /* Responsive company logo styling */
  #education .image-div .company-logo,
  #experience .image-div .company-logo {
    width: 80px;
    height: 80px;
    border-top-left-radius: 10px;
  }

  /* Responsive work icon positioning */
  #education .image-div .work-icon,
  #experience .image-div .work-icon {
    padding-right: 8px;
  }

  .contact-form-row {
    flex-direction: column;
  }

  /* Responsive media toggle button */
  .media-toggle-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
    top: 8px !important;
    right: 8px !important;
  }

  .tech-stack-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .tech-stack-box {
    width: 100%;
    height: calc(76vw / 2);
  }

  .footer-avatar-img,
  .footer-avatar-container .header-footer-avatar {
    height: 160px;
    width: 160px;
    max-width: 180px;
  }
}

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

  .skills-section,
  .about-section,
  .projects-section-div {
    width: var(--content-width);
  }

  .info-div {
    padding: 20px 25px;
  }

  /* Mobile glassmorphism optimization */
  .project-box {
    backdrop-filter: blur(5px);
    border-radius: 15px;
    min-height: 200px;
  }

  .image-div {
    min-height: 120px;
    padding: 20px 8px;
  }

  .project-card .info-div {
    padding: 22px 18px;
  }

  .project-card .ProjectHeading {
    font-size: 1.8rem;
  }

  .ProjectSubheading {
    font-size: 1.15rem;
  }

  .show-more-btn {
    padding: 12px 24px;
    font-size: 1.4rem;
  }

  /* Mobile company logo styling */
  #education .image-div .company-logo,
  #experience .image-div .company-logo {
    width: 60px;
    height: 60px;
  }

  /* Mobile work icon positioning */
  #education .image-div .work-icon,
  #experience .image-div .work-icon {
    padding-right: 5px;
  }

  .two-words article {
    font-size: 2.2rem;
  }

  .footer-bottom {
    height: 50px;
    /* Further adjust the height for extra small screens */
  }

  .footer-bottom article {
    font-size: 1.5em;
    /* Smaller font size for extra small screens */
    letter-spacing: 1px;
    /* Adjust letter spacing for better readability */
  }
}

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

  .dp img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    object-position: center;
  }

  .two-words {
    height: 50px;
  }

  .two-words article {
    font-size: 2rem;
  }

  .footer-bottom article {
    font-size: 1.3rem;
  }

  .logos {
    gap: 20px;
  }

  /* Smallest responsive media toggle button */
  .media-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    top: 5px !important;
    right: 5px !important;
  }

  /* https://github.com/pranjal-e */
}

/* responsive code above */
