/* ===============================
   FONT & VARIABEL DASAR
================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --textDark: #232e35;
  --textLight: #656d72;

  --border: #f1f1f1;
  --line: #d9d9d9;

  --bgPrimary: #fff;
  --bgSecondary: #fbfbfb;
  --bgAccentLight: #f5f3fe;

  --accent: #7e74f1;
  --accentHover: #5d51e8;

  --sectionPadding: 6rem 0;
  --radius: 0.7rem;
}

/* ===============================
   RESET
================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: #fdfdfd;
  scroll-behavior: smooth;
  transition: background 0.3s ease;
}

h1, h2, h3, h4, h5, h6, strong {
  color: var(--textDark);
  letter-spacing: -0.3px;
}

p {
  font-size: 1rem;
  line-height: 1.9rem;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--accent);
}

/* ===============================
   LAYOUT DASAR
================================== */
.main-container {
  width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  .main-container { width: 90%; }
}

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

/* ===============================
   BUTTON
================================== */
.btn {
  padding: 1rem 1.5rem;
  background: white;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

/* ===============================
   TITLE SECTION
================================== */
.section-title {
  margin: 1rem 0 4rem;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: var(--accent);
  border-radius: 2px;
}

.pre-title {
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: var(--textLight);
  position: relative;
  padding-left: 40px;
  font-weight: 400;
  font-size: 0.9rem;
}

.pre-title::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
  position: absolute;
  left: 0;
  top: 50%;
}

/* ===============================
   NAVBAR
================================== */
.nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);

  width: min(1200px, 90%);
  min-height: 72px;
  padding: 0 1.5rem;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(230, 230, 230, 0.8);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);

  z-index: 999;
}

.logo h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--textDark);
}

.nav nav {
  display: flex;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.3rem;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  font-weight: 500;
  color: var(--textDark);
  position: relative;
}

.nav ul li a:hover {
  color: var(--accent);
}

.nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: 0.3s;
}

.nav ul li a:hover::after {
  width: 100%;
}

header {
  padding-top: 110px;
}
/* ===============================
   BURGER MENU
================================== */
.burger {
  display: none;
  position: fixed;
  top: 33px;
  right: 35px;
  z-index: 99;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: #000;
  margin: 7px;
  transition: all 0.3s;
}

/* ===============================
   HERO
================================== */
#hero {
  height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

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

.hero-left p {
  max-width: 550px;
}

.hero-right img {
    width: 90%;
}

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

/* ===============================
   PORTOFOLIO
================================== */
/* ===============================
   PORTOFOLIO
================================== */
#portofolios {
  padding: var(--sectionPadding);
}

.portofolios .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 atas, 3 bawah */
  gap: 3rem;
  align-items: stretch;
}

.portofolio {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portofolio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.portofolio-cover {
  height: 250px;
}

.portofolio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: 0.3s ease;
}

.portofolio:hover .portofolio-cover img {
  filter: brightness(1.05);
}

.portofolio-info {
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portofolio-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.portofolio h4 {
  font-weight: 500;
  font-size: 1.05rem;
}

.portofolio-link {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--bgAccentLight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: 0.25s ease;
}

.portofolio-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  transition: 0.25s ease;
}

.portofolio-link:hover {
  background: var(--accent);
}

.portofolio-link:hover svg {
  stroke: #fff;
}

.portofolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.portofolio-tags div {
  background: #f9f9ff;
  color: var(--accent);
  font-weight: 500;
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.portofolio-info p {
  font-size: 0.95rem;
  line-height: 1.7rem;
  margin-bottom: 0.6rem;
}

/* ===============================
   EDUCATION / TIMELINE
================================== */
.education {
  display: flex;
  gap: 1rem;
}
#experience {
  padding: 5rem 0 6rem;
}
.education .line {
  padding: 0 0.7rem;
}

.education .line div {
  width: 2px;
  height: 100%;
  background: var(--accent);
  position: relative;
}

.education .line div::before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -6px;
}

.education-title {
  font-weight: 600;
  color: var(--textDark);
}

.education-info p {
  margin: .6rem 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6rem;
}

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

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

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

.skills-right ul li {
  line-height: 2rem;
}

/* ===============================
   CONTACT
================================== */
#contact {
  padding: var(--sectionPadding);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1.3rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126,116,241,0.1);
  outline: none;
}

.btn-submit {
  width: 100%;
  padding: .75rem 1.3rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn-submit:hover {
  background: var(--accentHover);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000 !important;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: #000 !important;
}

.contact-icon svg path {
  fill: #000 !important;
}

.contact-item h4 {
  margin: 0;
  color: var(--textDark);
  font-weight: 600;
}

/* ===============================
   FOOTER
================================== */
footer {
  padding: 4rem 0;
  background: var(--bgSecondary);
  text-align: center;
}

.footer-icons {
  margin-bottom: 1rem;
}

.footer-icons a {
  margin: 0 0.5rem;
}

.footer-icons svg {
  fill: #000;
  transition: 0.2s;
}

.footer-icons a:hover svg {
  fill: var(--accent);
  transform: scale(1.15);
}

/* lock scroll saat menu mobile dibuka */
.no-scroll {
  overflow: hidden;
}

@media screen and (max-width: 825px) {
  nav ul li a button {
    width: 100%;
    margin-top: 1rem;
  }
}

