* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "articulat-cf", sans-serif;
  padding-top: 10vh;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 10vh;

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

  padding: 0 60px;

  z-index: 10000;

  background: rgba(1, 12, 22, 0.6);
  backdrop-filter: blur(12px);
}

.left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.left h4 {
  font-weight: 700;
}

.right {
  display: flex;
  list-style: none;
  gap: 35px;
}

.right li a {
  position: relative;
  text-decoration: none;
  color: white;
  display: inline-block;
}

.right li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: rgb(46, 229, 189);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.right li a:hover::after {
  transform: scaleX(1);
}

a {
  text-decoration: none;
}

ul {
  display: flex;
  list-style: none;
  gap: 40px;
  padding: 0;
  margin: 0;
}

ul li {
  width: auto;
  margin-left: 0;
}

.relative {
  position: relative;
}

ul li a {
  position: relative;
  text-decoration: none;
  padding: 20px;
  color: white;
  font-weight: 500;
}

ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: rgb(46, 229, 189);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

ul li a:hover::after {
  transform: scaleX(1);
}

.lni {
  font-size: 35px;
  z-index: 1;
}

.lni-code-1 {
  color: rgb(46, 229, 189)
}

.hvit {
  color: white;
}

body {
  margin: 0;
  min-height: 100vh;

  background-color: rgb(11, 10, 10);
  background-attachment: fixed;
  color: white;
}

.hero-section {
  margin-top: -100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  min-height: 85vh;
  gap: 60px;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-right img {
  max-width: 520px;
  width: 100%;
  object-fit: contain;
  border-radius: 20px;
  filter:
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 35px rgba(34, 211, 238, 0.12));
  transition: .3s ease;
}

.hero-section img:hover {
  transform: translateY(-8px) scale(1.02);
}

.hero-section h3 {
  color: white;
  font-weight: 400;
  margin-bottom: 10px;
}

.name {
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roles {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: white;
}

.roles .line {
  width: 20px;
  height: 2px;
  background: #444;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
}

.primary {
  background: whitesmoke;
  color: black;
  transition: .3s ease;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 30px rgba(179, 196, 198, 0.25),
    0 0 20px rgba(174, 174, 203, 0.2);
}

.secondary {
  background: transparent;
  border: 1px solid #444;
  color: white;
  transition: transform 0.3s ease;
}

.secondary:hover {
  border-color: white;
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.2);
  transform: translateY(-2px);
}

.socials {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.socials a {
  color: white;
  font-size: 20px;
  opacity: 0.8;
  transition: 0.2s;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.lni-arrow-right,
.lni-download-1 {
  font-size: 20px;
}

.about-section {
  margin: 80px 40px;
  padding: 60px;

  margin-top: -10px;

  display: flex;
  justify-content: space-between;
  gap: 80px;

  border-radius: 30px;

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

  backdrop-filter: blur(20px);

  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;

  left: -100px;
  top: 0;

  width: 300px;
  height: 100%;

  pointer-events: none;
}

.about-left {
  flex: 1;
  max-width: 600px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #4ade80;
  font-weight: 600;
  letter-spacing: 2px;
}

.about-left h2 {
  font-size: 52px;
  margin: 18px 0;
}

.about-left p {
  color: #a1a1aa;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-btn {
  padding: 14px 26px;
  border-radius: 14px;

  border: 1px solid rgba(74, 222, 128, 0.35);

  background: rgba(74, 222, 128, 0.05);
  color: #4ade80;

  transition: 0.25s ease;
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.12);
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;

  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.icon-box .lni-code-1 {
  color: white;
}

.icon-box {
  width: 72px;
  height: 72px;

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

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);

  font-size: 28px;
}

.info-item h4 {
  font-size: 24px;
  margin-bottom: 6px;
}

.info-item p {
  color: #a1a1aa;
  line-height: 1.6;
}

.more-about {
  max-height: 0;
  overflow: hidden;

  opacity: 0;

  transition:
    max-height 0.7s ease,
    opacity 0.4s ease;

  margin-top: 0;
}

.more-about.active {
  max-height: 900px;
  opacity: 1;
  margin-top: 30px;
}

.about-card {
  padding: 22px;
  margin-bottom: 18px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(10px);

  transform: translateY(10px);
  transition: 0.3s ease;
}

.more-about.active .about-card {
  transform: translateY(0);
}

.about-card h4 {
  margin-bottom: 10px;
  color: white;
}

.about-card p {
  color: #9ca3af;
}

.projects-section {
  margin: 80px 40px;
  padding: 60px;

  border-radius: 30px;

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

  backdrop-filter: blur(20px);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 45px;
}

.projects-header h2 {
  font-size: 52px;
  margin-top: 12px;
}

.projects-btn {
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.05);
  color: #4ade80;

  padding: 14px 24px;
  border-radius: 14px;

  transition: .3s ease;
}

