/* ===========================
   GOOGLE FONT
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary: #3b82f6;
  --secondary: #06b6d4;
  --accent: #8b5cf6;

  --bg: #0f172a;
  --card: #1e293b;

  --white: #ffffff;
  --text: #e2e8f0;
  --gray: #94a3b8;

  --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

body {
  font-family: "Poppins", sans-serif;

  background: linear-gradient(135deg, #0f172a, #111827, #1e3a8a);

  color: var(--text);

  overflow-x: hidden;
}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 20px;
}

/* ===========================
   LOADER
=========================== */

#loader {
  position: fixed;

  inset: 0;

  background: #0f172a;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  z-index: 99999;
}

.loader-circle {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  border: 6px solid rgba(255, 255, 255, 0.15);

  border-top: 6px solid #3b82f6;

  animation: spin 1s linear infinite;
}

#loader h2 {
  margin-top: 20px;

  color: white;

  letter-spacing: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
 PROGRESS BAR
=========================== */

#progressBar {
  position: fixed;

  top: 0;

  left: 0;

  width: 0;

  height: 4px;

  background: linear-gradient(90deg, #3b82f6, #06b6d4);

  z-index: 999999;
}

/* ===========================
 NAVBAR
=========================== */

.glass {
  background: rgba(15, 23, 42, 0.65);

  backdrop-filter: blur(15px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  transition: 0.4s;
}

.navbar {
  padding: 18px 0;
}

.navbar-brand {
  font-size: 1.6rem;
}

.nav-link {
  color: white !important;

  margin-left: 15px;

  transition: 0.3s;

  position: relative;
}

.nav-link:hover {
  color: #06b6d4 !important;
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -5px;

  width: 0;

  height: 2px;

  background: #06b6d4;

  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===========================
 HERO
=========================== */

#hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  position: relative;
}

#hero::before {
  content: "";

  position: absolute;

  width: 420px;

  height: 420px;

  background: #3b82f6;

  filter: blur(180px);

  top: -120px;

  right: -120px;

  opacity: 0.25;
}

#hero::after {
  content: "";

  position: absolute;

  width: 350px;

  height: 350px;

  background: #8b5cf6;

  filter: blur(180px);

  bottom: -120px;

  left: -120px;

  opacity: 0.2;
}

#typing {
  font-size: 3.5rem;

  font-weight: 700;

  color: white;

  line-height: 1.2;
}

#hero p {
  margin-top: 20px;

  font-size: 1.05rem;

  color: #cbd5e1;

  line-height: 1.9;
}

.hero-photo {
  width: 340px;

  height: 340px;

  margin: auto;

  border-radius: 50%;

  overflow: hidden;

  border: 7px solid rgba(255, 255, 255, 0.15);

  box-shadow: var(--shadow);

  animation: float 5s ease-in-out infinite;
}

.hero-photo img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ===========================
 BUTTON
=========================== */

.btn {
  transition: 0.35s;
}

.btn-primary {
  background: #3b82f6;

  border: none;
}

.btn-primary:hover {
  background: #2563eb;

  transform: translateY(-4px);
}

.btn-info {
  background: #06b6d4;

  color: white;

  border: none;
}

.btn-info:hover {
  background: #0891b2;

  color: white;

  transform: translateY(-4px);
}

/* ===========================
 SECTION
=========================== */

section {
  padding: 120px 0;

  position: relative;
}

.judul {
  text-align: center;

  color: white;

  font-size: 2.3rem;

  margin-bottom: 70px;

  font-weight: 700;

  position: relative;
}

.judul::after {
  content: "";

  width: 90px;

  height: 4px;

  background: #06b6d4;

  display: block;

  margin: 15px auto;

  border-radius: 20px;
}

/* ===========================
 CARD
=========================== */

.content-box {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);

  border-radius: 24px;

  padding: 40px;

  box-shadow: var(--shadow);

  transition: 0.4s;
}

.content-box:hover {
  transform: translateY(-8px);
}

/* ===========================
 FOOTER
=========================== */

footer {
  padding: 30px;

  text-align: center;

  color: #94a3b8;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===========================
 TOP BUTTON
=========================== */

#topBtn {
  position: fixed;

  bottom: 30px;

  right: 30px;

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: #3b82f6;

  color: white;

  font-size: 20px;

  cursor: pointer;

  display: none;

  box-shadow: var(--shadow);

  transition: 0.3s;
}

#topBtn:hover {
  transform: translateY(-5px);
}

/* ===========================
 RESPONSIVE
=========================== */

@media (max-width: 992px) {
  #typing {
    font-size: 2.4rem;

    text-align: center;
  }

  #hero {
    text-align: center;
  }

  .hero-photo {
    margin-top: 50px;

    width: 250px;

    height: 250px;
  }

  section {
    padding: 90px 0;
  }
}

@media (max-width: 576px) {
  #typing {
    font-size: 2rem;
  }

  .judul {
    font-size: 1.8rem;
  }

  .content-box {
    padding: 25px;
  }
}
.nav-link.active {
  color: #06b6d4 !important;

  font-weight: 600;
}

.btn {
  position: relative;

  overflow: hidden;
}

.ripple {
  position: absolute;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);

  transform: scale(0);

  animation: ripple 0.6s linear;

  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);

    opacity: 0;
  }
}
/* ===========================
ABOUT
=========================== */

.about-photo {
  width: 300px;

  height: 300px;

  object-fit: cover;

  border-radius: 50%;

  border: 8px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  transition: 0.4s;
}

.about-photo:hover {
  transform: scale(1.05) rotate(3deg);
}

