@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --cyan: #08c6ff;
  --cyan-strong: #00aee8;
  --cyan-soft: rgba(8, 198, 255, .15);
  --cyan-faint: rgba(8, 198, 255, .055);
  --green: #c9f33c;
  --red: #ff5062;
  --amber: #ffc857;
  --bg: #020608;
  --bg2: #061015;
  --bg3: #07151b;
  --panel: rgba(5, 14, 18, .91);
  --panel-strong: rgba(7, 19, 25, .97);
  --panel2: rgba(255, 255, 255, .035);
  --border: rgba(255, 255, 255, .09);
  --border2: rgba(8, 198, 255, .28);
  --text: #fff;
  --muted: rgba(255, 255, 255, .54);
  --muted2: rgba(255, 255, 255, .34);
  --red2: #ff5062;
  --red3: #4ee0ff;
  --red-soft: rgba(8, 198, 255, .12);
  --shadow: 0 30px 90px rgba(0, 0, 0, .55);
  --radius: 7px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-sans: "Rajdhani", sans-serif;
  --font-display: "Rajdhani", sans-serif;
}

* {
  font-family: "Rajdhani", sans-serif !important;
}

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(8, 198, 255, .16), transparent 26%),
    radial-gradient(circle at 88% 52%, rgba(8, 198, 255, .08), transparent 30%),
    linear-gradient(135deg, #061015 0%, #020608 56%, #041015 100%);
}

body::before {
  opacity: .55;
  background:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: gridMove 30s linear infinite;
  mask-image: none;
}

body::after {
  background:
    radial-gradient(620px circle at var(--mouse-x, 50%) var(--mouse-y, 35%), rgba(8, 198, 255, .10), transparent 48%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.45));
}

.noise {
  opacity: .045;
}

.ambient .orb {
  width: 430px;
  height: 430px;
  border: 1px solid rgba(8, 198, 255, .08);
  background: transparent !important;
  box-shadow: inset 0 0 85px rgba(8, 198, 255, .028);
  filter: none;
  opacity: .75;
}

.ambient .orb::before,
.ambient .orb::after {
  content: "";
  position: absolute;
  inset: 56px;
  border: 1px dashed rgba(8, 198, 255, .07);
  border-radius: 50%;
}

.ambient .orb::after {
  inset: 122px;
  border-style: solid;
}

.orb.one { left: -225px; top: 17%; }
.orb.two { right: -245px; top: 46%; }
.orb.three { left: 42%; bottom: -330px; opacity: .42; }

#particleCanvas {
  opacity: .24;
}

.scroll-progress {
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(8, 198, 255, .9);
}

.container {
  width: min(1420px, calc(100% - 56px));
}

header {
  background: rgba(3, 11, 15, .80);
  border-bottom: 1px solid rgba(8, 198, 255, .16);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(20px) saturate(120%);
}

header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 155px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(8, 198, 255, .75);
}

header.scrolled {
  background: rgba(2, 8, 11, .95);
  box-shadow: 0 16px 46px rgba(0,0,0,.44);
}

.navbar {
  height: 78px;
}

.logo {
  gap: 12px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.7px;
  text-transform: uppercase;
  font-style: italic;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 1px solid rgba(8, 198, 255, .34);
  background:
    linear-gradient(135deg, transparent 47%, var(--cyan) 48% 52%, transparent 53%),
    rgba(8, 198, 255, .07);
  box-shadow: inset 0 0 16px rgba(8, 198, 255, .12), 0 0 20px rgba(8, 198, 255, .15);
  transform: rotate(45deg);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--cyan);
}

.logo-text,
.logo-text > span:first-child {
  color: #fff !important;
  text-shadow: none !important;
}

.logo .logo-accent,
.logo span.logo-accent {
  color: var(--cyan) !important;
  text-shadow: 0 0 20px rgba(8, 198, 255, .58) !important;
}

nav {
  gap: 8px;
}

