/* =========================================================
   MUHAMMAD AHSAN AWAN — PORTFOLIO V2
   Responsive Design System
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
  --bg: #070b17;
  --bg-soft: #0b1020;

  --surface: #11172a;
  --surface-2: #151b31;
  --surface-3: #1a2040;

  --text: #f7f8ff;
  --muted: #9ca8c8;
  --muted-light: #c2cae0;

  --purple: #825cff;
  --purple-light: #a88cff;

  --blue: #5798ff;
  --cyan: #43ddff;
  --green: #55f2b3;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(130, 92, 255, 0.32);

  --shadow:
    0 30px 80px rgba(0, 0, 0, 0.35);

  --header-height: 88px;

  --container:
    min(1320px, calc(100% - 48px));

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}


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

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;

  min-width: 320px;

  background:
    radial-gradient(
      circle at 10% 30%,
      rgba(67, 221, 255, 0.07),
      transparent 28%
    ),
    var(--bg);

  color: var(--text);

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

  line-height: 1.6;

  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
}

main {
  overflow: clip;
}

section {
  scroll-margin-top: 100px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 3px solid rgba(67, 221, 255, 0.75);
  outline-offset: 4px;
}

::selection {
  background: var(--purple);
  color: white;
}


/* =========================================================
   SCROLLBAR
========================================================= */

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #28304e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #394368;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {
  position: fixed;

  top: 0;
  left: 0;

  width: 0;
  height: 3px;

  z-index: 9999;

  background:
    linear-gradient(
      90deg,
      var(--purple),
      var(--cyan)
    );

  box-shadow:
    0 0 15px rgba(67, 221, 255, 0.65);
}


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

.site-header {
  position: sticky;

  top: 0;
  z-index: 1000;

  height: var(--header-height);

  display: flex;
  align-items: center;

  background:
    rgba(7, 11, 23, 0.9);

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

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 100%;
}

.logo {
  position: relative;
  z-index: 1100;

  font-size: 1.65rem;
  font-weight: 900;

  letter-spacing: 0.08em;

  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;

  gap: 34px;
}

.nav-link {
  position: relative;

  padding: 10px 0;

  color: #aeb7d2;

  font-weight: 700;
  font-size: 0.95rem;

  transition:
    color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 2px;

  width: 0;
  height: 2px;

  transform: translateX(-50%);

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--purple),
      var(--cyan)
    );

  transition:
    width 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-contact {
  padding: 13px 22px;

  color: white;

  font-weight: 800;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #855cff,
      #644be6
    );

  box-shadow:
    0 12px 30px
    rgba(99, 72, 229, 0.28);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-contact:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 38px
    rgba(99, 72, 229, 0.38);
}


/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle {
  display: none;

  width: 48px;
  height: 48px;

  padding: 0;

  cursor: pointer;

  border-radius: 12px;

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

  background:
    rgba(255, 255, 255, 0.04);

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

  gap: 6px;

  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.menu-toggle:hover {
  border-color:
    rgba(130, 92, 255, 0.55);

  background:
    rgba(130, 92, 255, 0.08);
}

.menu-toggle span {
  display: block;

  width: 23px;
  height: 2px;

  border-radius: 999px;

  background: white;

  transition:
    transform 250ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"]
span:nth-child(1) {
  transform:
    translateY(8px)
    rotate(45deg);
}

.menu-toggle[aria-expanded="true"]
span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]
span:nth-child(3) {
  transform:
    translateY(-8px)
    rotate(-45deg);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
  display: inline-flex;

  min-height: 52px;

  align-items: center;
  justify-content: center;

  padding: 13px 24px;

  border-radius: 13px;

  font-weight: 800;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  color: white;

  background:
    linear-gradient(
      135deg,
      #875cff,
      #664be8
    );

  box-shadow:
    0 18px 40px
    rgba(108, 77, 235, 0.26);
}

.button-primary:hover {
  box-shadow:
    0 22px 46px
    rgba(108, 77, 235, 0.38);
}

.button-secondary {
  border:
    1px solid var(--border);

  background:
    rgba(255, 255, 255, 0.03);

  color: white;
}

.button-secondary:hover {
  border-color:
    rgba(130, 92, 255, 0.42);

  background:
    rgba(130, 92, 255, 0.08);
}


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

.hero {
  position: relative;

  min-height:
    calc(100svh - var(--header-height));

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 83% 30%,
      rgba(119, 70, 255, 0.27),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 78%,
      rgba(67, 221, 255, 0.07),
      transparent 34%
    ),
    #080c19;
}

