/* =========================================================
   RAYY PORTFOLIO
   STYLE.CSS
   ========================================================= */


/* ================= VARIABLES ================= */

:root {

  --bg: #07080c;
  --bg-soft: #0b0d12;
  --surface: #101218;
  --surface-2: #141720;

  --border: #20242e;
  --border-light: #2a2f3a;

  --text: #f4f5f7;
  --muted: #8b919c;
  --muted-2: #666c77;

  --accent: #927cff;
  --accent-light: #b4a7ff;

  --green: #43dfa0;

  --container: 1120px;

  --ease: cubic-bezier(.22,1,.36,1);

}


/* ================= RESET ================= */

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


html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}


body {

  min-height: 100vh;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(146,124,255,.11),
      transparent 28%
    ),

    radial-gradient(
      circle at 100% 30%,
      rgba(67,223,160,.035),
      transparent 25%
    ),

    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;

}


body::before {

  content: "";

  position: fixed;

  inset: 0;

  z-index: -1;

  pointer-events: none;

  opacity: .45;

  background-image:
    linear-gradient(
      rgba(255,255,255,.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.018) 1px,
      transparent 1px
    );

  background-size: 55px 55px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 80%
    );

}


::selection {
  background: rgba(146,124,255,.35);
  color: white;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


img {
  max-width: 100%;
}


/* ================= CONTAINER ================= */

.container {

  width: min(
    var(--container),
    calc(100% - 40px)
  );

  margin-inline: auto;

}


/* ================= HEADER ================= */

.header {

  position: sticky;

  top: 0;

  z-index: 100;

  height: 72px;

  background:
    rgba(7,8,12,.72);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  border-bottom:
    1px solid rgba(255,255,255,.055);

}


.nav-container {

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

}


.logo {

  font-size: 17px;

  font-weight: 900;

  letter-spacing: -.04em;

}


.logo span {
  color: var(--accent);
}


.nav {

  display: flex;

  align-items: center;

  gap: 27px;

}


.nav a {

  position: relative;

  color: var(--muted);

  font-size: 11px;

  transition:
    color .2s ease;

}


.nav a:hover {
  color: white;
}


.nav-button {

  padding:
    8px 12px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  color: #e4e6eb !important;

  background:
    rgba(255,255,255,.025);

}


.menu-button {

  display: none;

  width: 40px;
  height: 40px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  background: var(--surface);

  position: relative;

}


.menu-button span {

  position: absolute;

  width: 16px;
  height: 1px;

  background: white;

  left: 11px;

  transition: .25s var(--ease);

}


.menu-button span:first-child {
  top: 15px;
}


.menu-button span:last-child {
  top: 22px;
}


.menu-button.active span:first-child {

  top: 19px;

  transform:
    rotate(45deg);

}


.menu-button.active span:last-child {

  top: 19px;

  transform:
    rotate(-45deg);

}


/* ================= HERO ================= */

.hero {

  min-height:
    calc(100vh - 72px);

  display: flex;

  align-items: center;

  padding:
    90px 0;

}


.hero-grid {

  display: grid;

  grid-template-columns:
    1.2fr .8fr;

  align-items: center;

  gap: 70px;

}


.status-pill {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding:
    7px 10px;

  border:
    1px solid var(--border);

  border-radius: 999px;

  color: #9ca2ad;

  background:
    rgba(255,255,255,.02);

  font-size: 9px;

  margin-bottom: 24px;

}


.status-dot {

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 12px rgba(67,223,160,.8);

}


.hero-small {

  color: var(--muted-2);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .2em;

  margin-bottom: 4px;

}


.hero h1 {

  font-size:
    clamp(58px, 9vw, 96px);

  line-height: .92;

  letter-spacing: -.08em;

  font-weight: 950;

}


.hero h1 span {
  color: var(--accent);
}


.hero h2 {

  margin-top: 14px;

  max-width: 650px;

  font-size:
    clamp(28px, 4vw, 48px);

  line-height: 1;

  letter-spacing: -.055em;

}


.hero h2 em {

  color: var(--accent-light);

  font-style: normal;

}


.hero-description {

  max-width: 600px;

  margin-top: 24px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.85;

}


.hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 28px;

}


