:root {
  --bg: #000000;
  --bg-soft: #000000;
  --surface: rgba(0, 0, 0, 0.88);
  --surface-strong: rgba(0, 0, 0, 0.96);
  --surface-light: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f8ff;
  --muted: #a9b8d0;
  --accent: #63e6ff;
  --accent-strong: #8b5cf6;
  --accent-warm: #ff8f5c;
  --success: #72f1b8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --nav-bg: rgba(0, 0, 0, 0.3);
  --nav-scrolled-bg: rgba(0, 0, 0, 0.94);
  --nav-text: rgba(244, 248, 255, 0.9);
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
  --overlay-bg:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(0, 0, 0, 0.92);
  --grid-line: rgba(255, 255, 255, 0.02);
  --section-outline: rgba(255, 255, 255, 0.03);
  --toggle-track: rgba(255, 255, 255, 0.12);
  --toggle-thumb: linear-gradient(135deg, var(--accent), var(--accent-strong));
  --toggle-text: var(--text);
  --badge-text: #cce7ff;
  --eyebrow-text: #d7e9ff;
  --detail-label-text: #86cfff;
  --footer-link: #d8e6fb;
  --footer-heading: #f4f8ff;
  --footer-bg:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(0, 0, 0, 0.95);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-divider: rgba(255, 255, 255, 0.4);
  --button-primary-text: #04111d;
  --button-secondary-hover-text: #ffffff;
}

body.light-theme {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-light: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.08);
  --text: #10203d;
  --muted: #536684;
  --accent: #1f7cff;
  --accent-strong: #7c4dff;
  --accent-warm: #ff8a57;
  --success: #00b67a;
  --shadow: 0 24px 70px rgba(56, 82, 128, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-scrolled-bg: rgba(255, 255, 255, 0.96);
  --nav-text: rgba(16, 32, 61, 0.9);
  --nav-hover-bg: rgba(0, 0, 0, 0.05);
  --overlay-bg:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.94)
    ),
    rgba(255, 255, 255, 0.94);
  --grid-line: rgba(0, 0, 0, 0.025);
  --section-outline: rgba(0, 0, 0, 0.05);
  --toggle-track: rgba(16, 32, 61, 0.12);
  --toggle-thumb: linear-gradient(135deg, #f7b733, #fc4a1a);
  --toggle-text: #10203d;
  --badge-text: #315da8;
  --eyebrow-text: #3f5f8f;
  --detail-label-text: #2f6fcc;
  --footer-link: #536684;
  --footer-heading: #10203d;
  --footer-bg:
    linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01)),
    rgba(255, 255, 255, 0.98);
  --footer-border: rgba(0, 0, 0, 0.08);
  --footer-divider: rgba(0, 0, 0, 0.18);
  --button-primary-text: #ffffff;
  --button-secondary-hover-text: #10203d;
}

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

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

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-weight: 500;
  line-height: 1.65;
}

body.light-theme {
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

strong {
  font-weight: 700 !important;
}

.lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--muted);
}

.section {
  position: relative;
  padding: 48px 32px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 20px 24px;
  border: 1px solid var(--section-outline);
  border-radius: 36px;
  pointer-events: none;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(99, 230, 255, 0.65);
}

.subsection-hr {
  width: 96px;
  height: 2px;
  margin: 18px auto 28px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.btn-img {
  border: none;
  height: 18px;
}

.btn-img-lg {
  height: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--eyebrow-text);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(114, 241, 184, 0.8);
}

/* .content-panel,
#win,
#mts,
.intro-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
} */
/* NAVBAR */

#topnav {
  padding: 18px 34px;
  background: var(--nav-bg);
  transition: all 0.35s ease;
}

#topnav.scrolled {
  background: var(--nav-scrolled-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

#name-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at top left,
      rgba(99, 230, 255, 0.38),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(6, 15, 30, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

#name-logo::after {
  content: "SK";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(99, 230, 255, 0.18);
}

.navbar-toggler-icon {
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(244,248,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

body.light-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(16,32,61,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
  height: 100%;
}

.nav-item {
  margin-left: 10px;
  padding: 12px 18px !important;
  border-radius: 999px;
  color: var(--nav-text) !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.nav-item.scrolled {
  color: var(--nav-text) !important;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text) !important;
  background: var(--nav-hover-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.light-theme .nav-item:hover,
body.light-theme .nav-item.active {
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(31, 124, 255, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--toggle-text);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(99, 230, 255, 0.18);
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--toggle-track);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

body.light-theme .theme-toggle-thumb {
  transform: translateX(22px);
}

.theme-toggle-label {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* HERO */

#cover {
  min-height: 100vh;
  width: 100%;
  padding: 112px 32px 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#cover::before,
#cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  z-index: 0;
}

#cover::before {
  width: 240px;
  height: 240px;
  top: 14%;
  right: 12%;
  background: rgba(99, 230, 255, 0.22);
}

#cover::after {
  width: 300px;
  height: 300px;
  left: 10%;
  bottom: 14%;
  background: rgba(139, 92, 246, 0.2);
}

.overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  background: var(--overlay-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--badge-text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.display-1,
.display-3,
.display-4,
h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--text);
}

.hero-title,
.display-1,
.display-3,
.display-4,
.card-title,
#footer h3 {
  font-family: "Space Grotesk", sans-serif;
}

.display-1 {
  margin-top: 22px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.display-3 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
}

.display-4 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
}