.projects-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(74, 222, 128, .15);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 28px;
  overflow: hidden;

  transition: .35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, .15);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, .25),
    0 0 30px rgba(34, 211, 238, .08);
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.project-content {
  padding: 26px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.project-top h3 {
  font-size: 34px;
}

.project-content p {
  color: #a1a1aa;
  line-height: 1.7;
}

.tech-tag {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
}

.green {
  background: rgba(74, 222, 128, .15);
  color: #4ade80;
}

.blue {
  background: rgba(59, 130, 246, .15);
  color: #60a5fa;
}

.purple {
  background: rgba(168, 85, 247, .15);
  color: #c084fc;
}

.project-links {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.project-links i {
  font-size: 28px;
  cursor: pointer;
  transition: .2s ease;
}

.project-links i:hover {
  transform: translateY(-3px);
  opacity: .8;
}

.project-links a {
  color: white;
}

.project-links .lni-code-1 {
  color: white;
}

.extra-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height .7s ease,
    opacity .4s ease;

  margin-top: 0;
}

.extra-projects.active {
  max-height: 1900px;
  opacity: 1;
  margin-top: 28px;
}

.skills-section {
  margin: 80px 40px;
  padding: 60px;

  border-radius: 30px;

  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
}

.skills-header h2 {
  font-size: 52px;
  margin-top: 14px;
  margin-bottom: 45px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);

  border-radius: 24px;
  padding: 28px;

  transition: .3s ease;
}

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

  border-color: rgba(34, 211, 238, .12);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, .25),
    0 0 25px rgba(34, 211, 238, .08);
}

.skill-title {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 28px;
}

.skill-title i {
  font-size: 34px;
}

.skill-title h3 {
  font-size: 28px;
}

.skill {
  margin-bottom: 22px;
}

.skill span {
  display: block;
  margin-bottom: 10px;
  color: #d4d4d8;
}

.progress {
  width: 100%;
  height: 10px;

  border-radius: 999px;
  background: rgba(255, 255, 255, .08);

  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 999px;
}

.fill.green {
  background: #4ade80;
}

.fill.blue {
  background: #60a5fa;
}

.fill.purple {
  background: #a855f7;
}

.fill.lime {
  background: #84cc16;
}

.contact-section {
  margin: 80px 40px;
  padding: 60px;

  border-radius: 30px;

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

  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);

  position: relative;
  overflow: hidden;
}

.contact-left {
  flex: 1.2;
}

.contact-header {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.contact-icon i {
  font-size: 58px;
  color: white;
}

.contact-header h2 {
  font-size: 52px;
  margin-top: 10px;
}

.contact-text {
  margin-top: 30px;
  color: #a1a1aa;
  line-height: 1.8;
  max-width: 300px;
  position: relative;
}

.contact-divider {
  width: 1px;
  height: 220px;
  background: rgba(255, 255, 255, .08);
}

.contact-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;

  font-size: 22px;
}

.contact-item i {
  font-size: 34px;
  color: white;
}