.button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  min-height: 40px;

  padding:
    9px 14px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  background: var(--surface);

  color: #dfe1e7;

  font-size: 10px;

  font-weight: 700;

  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    background .25s ease;

}


.button:hover {

  transform:
    translateY(-2px);

  border-color:
    var(--border-light);

}


.button-primary {

  color: #090a0e;

  background: #f4f5f7;

  border-color: #f4f5f7;

}


.button-primary:hover {
  background: white;
}


.button-secondary {
  background: transparent;
}


.hero-socials {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 22px;

  color: var(--muted-2);

  font-size: 9px;

}


.hero-socials a:hover {
  color: white;
}


/* ================= PROFILE ================= */

.profile-area {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 440px;

}


.profile-card {

  position: relative;

  width: min(360px,100%);

  padding: 25px;

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.012)
    ),
    var(--surface);

  box-shadow:
    0 35px 90px rgba(0,0,0,.28);

  animation:
    profileFloat 6s ease-in-out infinite;

}


.profile-glow {

  position: absolute;

  width: 230px;
  height: 230px;

  top: -120px;
  right: -90px;

  border-radius: 50%;

  background:
    rgba(146,124,255,.18);

  filter: blur(60px);

  pointer-events: none;

}


.profile-image {

  position: relative;

  width: 100%;

  aspect-ratio: 1;

  overflow: hidden;

  border-radius: 19px;

  border:
    1px solid var(--border-light);

  background:
    #151821;

}


.profile-image::after {

  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.08),
      transparent 35%,
      transparent 70%,
      rgba(146,124,255,.08)
    );

}


.profile-image img {

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform .7s var(--ease),
    filter .7s ease;

}


.profile-card:hover
.profile-image img {

  transform:
    scale(1.045);

  filter:
    brightness(1.07);

}


.profile-info {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  margin-top: 18px;

}


.profile-info h3 {

  font-size: 19px;

  letter-spacing: -.04em;

}


.profile-info p {

  color: var(--muted);

  font-size: 10px;

  margin-top: 2px;

}


.verified {

  display: inline-grid;

  place-items: center;

  width: 16px;
  height: 16px;

  margin-left: 2px;

  border-radius: 50%;

  background: var(--accent);

  color: white;

  font-size: 8px;

  vertical-align: 2px;

}


.profile-status {

  display: flex;

  align-items: center;

  gap: 5px;

  color: var(--green);

  font-size: 9px;

}


.profile-status span {

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 9px rgba(67,223,160,.8);

}


.profile-details {

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 6px;

  margin-top: 20px;

}


.profile-details div {

  padding: 9px;

  border:
    1px solid var(--border-soft);

  border-radius: 8px;

  background:
    rgba(0,0,0,.15);

}


.profile-details span {

  display: block;

  color: var(--muted-2);

  font-size: 7px;

  text-transform: uppercase;

  letter-spacing: .08em;

}


.profile-details strong {

  display: block;

  margin-top: 2px;

  color: #cdd0d7;

  font-size: 9px;

}


.profile-orbit {

  position: absolute;

  border-radius: 50%;

  border:
    1px solid rgba(146,124,255,.1);

  pointer-events: none;

}


.orbit-one {

  width: 440px;
  height: 440px;

  animation:
    orbitRotate 24s linear infinite;

}


.orbit-two {

  width: 520px;
  height: 520px;

  border-style: dashed;

  opacity: .45;

  animation:
    orbitRotateReverse 35s linear infinite;

}


@keyframes profileFloat {

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

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

}


@keyframes orbitRotate {

  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }

}


@keyframes orbitRotateReverse {

  from {
    transform:
      rotate(360deg);
  }

  to {
    transform:
      rotate(0deg);
  }

}


/* ================= SECTION ================= */

.section {

  padding:
    105px 0;

}


.section-dark {

  background:
    rgba(255,255,255,.012);

  border-top:
    1px solid var(--border-soft);

  border-bottom:
    1px solid var(--border-soft);

}


.section-heading {

  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 35px;

}


.section-heading > div {
  flex-shrink: 0;
}


.section-number {

  display: inline-block;

  color: var(--accent);

  font-size: 9px;

  font-weight: 900;

  letter-spacing: .15em;

}