nav a {
  min-height: 39px;
  padding: 10px 13px;
  color: rgba(255,255,255,.48);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

nav a::after {
  left: 12px;
  right: 12px;
  bottom: 5px;
  width: auto;
  height: 1px;
  opacity: 0;
  transform: scaleX(.2);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(8, 198, 255, .8);
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(8, 198, 255, .07);
  border-color: rgba(8, 198, 255, .13);
}

nav a:hover::after,
nav a.active::after {
  width: auto;
  opacity: 1;
  transform: scaleX(1);
}

.lang-btn,
.menu-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 0 !important;
  color: var(--cyan) !important;
  background: rgba(8, 198, 255, .07) !important;
  border: 1px solid rgba(8, 198, 255, .19) !important;
  box-shadow: inset 0 0 16px rgba(8, 198, 255, .04);
}

.lang-btn:hover,
.menu-btn:hover {
  background: rgba(8, 198, 255, .14) !important;
  transform: translateY(-2px);
}

.mobile-menu {
  background: rgba(2, 9, 12, .98);
  border-top: 1px solid rgba(8, 198, 255, .14);
  border-bottom: 1px solid rgba(8, 198, 255, .18);
}

.mobile-menu a {
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.055);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.hero {
  min-height: calc(100vh - 78px);
  padding: 90px 0 72px;
}

.hero::before {
  opacity: .52;
  background:
    linear-gradient(100deg, transparent 0 47%, rgba(8, 198, 255, .045) 50%, transparent 53% 100%);
  background-size: 260% 100%;
  animation: backgroundScan 11s linear infinite;
}

@keyframes backgroundScan {
  to { background-position: -260% 0; }
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow {
  width: fit-content;
  min-height: 32px;
  padding: 0 11px;
  color: var(--cyan) !important;
  background: rgba(8, 198, 255, .06);
  border: 1px solid rgba(8, 198, 255, .16);
  border-left: 2px solid var(--cyan);
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1.35px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(8, 198, 255, .035);
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  background: var(--green) !important;
  box-shadow: 0 0 14px rgba(201, 243, 60, .75) !important;
}

.hero h1 {
  max-width: 790px;
  margin-top: 22px;
  font-size: clamp(62px, 7.2vw, 112px);
  line-height: .82;
  letter-spacing: -4px;
  text-transform: uppercase;
  font-style: italic;
}

.hero h1 .glitch,
.glitch {
  color: #fff !important;
  text-shadow: none !important;
}

.hero h1 .glitch::before,
.hero h1 .glitch::after {
  color: var(--cyan) !important;
  text-shadow: 0 0 18px rgba(8, 198, 255, .6) !important;
}

.hero p {
  max-width: 700px;
  margin-top: 26px;
  color: rgba(255,255,255,.53);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-actions {
  margin-top: 31px;
  gap: 11px;
}

.btn,
.contact-action {
  min-height: 46px;
  border-radius: 0 !important;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .45px;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn::before,
.contact-action::before {
  display: none !important;
}

.btn.primary,
.contact-action {
  color: #03202a;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 10px 28px rgba(8, 198, 255, .12);
}

.btn.secondary {
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.10);
}

.btn:hover,
.contact-action:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 13px 30px rgba(8, 198, 255, .17);
}

.stats-row {
  gap: 10px;
  margin-top: 36px;
}

.stat {
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.047), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.065);
  border-left: 2px solid rgba(8, 198, 255, .55);
  box-shadow: inset 0 0 24px rgba(8, 198, 255, .025);
}

.stat::before {
  background: linear-gradient(90deg, rgba(8, 198, 255, .11), transparent 55%);
}

.stat b {
  color: #fff;
  font-size: 25px;
}

.stat small {
  color: rgba(255,255,255,.35);
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.hero-card {
  padding: 1px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(8, 198, 255, .24), transparent 16%),
    rgba(2, 9, 12, .96);
  box-shadow: 0 0 80px rgba(0,0,0,.68), inset 0 0 40px rgba(8,198,255,.035);
}

.hero-card::before {
  background: linear-gradient(110deg, rgba(8, 198, 255, .18), transparent 17%);
}

.hero-card::after {
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.15), transparent 48%);
}

.terminal {
  border-radius: 5px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(5,17,22,.98), rgba(2,7,9,.98)),
    radial-gradient(circle at 15% 15%, rgba(8, 198, 255, .12), transparent 38%);
}

