:root {
  --primary: #f5f5f5;
  --secondary: #e0e0e0;
  --text-dark: #333;
  --text-light: #666;
  --accent: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--primary);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Modern Glass Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-container {
  width: 85%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

/* Navbar Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  padding: 4px 0;
  transition: 0.3s ease;
}

/* Hover underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  border-radius: 20px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Optional: Shrink on scroll effect */
.scrolled {
  padding: 0.6rem 0 !important;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.7);
  transition: 0.3s ease;
}


/* ================= HERO CLEAN MODERN ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  padding: 3rem 2rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
}

/* Foto Modern Circular */
.hero-img img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: 0.35s ease;
}

.hero-img img:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

/* Hero Text */
.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

/* Highlight Nama */
.highlight {
  background: #e0e0e0;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #222;
}

/* Deskripsi */
.hero-desc {
  max-width: 500px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Tombol Modern */
.hero-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2.2rem;
  background: #333;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #555;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Responsive */
@media (min-width: 850px) {
  .hero-container {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

  .hero-text {
    max-width: 480px;
  }
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #555;
}

/* Section */
section {
  padding: 4rem 2rem;
  text-align: center;
}

h2 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

p {
  color: var(--text-light);
}

/* Foto Profil */
.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


/* ===================== EDUCATION SECTION ===================== */
.education-section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

/* Timeline */
.edu-timeline {
  position: relative;
  margin-left: 25px;
  padding-left: 20px;
  border-left: 3px solid rgba(0,0,0,0.07);
}

/* Education Card */
.edu-card {
  position: relative;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1.6rem 1.6rem;
  margin-bottom: 2.5rem;

  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  transition: 0.35s ease;
}

.edu-card:hover {
  transform: translateX(10px) translateY(-4px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.15);
}

/* Timeline Dot */
.edu-dot {
  width: 16px;
  height: 16px;
  position: absolute;
  left: -32px;
  top: 25px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  border: 3px solid #fff;
}

/* Icon */
.edu-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(0,0,0,0.05);
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--accent);
}

/* Text Styling */
.edu-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.edu-major {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 4px;
}

.edu-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.edu-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== Efek Animasi ===== */

/* Efek Fade-In Global */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi tombol hover */
.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ----------------------------
   TECH STACK BADGES (SOFT COLOR)
----------------------------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tech {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  color: #333;
  letter-spacing: 0.3px;
  display: inline-block;
  text-transform: uppercase;
  background: #f1f1f1;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Warna soft per teknologi */
.tech.html {
  background: #f7e8e3;   /* soft pale orange */
  border-color: #e8d5cf;
}

.tech.css {
  background: #e6edf6;   /* soft blue */
  border-color: #d2dfec;
}

.tech.js {
  background: #faf3d4;   /* soft yellow */
  border-color: #e8dfb8;
}

.tech.php {
  background: #e6e3f4;   /* soft violet */
  border-color: #d9d6e9;
}

.tech.laravel {
  background: #f9e3e3;   /* soft red */
  border-color: #e8cccc;
}

.tech.mysql {
  background: #e3eef1;   /* soft cyan-grey */
  border-color: #d1dee2;
}

.tech.python {
  background: #e9eff6;   /* soft muted blue */
  border-color: #d6dde7;
}

.tech.react {
  background: #e0f4f8;   /* soft teal */
  border-color: #c7e5ea;
}


/* Project */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card utama */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); 
  gap: 2.5rem;                 /* jarak antar card pas */
  padding: 0 2rem;             /* ruang kiri-kanan aman */
  max-width: 1400px;           /* grid tidak melebar */
  margin: 0 auto;              /* center grid */
  justify-items: center;       /* center tiap card */
}

/* Card kecil */
.project-card {
  width: 300%;                 /* ikut lebar grid */
  max-width: 430px;            /* batas maksimal agar tidak terlalu lebar */
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Gambar responsif */
.project-image {
  width: 100%;
  height: 170px; /* tinggi lebih natural */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* menjaga proporsi gambar */
  object-position: center;
  display: block;
}

@media (max-width: 480px) {
  .project-image {
    height: 140px;
  }
}

/* Konten */
.project-content {
  padding: 1rem;
}

.project-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.project-content p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* Tombol GitHub */
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* jarak icon & tulisan */

  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
  transition: 0.25s ease;
}

.github-btn i {
  font-size: 1rem;
}

.github-btn:hover {
  opacity: 0.85;
}


/* Garis pemisah antara gambar dan teks */
.divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5; /* abu-abu lembut, cocok dengan tema website kamu */
  margin: 0;
}


/* skills */
/* ---------------------------------------------------------------- */
/*              Premium Aesthetic Skill Card                       */
/* ---------------------------------------------------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 35px;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.skill-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 25px 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: 0.35s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15),
              0 0 20px rgba(100,150,255,0.35);
}

/* Wrapper icon */
.icon-wrapper {
  width: 70px;
  height: 70px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-wrapper img {
  width: 55px;
  height: 55px;
}

/* Floating animation */
.floating {
  animation: floatingIcon 3s ease-in-out infinite;
}

@keyframes floatingIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Progress bar */
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: var(--value);
  background: linear-gradient(90deg, #6C63FF, #4BB4FF);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(120,150,255,0.5);
  animation: fillProgress 1.5s ease forwards;
}

/* Progress value animation */
@keyframes fillProgress {
  from { width: 0; }
  to { width: var(--value); }
}

/* Percent text */
.progress-text {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-dark);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* Wrapper Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* FORM CARD */
.contact-form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

/* Input fields */
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  outline: none;
  transition: 0.25s ease;
  font-family: inherit;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px rgba(100, 100, 255, 0.2);
}

.contact-textarea {
  height: 130px;
  resize: none;
}

/* Submit button */
.contact-submit {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-submit:hover {
  background: #4b4bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* RIGHT SIDE CONTACT OPTIONS */
.contact-options {
  display: grid;
  gap: 1.7rem;
}

.option-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  text-align: center;
  border: 1px solid #eee;
  transition: 0.3s ease;
}

.option-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Icon */
.option-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* Button */
.option-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.25s ease;
}

.option-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}



/* Modern Footer */
.footer {
  background: #ffffff;
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  position: relative;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: auto;
}

.footer-brand h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.footer-brand span {
  color: var(--accent);
}

.footer-brand p {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Footer Links */
.footer-links h3,
.footer-social h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 0.5rem 0;
}

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 1.4rem;
  color: var(--text-light);
  background: #f5f5f5;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s ease;
}

.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  background: #333;
}

/* Show button */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}








