@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
/* === ROOT WARNA BARU (PASTEL KUNING + BIRU) === */
:root {
  --primaryTextColor: #1f2937;
  --secondaryTextColor: #6b7280;

  --borderColor: #e5e7eb;
  --lineColor: #d1d5db;

  --primaryBackgroundColor: #ffffff;
  --secondaryBackgroundColor: #fefce8; /* kuning pastel */
  --thirdBackgroundColor: #eff6ff; /* biru soft */

  --primaryIconColor: #60a5fa; /* biru */
  --primaryIconColorHover: #3b82f6;

  --sectionPadding: 6rem 0;
  --itemBorderRadius: 0.8rem;

  --metallicGradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --metallicBorder: 1px solid rgba(255, 255, 255, 0.6);
  --metallicShadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8fafc;
  color: var(--primaryTextColor);
}

/* TEXT */
h1,h2,h3,h4,h5,h6,strong {
  color: var(--primaryTextColor);
}

p,span,label,input,textarea,li {
  color: var(--secondaryTextColor);
}

a {
  text-decoration: none;
}

/* CONTAINER */
.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media screen and (max-width:1200px){
  .main-container{
    padding: 0 1rem;
  }
}

/* NAVBAR */
.nav {
  display:flex;
  justify-content:space-between;
  align-items: center;
  padding:2rem 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primaryTextColor);
}

nav ul {
  display:flex;
  gap:2rem;
  list-style:none;
}

nav ul li a {
  padding:0.5rem 1rem;
  border-radius:8px;
  transition:0.2s;
}

/* 🔥 hover navbar */
nav ul li a:hover {
  background: var(--thirdBackgroundColor);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Burger Menu */
.burger {
  display: none;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primaryTextColor);
  margin: 5px;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #fefce8 0%, #e0f2fe 100%);
  position: relative;
  border-radius: 0 0 30px 30px;
  padding: 0;
  width: 100%;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.hero-left {
  text-align: left;
}

.hero-left .pre-title {
  text-align: left;
  margin: 0 0 1rem 0;
}

.hero-name {
  font-size:3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-name span {
  color: var(--primaryIconColor);
}

.hero-left p {
  font-size: 1.1rem;
  max-width: 500px;
}

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

.photo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primaryIconColor);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 4s infinite ease-in-out;
}

.photo-circle::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px dashed var(--primaryIconColor);
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate 10s linear infinite;
}

.hero-right img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 8px solid #fff;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.05); opacity: 0.3; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SECTION TITLE */
.section-title {
  text-align:center;
  margin-bottom:3rem;
}

.pre-title {
  text-align:center;
  display:block;
  margin:auto;
  margin-bottom:1rem;
}

/* ABOUT FIX */
#about {
  padding: var(--sectionPadding);
  background: var(--secondaryBackgroundColor); /* FIX */
}

.about-card {
  background: var(--primaryBackgroundColor);
  padding:2rem;
  border-radius:15px;
  max-width:600px;
  margin:auto;
  text-align:left;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* CERTIFICATE */
#certificate {
  padding: var(--sectionPadding);
  background: var(--thirdBackgroundColor);
}

.cert-container {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
}

.cert-card {
  background:#fff;
  padding:1rem;
  border-radius:15px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
  text-align:center;
}

.cert-card img {
  width:100%;
  border-radius:10px;
}

/* CERTIFICATE NEW */
#certificate {
  padding: var(--sectionPadding);
  background: var(--thirdBackgroundColor);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
}

.cert-card-new {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.cert-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.cert-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9); /* changed from yellow to soft white */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s ease;
}

.cert-card-new:hover .cert-overlay {
  opacity: 1;
}

.view-btn {
  background: var(--primaryIconColor);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transform: translateY(20px);
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.view-btn:hover {
  background: var(--primaryIconColorHover);
  color: #fff;
}

.cert-card-new:hover .view-btn {
  transform: translateY(0);
}

.cert-info {
  padding: 1.5rem;
  text-align: center;
}

.cert-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cert-info p {
  font-size: 0.9rem;
  color: var(--secondaryTextColor);
}

/* SERVICES */
#services {
  background: var(--secondaryBackgroundColor);
  padding: var(--sectionPadding);
}

.grid-3 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
}

.service {
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border-color: var(--primaryIconColor);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--primaryIconColor);
  transition: 0.3s;
}

.service:hover .service-icon {
  background: var(--primaryIconColor);
  color: #fff;
}

.service h4 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--primaryTextColor);
}

.service p {
  font-size: 0.9rem;
  color: var(--secondaryTextColor);
  line-height: 1.5;
}

.skill-tags {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.skill-tags span {
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--secondaryTextColor);
  border: 1px solid rgba(0,0,0,0.03);
}

/* PORTFOLIO FIX */
#portfolios {
  padding: var(--sectionPadding);
  background: #fff;
}

.portfolio {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.portfolio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.portfolio-card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-card-link:hover {
  text-decoration: none;
}

.portfolio-cover {
  height:200px;
}

.portfolio img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.portfolio-info {
  padding:1.5rem;
}

/* SKILLS FIX */
#skills {
  padding: var(--sectionPadding);
  background: var(--secondaryBackgroundColor);
}

.education-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0; /* Ubah gap jadi 0 agar garis menyambung */
}

.skill-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.skill-tags span {
  background: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primaryIconColor);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.education {
  display: flex;
  gap: 2rem;
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
  transition: 0.3s;
}

.line {
  display: flex;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  position: relative;
}

/* Garis vertikal */
.line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -2rem; /* menyambung ke item bawah */
  left: 50%;
  width: 2px;
  background: #e2e8f0;
  transform: translateX(-50%);
  z-index: 1;
}

.education:last-child .line::before {
  display: none;
}

.line .dot {
  width: 16px;
  height: 16px;
  background: var(--primaryIconColor);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.education-info {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  flex: 1;
  transition: 0.3s ease;
}

.education-info:hover {
  transform: translateX(10px);
  border-color: var(--primaryIconColor);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.education-info h4 {
  margin-bottom: 0.3rem;
}

.education-years {
  font-size: 0.9rem;
  color: var(--primaryIconColor);
  margin-top: 0.5rem;
}

/* CONTACT FIX */
#contact {
  padding: var(--sectionPadding);
  background:#fff;
}

.contact {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:2rem;
}

.contact-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--primaryIconColor);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

/* BUTTON */
.btn {
  background: var(--primaryIconColor);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.btn:hover {
  background: var(--primaryIconColorHover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primaryIconColor);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.btn-submit:hover {
  background: var(--primaryIconColorHover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: 0.3s;
}

.contact-item:hover {
  transform: translateX(10px);
}

/* FOOTER */
footer {
  padding:3rem 0;
  background: var(--thirdBackgroundColor);
  text-align:center;
}