.terminal-top {
  min-height: 53px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.dots span:nth-child(1) { background: var(--red) !important; }
.dots span:nth-child(2) { background: var(--amber) !important; }
.dots span:nth-child(3) { background: var(--green) !important; }

.terminal-title {
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.terminal-body {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
}

.code-line {
  border-left-color: rgba(8, 198, 255, .35) !important;
  background: rgba(8, 198, 255, .035) !important;
}

.code-line i {
  color: rgba(255,255,255,.42) !important;
}

.code-line span {
  color: var(--cyan) !important;
}

.dashboard-mini {
  gap: 9px;
}

.mini-card {
  border-radius: 0 !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  box-shadow: inset 0 0 18px rgba(8,198,255,.02);
}

.mini-card:hover {
  border-color: rgba(8, 198, 255, .26) !important;
  background: rgba(8, 198, 255, .055) !important;
}

section {
  padding: 98px 0;
}

section:nth-of-type(even) {
  background: linear-gradient(90deg, rgba(8,198,255,.018), transparent 35%, rgba(8,198,255,.012));
  border-top: 1px solid rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.025);
}

.section-head {
  margin-bottom: 30px;
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}

.section-head small {
  color: var(--cyan) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 3px;
  font-size: clamp(35px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  font-style: italic;
}

.section-head p {
  color: rgba(255,255,255,.43);
  font-size: 15px;
}

.panel {
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.015)),
    rgba(3, 11, 14, .82);
  border: 1px solid rgba(255,255,255,.075);
  border-left: 1px solid rgba(8, 198, 255, .6);
  box-shadow: inset 0 0 34px rgba(8,198,255,.018), 0 18px 50px rgba(0,0,0,.18);
}

.panel::before {
  background: linear-gradient(110deg, rgba(8, 198, 255, .13), transparent 18%);
  opacity: .42;
}

.panel::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(8, 198, 255, .35);
  border-right: 1px solid rgba(8, 198, 255, .35);
  pointer-events: none;
}

.panel:hover {
  border-color: rgba(8, 198, 255, .26);
  border-left-color: var(--cyan);
  box-shadow: 0 20px 55px rgba(0,0,0,.32), inset 0 0 35px rgba(8,198,255,.035);
}

.text-window {
  color: rgba(255,255,255,.58);
  font-size: 16px;
  line-height: 1.65;
}

.info-item {
  border-radius: 0 !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
}

.info-item:hover {
  background: rgba(8, 198, 255, .05) !important;
  border-color: rgba(8, 198, 255, .18) !important;
}

.info-item span,
.timeline-year,
.skill-icon,
.contact-card-icon {
  color: var(--cyan) !important;
  background: rgba(8,198,255,.08) !important;
  border-color: rgba(8,198,255,.18) !important;
  box-shadow: inset 0 0 16px rgba(8,198,255,.04);
}

.timeline::before {
  background: rgba(8,198,255,.25) !important;
  box-shadow: 0 0 14px rgba(8,198,255,.2);
}

.timeline-item::before {
  background: var(--cyan) !important;
  box-shadow: 0 0 14px rgba(8,198,255,.72) !important;
}

.skill-card h3,
.portfolio-card h3,
.contact-card h3 {
  text-transform: uppercase;
  letter-spacing: .25px;
}

.badge {
  border-radius: 0 !important;
  color: rgba(255,255,255,.64) !important;
  background: rgba(8,198,255,.045) !important;
  border: 1px solid rgba(8,198,255,.12) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge:hover {
  color: var(--cyan) !important;
  background: rgba(8,198,255,.10) !important;
  border-color: rgba(8,198,255,.25) !important;
}

.portfolio-grid {
  gap: 15px;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-image {
  border-radius: 3px !important;
  background: #03090c;
  border: 1px solid rgba(255,255,255,.06);
}

.portfolio-image::before {
  background: linear-gradient(180deg, transparent 45%, rgba(2,8,11,.82)) !important;
}

.portfolio-image::after {
  border-color: rgba(8,198,255,.55) !important;
  box-shadow: inset 0 0 34px rgba(8,198,255,.04);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04);
}

.portfolio-content p,
.skill-card p,
.contact-card p {
  color: rgba(255,255,255,.46) !important;
}

.contact-card {
  text-align: left !important;
}

.contact-card > div:first-child {
  justify-content: flex-start !important;
}

.contact-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

footer {
  background: rgba(2,8,11,.93);
  border-top: 1px solid rgba(8,198,255,.13);
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .7px;
  font-size: 11px;
}

.top-btn {
  border-radius: 0 !important;
  color: #03202a !important;
  background: var(--cyan) !important;
  border: 1px solid var(--cyan) !important;
  box-shadow: 0 0 24px rgba(8,198,255,.2) !important;
}

.toast {
  border-radius: 0 !important;
  background: rgba(3,14,18,.97) !important;
  border: 1px solid rgba(8,198,255,.25) !important;
  border-left: 2px solid var(--cyan) !important;
  color: #fff !important;
}

.image-modal {
  background: rgba(0,0,0,.80) !important;
  backdrop-filter: blur(10px);
}

.modal-frame {
  border-radius: 5px !important;
  background: linear-gradient(180deg, rgba(7,20,25,.99), rgba(2,7,9,.99)) !important;
  border: 1px solid rgba(8,198,255,.26) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.82), inset 0 0 35px rgba(8,198,255,.035) !important;
}