.section-label {

  display: inline-block;

  margin-left: 7px;

  color: var(--muted-2);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .17em;

}


.section-heading h2 {

  margin-top: 7px;

  font-size:
    clamp(30px,4vw,43px);

  line-height: 1;

  letter-spacing: -.055em;

}


.section-heading > p {

  max-width: 350px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.7;

}


/* ================= ABOUT ================= */

.about-grid {

  display: grid;

  grid-template-columns:
    1.25fr .75fr;

  gap: 12px;

}


.card {

  border:
    1px solid var(--border);

  border-radius: 18px;

  background:
    var(--surface);

}


.about-main {

  min-height: 360px;

  padding: 30px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

}


.card-label {

  color: var(--accent);

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .18em;

}


.about-main h3 {

  margin-top: 35px;

  font-size:
    clamp(29px,4vw,43px);

  line-height: 1;

  letter-spacing: -.06em;

}


.about-main p {

  max-width: 650px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.85;

}


.signature {

  margin-top: 25px;

  color: #555b65;

  font-size: 10px;

}


.about-side {

  display: grid;

  gap: 9px;

}


.mini-card {

  display: flex;

  align-items: flex-start;

  gap: 15px;

  padding: 20px;

  border:
    1px solid var(--border);

  border-radius: 15px;

  background:
    var(--surface);

  transition:
    transform .25s var(--ease),
    border-color .25s ease;

}


.mini-card:hover {

  transform:
    translateX(4px);

  border-color:
    var(--border-light);

}


.mini-icon {

  display: grid;

  place-items: center;

  flex-shrink: 0;

  width: 35px;
  height: 35px;

  border:
    1px solid var(--border-light);

  border-radius: 9px;

  background:
    #151820;

  color: var(--accent-light);

  font-size: 12px;

}


.mini-card h3 {
  font-size: 12px;
}


.mini-card p {

  margin-top: 3px;

  color: var(--muted);

  font-size: 10px;

}


/* ================= SKILLS ================= */

.skills-grid {

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 10px;

}


.skill-card {

  position: relative;

  overflow: hidden;

  padding: 22px;

  min-height: 180px;

  border:
    1px solid var(--border);

  border-radius: 15px;

  background:
    var(--surface);

  transition:
    transform .3s var(--ease),
    border-color .3s ease;

}


.skill-card:hover {

  transform:
    translateY(-5px);

  border-color:
    #373c48;

}


.skill-icon {

  display: grid;

  place-items: center;

  width: 38px;
  height: 38px;

  border:
    1px solid var(--border-light);

  border-radius: 10px;

  background:
    #161921;

  color:
    var(--accent-light);

  font-size: 10px;

  font-weight: 900;

}


.skill-card h3 {

  margin-top: 22px;

  font-size: 13px;

}


.skill-card p {

  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;

}


.skill-number {

  position: absolute;

  right: 17px;
  bottom: 14px;

  color: #292d35;

  font-size: 28px;

  font-weight: 900;

  letter-spacing: -.06em;

}


/* ================= PROJECTS ================= */

.projects-grid {

  display: grid;

  grid-template-columns:
    1fr .55fr;

  gap: 12px;

}


.project-card {

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: 19px;

  background:
    var(--surface);

  transition:
    transform .3s var(--ease),
    border-color .3s ease,
    box-shadow .3s ease;

}


.project-card:hover {

  transform:
    translateY(-6px);

  border-color:
    #383d49;

  box-shadow:
    0 25px 70px rgba(0,0,0,.25);

}


.project-image {

  position: relative;

  min-height: 310px;

  display: grid;

  place-items: center;

  overflow: hidden;

  background:
    #090b10;

}


.project-image-bg {

  position: absolute;

  width: 330px;
  height: 330px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(146,124,255,.24),
      transparent 65%
    );

  filter: blur(10px);

  animation:
    projectGlow 6s ease-in-out infinite;

}


@keyframes projectGlow {

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

  50% {
    transform:
      scale(1.12);
  }

}


.project-window {

  position: relative;

  width: 72%;

  max-width: 470px;

  overflow: hidden;

  border:
    1px solid #303541;

  border-radius: 12px;

  background:
    #10131a;

  box-shadow:
    0 25px 60px rgba(0,0,0,.45);

  transform:
    perspective(900px)
    rotateX(4deg)
    rotateY(-5deg);

  transition:
    transform .5s var(--ease);

}


