:root {
  --bg: #020617;
  --accent: #0f9cf5;
  --accent-alt: #a855f7;
  --accent-soft: rgba(15, 148, 255, 0.2);
  --text: #e274d0;
  --muted: #9ca3af;
  --border-light: rgba(255, 255, 255, 0.28);
  --border-dark: rgba(15, 23, 42, 0.7);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
  --blur-strong: 26px;
  --radius-lg: 18px;
  --radius-xl: 26px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


html,
body {
  margin: 0;
  padding: 0;
  font-family: "Fredoka", serif;
  background:
    radial-gradient(circle at top left, #1f2937 0, #020617 45%, #020617 100%),
    linear-gradient(135deg, #0f172a, #020617);
  color: var(--text);
  scroll-behavior: smooth;
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: content-box;
  background-attachment: fixed;
}


body {
  min-height: 100vh;
}


body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.25), transparent 55%);
  opacity: 0.9;
  z-index: -2;
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2040%2040%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%273%27%20stitchTiles%3D%27noStitch%27/%3E%3C/filter%3E%3Crect%20width%3D%2740%27%20height%3D%2740%27%20filter%3D%27url(%23n)%27%20opacity%3D%270.08%27/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: -1;
}

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 14px 56px;
}


.nav {
  font-family: "Cinzel Decorative", serif;
  position: sticky;
  top: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 30px;
  background: transparent;
  border: 2px solid var(--border-light);
  box-shadow:
    0 0 0 0.5px var(--border-dark),
    0 18px 45px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
}

.nav__logo {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1rem;
  color: silver;
}

.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: linear-gradient(
      135deg,
      rgba(51, 65, 85, 0.7),
      rgba(15, 23, 42, 0.95)
    );
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
}

.nav__links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

.section {
  padding: 64px 0;
}

.section--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.section__header {
  max-width: 520px;
  margin-bottom: 28px;
}

.section__header h2 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.section__header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Hero text */

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 480px;
  font-size: 0.96rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* macOS‑style buttons */

.btn {
  font-family: "Creepster", system-ui;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  position: relative;
}

.btn--primary {
  background: radial-gradient(circle at top left, #f9fafb 0, #dbeafe 40%, #0ea5e9 100%);
  color: #0b1120;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(56, 189, 248, 0.55);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(56, 189, 248, 0.6);
}

.btn--ghost {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.85)
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 24px rgba(15, 23, 42, 0.9);
}

.btn--ghost:hover {
  transform: translateY(-1px);
}

.btn__icon {
  margin-right: 6px;
}



.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: visible;
  box-shadow: var(--shadow-soft);
}

.hero__visual--three {
  height: 300px;
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 40%, #000 100%);
  position: relative;
  backdrop-filter: blur(var(--blur-strong)) saturate(1.3);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__card {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.82)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.9),
    0 16px 35px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(22px) saturate(1.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.hero__card p {
  margin: 0;
  color: var(--text);
}

.hero__card span {
  color: var(--muted);
}

/* About */

.section--about {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 28px;
}

.about__text p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.8)
    );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
  font-size: 0.8rem;
}

.tag-chip i {
  font-size: 0.9rem;
}

/* Projects – glass cards */

.section--projects {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.projects__list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 16px 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.78),
      rgba(15, 23, 42, 0.7)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  position: relative;
  backdrop-filter: blur(22px) saturate(1.3);
}

.project-card__meta h3 {
  margin: 4px 0 8px;
  font-size: 1.06rem;
}

.project-card__tag {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-card__text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-card__stack li {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
}

.project-card__preview {
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 60%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.2), transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: visible;
}

.project-card__preview::before,
.project-card__preview::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.project-card__preview::after {
  inset: 30px;
  border-color: rgba(148, 163, 184, 0.18);
}

.project-card__preview--glitchify {
  background: url('/img/glitchify.jpeg');
  background-size:cover;
  background-clip: content-box;
  background-repeat:no-repeat;

}

.project-card__preview--glitchify::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.14),
    rgba(56, 189, 248, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

.project-card__icon {
  font-size: 0.85rem;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}

/* Contact – glass panel */

.section--contact {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.contact__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.8)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.3);
}