.modal-top {
  border-bottom-color: rgba(255,255,255,.07) !important;
}

.modal-close {
  border-radius: 0 !important;
  color: var(--red) !important;
  background: rgba(255,80,98,.08) !important;
  border: 1px solid rgba(255,80,98,.17) !important;
}

::selection {
  color: #03202a;
  background: var(--cyan);
}

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

::-webkit-scrollbar-track {
  background: #020608;
}

::-webkit-scrollbar-thumb {
  background: rgba(8,198,255,.48);
  border: 2px solid #020608;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(760px, 100%);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1420px);
  }

  .navbar {
    height: 68px;
  }

  .logo {
    font-size: 23px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: auto;
    padding: 74px 0 58px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 78px);
    letter-spacing: -2.5px;
  }

  section {
    padding: 72px 0;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 70px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1420px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section-head h2 {
    font-size: 34px;
  }
}

/* Final color-lock overrides for the original gradient text and tech chips. */
.hero h1 {
  font-size: clamp(54px, 5.35vw, 80px);
  letter-spacing: -3px;
}

.hero h1 .glitch {
  color: #fff !important;
  background: linear-gradient(110deg, #fff 0%, #d7f7ff 44%, var(--cyan) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 32px rgba(8,198,255,.12) !important;
}

.logo .logo-accent {
  background: linear-gradient(110deg, #fff 0%, var(--cyan) 58%, #71dcff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.tech-row span,
.mini-card .tech-row span {
  color: rgba(255,255,255,.76) !important;
  background: rgba(8,198,255,.075) !important;
  border: 1px solid rgba(8,198,255,.16) !important;
  box-shadow: none !important;
}

.tech-row::after,
.mini-card .tech-row::after {
  background: linear-gradient(90deg, var(--cyan), transparent) !important;
}

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(56px, 10vw, 88px); }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 45px; letter-spacing: -2px; }
}


/* --- 2026-08-05 polish fixes: remove visible grids + avoid clipped title/logo --- */
body::before {
  display: none !important;
}

.hero::before {
  opacity: .24 !important;
}

section:nth-of-type(even) {
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr) !important;
  gap: clamp(28px, 4vw, 64px) !important;
  align-items: center;
}

.hero h1 {
  max-width: 100% !important;
  font-size: clamp(54px, 6vw, 96px) !important;
  line-height: .92 !important;
  letter-spacing: -2.2px !important;
  overflow: visible !important;
  text-wrap: balance;
}

.hero h1 .glitch,
.hero h1 .glitch::before,
.hero h1 .glitch::after {
  white-space: nowrap;
}

.logo {
  flex-shrink: 0;
}

.logo .logo-text {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  overflow: visible !important;
  line-height: 1 !important;
}

.logo .logo-accent {
  display: inline-block;
  padding-right: 2px;
}

.terminal-body {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)) !important;
}

.code-line {
  background: rgba(8, 198, 255, .018) !important;
}

@media (min-width: 1400px) {
  .container {
    width: min(1480px, calc(100% - 40px)) !important;
  }

  .hero h1 {
    font-size: clamp(58px, 5.7vw, 98px) !important;
  }
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .88fr) !important;
    gap: 28px !important;
  }

  .hero h1 {
    font-size: clamp(50px, 6.3vw, 82px) !important;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1,
  .hero h1 .glitch,
  .hero h1 .glitch::before,
  .hero h1 .glitch::after {
    white-space: normal;
  }
}
