:root {
  --background: #07111f;
  --background-light: #0b192b;
  --surface: #10243b;
  --surface-light: rgba(255, 255, 255, 0.055);

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8fa3b8;

  --primary: #38bdf8;
  --primary-light: #7dd3fc;
  --purple: #a78bfa;
  --green: #4ade80;

  --border: rgba(255, 255, 255, 0.12);
  --container: 1160px;
  --header-height: 78px;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --small-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);

  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 34px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;

  background: var(--background);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--primary);
  color: var(--background);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.blue {
  color: var(--primary);
}

/* NAVIGATION */

.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;

  border-bottom: 1px solid transparent;

  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.header.scrolled {
  border-color: var(--border);
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 850;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--purple)
    );

  color: var(--background);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  position: relative;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;

  width: 0;
  height: 2px;

  margin-inline: auto;
  border-radius: 999px;
  background: var(--primary);

  content: "";
  transition: width 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-link {
  padding: 10px 18px;

  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);

  font-size: 0.88rem;
  font-weight: 750;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.contact-link:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;

  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;

  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);

  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;

  padding:
    calc(var(--header-height) + 75px)
    0
    90px;
}

.background-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-one {
  top: 5%;
  right: -180px;
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.16);
}

.glow-two {
  bottom: -250px;
  left: -180px;
  width: 450px;
  height: 450px;
  background: rgba(167, 139, 250, 0.12);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 80px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 22px;
  padding: 8px 14px;

  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);

  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.online-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--green);
}

.online-dot::after {
  position: absolute;
  inset: -4px;

  border: 1px solid var(--green);
  border-radius: inherit;

  content: "";
  animation: pulse 1.8s infinite;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 750;
}

.hero h1 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 880;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.gradient-text {
  display: inline-block;
  color: transparent;

  background:
    linear-gradient(
      90deg,
      var(--primary-light),
      var(--purple)
    );

  background-clip: text;
  -webkit-background-clip: text;
}

.gradient-text.changing {
  animation: word-change 350ms ease;
}

.hero-description {
  max-width: 640px;
  margin: 27px 0 0;

  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 23px;

  border: 1px solid transparent;
  border-radius: 14px;

  font-weight: 760;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.primary-button {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light)
    );

  color: var(--background);
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.22);
}

.secondary-button {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.secondary-button:hover {
  background: rgba(56, 189, 248, 0.1);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.hero-facts > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.fact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;

  border-radius: 11px;
  background: rgba(56, 189, 248, 0.08);
}

.hero-facts p {
  display: grid;
  margin: 0;
}

.hero-facts strong {
  font-size: 0.84rem;
}

.hero-facts p span {
  color: var(--muted);
  font-size: 0.74rem;
}

.hero-image-wrapper {
  position: relative;
  width: min(420px, 100%);
  margin-inline: auto;
}

.image-decoration {
  position: absolute;
  inset: -30px;

  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 50%;

  animation: rotate 25s linear infinite;
}

.hero-image {
  position: relative;
  z-index: 2;

  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;

  border: 10px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-large);

  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-label {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 20px;
  left: 18px;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.88);

  backdrop-filter: blur(15px);
}

.image-label div {
  display: grid;
}

.image-label strong {
  font-size: 0.9rem;
}

.image-label small {
  color: var(--muted);
  font-size: 0.7rem;
}

.floating-tag {
  position: absolute;
  z-index: 5;

  padding: 10px 14px;

  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(7, 17, 31, 0.92);

  box-shadow: var(--small-shadow);
  font-size: 0.76rem;
  font-weight: 750;

  animation: float 4s ease-in-out infinite;
}

.tag-one {
  top: 15%;
  left: -12%;
}

.tag-two {
  top: 36%;
  right: -13%;
  animation-delay: -2s;
}

.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;

  display: flex;
  gap: 10px;

  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transform: translateX(-50%);
}

/* HEADINGS */

