/* Reset dasar dan font default */
:root {
  --primary-color: #007bff;
  --secondary-color: #333;
  --light-gray: #f4f4f4;
  --white-color: #fff;
  --text-color: #000000;
}

•⁠  ⁠{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white-color);
  line-height: 1.6;
  color: var(--text-color);
}

/* Container untuk membatasi lebar konten dan menengahkan */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* untuk Header dan Navigasi */
/* === HEADER & NAVIGASI === */
.header-utama {
  background-color: var(--white-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.header-utama .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
}

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

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

/* BEDAA */
/* === SECTION UMUM === */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

/* BEDAA */
/* === HERO SECTION === */
#home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 80px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero-text .posisi {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.btn-cv {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cv:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.social-links {
  margin-top: 2.5rem;
}

.social-links a {
  margin-right: 20px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

.social-links svg {
  width: 28px;
  height: 28px;
}

.hero-image {
  max-width: 45%;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Untuk Section */
/* === TENTANG SECTION === */
#tentang {
  background-color: var(--light-gray);
}

#tentang .container p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* === PROJEK SECTION === */
.projek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.projek-card {
  background: var(--white-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projek-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projek-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.projek-info {
  padding: 1.5rem;
}

.projek-info h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.projek-info p {
  margin-bottom: 1rem;
}

.projek-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-right: 1rem;
}

.projek-links a:hover {
  text-decoration: underline;
}

/* BEDAA */
/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .header-utama .container {
      display: block; /* Persiapan untuk menu hamburger */
  }

  nav ul {
    display: none;
  }

  #home {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding: 4rem 20px;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 3rem;
  }

  .hero-image {
    max-width: 60%;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .posisi {
    font-size: 1.2rem;
  }

  .social-links {
    justify-content: center;
    display: flex;
  }

  .social-links a:last-child {
    margin-right: 0;
  }
}

/* Beda */
/* HEADER */
.personal-header {
  background-color: #0c0c0c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

.header-left h1 {
  font-size: 36px;
  margin: 0 0 8px 0;
}

.header-left p {
  font-size: 18px;
  color: #ccc;
  margin: 0;
}

/* Ikon sosial di kanan */
.header-right a {
  display: inline-block;
  margin-left: 12px;
  font-size: 20px;
  color: white;
  background-color: #1c1c1c;
  padding: 12px;
  border-radius: 50%;
  transition: 0.3s;
}

.header-right a:hover {
  background-color: #0c0707;
}

/* FOOTER */
.footer {
  background-color: #000;
  padding: 20px 40px;
  color: white;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer-menu {
  display: flex;
  align-items: center;
}

.footer-menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
}

.footer-menu a:hover {
  color:  #007bff;
}

main {
  min-height: 0;  /* biar footer langsung di bawah header */
}

h1 a {
  color: white;          /* ubah warna jadi putih */
  text-decoration: none; /* hilangkan garis bawah */
}

h1 a:hover {
  color:  #007bff;         /* opsional: warna saat hover */
}
 

.social-links2{
 background-color: #000000;
  color: white;
  display: flex;
  justify-content: space-between; /* kiri-kanan */
  align-items: center;
  padding: 30px 40px;
}

/* untuk Skill */
/* === SKILL SECTION === */
#skill {
  background-color:  #f4f4f4;
  padding: 5rem 0;
}

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

.skill-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
}

.skill-bar {
  background-color: #ddd;
  border-radius: 25px;
  overflow: hidden;
  height: 12px;
}

.skill-level {
  background: linear-gradient(to right, #007bff, #00d4ff);
  height: 100%;
  border-radius: 25px;
  transition: width 1s ease;
}

/* untuk Kontak */
/* === Kontak === */
#kontak {
  background-color: #ffffff;
  padding: 5rem 0;
}

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

.kontak-card {
  background: white;
  border-radius: 12px;
  padding: 20px 50px;
  text-align: center;
  color: #333;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontak-card i {
  font-size: 30px;
  margin-bottom: 10px;
  color: #007bff;
  transition: color 0.3s ease;
}

.kontak-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.kontak-card:hover i {
  color:  #007bff;
}

.kontak-card p {
  margin-top: 10px;
  font-weight: 500;
}

/* untuk dropdown */
/* Style dasar dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* muncul di bawah menu Projek */
  left: 0;
  background-color: var(--white-color);
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
}

/* Style link dalam dropdown */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.0rem;
}

.dropdown-menu li a:hover {
  background-color: #f4f4f4;
  color: var(--primary-color);
}

/* Muncul saat hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* untuk Filter pada Buttons */
/* FILTER BUTTONS */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-button {
  padding: 8px 20px;
  border: none;
  background-color: #eee;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
  background-color:  #007bff;
  color: rgb(0, 0, 0);
}

/* untuk send Message */
/* Contact Us Form Style */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}



@media screen and (max-width: 768px) {
  /* Aturan untuk HP */
  .menu {
    display: block;
  }
  .sidebar {
    display: none;
  }
}

/* BEDAAAA */
/* === CONTACT SECTION === */
.contact {
  padding: 80px 10%;
  background: #ffffff; /* dark background */
  color: #007bff;
  text-align: center;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 10px;
}

.contact-header p {
  color: #000000;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* === Contact Card (modern style) === */
.contact-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

/* === Social Links === */
.social-card h3 {
  margin-bottom: 20px;
  color: #006400;
}

.social-card ul {
  list-style: none;
  padding: 0;
}

.social-card li {
  margin: 12px 0;
}

.social-card a {
  color: #000000;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.social-card a:hover {
  color: #007bff;
}

/* === Form Style === */
.form-card h3 {
  margin-bottom: 20px;
  color: #006400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
  background: #f1eded;
  color: #000000;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #000000;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: #006400;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #000000;
}

/* BEDAA */
/* Kotak untuk setiap social link */
.social-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-card ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* Hover effect biar interaktif */
.social-card ul li a:hover {
  background: #006400;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 123, 255, 0.25);
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 3rem;   /* ini juga bikin jarak ke bawah */
}

.header-utama .container {
  display: flex;
  justify-content: space-between; /* logo kiri, menu kanan */
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* jarak antar teks */
}

/* Logo */
.logo-text {
  font-size: 40px;
  font-weight: bold;
  color: rgb(117, 75, 75); /* warna default untuk Mahsan */
}

.logo-text .nama {
  color: rgb(25, 139, 46); /* warna hijau untuk Portfolio */
}