.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 25, 0.97) 0%,
      rgba(8, 12, 25, 0.8) 42%,
      rgba(8, 12, 25, 0.16) 100%
    );
}

.hero-grid {
  position: relative;
  z-index: 3;

  display: grid;

  grid-template-columns:
    minmax(0, 1.07fr)
    minmax(360px, 0.93fr);

  gap: 70px;

  align-items: center;

  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-content {
  min-width: 0;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;

  gap: 12px;

  color: var(--cyan);

  font-size: 0.78rem;
  font-weight: 900;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dot,
.section-label span {
  width: 9px;
  height: 9px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 17px rgba(85, 242, 179, 0.8);
}

.hero-title {
  margin:
    30px 0
    22px;

  max-width: 810px;

  font-size:
    clamp(4rem, 6.6vw, 7.1rem);

  line-height: 0.95;

  letter-spacing: -0.055em;

  font-weight: 900;
}

.gradient-text {
  display: inline-block;

  color: transparent;

  background:
    linear-gradient(
      120deg,
      #b49aff 0%,
      #8587ff 38%,
      #4ddcff 100%
    );

  -webkit-background-clip: text;
  background-clip: text;
}

.typing-line {
  min-height: 38px;

  display: flex;
  align-items: center;

  color: #d5c7ff;

  font-size:
    clamp(1.05rem, 1.6vw, 1.35rem);

  font-weight: 800;
}

.typing-cursor {
  width: 2px;
  height: 1.2em;

  margin-left: 5px;

  background: var(--cyan);

  animation:
    cursorBlink 0.8s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.hero-description {
  max-width: 660px;

  margin:
    25px 0
    0;

  color: var(--muted);

  font-size:
    clamp(1rem, 1.25vw, 1.12rem);

  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;

  gap: 18px 28px;

  margin-top: 36px;
}

.stat-item {
  display: grid;
  gap: 2px;
}

.stat-item strong {
  color: white;

  font-size: 1rem;
}

.stat-item span {
  color: var(--muted);

  font-size: 0.85rem;
}


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

.hero-glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;
}

.hero-glow-one {
  width: 430px;
  height: 430px;

  right: 8%;
  top: 4%;

  background:
    rgba(117, 73, 255, 0.16);
}

.hero-glow-two {
  width: 330px;
  height: 330px;

  left: -120px;
  bottom: -120px;

  background:
    rgba(44, 209, 255, 0.08);
}


/* =========================================================
   PARTICLES
========================================================= */

.particles {
  position: absolute;

  inset: 0;

  z-index: 1;

  overflow: hidden;

  pointer-events: none;
}

.particle {
  position: absolute;

  width: var(--size);
  height: var(--size);

  border-radius: 50%;

  background:
    rgba(104, 168, 255, 0.75);

  opacity: var(--opacity);

  box-shadow:
    0 0 8px rgba(67, 221, 255, 0.4);

  animation:
    particleFloat
    var(--duration)
    linear
    infinite;

  animation-delay:
    var(--delay);
}

@keyframes particleFloat {
  from {
    transform:
      translate3d(0, 25px, 0);
  }

  50% {
    transform:
      translate3d(14px, -10px, 0);
  }

  to {
    transform:
      translate3d(-8px, -50px, 0);
  }
}


/* =========================================================
   3D SCENE
========================================================= */

.hero-visual {
  position: relative;

  min-height: 570px;

  display: grid;
  place-items: center;

  perspective: 1200px;
}

.cube-tilt {
  position: relative;
  z-index: 5;

  width: 240px;
  height: 240px;

  display: grid;
  place-items: center;

  transform-style: preserve-3d;

  transition:
    transform 220ms ease-out;
}

.cube {
  position: relative;

  width: 210px;
  height: 210px;

  transform-style: preserve-3d;

  animation:
    cubeSpin 18s linear infinite;
}

@keyframes cubeSpin {
  from {
    transform:
      rotateX(-14deg)
      rotateY(0deg);
  }

  to {
    transform:
      rotateX(-14deg)
      rotateY(360deg);
  }
}

.cube-face {
  position: absolute;

  inset: 0;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(113, 226, 255, 0.5);

  background:
    linear-gradient(
      145deg,
      rgba(131, 88, 255, 0.85),
      rgba(55, 120, 255, 0.66)
    );

  color: white;

  font-size: 1.9rem;
  font-weight: 900;

  letter-spacing: 0.04em;

  box-shadow:
    inset 0 0 50px
    rgba(255, 255, 255, 0.04);

  backface-visibility:
    visible;
}

.cube-front {
  transform:
    translateZ(105px);
}

.cube-back {
  transform:
    rotateY(180deg)
    translateZ(105px);
}

.cube-right {
  transform:
    rotateY(90deg)
    translateZ(105px);
}

.cube-left {
  transform:
    rotateY(-90deg)
    translateZ(105px);
}

.cube-top {
  transform:
    rotateX(90deg)
    translateZ(105px);
}

.cube-bottom {
  transform:
    rotateX(-90deg)
    translateZ(105px);
}

.orbit {
  position: absolute;

  border:
    1px solid rgba(91, 133, 255, 0.42);

  border-radius: 50%;

  pointer-events: none;
}

.orbit-one {
  width: 470px;
  height: 190px;

  transform:
    rotate(-8deg);
}

.orbit-two {
  width: 400px;
  height: 145px;

  border-color:
    rgba(130, 92, 255, 0.5);

  transform:
    rotate(12deg);
}

.floating-label {
  position: absolute;
  z-index: 8;

  padding: 10px 15px;

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

  border-radius: 12px;

  background:
    rgba(15, 22, 43, 0.86);

  box-shadow: var(--shadow);

  color: white;

  font-size: 0.78rem;
  font-weight: 800;

  backdrop-filter: blur(14px);
}

.label-one {
  left: 5%;
  top: 27%;
}

.label-two {
  right: 0;
  top: 48%;
}

.label-three {
  left: 12%;
  bottom: 21%;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
  position: relative;

  padding:
    130px 0;

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

.section-heading {
  max-width: 900px;

  margin-bottom: 60px;
}

.section-heading h2 {
  margin:
    22px 0
    18px;

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  line-height: 1.04;

  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 780px;

  margin: 0;

  color: var(--muted);

  font-size: 1.08rem;

  line-height: 1.8;
}


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

.about-section {
  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(130, 92, 255, 0.09),
      transparent 30%
    ),
    var(--bg);
}

.about-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.info-card {
  min-height: 400px;

  padding: 42px;

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

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(18, 25, 44, 0.95),
      rgba(12, 17, 32, 0.95)
    );

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

  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.info-card:hover {
  transform:
    translateY(-4px);

  border-color:
    var(--border-strong);
}

.card-number {
  margin-bottom: 24px;

  color: var(--cyan);

  font-weight: 900;
}

.info-card h3 {
  margin:
    0 0
    22px;

  font-size:
    clamp(1.7rem, 3vw, 2.3rem);
}

.info-card p {
  color: var(--muted);

  line-height: 1.9;
}

.info-card p + p {
  margin-top: 18px;
}

.focus-list {
  list-style: none;

  display: grid;

  gap: 17px;
}

.focus-list li {
  position: relative;

  padding-left: 28px;

  color: var(--muted-light);
}

.focus-list li::before {
  content: "✦";

  position: absolute;

  left: 0;

  color: var(--purple-light);
}


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

.projects-section {
  background:
    linear-gradient(
      180deg,
      #080c18,
      #070b17
    );
}

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 26px;
}

.project-card {
  overflow: hidden;

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

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      180deg,
      rgba(17, 23, 42, 0.98),
      rgba(11, 16, 31, 0.98)
    );

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(130, 92, 255, 0.42);

  box-shadow:
    0 30px 70px
    rgba(0, 0, 0, 0.24);
}