.project-card:hover
.project-window {

  transform:
    perspective(900px)
    rotateX(0deg)
    rotateY(0deg)
    translateY(-5px)
    scale(1.015);

}


.window-bar {

  height: 25px;

  display: flex;

  align-items: center;

  gap: 5px;

  padding-left: 10px;

  border-bottom:
    1px solid #242934;

  background:
    #0c0f14;

}


.window-bar span {

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background:
    #424752;

}


.window-content {

  min-height: 185px;

  padding: 30px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(146,124,255,.13),
      transparent 55%
    );

}


.window-logo {

  color: white;

  font-size: 26px;

  font-weight: 900;

  letter-spacing: -.06em;

}


.window-line {

  width: 70%;

  height: 7px;

  margin-top: 18px;

  border-radius: 99px;

  background:
    #272c36;

}


.window-line.large {

  width: 90%;

  margin-top: 28px;

}


.window-line.short {
  width: 45%;
}


.window-button {

  display: inline-flex;

  margin-top: 22px;

  padding: 5px 9px;

  border:
    1px solid #373c47;

  border-radius: 5px;

  color:
    #9c91ff;

  font-size: 7px;

}


.project-number {

  position: absolute;

  right: 20px;
  bottom: 15px;

  color: #333844;

  font-size: 45px;

  font-weight: 900;

  letter-spacing: -.08em;

}


.project-content {

  padding: 25px;

}


.project-meta {

  display: flex;

  justify-content: space-between;

  color: var(--muted-2);

  font-size: 8px;

  font-weight: 800;

  letter-spacing: .12em;

}


.project-meta span:first-child {
  color: var(--accent);
}


.project-content h3 {

  margin-top: 12px;

  font-size: 24px;

  letter-spacing: -.05em;

}


.project-content > p {

  max-width: 650px;

  margin-top: 8px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.8;

}


.technology-list {

  display: flex;

  flex-wrap: wrap;

  gap: 5px;

  margin-top: 16px;

}


.technology-list span {

  padding:
    5px 8px;

  border:
    1px solid var(--border);

  border-radius: 6px;

  color: #777e89;

  font-size: 8px;

}


.project-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 19px;

}


.project-link {

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding:
    8px 11px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  color: #b8bcc5;

  font-size: 9px;

  transition: .2s;

}


.project-link:hover {

  border-color:
    #3c414d;

  color: white;

}


.project-link.primary {

  background:
    #f1f2f4;

  border-color:
    #f1f2f4;

  color:
    #08090c;

  font-weight: 800;

}


.project-placeholder {

  min-height: 100%;

  padding: 30px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;

  border:
    1px dashed #282d36;

  border-radius: 19px;

  background:
    rgba(255,255,255,.012);

}


.placeholder-icon {

  display: grid;

  place-items: center;

  width: 44px;
  height: 44px;

  border:
    1px solid var(--border-light);

  border-radius: 12px;

  color: var(--muted);

  font-size: 20px;

}


.project-placeholder > span {

  margin-top: 22px;

  color: var(--muted-2);

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .17em;

}


.project-placeholder h3 {

  margin-top: 9px;

  font-size: 22px;

  line-height: 1.05;

  letter-spacing: -.045em;

}


.project-placeholder p {

  margin-top: 10px;

  color: var(--muted);

  font-size: 10px;

}


/* ================= JOURNEY ================= */

.journey-grid {

  display: grid;

  grid-template-columns:
    1fr .8fr;

  gap: 50px;

}


.timeline {

  position: relative;

  display: grid;

  gap: 34px;

}


.timeline-line {

  position: absolute;

  left: 5px;

  top: 7px;
  bottom: 7px;

  width: 1px;

  background:
    #292e37;

}


.timeline-item {

  position: relative;

  display: flex;

  gap: 22px;

}


.timeline-dot {

  position: relative;

  z-index: 2;

  flex-shrink: 0;

  width: 11px;
  height: 11px;

  margin-top: 4px;

  border-radius: 50%;

  background:
    var(--accent);

  box-shadow:
    0 0 0 5px
    rgba(146,124,255,.08);

}