.contact__info p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact__info a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact__links a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.9);
}

.contact__icon {
  font-size: 0.9rem;
}

.footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Tilt – keep subtle */

.tilt {
  transform-style: preserve-3d;
  transform-origin: center;
}

/* Responsive */

@media (max-width: 880px) {
  .section--hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual--three {
    height: 260px;
  }

  .hero__visual {
    order: -1;
  }

  .nav {
    padding-inline: 12px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card__preview {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 12px;
  }

  .nav {
    border-radius: 16px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    inset: 52px 8px auto 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    display: none;
  }

  .nav__links.nav__links--open {
    display: flex;
  }

  .section {
    padding: 52px 0;
  }

  .hero__visual--three {
    height: 220px;
  }

  .hero__actions {
    gap: 8px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .about__grid,
  .contact__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .tilt {
    transform: none !important;
  }
}

h1 {
  font-family: "Cinzel Decorative", serif;
}

.project-card__preview--glitchmoviez {
  background: url('/img/glitchmoviez.jpg');
  background-size:cover;
  background-clip: content-box;
  background-repeat:no-repeat;
  
}

.project-card__preview--glitchmoviez::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.14),
    rgba(56, 189, 248, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

.project-card__preview--glitch {
  background: url('/img/react-native-wall.webp');
  background-size:cover;
  background-clip: content-box;
  background-repeat:no-repeat;

}

.project-card__preview--glitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.14),
    rgba(56, 189, 248, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

.hero__visual {
  position: relative;
  overflow: visible;
}

.hero__avatar {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 106px;
  height: 106px;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  object-fit: cover;

}

section div h2 {
  backdrop-filter: brightness(0.2);
  border: 3px groove var(--border-light);
  border-radius:30px;
  padding:8px;
}

.b2t-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 40px;
  height:35px;
  width:50px;
  font-size: 0.9rem;
  background-color: #2e081a9c;
  border: 3px solid silver;
  z-index:999;
}

hero_visual {
  border-top: 4px solid #e274d0;
}


.hero__visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.7),
    0 22px 50px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(22px) saturate(1.3);
}

.hero__avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  transform: translate(-50%, -58%);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 18px 40px rgba(15, 23, 42, 0.95);
  object-fit: cover;
}

.hero__card {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.8)
    );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.9),
    0 16px 35px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px) saturate(1.3);
}
.nav {
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.76),
      rgba(15, 23, 42, 0.6)
    );
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.7),
    0 18px 45px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px) saturate(1.4);
}
.project-card {
  border-radius: 22px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.86),
      rgba(15, 23, 42, 0.78)
    );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.8),
    0 20px 50px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(22px) saturate(1.3);
}
.contact__content {
  border-radius: 22px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.82)
    );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.8),
    0 20px 50px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(22px) saturate(1.3);
}
.hero__visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.7),
    0 22px 50px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(22px) saturate(1.3);
  overflow: visible;
}

.hero__avatar-wrap {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__avatar {
  width: 92px;
  height: 92px;
  border:none;
  border-radius:0;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 16px 34px rgba(15, 23, 42, 0.95);
  object-fit: cover;
  top:-40px;
}


.hero__intro-text {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
}


.hero__card {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.82)
    );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.9),
    0 16px 35px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px) saturate(1.3);
}


.flower-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 999999;
  height:100vh;
}

.flower {
  position: absolute;
  top: -12vh;
  width: 32px;
  height: 32px;
  will-change: transform, opacity;
  opacity: 0.9;
  transform-origin: center;
  animation:
    flower-fall linear forwards,
    flower-drift ease-in-out infinite;
}


@keyframes flower-fall {
  to {
    transform: translateY(115vh) rotateZ(90deg);
    opacity: 0.15;
  }
}


@keyframes flower-drift {
  0% {
    transform: translateX(0) rotateZ(0deg);
  }
  50% {
    transform: translateX(24px) rotateZ(12deg);
  }
  100% {
    transform: translateX(-18px) rotateZ(-10deg);
  }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  padding: 1rem;
}

.logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}