.contact-item span {
  color: #d4d4d8;
}

.contact-code {
  flex: 1;
  display: flex;
  justify-content: center;
}

.fake-code {
  width: 320px;
  height: 180px;

  border-radius: 26px;
  padding: 30px;

  border: 1px solid rgba(255, 255, 255, .08);

  background:
    rgba(255, 255, 255, .03);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line {
  display: block;
  height: 6px;
  border-radius: 999px;
}

.green2 {
  background: #4ade80;
  width: 45%;
}

.blue2 {
  background: #60a5fa;
  width: 70%;
}

.purple2 {
  background: #a855f7;
  width: 55%;
}

.red {
  background: #ef4444;
  width: 40%;
}

.short {
  width: 35%;
}

.long {
  width: 80%;
}

.fake-code {
  transition: .35s ease;
}

.fake-code:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .25),
    0 0 30px rgba(34, 211, 238, .08);
}

footer {
  height: 10vh;
  width: 100vw;
  text-align: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 999;
}

.contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);

  color: white;
  font-family: inherit;
  font-size: 16px;

  outline: none;

  backdrop-filter: blur(10px);

  transition: 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.form-group textarea {
  resize: none;
}

.contact-btn {
  padding: 14px 18px;
  border-radius: 14px;

  border: none;

  background: linear-gradient(90deg, #22d3ee, #6366f1);
  color: white;

  font-size: 16px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(34, 211, 238, 0.25),
    0 0 20px rgba(99, 102, 241, 0.2);
}

.turnstile-box {
  display: flex;
  justify-content: flex-start;
}

.contact-section {
  margin: 80px 40px;
  padding: 60px;

  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);

  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.contact-form {
  width: 97%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);

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

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-clip: content-box !important;
  }

  font-family: inherit;
  font-size: 13px;

  outline: none;
  backdrop-filter: blur(10px);

  transition: 0.25s ease;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-clip: content-box !important;
  }
}

.contact-btn {
  padding: 14px 18px;
  border-radius: 14px;

  border: none;

  background: whitesmoke;
  color: black;

  font-size: 16px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(185, 202, 205, 0.25),
    0 0 20px rgba(150, 151, 168, 0.2);
}

@media (max-width: 1240px) {

  .contact-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .contact-divider {
    display: none;
  }

  .contact-code {
    width: 100%;
    justify-content: flex-start;
  }

  .fake-code {
    width: 100%;
    max-width: 320px;
  }

  .contact-middle {
    width: 100%;
    align-items: flex-start;
  }

  .contact-item {
    font-size: 18px;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
  }

  .right {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;

    z-index: 9999;

    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(12px);

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

    gap: 20px;
    padding: 65px 0;

    height: 400px;

    display: none;
  }

  .right.active {
    display: flex;
  }

  .hamburger {
    z-index: 10000;
    position: relative;
    display: block;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .hero-right img {
    border-radius: 30px;
    max-width: 280px;
  }

  .name {
    font-size: 36px;
  }

  section {
    padding: 40px 20px !important;
    margin: 40px 15px !important;
  }

  .about-section {
    flex-direction: column;
    gap: 40px;
  }

  .about-left h2 {
    font-size: 32px;
  }

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

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

  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 30px;
  }

  .contact-header {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .contact-text {
    left: 0;
    max-width: 100%;
    margin-top: 15px;
    text-align: left;
  }

  .contact-divider {
    display: none;
  }

  .contact-middle {
    width: 100%;
    align-items: flex-start;
    gap: 22px;
  }

  .contact-item {
    justify-content: flex-start;
    text-align: left;
    font-size: 18px;
  }

  .contact-code {
    width: 100%;
    justify-content: flex-start;
  }

  .fake-code {
    width: 100%;
    max-width: 320px;
  }

  .projects-header h2 {
    font-size: 32px;
  }

  .skills-header h2 {
    font-size: 32px;
  }

  .contact-header h2 {
    font-size: 32px;
  }
}