.project-top {
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    0 22px;

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

.project-number {
  color: var(--cyan);

  font-weight: 900;
}

.project-category {
  color: var(--muted);

  font-size: 0.76rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-preview {
  min-height: 310px;

  padding: 45px;

  display: grid;
  place-items: center;

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


/* PORTFOLIO PREVIEW */

.portfolio-preview {
  background:
    radial-gradient(
      circle at 75% 28%,
      rgba(130, 92, 255, 0.22),
      transparent 30%
    ),
    #090e22;
}

.browser-window {
  width: min(100%, 470px);

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, 0.13);

  border-radius: 18px;

  background:
    #090d20;

  box-shadow:
    0 30px 70px
    rgba(0, 0, 0, 0.34);
}

.browser-bar {
  height: 38px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 14px;

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

.browser-bar span {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: #ff6b6b;
}

.browser-bar span:nth-child(2) {
  background: #ffd66b;
}

.browser-bar span:nth-child(3) {
  background: #67e2a2;
}

.browser-content {
  min-height: 180px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 28px;
}

.mini-copy {
  display: grid;
  gap: 12px;
}

.mini-copy > span {
  color: var(--cyan);

  font-size: 0.7rem;
  font-weight: 900;

  letter-spacing: 0.14em;
}

.mini-copy strong {
  color: white;

  font-size:
    clamp(1.25rem, 3vw, 1.8rem);

  line-height: 1.1;
}

.mini-copy em {
  display: block;

  color: #9b7cff;

  font-style: normal;
}

.mini-cube {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  transform:
    rotate(12deg);

  background:
    linear-gradient(
      135deg,
      #805cff,
      #4e8fff
    );

  color: white;

  font-weight: 900;

  box-shadow:
    0 18px 30px
    rgba(91, 76, 233, 0.25);
}


/* VELORA PREVIEW */

.velora-preview {
  background: #080808;
}

.velora-frame {
  position: relative;

  width: min(100%, 470px);
  min-height: 190px;

  overflow: hidden;

  padding: 30px;

  border:
    1px solid rgba(213, 166, 109, 0.35);

  background:
    linear-gradient(
      135deg,
      #070707,
      #0d0d0d
    );
}

.velora-brand {
  color: white;

  font-size: 0.78rem;
  font-weight: 900;

  letter-spacing: 0.24em;
}

.velora-copy {
  position: absolute;

  left: 30px;
  bottom: 30px;

  display: grid;
}

.velora-copy span {
  color: white;

  font-weight: 900;
  font-size: 0.78rem;
}

.velora-copy strong {
  color: #d6ac77;

  font-family:
    Georgia,
    serif;

  font-size:
    clamp(1.9rem, 4vw, 3rem);

  font-style: italic;
}

.velora-orb {
  position: absolute;

  right: 38px;
  top: 50%;

  width: 94px;
  height: 94px;

  transform:
    translateY(-50%);

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #090909;

  font-size: 2rem;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      #f0f0f0,
      #767676
    );

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.4);
}


/* PROJECT BODY */

.project-body {
  padding: 32px;
}

.project-body h3 {
  margin:
    0 0
    14px;

  font-size:
    clamp(1.45rem, 2.5vw, 1.8rem);
}

.project-body p {
  margin: 0;

  color: var(--muted);

  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin-top: 24px;
}

.tags span {
  padding:
    7px 12px;

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

  border-radius:
    999px;

  background:
    rgba(255, 255, 255, 0.03);

  color: var(--muted-light);

  font-size: 0.76rem;
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;

  gap: 20px;

  margin-top: 25px;
}

.project-links a {
  color: var(--cyan);

  font-weight: 900;
}

.project-links a:hover {
  color: white;
}


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

.skills-section {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(130, 92, 255, 0.08),
      transparent 35%
    ),
    #080c18;
}