.timeline-year {

  color:
    var(--accent);

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .16em;

}


.timeline-item h3 {

  margin-top: 4px;

  font-size: 14px;

}


.timeline-item p {

  max-width: 500px;

  margin-top: 5px;

  color: var(--muted);

  font-size: 10px;

  line-height: 1.7;

}


.journey-card {

  padding: 28px;

  border:
    1px solid var(--border);

  border-radius: 18px;

  background:
    var(--surface);

}


.journey-card h3 {

  margin-top: 25px;

  font-size: 24px;

  letter-spacing: -.05em;

}


.interest-list {

  display: grid;

  margin-top: 25px;

}


.interest-list div {

  display: grid;

  grid-template-columns:
    30px 1fr auto;

  align-items: center;

  gap: 10px;

  padding: 12px 0;

  border-bottom:
    1px solid var(--border-soft);

}


.interest-list span {

  color: var(--accent);

  font-size: 8px;

}


.interest-list strong {

  font-size: 10px;

}


.interest-list small {

  color: var(--muted-2);

  font-size: 8px;

}


/* ================= SOCIAL ================= */

.social-grid {

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 9px;

}


.social-card {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 17px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background:
    var(--surface);

  transition:
    transform .25s var(--ease),
    border-color .25s ease;

}


.social-card:hover {

  transform:
    translateY(-4px);

  border-color:
    var(--border-light);

}


.social-icon {

  display: grid;

  place-items: center;

  flex-shrink: 0;

  width: 35px;
  height: 35px;

  border:
    1px solid var(--border-light);

  border-radius: 9px;

  background:
    #161920;

  color:
    var(--accent-light);

  font-size: 8px;

  font-weight: 900;

}


.social-info {
  flex: 1;
}


.social-info strong {

  display: block;

  font-size: 10px;

}


.social-info span {

  display: block;

  margin-top: 1px;

  color: var(--muted-2);

  font-size: 8px;

}


.social-arrow {

  color:
    #565c67;

  transition:
    transform .2s ease;

}


.social-card:hover
.social-arrow {

  transform:
    translate(2px,-2px);

  color: white;

}


/* ================= CONTACT ================= */

.contact-section {

  padding:
    50px 0 100px;

}


.contact-box {

  position: relative;

  overflow: hidden;

  padding: 55px;

  border:
    1px solid #2a2f39;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #12151c,
      #0b0d12
    );

}


.contact-glow {

  position: absolute;

  width: 350px;
  height: 350px;

  right: -120px;
  top: -200px;

  border-radius: 50%;

  background:
    rgba(146,124,255,.16);

  filter: blur(70px);

}


.contact-content {

  position: relative;

  z-index: 1;

}


.contact-content h2 {

  max-width: 700px;

  margin-top: 13px;

  font-size:
    clamp(32px,5vw,58px);

  line-height: .98;

  letter-spacing: -.06em;

}


.contact-content h2 em {

  color:
    var(--accent-light);

  font-style: normal;

}


.contact-content p {

  max-width: 480px;

  margin-top: 14px;

  color: var(--muted);

  font-size: 11px;

}


.contact-content .button {

  margin-top: 24px;

}


/* ================= FOOTER ================= */

footer {

  border-top:
    1px solid var(--border-soft);

  padding:
    30px 0 40px;

}


.footer-content {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


.footer-content p {

  margin-top: 2px;

  color: var(--muted-2);

  font-size: 8px;

}


.footer-right {

  display: flex;

  gap: 18px;

  color: var(--muted-2);

  font-size: 8px;

}


/* ================= MODAL ================= */

.modal {

  position: fixed;

  inset: 0;

  z-index: 500;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

}


.modal.active {
  display: flex;
}


.modal-backdrop {

  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,.75);

  backdrop-filter:
    blur(8px);

}


.modal-box {

  position: relative;

  z-index: 1;

  width:
    min(450px,100%);

  padding: 28px;

  border:
    1px solid var(--border-light);

  border-radius: 18px;

  background:
    #11141a;

  box-shadow:
    0 30px 100px rgba(0,0,0,.5);

  animation:
    modalIn .3s var(--ease);

}


@keyframes modalIn {

  from {

    opacity: 0;

    transform:
      translateY(15px)
      scale(.97);

  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);

  }

}