.section-heading {
  max-width: 720px;
  margin-bottom: 60px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-label {
  margin: 0 0 10px;

  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.skills-introduction h2,
.contact-content h2 {
  margin: 0;

  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading > p:last-child,
.skills-introduction > p,
.contact-content > p:not(.section-label) {
  margin: 18px 0 0;
  color: var(--muted);
}

/* ABOUT */

.about {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 80px;
}

.about-card {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface-light);

  box-shadow: var(--shadow);
}

.about-letter {
  display: grid;
  min-height: 390px;
  place-items: center;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.22),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      #0e7490,
      #1d4ed8 48%,
      #6d28d9
    );

  font-size: clamp(9rem, 20vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.about-card-content {
  padding: 25px;
}

.about-card-content p {
  margin: 0;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card-content h3 {
  margin: 3px 0;
  font-size: 1.65rem;
}

.about-card-content span {
  color: var(--muted);
  font-size: 0.82rem;
}

.about-content > p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.about-content .large-text {
  color: var(--text);
  font-size: 1.15rem;
}

.about-content strong {
  color: var(--primary);
}

blockquote {
  margin: 30px 0;
  padding: 20px 23px;

  border-left: 3px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: rgba(56, 189, 248, 0.06);

  color: var(--text-soft);
  font-style: italic;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.quick-facts article {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-light);
}

.quick-facts article > span {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 850;
}

.quick-facts article div {
  display: grid;
}

.quick-facts strong {
  color: var(--text);
  font-size: 0.8rem;
}

.quick-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

/* INTERESTS */

.interests {
  background:
    radial-gradient(
      circle at 90% 30%,
      rgba(167, 139, 250, 0.07),
      transparent 30%
    );
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hobby-card {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface-light);

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.hobby-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--small-shadow);
  transform: translateY(-8px);
}

.hobby-image-wrapper {
  position: relative;
  overflow: hidden;
}

.hobby-image {
  width: 100%;
  height: 230px;
  object-fit: cover;

  transition: transform 500ms ease;
}

.hobby-card:hover .hobby-image {
  transform: scale(1.06);
}

.hobby-number {
  position: absolute;
  top: 15px;
  right: 15px;

  padding: 6px 10px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.75);

  font-size: 0.68rem;
  font-weight: 850;

  backdrop-filter: blur(10px);
}

.hobby-content {
  position: relative;
  padding: 28px;
}

.hobby-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;

  margin-top: -52px;
  margin-bottom: 18px;

  border: 4px solid var(--background);
  border-radius: 14px;
  background: var(--surface);

  font-size: 1.3rem;
}

.hobby-content h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.hobby-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hobby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.hobby-tags span {
  padding: 5px 9px;

  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);

  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 750;
}

/* SKILLS */

.skills {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 80px;
}

.skills-introduction {
  position: sticky;
  top: calc(var(--header-height) + 35px);
}

.skill-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 35px;
}

.skill-summary div {
  display: grid;
  padding: 18px 10px;

  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-light);

  text-align: center;
}

.skill-summary strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.skill-summary span {
  color: var(--muted);
  font-size: 0.63rem;
}

.skill-list {
  display: grid;
  gap: 14px;
}

.skill-item {
  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-light);

  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.skill-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(5px);
}

.skill-information {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.skill-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;

  border-radius: 13px;
  background: rgba(56, 189, 248, 0.08);

  font-size: 1.2rem;
}

.skill-information h3 {
  margin: 0;
  font-size: 0.96rem;
}

.skill-information p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.skill-information > strong {
  color: var(--primary);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.skill-progress {
  height: 6px;
  overflow: hidden;

  margin-top: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.skill-progress span {
  display: block;
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--purple)
    );

  transition: width 1.2s ease;
}

.skill-list.visible .skill-progress span {
  width: var(--level);
}

/* GOALS */

.goals {
  background:
    radial-gradient(
      circle at 15% 45%,
      rgba(56, 189, 248, 0.07),
      transparent 28%
    );
}

.dream-image-wrapper {
  position: relative;
  overflow: hidden;

  margin-bottom: 35px;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.dream-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.dream-image-wrapper::after {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(7, 17, 31, 0.95),
      transparent 70%
    );

  content: "";
}

.dream-overlay {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: 35px;
  left: 40px;
}