#tentang p {
  line-height: 2;

  color: #cbd5e1;
}

.mini-card {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 25px;

  border-radius: 20px;

  text-align: center;

  transition: 0.35s;

  height: 100%;

  backdrop-filter: blur(15px);
}

.mini-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.mini-card h2 {
  font-size: 40px;

  font-weight: 700;

  color: #06b6d4;

  margin-bottom: 10px;
}

.mini-card span {
  color: #cbd5e1;

  font-size: 15px;
}
/* ===========================
TIMELINE
=========================== */

.timeline {
  position: relative;

  max-width: 900px;

  margin: auto;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 30px;

  top: 0;

  bottom: 0;

  width: 4px;

  background: linear-gradient(180deg, #3b82f6, #06b6d4);

  border-radius: 20px;
}

.timeline-item {
  position: relative;

  padding-left: 90px;

  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;

  left: 17px;

  top: 18px;

  width: 30px;

  height: 30px;

  background: #06b6d4;

  border-radius: 50%;

  border: 5px solid #1e293b;

  box-shadow: 0 0 20px #06b6d4;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.05);

  padding: 30px;

  border-radius: 20px;

  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: 0.4s;
}

.timeline-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.25);
}

.timeline-card h3 {
  color: white;

  margin-bottom: 10px;
}

.tahun {
  display: inline-block;

  background: #3b82f6;

  padding: 6px 18px;

  border-radius: 50px;

  margin-bottom: 20px;

  font-size: 14px;
}

.timeline-card p {
  line-height: 1.9;

  color: #cbd5e1;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }

  .timeline-dot {
    left: 2px;
  }

  .timeline-item {
    padding-left: 55px;
  }
}
/* ===========================
ORGANISASI
=========================== */

.org-card {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 40px;

  border-radius: 25px;

  height: 100%;

  text-align: center;

  backdrop-filter: blur(16px);

  transition: 0.4s;
}

.org-card:hover {
  transform: translateY(-12px);

  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
}

.org-icon {
  font-size: 55px;

  margin-bottom: 20px;
}

.org-card h3 {
  color: white;

  margin-bottom: 15px;
}

.org-year {
  display: inline-block;

  padding: 8px 20px;

  background: #3b82f6;

  border-radius: 30px;

  margin-bottom: 25px;

  font-size: 14px;
}

.org-card p {
  line-height: 1.9;

  color: #cbd5e1;
}

/* ===========================
PRESTASI
=========================== */

.prestasi-card {
  max-width: 850px;

  margin: auto;

  padding: 50px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(16px);

  text-align: center;
}

.prestasi-icon {
  font-size: 80px;

  margin-bottom: 20px;

  animation: float 4s infinite;
}

.prestasi-card h3 {
  color: white;

  margin-bottom: 20px;
}

.prestasi-card p {
  line-height: 2;

  color: #cbd5e1;
}

.note-box {
  margin-top: 35px;

  background: rgba(59, 130, 246, 0.15);

  padding: 25px;

  border-radius: 18px;

  border-left: 5px solid #3b82f6;
}
/* ===========================
SKILL
=========================== */

.skill-card {
  background: rgba(255, 255, 255, 0.05);

  padding: 35px;

  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(15px);

  height: 100%;

  transition: 0.35s;
}

.skill-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25);
}

.skill-card h3 {
  margin-bottom: 35px;

  color: white;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-item span {
  display: block;

  margin-bottom: 10px;

  font-weight: 600;
}

.progress {
  height: 15px;

  border-radius: 30px;

  background: #1e293b;

  overflow: hidden;
}

.progress-bar {
  width: 0;

  background: linear-gradient(90deg, #3b82f6, #06b6d4);

  transition: 2s;

  font-size: 12px;

  font-weight: bold;

  display: flex;

  align-items: center;

  justify-content: center;
}

.skill-list {
  padding-left: 20px;
}

.skill-list li {
  margin-bottom: 15px;

  line-height: 1.8;

  color: #cbd5e1;
}

.skill-desc {
  margin-top: 20px;

  background: rgba(255, 255, 255, 0.05);

  padding: 45px;

  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(15px);
}

.skill-desc h3 {
  margin-bottom: 20px;

  color: white;
}

.skill-desc p {
  line-height: 2;

  color: #cbd5e1;
}
/* ===========================
PORTFOLIO
=========================== */

.portfolio-card {
  background: rgba(255, 255, 255, 0.05);

  border-radius: 25px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: 0.4s;

  height: 100%;

  backdrop-filter: blur(15px);
}

.portfolio-card:hover {
  transform: translateY(-12px);

  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
}

.portfolio-card img {
  width: 100%;

  height: 230px;

  object-fit: cover;

  transition: 0.5s;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h4 {
  color: white;

  margin-bottom: 15px;
}

.portfolio-content p {
  color: #cbd5e1;

  line-height: 1.8;

  margin-bottom: 25px;
}

/* ===========================
CONTACT
=========================== */

.contact-card {
  background: rgba(255, 255, 255, 0.05);

  padding: 40px;

  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  height: 100%;

  backdrop-filter: blur(15px);
}

.contact-card h3 {
  margin-bottom: 30px;

  color: white;
}

.contact-card p {
  line-height: 2;

  color: #cbd5e1;
}

.contact-card a {
  color: #06b6d4;

  text-decoration: none;
}

.form-control {
  background: #1e293b;

  border: none;

  color: white;

  padding: 15px;
}

.form-control:focus {
  background: #243447;

  color: white;

  box-shadow: none;
}

textarea {
  resize: none;
}