.modal-close {

  position: absolute;

  top: 15px;
  right: 17px;

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 22px;

}


.modal-box h2 {

  margin-top: 10px;

  font-size: 25px;

  letter-spacing: -.05em;

}


.modal-box > p {

  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;

}


#contactForm {

  display: grid;

  gap: 13px;

  margin-top: 22px;

}


#contactForm label {

  color: #838995;

  font-size: 9px;

}


#contactForm input,
#contactForm textarea {

  width: 100%;

  margin-top: 6px;

  padding: 10px 11px;

  outline: none;

  border:
    1px solid var(--border-light);

  border-radius: 8px;

  background:
    #090b0f;

  color: white;

  font-size: 10px;

  transition:
    border-color .2s ease;

}


#contactForm input:focus,
#contactForm textarea:focus {

  border-color:
    #5148a0;

}


#contactForm textarea {

  min-height: 95px;

  resize: vertical;

}


.submit-button {

  border: 0;

  width: 100%;

}


/* ================= TOAST ================= */

.toast {

  position: fixed;

  z-index: 600;

  left: 50%;

  bottom: 20px;

  padding:
    9px 13px;

  border-radius: 8px;

  background:
    #f2f3f5;

  color:
    #08090c;

  font-size: 9px;

  font-weight: 800;

  opacity: 0;

  pointer-events: none;

  transform:
    translate(-50%,15px);

  transition:
    opacity .25s ease,
    transform .25s var(--ease);

}


.toast.show {

  opacity: 1;

  transform:
    translate(-50%,0);

}


/* ================= REVEAL ================= */

.reveal {

  opacity: 0;

  transform:
    translateY(22px);

  transition:
    opacity .75s ease,
    transform .75s var(--ease);

}


.reveal.visible {

  opacity: 1;

  transform:
    translateY(0);

}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .hero-grid {

    grid-template-columns:
      1fr;

    gap: 60px;

  }


  .profile-area {

    min-height: auto;

  }


  .profile-card {

    width:
      min(380px,100%);

  }


  .about-grid {

    grid-template-columns:
      1fr;

  }


  .journey-grid {

    grid-template-columns:
      1fr;

  }


  .projects-grid {

    grid-template-columns:
      1fr;

  }


  .project-placeholder {

    min-height: 250px;

  }

}


@media (max-width: 700px) {

  .nav {

    position: fixed;

    top: 72px;

    left: 20px;
    right: 20px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 2px;

    padding: 8px;

    border:
      1px solid var(--border);

    border-radius: 12px;

    background:
      rgba(14,16,21,.97);

    box-shadow:
      0 20px 60px rgba(0,0,0,.4);

  }


  .nav.open {
    display: flex;
  }


  .nav a {

    padding: 11px;

  }


  .menu-button {

    display: block;

  }


  .skills-grid {

    grid-template-columns:
      1fr 1fr;

  }


  .social-grid {

    grid-template-columns:
      1fr;

  }


  .section-heading {

    display: block;

  }


  .section-heading > p {

    margin-top: 10px;

  }


  .contact-box {

    padding: 35px 25px;

  }

}


@media (max-width: 500px) {

  .container {

    width:
      min(100% - 28px, var(--container));

  }


  .hero {

    padding:
      65px 0;

  }


  .hero h1 {

    font-size:
      58px;

  }


  .hero h2 {

    font-size:
      30px;

  }


  .hero-description {

    font-size:
      11px;

  }


  .profile-orbit {

    display: none;

  }


  .profile-card {

    padding:
      18px;

    border-radius:
      19px;

  }


  .profile-details {

    grid-template-columns:
      1fr;

  }


  .section {

    padding:
      75px 0;

  }


  .skills-grid {

    grid-template-columns:
      1fr;

  }


  .skill-card {

    min-height:
      145px;

  }


  .project-image {

    min-height:
      245px;

  }


  .project-window {

    width:
      82%;

  }


  .window-content {

    padding:
      20px;

  }


  .contact-content h2 {

    font-size:
      34px;

  }


  .footer-content {

    display: block;

  }


  .footer-right {

    margin-top:
      14px;

  }

}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    scroll-behavior: auto !important;

    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .01ms !important;

  }

}