.skills-grid {
  display: grid;

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

  gap: 22px;
}

.skill-card {
  padding: 32px;

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

  border-radius:
    var(--radius-lg);

  background:
    rgba(18, 24, 42, 0.82);

  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.skill-card:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(130, 92, 255, 0.4);
}

.skill-card.featured {
  border-color:
    rgba(130, 92, 255, 0.5);

  background:
    linear-gradient(
      145deg,
      rgba(25, 24, 57, 0.94),
      rgba(14, 19, 37, 0.94)
    );
}

.skill-card h3 {
  margin:
    0 0
    24px;

  font-size: 1.35rem;
}

.skill-item {
  display: grid;

  gap: 5px;

  padding: 18px;

  border:
    1px solid rgba(255, 255, 255, 0.07);

  border-radius: 14px;

  background:
    rgba(7, 11, 23, 0.35);
}

.skill-item + .skill-item {
  margin-top: 14px;
}

.skill-item span {
  color: var(--cyan);

  font-size: 0.76rem;
  font-weight: 900;
}

.skill-item strong {
  color: white;

  font-size: 0.95rem;
}


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

.contact-section {
  background:
    #070b17;
}

.contact-card {
  position: relative;

  overflow: hidden;

  min-height: 460px;

  display: flex;
  align-items: center;

  padding: 70px;

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

  border-radius:
    30px;

  background:
    linear-gradient(
      135deg,
      rgba(13, 30, 45, 0.96),
      rgba(27, 21, 69, 0.96)
    );

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.2);
}