.hero-text {
  max-width: 420px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-subtext {
  max-width: 380px;
  margin-top: 10px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-btn,
#resume-btn,
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.hero-btn:hover,
#resume-btn:hover,
.card-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-primary,
#resume-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-primary-text);
  box-shadow: 0 14px 34px rgba(99, 230, 255, 0.26);
}

.hero-btn-secondary,
.card-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.hero-btn-secondary:hover,
.card-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--button-secondary-hover-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.hero-stat {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-video-shell {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 508px;
  object-fit: cover;
  background: transparent;
}

.hero-video-dark {
  display: none;
}

body.light-theme .hero-video-light {
  display: block;
}

body.light-theme .hero-video-dark {
  display: none;
}

body:not(.light-theme) .hero-video-light {
  display: none;
}

body:not(.light-theme) .hero-video-dark {
  display: block;
}

/* ABOUT */

.intro-shell {
  padding: 34px;
}

.intro-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#intro {
  max-width: 1100px;
  margin: 0 auto;
}

.intro-grid {
  margin-bottom: 34px;
}

#intro .col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

#intro .img-col {
  align-items: center;
}

.profile-frame {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 16px;
  border-radius: 38px;
  background: linear-gradient(
    145deg,
    rgba(99, 230, 255, 0.18),
    rgba(139, 92, 246, 0.18)
  );
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 38px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(99, 230, 255, 0.8),
    rgba(139, 92, 246, 0.6)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

#profile-img {
  width: 280px;
  height: 280px;
  border: 6px solid rgba(255, 255, 255, 0.08);
  background: url("../img/profile_pic.png") center/cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--detail-label-text);
}

.detail-value {
  color: var(--text);
  font-weight: 600;
}

.content-panel {
  padding: 28px;
  margin-top: 28px;
}

#about-me,
#connect {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#connect-links .row {
  display: flex;
  justify-content: center;
}

#connect-links .text-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.connect-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 230, 255, 0.3);
}

.connect-icon {
  width: 28px;
  height: 28px;
  margin: 0;
}

/* TECH */

#tech .container,
#projects .container {
  width: min(1220px, 100%);
  max-width: 1220px;
}

#win,
#mts {
  height: 100%;
  padding: 34px 28px;
}

#mts {
  display: flex;
  flex-direction: column;
}

#win {
  position: relative;
  overflow: hidden;
}

#win::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 230, 255, 0.25),
    transparent 65%
  );
  pointer-events: none;
}

#win h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.tech-logo {
  height: 64px;
  width: auto;
  max-width: 112px;
  margin: 12px 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: block;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.tech-logo:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 230, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.tech-logo-sm {
  height: 58px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 20px;
}

.tech-grid .tech-logo {
  width: 100%;
  max-width: none;
  height: 72px;
  margin: 0;
  justify-self: stretch;
  object-fit: contain;
  object-position: center;
}

.tech-grid .tech-logo-sm {
  height: 72px;
}

.tech-grid .tech-logo-wordmark {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

body.light-theme .tech-grid .tech-logo-wordmark {
  background: rgba(16, 32, 61, 0.04);
  border-color: rgba(16, 32, 61, 0.08);
}

#resume-btn {
  margin-top: 8px;
}

/* PROJECTS */

#project-cards-region .row {
  row-gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 230, 255, 0.32);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.card-header {
  border: none;
  border-radius: 0 !important;
  background: transparent;
}

.card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 24px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    var(--surface);
  color: var(--text);
}

.card-title {
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text);
}

.used-skills {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body .py-3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px !important;
}

.card-btn {
  flex: 1;
  background: var(--surface-light);
  border-color: var(--border);
  color: var(--text);
}

.card-body .lead {
  color: var(--muted);
}

