:root {
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --bg-main: #eef3ff;
  --bg-panel: #ffffff;
  --bg-soft: #f6f9ff;
  --ink-1: #0d1b34;
  --ink-2: #2a3f62;
  --ink-3: #58709a;
  --accent-1: #0ab0ff;
  --accent-2: #00d4a6;
  --accent-3: #ff7a18;
  --dark-1: #020d1f;
  --dark-2: #071736;
  --border-soft: rgba(9, 45, 104, 0.1);
  --shadow-soft: 0 10px 35px rgba(9, 36, 80, 0.1);
  --shadow-strong: 0 18px 50px rgba(5, 21, 49, 0.18);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-w: 286px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-1);
  background:
    radial-gradient(circle at 12% 8%, rgba(10, 176, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 24, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-main) 48%, #f4f7ff 100%);
  overflow-x: hidden;
}

a {
  color: var(--accent-1);
  text-decoration: none;
}

a:hover {
  color: #058bc9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 99999;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(10, 176, 255, 0.8);
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(560px 280px at 30% 0%, rgba(10, 176, 255, 0.1), transparent 70%),
    radial-gradient(460px 300px at 90% 20%, rgba(255, 122, 24, 0.1), transparent 75%);
}

#header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  padding: 26px 16px;
  z-index: 9998;
  background:
    linear-gradient(180deg, rgba(2, 13, 31, 0.95) 0%, rgba(4, 26, 57, 0.9) 100%),
    radial-gradient(circle at 10% 15%, rgba(10, 176, 255, 0.18), transparent 45%);
  border-right: 1px solid rgba(129, 187, 255, 0.18);
  box-shadow: 18px 0 40px rgba(2, 12, 26, 0.24);
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

#main {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 2;
}

.profile {
  text-align: center;
}

.profile img {
  width: 112px;
  border: 4px solid rgba(120, 212, 255, 0.5);
  box-shadow: 0 12px 22px rgba(1, 180, 255, 0.25);
}

.profile h1 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 34px;
  color: #ffffff;
}

.profile h1 a,
.profile h1 a:hover {
  color: #ffffff;
}

.profile-tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #89b8f3;
}

.social-links {
  margin-top: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #d8e9ff;
  background: linear-gradient(145deg, rgba(9, 41, 85, 0.9), rgba(12, 62, 125, 0.95));
  border: 1px solid rgba(10, 176, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 24px rgba(10, 176, 255, 0.35);
  background: linear-gradient(145deg, rgba(8, 66, 132, 0.95), rgba(8, 106, 186, 0.95));
}

.nav-menu {
  padding-top: 16px;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-bottom: 8px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #adc8ef;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.26s ease;
}

.nav-menu a i {
  font-size: 20px;
  color: #72a9ea;
  transition: color 0.26s ease;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus {
  background: rgba(12, 96, 175, 0.32);
  border-color: rgba(112, 188, 255, 0.45);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-menu a:hover i,
.nav-menu .active i {
  color: #3ce3ff;
}

.profile-footer {
  margin-top: 18px;
  text-align: center;
  color: #8fb0dd;
  font-size: 12px;
  line-height: 1.5;
}

.mobile-nav-toggle {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), #0a86ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(0, 96, 180, 0.44);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(3, 17, 38, 0.94) 5%, rgba(8, 26, 56, 0.88) 48%, rgba(7, 39, 74, 0.9) 100%),
    url("../img/Dev.png") center right / cover no-repeat;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(39, 163, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 163, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 48% 52%, #000 20%, transparent 82%);
  animation: driftGrid 28s linear infinite;
}

@keyframes driftGrid {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(100, 219, 255, 0.5);
  background: rgba(9, 42, 82, 0.72);
  color: #7be6ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

#hero h1 {
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 8px 36px rgba(5, 16, 39, 0.62);
}

#hero p {
  margin-bottom: 28px;
  max-width: 760px;
  font-size: clamp(18px, 2.5vw, 25px);
  color: #e9f3ff;
  font-weight: 500;
}

#hero .hero-intro-line {
  display: block;
}

#hero .hero-typed-line {
  display: block;
  margin-top: 6px;
}

#hero p .typed {
  color: #64efff;
  border-bottom: 3px solid rgba(100, 239, 255, 0.56);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-1), #0189d6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 145, 220, 0.35);
}

.btn-hero-primary:hover {
  color: #fff;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eaf6ff;
  border: 1px solid rgba(135, 206, 255, 0.48);
}

.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  max-width: 940px;
}

