/* ========== RESET & VARIABLES ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f1a2c;
  --primary-light: #1a2d44;
  --secondary: #c9a84c;
  --secondary-light: #e8d08a;
  --secondary-dark: #a8892e;
  --text-light: #f8f9fa;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;

  --max-width: 1140px;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 4px;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 600px;
}
.text-center .section-subtitle {
  margin: 0 auto 60px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Badge Lang */
.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--secondary);
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 26, 44, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.logo span {
  color: var(--secondary);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active-link {
  color: var(--secondary);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0 120px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.15) 0%,
    rgba(15, 26, 44, 0) 70%
  );
  border-radius: 50%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
}
.hero-text h1 span {
  display: block;
  color: var(--secondary);
  font-size: 2.2rem;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 300;
}
.hero-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.img-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}
.img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  transform: translate(20px, 20px);
  z-index: 0;
}
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 8px solid var(--primary-light);
  background: #fff;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-image-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--secondary);
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.stat-item h4 {
  font-size: 2.5rem;
  color: var(--secondary);
  font-family: var(--font-sans);
  font-weight: 700;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.about-text p {
  margin-bottom: 20px;
  color: var(--text-dark);
  opacity: 0.8;
  text-align: justify;
}
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.info-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(201, 168, 76, 0.3);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-content {
  width: calc(50% - 40px);
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border: 4px solid var(--bg-light);
  border-radius: 50%;
  z-index: 1;
}
.timeline-date {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--secondary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.timeline-company {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.skill-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--secondary);
}
.skill-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}
.skill-title {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  color: var(--primary);
}

/* Contact Section */
.contact-container {
  display: grid;
  gap: 60px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-info {
  background: var(--primary);
  color: #fff;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
}
.contact-info h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-item i {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--secondary);
  font-size: 1.2rem;
}
.contact-item h5 {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}
.contact-item p {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Certificates Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--secondary);
}
.cert-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}
.cert-title {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  color: var(--primary);
  margin-bottom: 8px;
}
.cert-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.cert-link:hover {
  color: var(--secondary-dark);
  gap: 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 32px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero::before {
    right: -200px;
  }
  .img-wrapper {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .lang-switch {
    margin-top: 10px;
  }

  .timeline::before {
    left: 30px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 80px;
    align-items: flex-start;
  }
  .timeline-content {
    width: 100%;
  }
  .timeline-dot {
    left: 30px;
  }

  h1 {
    font-size: 3rem !important;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* ===== RESPONSIVE UNTUK LAYAR SANGAT KECIL (≤480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }
  .hero {
    padding: 40px 0 80px 0;
  }
  .hero-text h1 {
    font-size: 2.2rem !important;
  }
  .hero-text h1 span {
    font-size: 1.4rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .img-wrapper {
    width: 220px;
    height: 220px;
  }
  .img-wrapper::after {
    transform: translate(10px, 10px);
  }
  .about-image-card {
    padding: 24px;
  }
  .about-stats {
    flex-direction: column;
    gap: 16px;
  }
  .info-list {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  .timeline-dot {
    left: 20px;
    width: 16px;
    height: 16px;
    top: 20px;
  }
  .timeline-content {
    padding: 20px;
  }
  .timeline-date {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .timeline-title {
    font-size: 1.2rem;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  .skill-card {
    padding: 20px 12px;
  }
  .skill-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .skill-title {
    font-size: 0.95rem;
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .cert-card {
    padding: 24px 16px;
  }
  .contact-info {
    padding: 32px 20px;
  }
  .contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }
  .contact-item {
    gap: 12px;
    margin-bottom: 20px;
  }
  .contact-item i {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .contact-item p {
    font-size: 1rem;
  }
  .logo {
    font-size: 1.4rem;
  }
  .nav-links {
    padding: 20px 16px;
  }
  .lang-switch {
    width: 100%;
    justify-content: center;
  }
}