.dream-overlay p {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dream-overlay h3 {
  max-width: 700px;
  margin: 0;

  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.goal-card {
  padding: 30px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface-light);

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.goal-card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: var(--small-shadow);
  transform: translateY(-7px);
}

.goal-card.featured {
  background:
    linear-gradient(
      145deg,
      rgba(56, 189, 248, 0.1),
      rgba(167, 139, 250, 0.08)
    );
}

.goal-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;

  margin-bottom: 35px;

  border-radius: 17px;
  background: rgba(56, 189, 248, 0.08);

  font-size: 1.4rem;
}

.goal-period {
  display: inline-block;

  margin-bottom: 11px;
  padding: 5px 10px;

  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);

  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.goal-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.goal-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.goal-card ul {
  display: grid;
  gap: 7px;

  margin: 22px 0 0;
  padding: 18px 0 0;

  border-top: 1px solid var(--border);
  list-style: none;
}

.goal-card li {
  position: relative;
  padding-left: 20px;

  color: var(--text-soft);
  font-size: 0.78rem;
}

.goal-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.dream-quote {
  max-width: 850px;
  margin: 55px auto 0;
  border-radius: var(--radius-medium);
  text-align: center;
}

/* CONTACT */

.contact {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 65px;

  padding: clamp(35px, 6vw, 70px);

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(56, 189, 248, 0.12),
      transparent 30%
    ),
    var(--surface-light);

  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 35px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-detail > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
}

.contact-detail div {
  display: grid;
}

.contact-detail small {
  color: var(--muted);
  font-size: 0.66rem;
}

.contact-detail strong {
  font-size: 0.8rem;
}

.social-panel {
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(7, 17, 31, 0.55);
}

.social-panel > p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.social-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;

  padding: 14px 0;

  border-bottom: 1px solid var(--border);

  transition: transform 180ms ease;
}

.social-link:hover {
  transform: translateX(5px);
}

.social-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);

  color: var(--primary);
  font-weight: 850;
}

.social-link div {
  display: grid;
}

.social-link strong {
  font-size: 0.83rem;
}

.social-link small {
  color: var(--muted);
  font-size: 0.66rem;
}

.social-link > span:last-child {
  color: var(--primary);
}

.copy-email-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 20px;
  padding: 13px;

  cursor: pointer;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light)
    );

  color: var(--background);
  font-weight: 800;
}

/* FOOTER */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.back-to-top {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

/* ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 4px;
}

@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(0.7);
  }

  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes word-change {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 980px) {
  .hero-layout,
  .about-layout,
  .skills-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .about-layout,
  .skills-layout {
    gap: 55px;
  }

  .hero-image-wrapper {
    width: min(420px, calc(100% - 30px));
  }

  .hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-grid {
    grid-template-columns: 1fr;
  }

  .skills-introduction {
    position: static;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(var(--container), calc(100% - 30px));
  }

  .section {
    padding: 80px 0;
  }

  .menu-button {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 15px;
    left: 15px;

    display: flex;
    max-height: 0;
    overflow: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.98);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
      max-height 250ms ease,
      padding 250ms ease,
      opacity 200ms ease,
      transform 250ms ease;

    backdrop-filter: blur(20px);
  }

  .nav-menu.open {
    max-height: 500px;
    padding: 18px;
    border-color: var(--border);

    box-shadow: var(--shadow);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .contact-link {
    margin-top: 5px;
    text-align: center;
  }

  .hero {
    min-height: auto;

    padding:
      calc(var(--header-height) + 65px)
      0
      90px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-facts {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .floating-tag {
    font-size: 0.67rem;
  }

  .tag-one {
    left: -3%;
  }

  .tag-two {
    right: -3%;
  }

  .scroll-indicator {
    display: none;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .quick-facts,
  .hobby-grid,
  .skill-summary {
    grid-template-columns: 1fr;
  }

  .about-letter {
    min-height: 330px;
  }

  .dream-image {
    height: 360px;
  }

  .dream-overlay {
    right: 22px;
    bottom: 25px;
    left: 22px;
  }

  .contact-layout {
    gap: 40px;
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .skill-information {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .skill-information > strong {
    grid-column: 2;
  }

  .dream-image {
    height: 310px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}