@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #00acee;
  --color-primary-light: #4dc4f3;
  --color-primary-dark: #002952;
  --color-secondary-dark: #050505;
  --color-secondary: #272d41;

  --ink: #060b17;
  --ink-soft: #0c1830;
  --lime: #c6ff5e;

  --black: #333;
  --white: #efefef;
  --paper: #fbf8fb;

  --space-xxl: 96px;
  --space-xl: 72px;
  --space-lg: 64px;
  --space-l: 52px;
  --space-md: 32px;
  --space-sm: 24px;
  --space-xm: 10px;

  --border-sm: 10px;
  --border-md: 15px;
  --border-lg: 10px;
  --border-xl: 10px;

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Inter", "Montserrat", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--color-primary-dark);
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

p {
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}

a:link,
a:visited {
  color: var(--color-secondary-dark);
}

a:active,
a:hover {
  color: var(--color-secondary);
}

/* ---------- Buttons ---------- */
a.btn-filled,
a.btn-stroke {
  position: relative;
  padding: 14px 26px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

a.btn-filled:link,
a.btn-filled:visited {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px -8px rgba(0, 172, 238, 0.6);
}

a.btn-filled:hover,
a.btn-filled:active {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(0, 41, 82, 0.5);
}

a.btn-stroke:link,
a.btn-stroke:visited {
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
}

a.btn-stroke:hover,
a.btn-stroke:active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(0, 172, 238, 0.45);
}

ul {
  list-style: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--lime));
  z-index: 999;
  transition: width 0.4s var(--ease);
}

/* ---------- Header ---------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 var(--space-xxl);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 251, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(0, 41, 82, 0.08);
}

.highlight {
  color: var(--color-primary);
}

.highlight2 {
  font-weight: 700;
  position: relative;
}

.logo img {
  width: 150px;
  max-height: calc(var(--header-h) - 24px);
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.logo:hover img {
  transform: scale(1.04) rotate(-1deg);
}

header nav.menu {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

header nav.menu a:not(.btn-filled) {
  position: relative;
  padding-bottom: 4px;
}

header nav.menu a:not(.btn-filled)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease);
}

header nav.menu a:not(.btn-filled):hover::after,
header nav.menu a.active::after {
  width: 100%;
}

header nav.menu a.active {
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- Socials rail ---------- */
.socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: var(--color-primary);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  padding: var(--space-sm) var(--space-xm);
  z-index: 90;
  box-shadow: -6px 0 24px -8px rgba(0, 41, 82, 0.35);
}

.socials a.social-icon {
  display: block;
  transition: transform 0.3s var(--ease);
}

.socials a.social-icon:hover {
  transform: translateX(-4px) scale(1.12);
}

.socials a img {
  width: 22px;
  display: block;
}

/* ---------------- Hamburger ---------------- */

.hamburger{

    display:none;
    width:45px;
    height:45px;

    border:none;
    background:transparent;

    cursor:pointer;

    position:relative;
    z-index:999;
}

.hamburger span{

    display:block;

    width:28px;
    height:3px;

    margin:6px auto;

    background:var(--color-primary-dark);

    border-radius:10px;

    transition:.35s;
}

.hamburger.active span:nth-child(1){

    transform:translateY(9px) rotate(45deg);

}

.hamburger.active span:nth-child(2){

    opacity:0;

}

.hamburger.active span:nth-child(3){

    transform:translateY(-9px) rotate(-45deg);

}

/* ---------- Main / scroll-snap pages ---------- */
.main-view {
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  display: block;
}

.page {
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  padding: var(--space-sm) var(--space-xxl);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(6px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.description-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: clamp(6px, 1.4vh, 14px);
  max-height: 100%;
  overflow: hidden;
}

.description-container .primary-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vh, var(--space-l));
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.description-container h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.85rem, 2vh, 1.1rem);
  color: var(--color-secondary);
  opacity: 0.85;
}

.description-container h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vh, 1.5rem);
}

.description-container p {
  font-size: clamp(0.85rem, 1.8vh, 1rem);
}

.cta-container {
  display: flex;
  gap: 14px;
}

.cta-container a {
  margin-top: clamp(8px, 2vh, 20px);
}