.metric-card {
  min-height: 128px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(116, 215, 255, 0.35);
  background: linear-gradient(155deg, rgba(7, 35, 68, 0.8), rgba(6, 54, 96, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 25px rgba(4, 22, 44, 0.35);
}

.metric-card .metric-value {
  margin-bottom: 4px;
  color: #7ce8ff;
  font-size: 34px;
  font-family: var(--font-display);
  font-weight: 700;
}

.metric-card p {
  margin: 0;
  color: #d8ebff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

section {
  padding: 90px 0;
}

.section-panel {
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #eff5ff 0%, #e8f0ff 100%);
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.section-title p {
  max-width: 880px;
  color: var(--ink-2);
  font-size: 18px;
}

.portrait-card,
.about-card,
.progress-card,
.contact-card,
.resume-item,
.portfolio-wrap {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.portrait-card {
  overflow: hidden;
  height: 100%;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portrait-card:hover img {
  transform: scale(1.03);
}

.about-card {
  padding: 26px;
}

.about-card h3 {
  font-size: 34px;
  margin-bottom: 12px;
}

.about-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-card li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  color: var(--ink-2);
}

.about-card li i {
  margin-right: 8px;
  color: var(--accent-1);
  font-size: 18px;
}

.skills .progress-card {
  padding: 22px;
}

.skills .progress {
  display: block;
  margin-bottom: 16px;
  background: transparent;
}

.skills .skill {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skills .progress-bar-wrap {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dce7fb;
}

.skills .progress-bar {
  width: 0;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b7ff, #00d7a5, #6de388);
  box-shadow: 0 8px 14px rgba(7, 146, 212, 0.34);
  transition: width 1.15s cubic-bezier(0.21, 1, 0.31, 1);
}

.resume-title {
  margin: 10px 0 16px;
  font-size: 30px;
}

.resume-top-row {
  margin-bottom: 6px;
}

.resume-bottom-row {
  margin-top: 2px;
}

.resume-item {
  padding: 22px;
  margin-bottom: 18px;
  border-left: 4px solid rgba(10, 176, 255, 0.42);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.resume-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.resume-item h4 {
  margin-bottom: 8px;
  font-size: 23px;
}

.resume-item h5 {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #05335f;
  background: rgba(10, 176, 255, 0.16);
}

.resume-item p,
.resume-item li {
  color: var(--ink-2);
}

.proof-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.proof-kpi {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: #0a9ee2;
}

.proof-card h3 {
  margin-bottom: 10px;
  font-size: 27px;
}

.proof-card p {
  margin-bottom: 12px;
  color: var(--ink-2);
}

.proof-card small {
  color: #0078b8;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#portfolio-flters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

#portfolio-flters li {
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.24s ease;
}

#portfolio-flters li:hover,
#portfolio-flters li.filter-active {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-1), #0095d8);
  box-shadow: 0 8px 18px rgba(1, 147, 216, 0.34);
}

.portfolio-wrap {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portfolio-wrap img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.portfolio-item .portfolio-wrap {
  min-height: 100%;
}

.portfolio-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.portfolio-wrap:hover img {
  transform: scale(1.08);
}

.portfolio-content {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 14px;
  border-radius: 12px;
  color: #eaf4ff;
  background: linear-gradient(165deg, rgba(2, 18, 42, 0.9), rgba(3, 39, 75, 0.84));
  border: 1px solid rgba(117, 205, 255, 0.38);
  backdrop-filter: blur(6px);
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-wrap:hover .portfolio-content {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-content h3 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #ffffff;
}

.portfolio-content p {
  margin: 0;
  color: #d5e9ff;
  font-size: 14px;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 198, 255, 0.18);
  border: 1px solid rgba(153, 220, 255, 0.44);
  color: #dff5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #c9f1ff;
  background: rgba(10, 176, 255, 0.22);
}

.portfolio-links {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

.portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgba(10, 176, 255, 0.95), rgba(0, 212, 166, 0.95));
}

.portfolio-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.95), rgba(247, 82, 44, 0.95));
}

.portfolio-links a,
.portfolio-links button {
  box-shadow: 0 8px 18px rgba(2, 24, 43, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-links a:hover,
.portfolio-links button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 24, 43, 0.36);
}

.portfolio-lightbox-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.case-study-modal {
  border: 1px solid rgba(123, 203, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(165deg, #081d3f 0%, #0c2d58 100%);
  color: #eef6ff;
}

.case-study-modal .modal-header,
.case-study-modal .modal-footer {
  border-color: rgba(133, 203, 255, 0.2);
}

.case-study-modal .modal-title {
  color: #ffffff;
  font-size: 1.35rem;
}

.case-study-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(1.2);
}

.case-study-lead {
  color: #d9ebff;
  margin-bottom: 14px;
}

.case-study-carousel {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(124, 198, 255, 0.34);
  background: rgba(4, 26, 52, 0.82);
}

.case-study-carousel .carousel-item img {
  width: 100%;
  height: min(58vh, 460px);
  object-fit: contain;
  background: rgba(3, 23, 47, 0.92);
}

.case-study-carousel .carousel-control-prev,
.case-study-carousel .carousel-control-next {
  width: 12%;
}

.case-study-modal .modal-footer {
  gap: 10px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-study-grid > div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(6, 35, 68, 0.7);
  border: 1px solid rgba(120, 201, 255, 0.24);
}

.case-study-grid h4 {
  margin-bottom: 8px;
  font-size: 14px;
  color: #77dcff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-study-grid p {
  margin-bottom: 0;
  color: #e5f2ff;
  font-size: 14px;
}

.contact-card {
  padding: 26px;
}

.contact .info > div {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(17, 78, 152, 0.1);
}

.contact .info i {
  float: left;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(10, 176, 255, 0.12);
  color: var(--accent-1);
  font-size: 21px;
}

.contact .info h3 {
  margin-bottom: 6px;
  font-size: 23px;
}

.contact .info p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact iframe {
  border-radius: 14px;
  border: 1px solid rgba(17, 78, 152, 0.15);
  box-shadow: 0 12px 28px rgba(7, 31, 67, 0.15);
}

.mini-contact-form {
  height: 100%;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(170deg, #071e42 0%, #0b2d58 100%);
  border: 1px solid rgba(116, 202, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 32px rgba(5, 19, 42, 0.35);
}

.mini-contact-form h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 30px;
}

.mini-contact-form p {
  margin-bottom: 16px;
  color: #d6e9ff;
}

.mini-contact-form .form-group {
  margin-bottom: 14px;
}

.mini-contact-form label {
  display: block;
  margin-bottom: 6px;
  color: #bde8ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-contact-form input,
.mini-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(124, 215, 255, 0.35);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(1, 18, 41, 0.58);
  color: #f4fbff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-contact-form input:focus,
.mini-contact-form textarea:focus {
  border-color: #61d8ff;
  box-shadow: 0 0 0 3px rgba(86, 208, 255, 0.2);
  transform: translateY(-1px);
}

.mini-contact-form textarea {
  resize: vertical;
  min-height: 138px;
}

.mini-contact-form .form-submit-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.mini-contact-form .form-submit-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 12px;
  min-height: 24px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}

.form-feedback.is-success {
  display: block;
  color: #0a442f;
  background: #a7f3d0;
}

.form-feedback.is-error {
  display: block;
  color: #7f1d1d;
  background: #fecaca;
}

.form-feedback.is-loading {
  display: block;
  color: #dff4ff;
  background: rgba(11, 119, 183, 0.32);
}

#footer {
  margin-left: var(--sidebar-w);
  padding: 18px 0 30px;
  text-align: center;
  color: #4f6288;
}

#footer .copyright {
  margin-bottom: 4px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9997;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), #0a8df0);
  box-shadow: 0 10px 25px rgba(1, 95, 179, 0.42);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.26s ease;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 28px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1199px) {
  #header {
    left: calc(-1 * var(--sidebar-w));
  }

  #main,
  #footer {
    margin-left: 0;
  }

  #hero {
    min-height: 92vh;
    padding: 40px 0;
    background-position: 68% center;
  }
}

@media (max-width: 991px) {
  section {
    padding: 72px 0;
  }

  .section-title p {
    font-size: 16px;
  }

  .about-card h3 {
    font-size: 29px;
  }

  .resume-title {
    font-size: 26px;
  }

  .contact .info p {
    font-size: 16px;
  }

  .proof-kpi {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  :root {
    --radius-lg: 18px;
  }

  #hero {
    min-height: 100vh;
    background-position: center center;
  }

  .hero-content {
    padding-top: 82px;
  }

  #hero p {
    font-size: 18px;
  }

  .btn-hero {
    width: 100%;
  }

  .metric-card .metric-value {
    font-size: 28px;
  }

  #portfolio-flters {
    border-radius: 16px;
  }

  #portfolio-flters li {
    width: calc(50% - 6px);
    text-align: center;
  }

  .contact-card {
    padding: 18px;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  #hero h1 {
    font-size: 38px;
  }

  .hero-badge {
    font-size: 10px;
  }

  .metric-card {
    min-height: 112px;
  }

  #portfolio-flters li {
    width: 100%;
  }
}
