:root {
  --bg-main: #07100b;
  --bg-secondary: #0b1710;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);

  --primary: #6ee7a8;
  --primary-dark: #22c55e;
  --secondary: #15803d;
  --cyan: #34d399;

  --text-main: #f4f7fb;
  --text-secondary: #a9b1c3;
  --border: rgba(255, 255, 255, 0.09);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(34, 197, 94, 0.15),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(21, 128, 61, 0.12),
      transparent 30%
    ),
    var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Plus Jakarta Sans", sans-serif;
}

a {
  text-decoration: none;
}

section {
  position: relative;
}

.section-padding {
  padding: 110px 0;
}

.text-muted-custom {
  color: var(--text-secondary) !important;
}

/* =========================
           NAVBAR
        ========================== */

.navbar {
  padding: 18px 0;
  transition: 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 16, 11, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  color: white !important;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: #bdc5d6 !important;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 7px;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* =========================
           BUTTONS
        ========================== */

.btn-main {
  color: white;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.22);
  transition: 0.25s;
}

.btn-main:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 197, 94, 0.32);
}

.btn-outline-custom {
  color: white;
  font-weight: 600;
  padding: 12px 23px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  transition: 0.25s;
}

.btn-outline-custom:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* =========================
           HERO
        ========================== */

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd3e1;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 0 5px rgba(57, 217, 138, 0.1);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -4px;
  font-weight: 800;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #a7f3d0, #4ade80, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.hero-social {
  display: flex;
  gap: 11px;
}

.social-button {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.25s;
}

.social-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.hero-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo {
  height: 550px;
  border-radius: 23px;
  background:
    linear-gradient(180deg, transparent 38%, rgba(7, 16, 11, 0.88)),
    url("assets/img/profile.jpeg");
  background-position: center, 53% 94%;
  background-size: cover, 128% auto;
  background-repeat: no-repeat;
  position: relative;
}

.floating-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 16, 11, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
}

.code-badge {
  position: absolute;
  top: 35px;
  right: -25px;
  width: 105px;
  height: 105px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 27, 16, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: rotate(5deg);
}

.code-badge i {
  font-size: 2rem;
  color: var(--primary);
}

/* =========================
           SECTION TITLE
        ========================== */

.section-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-description {
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.8;
}

/* =========================
           STAT
        ========================== */

.stats-section {
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

.stats-wrapper {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat-item {
  padding: 35px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.stat-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* =========================
           ABOUT
        ========================== */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
}

.about-card {
  padding: 32px;
}

.about-feature {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.about-feature:last-child {
  border-bottom: 0;
}

.feature-icon {
  min-width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
  font-size: 1.2rem;
}

/* =========================
           SKILLS
        ========================== */

.skill-card {
  padding: 28px;
  height: 100%;
}

.skill-icon {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.11);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.tech-badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: #b8c1d2;
  font-size: 0.77rem;
  padding: 7px 10px;
  border-radius: 8px;
  margin: 3px 2px;
}

/* =========================
           EXPERIENCE
        ========================== */

.timeline {
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 3px;
  width: 19px;
  height: 19px;
  background: var(--primary-dark);
  border: 5px solid #0b1710;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--primary);
}

.experience-date {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.experience-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================
           PROJECTS
        ========================== */

.project-card {
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.project-preview {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #0b1710;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
  opacity: 0.92;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 16, 11, 0.76), transparent 60%);
}

.project-category {
  position: absolute;
  top: 17px;
  left: 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 16, 11, 0.74);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 0.72rem;
  backdrop-filter: blur(10px);
}

.project-content {
  padding: 26px;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.project-link {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.2s;
}

.project-link:hover {
  color: var(--primary);
}

/* =========================
           CERTIFICATION
        ========================== */

.cert-card {
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  height: 100%;
}

.cert-icon {
  min-width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
           CONTACT
        ========================== */

.contact-wrapper {
  position: relative;
  overflow: hidden;
  padding: 60px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(34, 197, 94, 0.16),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.contact-icon {
  min-width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* =========================
           FOOTER
        ========================== */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =========================
           SCROLL REVEAL
        ========================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
           RESPONSIVE
        ========================== */

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 16px;
    background: rgba(11, 23, 16, 0.98);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
  }

  .hero-title {
    letter-spacing: -2px;
  }

  .hero-card {
    margin-top: 50px;
  }

  .hero-photo {
    height: 470px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

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

  #home {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-photo {
    height: 430px;
  }

  .code-badge {
    right: -5px;
  }

  .contact-wrapper {
    padding: 35px 25px;
  }
}