section.owner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---------- Hero / #home terminal card ---------- */
#home {
  position: relative;
}

#home::before {
  content: "";
  position: absolute;
  inset: -4vh -6vw;
  z-index: -1;
  border-radius: 32px;
  background:
    radial-gradient(60% 60% at 22% 30%, rgba(0, 172, 238, 0.16), transparent 70%),
    radial-gradient(45% 55% at 85% 75%, rgba(198, 255, 94, 0.14), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}

#home .description-container {
  color: var(--paper);
  padding: var(--space-md) 0;
}

#home .description-container h3 {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
}

#home .description-container h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px 2px rgba(198, 255, 94, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

#home .primary-heading {
  color: #fff;
}

#home .primary-heading::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-left: 6px;
  background: var(--lime);
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}

#home h2 {
  color: rgba(251, 248, 251, 0.9);
  font-weight: 500;
}

#home p {
  color: rgba(251, 248, 251, 0.68);
  max-width: 46ch;
}

#home a.btn-stroke:link,
#home a.btn-stroke:visited {
  border-color: rgba(251, 248, 251, 0.5);
  color: #fff;
}

@keyframes blink {

  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse-dot {

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

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* character + eyes */
.character {
  position: absolute;
  z-index: 9;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

  50% {
    transform: translateY(-14px);
  }
}

.character img {
  width: 198px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

.eyes {
  position: absolute;
  height: 12px;
  width: 35px;
  display: flex;
  justify-content: space-between;
  top: 20%;
}

.eye {
  border-radius: 8px;
  width: 9px;
  height: 12px;
  background-color: white;
  overflow: hidden;
  box-shadow: inset 0 1px 1px 0px black;
}

.pupil {
  width: 9px;
  height: 9px;
  background: black;
  border-radius: 50%;
}

.circular-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px dashed rgba(198, 255, 94, 0.35);
  animation: spin-slow 40s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.circular-shape::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  z-index: 6;
  background-color: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 0px 30px rgba(0, 172, 238, 0.12), inset 0 0 40px rgba(0, 172, 238, 0.25);
}

.technology {
  position: absolute;
  background-color: #fff;
  color: var(--color-primary-dark);
  padding: 7px 12px;
  border-radius: var(--border-md);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  animation: counter-spin-slow 40s linear infinite reverse;
}

@keyframes counter-spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.technology img {
  width: 18px;
  align-items: center;
}

.technology:hover {
  background-color: var(--lime);
  box-shadow: 0 8px 24px -6px rgba(198, 255, 94, 0.6);
  transform: scale(1.08);
  font-weight: 700;
}

.technology.t1 {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.technology.t2 {
  top: 50px;
  left: 0px;
  rotate: -50deg;
}

.technology.t3 {
  top: 50%;
  left: -30px;
  rotate: -90deg;
  transform: translateY(-50%);
}

.technology.t4 {
  bottom: 30px;
  left: 20px;
  rotate: 40deg;
}

.technology.t5 {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.technology.t6 {
  top: 50px;
  right: 0px;
  rotate: 45deg;
}

.technology.t7 {
  top: 50%;
  right: -45px;
  rotate: 92deg;
  transform: translateY(-50%);
}

.technology.t8 {
  bottom: 30px;
  right: 20px;
  rotate: -40deg;
}

#about .owner-container img,
#skills .owner-container img,
#projects .owner-container img {
  width: 70%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 24px;
  transition: transform 0.5s var(--ease);
}

#about .owner-container:hover img,
#skills .owner-container:hover img {
  transform: translateY(-6px);
}

/* ---------- Skills list ---------- */
#skills ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.85rem, 1.9vh, 1rem);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

#skills.active ul li {
  opacity: 1;
  transform: translateX(0);
}

#skills.active ul li:nth-child(1) {
  transition-delay: 0.05s;
}

#skills.active ul li:nth-child(2) {
  transition-delay: 0.12s;
}

#skills.active ul li:nth-child(3) {
  transition-delay: 0.19s;
}

#skills.active ul li:nth-child(4) {
  transition-delay: 0.26s;
}

#skills.active ul li:nth-child(5) {
  transition-delay: 0.33s;
}

#skills.active ul li:nth-child(6) {
  transition-delay: 0.4s;
}

