@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-300-normal.woff2") format("woff2"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-500-italic.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }

:root {
  --portfolio-slide-image-height: clamp(18rem, 18vw, 24rem);
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: "Poppins", Inter, ui-sans-serif, system-ui, sans-serif;
  outline: none;
  border: none;
  color: #ffffff;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 117, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 78%, rgba(124, 58, 237, 0.22), transparent 32rem),
    linear-gradient(135deg, #050b1f 0%, #081632 48%, #040714 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8rem);
}

body::before {
  width: 42rem;
  height: 42rem;
  left: -12rem;
  top: 12rem;
  background: rgba(37, 99, 235, 0.42);
}

body::after {
  width: 38rem;
  height: 38rem;
  right: -10rem;
  top: 45vh;
  background: rgba(255, 255, 255, 0.18);
}

body.lightbox-open {
  overflow: hidden;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;

}
.header {
  position: fixed;
  left: 0;
  top: 0;
  padding: 2rem 10%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.sticky {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 17, 42, 0.84);
  backdrop-filter: blur(18px);
}
.logo {
  font-size: 2.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transform: translateX(-100%);
  opacity: 0;
  animation: RightSlide 1s ease forwards;
}
@keyframes RightSlide {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

#menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  margin-left: auto;
  margin-right: -11rem;
  color: #ffffff;
  background: rgba(0, 110, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.4rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.menu-toggle i {
  font-size: 2.8rem;
}
#menu:hover,
#menu:focus-visible {
  background: rgba(0, 110, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.navbar {
  position: absolute;
  top: calc(100% + 1.2rem);
  right: -1rem;
  width: min(38rem, calc(100% - 2.4rem));
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(8, 17, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.navbar.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.navbar a {
  display: inline-block;
  font-size: 1.7rem;
  text-decoration: none;
  margin: 0;
  padding: 1.3rem 1.6rem;
  border-radius: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02;
  transition: 0.3s ease;
  transform: translateY(-100px);
  opacity: 0;
  animation: TopSlide 1s ease forwards;
  animation-delay: calc(0.2s * var(--vlr));
}
@keyframes TopSlide {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
.navbar a:hover,
.navbar a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #b9cbfc;
}
section {
  position: relative;
  padding: 10rem 9% 2rem;
  min-height: 100vh;
  border: 0;
  box-shadow: none;
}
.home,
.about,
.education,
.gallery,
.certificate,
.project,
.contact {
  background: transparent;
}
.about,
.education,
.contact,
.gallery {
  overflow: hidden;
}
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-content {
  max-width: 70rem;
}
.text-content h1 {
  font-size: 5rem;
  color: #fdfdfd;
  text-transform: capitalize;
  letter-spacing: 0.05rem;
  font-weight: 600;
  transform: translateY(-100px);
  opacity: 0;
  animation: RightSlide 1s ease forwards;
  animation-delay: 1s;
}
.text-animation {
  position: relative;
  width: max-content;
  max-width: 100%;
}
.text-animation h2 {
  font-size: 2.7rem;
  font-weight: 700;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 0.5px #04fa66;
  background: linear-gradient(hwb(0 0% 100%), #02e179);
  background-repeat: no-repeat;
  background-clip: text;  
  -webkit-background-clip: text;
  background-position: -33rem 0;
  transform: translateY(-100px);
  opacity: 0;
  animation: textSlide 6s linear infinite, TopSlide 1s ease forwards;
  animation-delay: 2s, 1.2s;
}
@keyframes textSlide {
  0%,
  10%,
  100% {
    background-position: -33rem 0;
  }
  65%,
  85% {
    background-position: 0 0;
  }
}
.text-animation::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-right: 2px solid #e3e3e3;
  transform: translateY(-100px);
  opacity: 0;
  animation: CursorSlide 6s linear infinite, TopSlide 1s ease forwards;
  animation-delay: 2s, 1.2s;
}
@keyframes CursorSlide {
  0%,
  10%,
  100% {
    width: 0;
  }
  65%,
  78%,
  85% {
    opacity: 1;
    width: 100%;
  }
  75%,
  81% {
    opacity: 0;
  }
}
.text-content p {
  font-size: 1.4rem;
  margin: 1rem 0;
  transform: translateX(100px);
  opacity: 0;
  animation: leftSlide 1s ease forwards;
  animation-delay: 1.4s;
}
@keyframes leftSlide {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
.btn-section {
  width: 32.5rem;
  height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}
.btn-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background: #011af8a9;
  height: 100%;
  width: 100%;
  z-index: 2;
  animation: Slide 1s ease forwards;
  animation-delay: 1.6s;
}
@keyframes Slide {
  0% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}
.btn {
  height: 100%;
  width: 15rem;
  color: #ffffff;
  text-decoration: none;
  background: rgb(0, 94, 255);
  border: 0.2rem solid rgba(0, 119, 255, 0.547);
  backdrop-filter: blur(5rem);
  border-radius: 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0.8rem 2rem rgba(37, 99, 235, 0.18);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn:visited,
.btn:hover,
.btn:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  height: 300%;
  width: 100%;
  background: linear-gradient(#000000ad, #0026ff, #ffffff46, hsla(0, 0%, 92%, 0.777));
  z-index: -1;
  transition: 0.5s ease;
}
.home .btn:hover::before,
.home .btn:focus-visible::before,
.about .about-toggle:hover::before,
.about .about-toggle:focus-visible::before {
  top: 0;
}

.home .btn::after,
.about .about-toggle::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -55%;
  width: 35%;
  height: 180%;
  background: rgba(255, 255, 255, 0.42);
  transform: skewX(-22deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.home .btn:hover,
.home .btn:focus-visible,
.about .text-content2 .about-toggle:hover,
.about .text-content2 .about-toggle:focus-visible {
  animation: homeButtonLift 0.45s ease forwards;
  border-color: rgba(147, 197, 253, 0.9);
  background: #145eff;
  box-shadow: 0 1.2rem 2.8rem rgba(37, 99, 235, 0.42), 0 0 1.8rem rgba(96, 165, 250, 0.32);
}

.home .btn:hover::after,
.home .btn:focus-visible::after,
.about .about-toggle:hover::after,
.about .about-toggle:focus-visible::after {
  left: 125%;
}

.home .btn:active,
.about .text-content2 .about-toggle:active {
  animation: none;
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0.45rem 1.2rem rgba(37, 99, 235, 0.3);
}

@keyframes homeButtonLift {
  0% { transform: translateY(0) scale(1); }
  65% { transform: translateY(-0.45rem) scale(1.025); }
  100% { transform: translateY(-0.28rem) scale(1.015); }
}
.social-media {
  margin: 2rem 0;
}
.social-media a {
  --social-rgb: 96, 165, 250;
  position: relative;
  text-decoration: none;
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.35s ease, filter 0.3s ease;
}

.social-media a:nth-child(1) { --social-rgb: 255, 87, 34; }
.social-media a:nth-child(2) { --social-rgb: 214, 41, 118; }
.social-media a:nth-child(3) { --social-rgb: 10, 102, 194; }
.social-media a:nth-child(4) { --social-rgb: 255, 0, 0; }

.social-media a::before {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border: 0.15rem solid rgba(var(--social-rgb), 0.65);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.social-media a:hover,
.social-media a:focus-visible {
  z-index: 2;
  transform: translateY(-0.45rem) scale(1.07);
  filter: drop-shadow(0 0.8rem 1.2rem rgba(var(--social-rgb), 0.38));
  outline: none;
}

.social-media a:hover::before,
.social-media a:focus-visible::before {
  animation: socialMediaHalo 0.65s ease forwards;
}

.social-media a:active {
  transform: translateY(-0.15rem) scale(0.94);
}
.social-media i {
  display: inline-block;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 0.2rem solid rgba(255, 255, 255, 0.838);
  padding: 0.8rem;
  margin: 0 0.5rem;
  border-radius: 50%;
  color: rgb(var(--social-rgb));
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: Bottom 1s ease forwards;
  animation-delay: calc(0.2s * var(--vlr));
  transform: translateY(100px);
  opacity: 0;
}
@keyframes Bottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
.social-media i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  height: 300%;
  width: 100%;
  background: rgba(var(--social-rgb), 0.12);
  z-index: -1;
  transition: 0.5s ease;
}

.social-media a:hover i::after,
.social-media a:focus-visible i::after {
  top: 0;
}

@keyframes socialMediaHalo {
  0% { opacity: 0; transform: scale(0.7); }
  55% { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .home .btn,
  .home .btn::after,
  .social-media a,
  .social-media a::before,
  .social-media i {
    animation: none !important;
    transition: none !important;
  }

  .social-media i {
    transform: none;
    opacity: 1;
  }
}
.home img {
  width: 30vw;
  background: rgba(172, 15, 15, 0.1);
  border: 0.2rem solid rgba(1, 1, 97, 0.213);
  border-radius: 50%;
  filter: drop-shadow(0 0 8rem #5a85fb83);
  animation: Scale 1s ease forwards;
  scale: 0;
  animation-delay: 2s;
}
@keyframes Scale {
  0% {
    scale: 0;
  }
  100% {
    scale: 1;
  }
}
/* about section */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 6rem;
  gap: 2rem;
}
.title {
  font-size: 5rem;
  margin-bottom: 3rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(-100px);
  opacity: 0;
}
section.start-animation .title {
  animation: top 1s ease forwards;
}
@keyframes top {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
.title span {
  background: linear-gradient(90deg, #6dd5ff 0%, #60a5fa 45%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-subtitle {
  max-width: 74rem;
  margin: -1.4rem auto 3.6rem;
  color: rgba(235, 240, 255, 0.82);
  font-size: 1.7rem;
  line-height: 1.8;
  text-align: center;
  transform: translateY(-60px);
  opacity: 0;
}

section.start-animation .section-subtitle {
  animation: top 1s ease forwards;
  animation-delay: 0.15s;
}
.about img {
  height: 25rem;
  width: 25rem;
  background: rgb(6, 121, 244);
  border: 0.2rem solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: drop-shadow(0 0 8rem #1207e2);
  scale: 0;
}
section.start-animation .aboutImg {
  animation: scaleout 1s ease forwards;
}
@keyframes scaleout {
  0% {
    scale: 0;
  }
  100% {
    scale: 1;
  }
}
.text-content2 {
  width: min(92%, 88rem);
  text-align: center;
}
.text-content2 h2 {
  font-size: 2.6rem;
  transform: translatex(-100px);
  opacity: 0;
}
section.start-animation .text-content2 h2 {
  animation: Right 1s ease forwards;
}
@keyframes Right {
  0% {
    transform: translatex(-100px);
    opacity: 0;
  }
  100% {
    transform: translatex(0px);
    opacity: 1;
  }
}
.text-content2 .about-summary,
.about-more p {
  max-width: 82rem;
  color: rgba(245, 248, 255, 0.92);
  font-size: 1.55rem;
  line-height: 1.85;
}

.text-content2 .about-summary {
  margin: 2rem auto 3rem;
  transform: translatex(100px);
  opacity: 0;
  box-shadow: inset 0 0 0 0.1rem rgba(15, 23, 42, 0.08);
  transition: color 0.3s ease, background 0.3s ease;
  transition: margin 0.35s ease;
}

.text-content2.is-expanded .about-summary {
  margin-bottom: 0.2rem;
}

section.start-animation .text-content2 .about-summary {
  animation: Left 1s ease forwards;
}
@keyframes Left {
  0% {
    transform: translatex(100px);
    opacity: 0;
  }
  100% {
    transform: translatex(0px);
    opacity: 1;
  }
}
.text-content2 .btn {
  padding: 0.9rem 0.5rem;
}

.about-toggle-wrap {
  display: flex;
  justify-content: center;
  transform: translateY(100px);
  opacity: 0;
}

.about-toggle {
  isolation: isolate;
  min-height: 4.6rem;
}

.about-more {
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-1rem);
  transition: max-height 0.45s ease, margin 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.about-more p {
  margin: 0 auto 3rem;
}

.text-content2.is-expanded .about-more {
  max-height: 24rem;
  margin-top: -0.2rem;
  opacity: 1;
  transform: translateY(0);
}

.text-content2.is-expanded .about-more p {
  animation: aboutCopyReveal 0.42s ease both;
}

@keyframes aboutCopyReveal {
  from { opacity: 0; transform: translateY(-0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .about-toggle,
  .about-toggle::before,
  .about-toggle::after,
  .text-content2.is-expanded .about-more p {
    animation: none !important;
    transition: none !important;
  }
}

section.start-animation .text-content2 .about-toggle-wrap {
  animation: Bottoms 1s ease forwards;
}
@keyframes Bottoms {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translatey(0px);
    opacity: 1;
  }
}
/* education  */
.row {
  display: flex;
  column-gap: 4rem;
  flex-wrap: wrap;
}
.column {
  flex: 1 1 30rem;
}
.column:nth-child(1) {
  opacity: 0;
  transform: translateX(-100px);
}
section.start-animation .column:nth-child(1) {
  animation: Right 1s ease forwards;
  animation-delay: 1.2s;
}

.column:nth-child(2) {
  opacity: 0;
  transform: translateX(100px);
}
section.start-animation .column:nth-child(2) {
  animation: Left 1s ease forwards;
  animation-delay: 1.2s;
}
.column h2 {
  font-size: 2.5rem;
  margin: 2rem 0 1rem 1.96rem;
  transform: translateY(-100px);
  opacity: 0;
}
section.start-animation .column h2 {
  animation: top 1s ease forwards;
  animation-delay: 1.2s;
}

.box {
  border-left: 0.2rem solid hsl(0, 0%, 100%);
}
.education-content {
  padding-left: 1.9rem;
}
.education-content .content {
  padding: 1.5rem;
  border: 0.2rem solid #0055ff;
  background: #0040fff3;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.content::before {
  content: "";
  position: absolute;
  left: -2.8rem;
  top: -1.5rem;
  height: 1.4rem;
  width: 1.4rem;
  border-radius: 50%;
  background: #00d9ff;
}
.content .year {
  font-size: 1.5rem;
  color: #ffffff;
}
.content .year i {
  color: #00d9ff;
  font-size: 1.5rem;
  margin-left: 0.5rem;
}
.content h3 {
  font-size: 1.7rem;
  letter-spacing: 0.05rem;
  margin: 0.5rem 0;
}
.content p {
  font-size: 1.5rem;
}

.education-content .content {
  isolation: isolate;
  cursor: default;
  outline: none;
  transform: translateY(0) scale(1);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.32s ease;
}

.education-content .content .year,
.education-content .content h3,
.education-content .content p,
.education-content .content::before {
  transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.education-content .content p {
  width: fit-content;
  max-width: 100%;
  border-left: 0.2rem solid transparent;
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
  transform: translateX(-0.65rem);
}

.education-content .content:hover,
.education-content .content:focus-visible {
  z-index: 3;
  transform: translateY(-0.65rem) scale(1.025);
  border-color: rgba(4, 250, 230, 0.85);
  background: linear-gradient(135deg, rgba(20, 54, 122, 0.96), rgba(9, 26, 66, 0.94));
  box-shadow:
    0 1.8rem 3.8rem rgba(0, 0, 0, 0.34),
    0 0 2.4rem rgba(4, 250, 230, 0.15),
    inset 0 0 3rem rgba(96, 165, 250, 0.08);
}

.education-content .content:hover::before,
.education-content .content:focus-visible::before {
  background: #04fae6;
  transform: scale(1.24);
  box-shadow: 0 0 0 0.55rem rgba(4, 250, 230, 0.14), 0 0 1.5rem rgba(4, 250, 230, 0.65);
}

.education-content .content:hover .year,
.education-content .content:focus-visible .year {
  color: #b9cbfc;
  transform: translateX(0.35rem);
}

.education-content .content:hover h3,
.education-content .content:focus-visible h3 {
  color: #ffffff;
  transform: translateX(0.55rem);
}

.education-content .content:hover p,
.education-content .content:focus-visible p {
  color: #ffffff;
  border-left-color: #04fae6;
  background: rgba(4, 250, 230, 0.08);
  transform: translateX(0.35rem);
}

.education-content .content:active {
  transform: translateY(-0.2rem) scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .education-content .content,
  .education-content .content .year,
  .education-content .content h3,
  .education-content .content p,
  .education-content .content::before {
    transition: none !important;
  }
}
/* skill-content */
.wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.skill-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-100px);
}
section.start-animation .skill-title {
  animation: top 1s ease forwards;
  animation-delay: 1.2s;
}
.skill-content {
  width: 100%;
  flex: 1 1 30rem;
}
.skill-box {
  height: 100%;
  width: 100%;
  padding: 8rem 4rem;
  background: #0040fff3;
  border-radius: 1rem;
}
.skill-box1 {
  opacity: 0;
  transform: translateX(-100px);
}
section.start-animation .skill-box1 {
  animation: Right 1s ease forwards;
  animation-delay: 1.2s;
}
.skill-box2 {
  opacity: 0;
  transform: translateX(100px);
}
section.start-animation .skill-box2 {
  animation: Left 1s ease forwards;
  animation-delay: 1.4s;
}
.single-skill {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}
.single-skill span {
  font-size: 1.6rem;
}

.bar-side {
  background: #e9e0e0;
  height: 1rem;
  border-radius: 50rem;
  position: relative;
  overflow: hidden;
}
.bar {
  position: absolute;
  height: 100%;
  background: hsl(214, 100%, 50%);
}

/*------------------------------Bar untuk kiri--------------------------------------------------*/

.bar-left-1 {
  width: 85%;
  background: linear-gradient(to right, #00ff88, #21913b);
}
.bar-left-2 {
  width: 75%;
  background: linear-gradient(to right, #00ff88, #21913b);
}
.bar-left-3 {
  width: 80%;
  background: linear-gradient(to right, #00ff88, #21913b);
}

/*------------------------------Bar untuk kanan--------------------------------------------------*/

.bar-right-1 {
  width: 80%;
  background: linear-gradient(to right, #00ff88, #21913b);
}
.bar-right-2 {
  width: 65%;
  background: linear-gradient(to right, #00ff88, #21913b);
}
.bar-right-3 {
  width: 70%;
  background: linear-gradient(to right, #00ff88, #21913b);
}

/*------------------------------gallery--------------------------------------------------*/
.gallery {
  min-height: auto;
  padding: 80px 10%;
  text-align: center;
  color: #fff;
}

.gallery-slider {
  position: relative;
  width: min(100%, 142rem);
  margin: 0 auto;
  padding: 0.4rem 0 6rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(80px);
}

.gallerySwiper .gallery-item {
  position: relative;
  display: block;
  height: auto;
  padding: 20px;
  overflow: hidden;
  cursor: zoom-in;
  border: 0.1rem solid rgba(96, 165, 250, 0.36);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 35, 76, 0.78), rgba(9, 19, 45, 0.76));
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.22),
    inset 0 0 4rem rgba(59, 130, 246, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallerySwiper .gallery-item img {
  width: 100%;
  height: var(--portfolio-slide-image-height);
  display: block;
  margin-bottom: 0;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallerySwiper .gallery-item::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  height: var(--portfolio-slide-image-height);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.04) 0%, rgba(3, 7, 18, 0.78) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-info {
  position: absolute;
  left: 3.2rem;
  right: 3.2rem;
  top: calc(20px + var(--portfolio-slide-image-height) - 7.8rem);
  bottom: auto;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.2rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-info span {
  display: inline-flex;
  margin-bottom: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(88, 65, 193, 0.72);
  color: #f4f0ff;
  font-size: 1.2rem;
  font-weight: 700;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  line-height: 1.55;
}

.gallerySwiper .gallery-item:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

.gallerySwiper .gallery-item:hover {
  transform: translateY(-0.8rem);
  border-color: rgba(129, 140, 248, 0.68);
  box-shadow: 0 2.8rem 7rem rgba(37, 99, 235, 0.22);
}

.gallerySwiper .gallery-item:hover::after,
.gallerySwiper .gallery-item:hover .gallery-info {
  opacity: 1;
}

.gallerySwiper .gallery-item:hover .gallery-info {
  transform: translateY(0);
}

section.start-animation .gallery-slider {
  animation: Bottom 1s ease forwards;
  animation-delay: 0.2s;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 2.4rem;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(1.2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-content {
  width: min(96rem, 100%);
  padding: 1.4rem;
  border: 0.1rem solid rgba(96, 165, 250, 0.36);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(18, 35, 76, 0.92), rgba(9, 19, 45, 0.9));
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.42);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.gallery-lightbox.active .gallery-lightbox-content {
  transform: scale(1);
}

.gallery-lightbox-content img {
  width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  border-radius: 1.4rem;
  background: rgba(3, 7, 18, 0.52);
}

.gallery-lightbox-content p {
  margin-top: 1.4rem;
  color: rgba(235, 240, 255, 0.86);
  font-size: 1.5rem;
  line-height: 1.7;
  text-align: center;
}

.gallery-lightbox-close {
  position: fixed;
  top: 2.4rem;
  right: 2.4rem;
  z-index: 1;
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  place-items: center;
  border: 0.1rem solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 17, 42, 0.78);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(37, 99, 235, 0.32);
  transform: translateY(-0.2rem);
}

.gallery-lightbox-close i {
  color: #ffffff;
  font-size: 3rem;
}

/*-----------------sertifikat------------------*/
.certificate {
  padding: 80px 10%;
  text-align: center;
  color: #fff;
}
.certificate .title {
  margin-bottom: 3rem;
}

.certificate .swiper {
  width: 100%;
  max-width: 5000px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.swiper-slide {
  background: rgb(15, 41, 192);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: var(--portfolio-slide-image-height);
  border-radius: 15px;
  margin-bottom: 15px;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #0084ff;
  opacity: 1;
}

/* Animasi zoom-in */
@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Terapkan animasi ke setiap slide aktif */
.certificateSwiper .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.certificateSwiper .swiper-slide-active img {
  animation: zoomIn 0.6s ease forwards;
}

/* Biar gambar rapi */
.certificateSwiper img {
  width: 100%;
  border-radius: 15px;
  cursor: zoom-in;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Projectt---------------------------*/

.project {
  padding: 80px 10%;
  text-align: center;
  color: #fff;
}
.certificateSwiper .swiper-slide h3,
.projectSwiper .swiper-slide h3 {
  margin: 0;
  font-family: "Poppins", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.35;
}

.certificateSwiper .swiper-slide h4,
.projectSwiper .swiper-slide h4 {
  margin: 0.75rem 0 0;
  font-family: "Poppins", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.55;
}

.project .title {
  margin-bottom: 3rem;
}

.project .swiper {
  width: 100%;
  max-width: 5000px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.projectSwiper .swiper-slide {
  background: rgb(15, 41, 192);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projectSwiper .swiper-slide img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Navigasi dan pagination */
.project .swiper-button-next,
.project .swiper-button-prev {
  color: #fff;
}

.project .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.project .swiper-pagination-bullet-active {
  background: #0084ff;
  opacity: 1;
}

/* Animasi zoom-in */
.projectSwiper .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.projectSwiper .swiper-slide-active img {
  animation: zoomIn 0.6s ease forwards;
}

.projectSwiper img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/*-------------------contact section ------------------------*/
.contact {
  min-height: auto;
  padding-bottom: 8rem;
}

.contact-links {
  max-width: 142rem;
}

.contact-card {
  align-items: center;
  text-decoration: none;
  text-align: center;
}

.contact-icon {
  display: grid;
  width: 6.8rem;
  height: 6.8rem;
  margin: 0 auto 0.8rem;
  place-items: center;
  background: transparent;
}

.contact-card h3,
.contact-card p {
  width: 100%;
}

.contact-icon svg {
  width: 8.8rem;
  height: 8.8rem;
  display: block;
  overflow: visible;
}

section.start-animation .contact-card {
  animation: Bottom 1s ease forwards;
  animation-delay: 0.2s;
}

section.start-animation .contact-card:nth-child(2) {
  animation-delay: 0.34s;
}

section.start-animation .contact-card:nth-child(3) {
  animation-delay: 0.48s;
}

.blog {
  padding: 80px 10%;
}
.blog-intro {
  max-width: 74rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.blog-intro p {
  font-size: 1.6rem;
  line-height: 1.8;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.blog-card {
  padding: 2.4rem;
  border: 0.2rem solid rgba(0, 119, 255, 0.547);
  border-radius: 1.6rem;
  background: rgba(0, 64, 255, 0.32);
  backdrop-filter: blur(1rem);
}
.blog-label {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: #04fae6;
  font-size: 1.3rem;
  font-weight: 600;
}
.blog-card h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.blog-card p {
  font-size: 1.45rem;
  line-height: 1.7;
}

.read-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.8rem;
  color: #04fae6;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.writing-universe {
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: 10rem 7% 8rem;
  overflow: hidden;
  background: transparent;
}

.writing-universe * {
  color: inherit;
}

.writing-glow {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(7rem);
  opacity: 0.36;
  pointer-events: none;
}

.writing-glow-one {
  left: -10rem;
  top: 12rem;
  background: #2563eb;
}

.writing-glow-two {
  right: -12rem;
  bottom: 12rem;
  background: #ed3a3a;
}

.writing-header {
  max-width: 86rem;
  margin: 0 auto 5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-80px);
}

.writing-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border: 0.1rem solid rgba(125, 160, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 25, 55, 0.72);
  color: #e8edff;
  font-size: 1.45rem;
  font-weight: 600;
  box-shadow: inset 0 0 2rem rgba(66, 153, 225, 0.08);
}

.writing-badge svg,
.writing-divider svg,
.writing-cta-icon svg,
.writing-cta-link svg,
.writing-card svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card .contact-icon svg {
  width: 4rem;
  height: 4rem;
  fill: initial;
  stroke: none;
  stroke-width: initial;
  stroke-linecap: initial;
  stroke-linejoin: initial;
}

.writing-header h2 {
  margin-top: 2.2rem;
  font-size: 5rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  color: #ffffff;
}

.writing-header h2 span {
  background: linear-gradient(90deg, #6dd5ff 0%, #7c8cff 55%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.writing-header p {
  max-width: 72rem;
  margin: 2rem auto 0;
  color: rgba(235, 240, 255, 0.82);
  font-size: 1.9rem;
  line-height: 1.8;
}

.writing-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  color: rgba(214, 224, 255, 0.8);
}

.writing-divider span {
  display: block;
  width: 7rem;
  height: 0.1rem;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.9), transparent);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 142rem;
  margin: 0 auto;
}

.writing-card {
  display: flex;
  min-height: 100%;
  padding: 1.8rem;
  flex-direction: column;
  border: 0.1rem solid rgba(96, 165, 250, 0.32);
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(18, 35, 76, 0.78), rgba(9, 19, 45, 0.76));
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2), inset 0 0 4rem rgba(59, 130, 246, 0.04);
  backdrop-filter: blur(1.4rem);
  opacity: 0;
  transform: translateY(80px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.writing-card:hover {
  transform: translateY(-0.8rem);
  border-color: rgba(129, 140, 248, 0.68);
  box-shadow: 0 2.8rem 7rem rgba(37, 99, 235, 0.22);
}

.writing-cover {
  position: relative;
  height: 18rem;
  overflow: hidden;
  border: 0.1rem solid rgba(96, 165, 250, 0.24);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(12, 19, 39, 0.88));
}

.writing-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.writing-card:hover .writing-cover img {
  transform: scale(1.04);
}

.skeleton-cover {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(12, 19, 39, 0.88));
}

.writing-type {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(88, 65, 193, 0.72);
  color: #f4f0ff;
  font-size: 1.25rem;
  font-weight: 700;
}

.writing-status {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
  color: #68d391;
  font-size: 1.45rem;
  font-weight: 700;
}

.writing-status span {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #68d391;
  box-shadow: 0 0 1.4rem rgba(104, 211, 145, 0.72);
}

.writing-card h3 {
  margin-top: 1.2rem;
  color: #ffffff;
  font-size: 2.45rem;
  line-height: 1.2;
}

.writing-card p {
  margin-top: 1.2rem;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.55rem;
  line-height: 1.75;
}

.writing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: auto;
  padding-top: 2rem;
  color: rgba(226, 232, 240, 0.86);
  font-size: 1.35rem;
}

.writing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.writing-meta i {
  color: rgba(148, 163, 184, 0.7);
  font-style: normal;
}

.writing-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.2rem;
  padding: 1.25rem 1.8rem;
  border: 0.1rem solid rgba(129, 140, 248, 0.5);
  border-radius: 1rem;
  color: #8c00ff;
  background: rgba(20, 31, 68, 0.66);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.writing-link:hover {
  color: #89e6ab;
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(37, 99, 235, 0.22);
}

.writing-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.4rem;
  max-width: 96rem;
  margin: 4.2rem auto 0;
  padding: 2rem 2.4rem;
  border: 0.1rem solid rgba(96, 165, 250, 0.24);
  border-radius: 1.8rem;
  background: rgba(15, 25, 55, 0.62);
  box-shadow: inset 0 0 4rem rgba(59, 130, 246, 0.05);
  opacity: 0;
  transform: translateY(60px);
}

section.start-animation .writing-header {
  animation: top 1s ease forwards;
}

section.start-animation .writing-card {
  animation: Bottom 1s ease forwards;
  animation-delay: 0.2s;
}

section.start-animation .writing-card:nth-child(2) {
  animation-delay: 0.35s;
}

section.start-animation .writing-card:nth-child(3) {
  animation-delay: 0.5s;
}

section.start-animation .writing-cta {
  animation: Bottom 1s ease forwards;
  animation-delay: 0.65s;
}

.education-content .content,
.skill-box,
.swiper-slide,
.projectSwiper .swiper-slide,
input,
textarea {
  background: linear-gradient(180deg, rgba(18, 35, 76, 0.78), rgba(9, 19, 45, 0.76));
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2), inset 0 0 4rem rgba(59, 130, 246, 0.04);
}

.skill-box,
.certificateSwiper .swiper-slide,
.projectSwiper .swiper-slide {
  border: 0.1rem solid rgba(96, 165, 250, 0.36);
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.22),
    inset 0 0 4rem rgba(59, 130, 246, 0.05);
}

.certificateSwiper .swiper-slide:hover,
.projectSwiper .swiper-slide:hover {
  border-color: rgba(129, 140, 248, 0.68);
  box-shadow: 0 2.8rem 7rem rgba(37, 99, 235, 0.22);
}

.writing-cta-icon {
  display: grid;
  width: 6.4rem;
  height: 6.4rem;
  place-items: center;
  border-radius: 999px;
  color: #a78bfa;
  background: rgba(88, 65, 193, 0.42);
}

.writing-cta-icon svg {
  width: 3.4rem;
  height: 3.4rem;
}

.writing-cta h3 {
  color: #ffffff;
  font-size: 1.8rem;
}

.writing-cta p {
  margin-top: 0.6rem;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.45rem;
}

.writing-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 4.8rem;
  padding: 0 2.2rem;
  border: 0.1rem solid rgba(96, 165, 250, 0.28);
  border-radius: 1rem;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease;
}

.writing-cta-link:hover {
  transform: translateX(0.3rem);
  background: rgba(37, 99, 235, 0.2);
}

section form {
  max-width: 70rem;
  text-align: center;
  margin: 1rem auto;
  margin-bottom: 3rem;
}
.input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
input:nth-child(1) {
  opacity: 0;
  transform: translateX(-100px);
}
section.start-animation input:nth-child(1) {
  animation: Right 1s ease forwards;
  animation-delay: 1.2s;
}
input:nth-child(2) {
  opacity: 0;
  transform: translateX(100px);
}
section.start-animation input:nth-child(2) {
  animation: Left 1s ease forwards;
  animation-delay: 1.2s;
}
input,
textarea {
  width: 100%;
  padding: 1.5rem;
  background: #0084ff;
  border: 0.2rem solid #0739fe;
  outline: none;
  backdrop-filter: blur(10px);
  filter: drop-shadow(0);
  border-radius: 0.8rem;
  gap: 2.5rem;
  margin: 0.7rem 0;
  transition: 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
}
section.start-animation textarea {
  animation: Bottom 1s ease forwards;
  animation-delay: 1.2s;
}
input::placeholder {
  font-size: 1.5rem;
  letter-spacing: 0.02rem;
}
.input-box input {
  width: 49%;
}
input:focus,
input:valid {
  border: 0.2rem solid #000b81;
}
textarea:focus,
textarea:valid {
  border: 0.2rem solid #000b81;
}
textarea {
  resize: none;
}
.contact .btn {
  margin-top: 2rem;
  cursor: pointer;
  filter: none;
  color : #ffffffc6;
  border: 0.2rem solid #0015ff;
}
section.start-animation .btn {
  animation: Bottom 1s ease forwards;
  animation-delay: 1.4s;
}
.contact .btn:hover {
  background: #030f9b;
}
input, textarea {
  color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #ffffff85;
  opacity: 1;
}

input,
textarea {
  background: linear-gradient(180deg, rgba(18, 35, 76, 0.78), rgba(9, 19, 45, 0.76));
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2), inset 0 0 4rem rgba(59, 130, 246, 0.04);
}

/*------------------------footer-----------------------------*/

.portfolio-footer {
  position: relative;
  overflow: hidden;
  background: #071027;
  border-top: 1px solid rgba(96, 165, 250, 0.24);
  padding: 2.4rem max(2.5%, 2.4rem) 1.2rem;
  font-family: "Poppins", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.portfolio-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(2.5%, 2.4rem);
  width: 8rem;
  height: 0.2rem;
  background: #60a5fa;
}

.portfolio-footer-main {
  display: grid;
  grid-template-columns: minmax(25rem, 1.4fr) minmax(22rem, 0.85fr) minmax(22rem, 0.75fr);
  align-items: start;
  gap: clamp(2.4rem, 5vw, 7rem);
  width: 100%;
  margin: 0 auto;
}

.portfolio-footer-brand {
  min-width: 0;
}

.portfolio-footer-name {
  display: inline-flex;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
}

.portfolio-footer-name span {
  color: #60a5fa;
}

.portfolio-footer-brand p {
  max-width: 44rem;
  margin: 0.65rem 0 0;
  color: rgba(226, 232, 240, 0.68);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
}

.portfolio-footer-explore h3,
.portfolio-footer-connect h3 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
}

.portfolio-footer-explore {
  justify-self: center;
  width: min(100%, 26rem);
}

.portfolio-footer-connect {
  justify-self: end;
  width: min(100%, 20rem);
}

.portfolio-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  gap: 0.55rem 2.2rem;
}

.portfolio-footer-nav a {
  color: rgba(226, 232, 240, 0.78);
  font-size: 1.4rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.portfolio-footer-nav a:hover,
.portfolio-footer-nav a:focus-visible {
  color: #93c5fd;
  transform: translateX(0.3rem);
}

.portfolio-footer-name:hover,
.portfolio-footer-name:focus-visible {
  color: #ffffff;
}

.portfolio-footer-connect > p {
  margin: 0 0 0.8rem;
  color: rgba(226, 232, 240, 0.62);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.6;
}

.portfolio-footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-footer-socials a {
  position: relative;
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.portfolio-footer-socials a:hover,
.portfolio-footer-socials a:focus-visible {
  transform: translateY(-0.3rem);
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.portfolio-footer-socials svg {
  width: 1.85rem;
  height: 1.85rem;
  transition: transform 0.25s ease;
}

.portfolio-footer-socials a:hover svg,
.portfolio-footer-socials a:focus-visible svg {
  transform: scale(1.12);
}

.portfolio-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  width: 100%;
  margin: 1.7rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.portfolio-footer-bottom p {
  margin: 0;
  color: rgba(226, 232, 240, 0.62);
  font-size: 1.3rem;
  font-weight: 400;
}
/* RESPONSIVE */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 9%;
  }
  .navbar {
    right: 9%;
    width: min(34rem, calc(100% - 2.4rem));
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .writing-universe {
    padding: 9rem 4% 7rem;
  }
  .writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .writing-cta {
    grid-template-columns: auto 1fr;
  }
  .writing-cta-link {
    grid-column: 1 / -1;
    width: 100%;
  }
  .contact {
    min-height: auto;
  }
  .portfolio-footer {
    padding-inline: 3%;
  }
  .portfolio-footer-main {
    grid-template-columns: minmax(24rem, 1.2fr) minmax(20rem, 0.8fr) minmax(20rem, 0.8fr);
    gap: 2.4rem;
  }
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
  body::before,
  body::after {
    display: none;
  }
  body * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  :root {
    --portfolio-slide-image-height: 20rem;
  }
  #menu {
    margin-right: 0;
  }
  .navbar {
    right: 3%;
    width: calc(100% - 6%);
    padding: 1.4rem;
  }
  .navbar a {
    display: block;
    margin: 0;
    font-size: 1.9rem;
  }
  .home {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    margin-top: 0;
  }
  .home .text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 0;
  }
  .home .text-content h1 {
    font-size: 4rem;
    margin-top: 85px;
  }
  .text-animation h2 {
    font-size: clamp(2.2rem, 6vw, 2.7rem);
  }
  .home img {
    width: min(55vw, 33rem);
  }
  .about {
    flex-direction: column;
    padding-top: 20px;
  }
  .about img {
    width: 20rem;
    height: 20rem;
  }
  .img4 {
    margin-top: clamp(7rem, 12vw, 10rem);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .writing-header p {
    font-size: 1.65rem;
  }
  .writing-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    padding-bottom: 6rem;
  }
  .gallerySwiper .gallery-item {
    border-radius: 1.8rem;
  }
  .gallerySwiper .gallery-item img,
  .gallerySwiper .gallery-item::after {
    height: var(--portfolio-slide-image-height);
  }
  .gallery-info {
    top: calc(20px + var(--portfolio-slide-image-height) - 7.8rem);
  }
  .writing-cover {
    height: 20rem;
  }
  .writing-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .writing-cta-icon {
    margin: 0 auto;
  }
  .portfolio-footer {
    padding: 2.2rem 2rem 1.2rem;
  }
  .portfolio-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
  }
  .portfolio-footer-brand {
    grid-column: 1 / -1;
  }
  .portfolio-footer-explore,
  .portfolio-footer-connect {
    justify-self: start;
    width: 100%;
  }
  .portfolio-footer-brand p {
    max-width: 54rem;
  }
  .portfolio-footer-bottom {
    margin-top: 1.6rem;
  }
}
@media (max-width: 450px) {
  :root {
    --portfolio-slide-image-height: 18rem;
  }
  html {
    font-size: 50%;
  }
  .header {
    padding: 1.6rem 4%;
  }
  .logo {
    font-size: 2.3rem;
  }
  #menu {
    width: 4.4rem;
    height: 4.4rem;
  }
  .menu-toggle i {
    font-size: 2.5rem;
  }
  .navbar {
    right: 4%;
    top: calc(100% + 1rem);
    width: calc(100% - 8%);
    padding: 1.2rem;
    border-radius: 1.6rem;
  }
  .navbar a {
    font-size: 1.7rem;
    padding: 1.2rem 1.4rem;
  }
  .home {
    padding-top: 3rem;
  }
  .img4 {
    margin-top: clamp(8rem, 16vw, 11rem);
  }
  .writing-universe {
    padding-inline: 2rem;
  }
  .writing-card {
    padding: 1.6rem;
  }
  .gallery-info {
    left: 2rem;
    right: 2rem;
    top: calc(20px + var(--portfolio-slide-image-height) - 7.6rem);
  }
  .gallerySwiper .gallery-item img,
  .gallerySwiper .gallery-item::after {
    height: var(--portfolio-slide-image-height);
  }
  .gallery-info p {
    font-size: 1.25rem;
  }
  .contact-card {
    padding: 2rem;
  }
  .writing-cover {
    height: 18rem;
  }
  .writing-meta {
    gap: 1rem;
  }
  .portfolio-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portfolio-footer-brand {
    grid-column: auto;
  }
  .portfolio-footer-brand p {
    font-size: 1.3rem;
  }
  .portfolio-footer-nav {
    max-width: 26rem;
    gap: 0.9rem 1.8rem;
  }
  .portfolio-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
  .input-box inut {
    width: 100%;
  }
}