.contact-content {
  position: relative;
  z-index: 3;

  max-width: 820px;
}

.contact-content h2 {
  margin:
    22px 0
    18px;

  font-size:
    clamp(3rem, 6vw, 5.5rem);

  line-height: 1.03;

  letter-spacing: -0.05em;
}

.contact-content p {
  max-width: 730px;

  margin: 0;

  color: var(--muted);

  font-size: 1.05rem;

  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 30px;
}

.contact-decoration {
  position: absolute;

  right: -70px;
  bottom: -160px;

  width: 420px;
  height: 420px;

  border:
    1px solid rgba(130, 92, 255, 0.35);

  border-radius: 50%;
}

.contact-decoration::before {
  content: "";

  position: absolute;

  inset: 60px;

  border:
    1px solid rgba(67, 221, 255, 0.18);

  border-radius: 50%;
}


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

.footer {
  padding:
    30px 0;

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

  background: #060914;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer p {
  margin: 0;

  color: var(--muted);

  font-size: 0.86rem;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 900;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  cursor: pointer;

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

  border-radius: 14px;

  color: white;

  background:
    rgba(18, 24, 45, 0.92);

  box-shadow:
    0 15px 35px
    rgba(0, 0, 0, 0.25);

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(10px);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0);
}

.back-to-top:hover {
  background: var(--purple);
}


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

.js .reveal {
  opacity: 0;

  transform:
    translateY(24px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1080px) {

  :root {
    --container:
      min(100% - 40px, 1100px);
  }

  .hero-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, 0.85fr);

    gap: 35px;
  }

  .hero-title {
    font-size:
      clamp(3.5rem, 7vw, 5.8rem);
  }

  .cube {
    width: 180px;
    height: 180px;
  }

  .cube-face {
    font-size: 1.55rem;
  }

  .cube-front {
    transform: translateZ(90px);
  }

  .cube-back {
    transform:
      rotateY(180deg)
      translateZ(90px);
  }

  .cube-right {
    transform:
      rotateY(90deg)
      translateZ(90px);
  }

  .cube-left {
    transform:
      rotateY(-90deg)
      translateZ(90px);
  }

  .cube-top {
    transform:
      rotateX(90deg)
      translateZ(90px);
  }

  .cube-bottom {
    transform:
      rotateX(-90deg)
      translateZ(90px);
  }

  .skills-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .skill-card:last-child {
    grid-column:
      1 / -1;
  }

}


/* =========================================================
   MOBILE NAVIGATION / TABLET
========================================================= */