#skills ul li:not(:first-child) {
  margin-top: 5px;
}

#skills ul li img {
  width: 22px;
  filter: invert(56%) sepia(84%) saturate(1878%) hue-rotate(163deg) brightness(97%) contrast(101%);
}

/* ---------- Projects ---------- */
.page#projects {
  display: flex;
  justify-content: center;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.projects-list .project {
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 6px rgba(0, 41, 82, 0.04), 0 20px 40px -18px rgba(0, 41, 82, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(90% / 3);
  min-width: 240px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.projects-list .project:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px -20px rgba(0, 41, 82, 0.3);
}

.project-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--color-primary-dark) 60%, var(--color-primary) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

.project h3,
.project-short-des,
.project-tag {
  padding-left: 20px;
  padding-right: 20px;
}

.project-tags {
  display: flex;
  gap: 10px;

}

.project h3 {
  font-family: var(--font-display);
  margin-top: 6px;
}

.project-short-des {
  font-size: 0.92rem;
  color: var(--color-secondary);
  padding-bottom: 20px;
}

.project-tag {
  display: inline-block;
  width: fit-content;
  margin-left: 20px;
  padding: 3px 10px !important;
  border-radius: 999px;
  background: rgba(0, 172, 238, 0.12);
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */
.page#contact {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
}

.contact-card h3 {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 1rem;
}

.contact-card h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vh, var(--space-l));
}

.contact-card p {
  color: var(--color-secondary);
  max-width: 46ch;
}

/* ---------- Footer (final scroll-snap page) ---------- */
.page.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-template-columns: none;
  background: var(--ink);
  color: rgba(251, 248, 251, 0.7);
  margin: 0 calc(-1 * var(--space-xxl));
  padding: var(--space-lg) var(--space-xxl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 238, 0.18), transparent 70%);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-brand h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.footer-brand p {
  max-width: 40ch;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(251, 248, 251, 0.7);
  margin-bottom: 10px;
  font-size: 0.92rem;
  width: fit-content;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a,
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 251, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.socials a img {
  width: 16px;
}

.footer-socials a img {
  width: 16px;
  filter: invert(1);
}

.footer-socials a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(251, 248, 251, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.back-to-top {
  color: rgba(251, 248, 251, 0.7) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-to-top:hover {
  color: var(--lime) !important;
}

/* ---------- Reduced motion ---------- */
@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;
  }
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .circular-shape {
    width: 320px;
    height: 320px;
  }

  .circular-shape::after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 900px) {
    .header {
    padding: var(--space-xm) var(--space-md);
  }

  .logo img {
    width: 130px;
  }

  header nav.menu {
    gap: 16px;
    font-size: 0.78rem;
  }

  .main-view {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .page {
    grid-template-columns: 1fr;
    height: auto;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    opacity: 1;
    transform: none;
    filter: none;
  }

  .page .owner-container {
    order: -1;
  }

  .circular-shape {
    width: 260px;
    height: 260px;
  }

  .circular-shape::after {
    width: 160px;
    height: 160px;
  }

  .technology {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .description-container .primary-heading,
  .contact-card h1 {
    font-size: var(--space-md);
  }

  .projects-list .project {
    width: 100%;
  }

  .socials {
    display: none;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #home {
    text-align: center;
  }

  #home .description-container {
    align-items: center;
  }

  .owner-container {
    min-height: 340px;
  }

  .character {
    width: 170px;
  }

  .character img {
    width: 170px;
  }

  .circular-shape {
    width: 240px;
    height: 240px;
  }

  .circular-shape::after {
    width: 150px;
    height: 150px;
  }

  .technology {
    font-size: .65rem;
    padding: 4px 7px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-bottom span {
    order: 2;
  }

  .back-to-top {
    order: 1;
  }

  .hamburger {
    display: block;
  }

  header nav.menu {
    position: fixed;
    top: var(--header-h);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-h));

    background: var(--paper);

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    gap: 24px;
    padding-top: 40px;

    transition: left 0.3s ease;
    z-index: 998;
  }

  header nav.menu.active {
    left: 0;
  }

  header nav.menu a {
    font-size: 1rem;
  }

  header nav.menu .btn-filled {
    width: 220px;
    text-align: center;
  }
}