.card-body .lead.used-skills {
  color: var(--accent);
}

.card-btn .btn-img {
  flex-shrink: 0;
}

body.light-theme .card-body {
  background:
    linear-gradient(180deg, rgba(31, 124, 255, 0.05), transparent 24%),
    var(--surface);
}

body.light-theme .card-btn {
  background: rgba(16, 32, 61, 0.03);
  border-color: rgba(16, 32, 61, 0.08);
}

/* FOOTER */

#footer {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  background: var(--footer-bg);
  border: 1px solid var(--footer-border);
}

#footer h3 {
  font-size: 1.45rem;
  color: var(--footer-heading);
}

#footer hr {
  width: 180px;
  margin: 18px auto;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--footer-divider),
    transparent
  );
}

#footer .lead,
#footer a {
  color: var(--footer-link) !important;
}

/* MEDIA QUERIES */

@media (max-width: 991px) {
  #topnav {
    padding: 14px 16px;
    background: var(--nav-scrolled-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: var(--nav-scrolled-bg);
  }

  .nav-item,
  .nav-item.scrolled {
    margin-left: 0;
    margin-bottom: 8px;
    text-align: center;
  }

  .theme-toggle {
    justify-content: center;
    width: 100%;
    margin: 8px 0 0;
  }

  #cover {
    padding-top: 104px;
  }

  .overlay {
    padding: 40px 28px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-video-shell {
    max-width: 460px;
    min-height: 0;
    margin: 0 auto;
  }

  .hero-video {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

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

  .card-body .py-3 {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 32px 14px;
  }

  .section::before {
    inset: 8px 6px;
    border-radius: 28px;
  }

  .section-heading {
    margin-bottom: 18px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  #cover {
    min-height: auto;
    padding: 84px 12px 18px;
  }

  .overlay {
    padding: 24px 16px;
    border-radius: 28px;
  }

  .hero-layout {
    gap: 22px;
  }

  .hero-badge,
  .eyebrow {
    font-size: 0.76rem;
  }

  .display-1 {
    font-size: 2.55rem;
  }

  .display-3 {
    font-size: 1.8rem;
  }

  .display-4 {
    font-size: 1.5rem;
  }

  .hero-text,
  .lead {
    font-size: 0.98rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtext {
    font-size: 0.92rem;
  }

  .hero-actions,
  .hero-stats {
    margin-top: 22px;
  }

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

  .hero-stat {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-video-shell {
    width: 100%;
  }

  .hero-video {
    min-height: 0;
  }

  .hero-btn,
  #resume-btn,
  .card-btn {
    width: 100%;
  }

  .intro-shell,
  #win,
  #mts,
  .content-panel,
  .card-body {
    padding: 20px 16px;
  }

  #intro {
    width: 100%;
  }

  .intro-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .detail-grid {
    gap: 12px;
  }

  .detail-item {
    padding: 14px 16px;
    border-radius: 16px;
  }

  #profile-img {
    width: 190px;
    height: 190px;
  }

  .connect-link {
    min-width: calc(50% - 10px);
    justify-content: center;
    padding: 12px 14px;
  }

  .connect-link span {
    font-size: 0.9rem;
  }

  .tech-logo {
    height: 52px;
    max-width: 92px;
    margin: 8px;
    padding: 10px;
  }

  .tech-logo-sm {
    height: 48px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .tech-grid .tech-logo,
  .tech-grid .tech-logo-sm {
    width: 100%;
    height: 56px;
    padding: 10px;
  }

  .card {
    border-radius: 24px;
  }

  .card:hover {
    transform: none;
  }

  .card-title {
    font-size: 1.22rem;
  }

  #footer {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 22px 8px;
  }

  .overlay {
    padding: 22px 14px;
  }

  .hero-layout {
    gap: 18px;
  }

  .display-1 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .display-4 {
    font-size: 1.3rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .hero-subtext {
    font-size: 0.85rem;
  }

  .hero-stat {
    padding: 14px;
  }

  .hero-video-shell {
    width: 100%;
  }

  .section-heading {
    font-size: 0.78rem;
    padding: 9px 12px;
  }

  .connect-link {
    min-width: 100%;
  }

  #profile-img {
    width: 168px;
    height: 168px;
  }

  .content-panel,
  .intro-shell,
  #win,
  #mts,
  .card-body {
    padding: 18px 14px;
  }

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

  .tech-grid .tech-logo,
  .tech-grid .tech-logo-sm {
    height: 54px;
  }

  .subsection-hr {
    margin-bottom: 22px;
  }
}