@media (max-width: 860px) {

  :root {
    --header-height: 76px;
    --container:
      min(100% - 32px, 760px);
  }

  .site-header {
    height:
      var(--header-height);
  }

  .logo {
    font-size: 1.45rem;
  }

  .menu-toggle {
    display: flex;

    position: relative;
    z-index: 1200;
  }

  .nav-links {
    position: absolute;

    top:
      calc(100% + 10px);

    left: 0;
    right: 0;

    display: grid;

    gap: 5px;

    padding: 14px;

    border:
      1px solid rgba(255, 255, 255, 0.12);

    border-radius: 18px;

    background:
      rgba(10, 15, 31, 0.98);

    box-shadow:
      0 30px 60px
      rgba(0, 0, 0, 0.42);

    backdrop-filter:
      blur(24px);

    opacity: 0;
    visibility: hidden;

    transform:
      translateY(-10px)
      scale(0.985);

    pointer-events: none;

    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;

    transform:
      translateY(0)
      scale(1);

    pointer-events: auto;
  }

  .nav-link {
    width: 100%;

    padding:
      13px 15px;

    border-radius: 10px;
  }

  .nav-link:hover,
  .nav-link.active {
    background:
      rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .nav-contact {
    width: 100%;

    margin-top: 5px;

    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 40px;

    padding-top: 70px;
    padding-bottom: 80px;
  }

  .hero-content {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-title {
    max-width: 720px;

    margin-inline: auto;

    font-size:
      clamp(3.6rem, 12vw, 6.5rem);
  }

  .typing-line {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 460px;
  }

  .label-one {
    left: 8%;
  }

  .label-two {
    right: 4%;
  }

  .label-three {
    left: 10%;
  }

  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card:last-child {
    grid-column: auto;
  }

  .contact-card {
    padding: 55px 42px;
  }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 640px) {

  :root {
    --container:
      min(100% - 24px, 560px);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 58px;
    padding-bottom: 70px;
  }

  .hero-title {
    margin-top: 24px;

    font-size:
      clamp(3.05rem, 15vw, 4.7rem);

    line-height: 0.98;
  }

  .hero-description {
    font-size: 0.98rem;

    line-height: 1.75;
  }

  .hero-actions {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;

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

    gap: 10px;
  }

  .stat-item {
    padding: 12px 5px;

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

    border-radius: 12px;

    background:
      rgba(255, 255, 255, 0.025);
  }

  .stat-item span {
    font-size: 0.68rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .cube-tilt {
    width: 200px;
    height: 200px;
  }

  .cube {
    width: 150px;
    height: 150px;
  }

  .cube-face {
    font-size: 1.25rem;
  }

  .cube-front {
    transform:
      translateZ(75px);
  }

  .cube-back {
    transform:
      rotateY(180deg)
      translateZ(75px);
  }

  .cube-right {
    transform:
      rotateY(90deg)
      translateZ(75px);
  }

  .cube-left {
    transform:
      rotateY(-90deg)
      translateZ(75px);
  }

  .cube-top {
    transform:
      rotateX(90deg)
      translateZ(75px);
  }

  .cube-bottom {
    transform:
      rotateX(-90deg)
      translateZ(75px);
  }

  .orbit-one {
    width: 320px;
    height: 130px;
  }

  .orbit-two {
    width: 280px;
    height: 110px;
  }

  .floating-label {
    padding:
      8px 10px;

    font-size: 0.66rem;
  }

  .label-one {
    top: 14%;
    left: 4%;
  }

  .label-two {
    right: 0;
    top: 48%;
  }

  .label-three {
    left: 2%;
    bottom: 13%;
  }

  .section {
    padding:
      90px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    margin-top: 18px;

    font-size:
      clamp(2.35rem, 11vw, 3.5rem);
  }

  .info-card {
    min-height: unset;

    padding: 28px;
  }

  .project-preview {
    min-height: 250px;

    padding: 24px;
  }

  .browser-content {
    padding: 22px;

    gap: 15px;
  }

  .mini-cube {
    width: 58px;
    height: 58px;
  }

  .project-body {
    padding: 26px 24px;
  }

  .velora-frame {
    padding: 22px;
  }

  .velora-copy {
    left: 22px;
    bottom: 22px;
  }

  .velora-orb {
    width: 72px;
    height: 72px;

    right: 22px;
  }

  .skill-card {
    padding: 25px;
  }

  .contact-card {
    min-height: 430px;

    padding:
      45px 25px;
  }

  .contact-content h2 {
    font-size:
      clamp(2.8rem, 13vw, 4.4rem);
  }

  .contact-actions {
    display: grid;
  }

  .footer-inner {
    flex-direction: column;

    text-align: center;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .logo {
    font-size: 1.32rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .eyebrow,
  .section-label {
    font-size: 0.69rem;

    letter-spacing: 0.13em;
  }

  .hero-title {
    font-size:
      clamp(2.75rem, 14vw, 3.8rem);
  }

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

  .hero-visual {
    min-height: 340px;
  }

  .floating-label {
    display: none;
  }

  .project-top {
    padding:
      0 16px;
  }

  .project-category {
    font-size: 0.64rem;
  }

  .browser-content {
    flex-direction: column;

    text-align: center;
  }

  .velora-orb {
    width: 64px;
    height: 64px;
  }

  .project-links {
    flex-direction: column;

    gap: 10px;
  }

}


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

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

  .cube {
    transform:
      rotateX(-15deg)
      rotateY(35deg);
  }

  .particle {
    display: none;
  }

}
