/* Reset */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #fff;
  color: #333;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

/* Dark Mode */
body.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

/* Navbar */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}

.navbar {
  display: flex;
  justify-content: space-between; /* logo kiri, menu kanan */
  align-items: center;
  padding: 15px 10%;
}


body.dark-mode header {
  background: #1e1e1e;
}

header h1 {
  color: #d71525;
  font-weight: 700;
}

.navbar {
  display: flex;
  justify-content: space-between; /* logo kiri, menu kanan */
  align-items: center;
  padding: 10px 20px;
}

.typed-name,
.typed-role {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-weight: 700;
  color: #e63946;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: #000;
  margin-left: 3px;
  animation: blink 0.7s step-end infinite;
  vertical-align: bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}




.logo {
  font-weight: bold;
  font-size: 20px;
  color: #e63946;
}

.logo img {
  width: 100px;
  height: auto;
  transition: opacity 0.3s ease;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: none;
}

body.dark-mode .logo-dark {
  display: block;
}

.menu {
  display: flex;
  gap: 20px; /* jarak antar link */
}

.menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size:17px ;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  transition: color 0.3s;
}

.menu a:hover {
  color: #d71525;
}

/* Tombol dark mode */
#darkModeToggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  margin-left: 20px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  gap: 50px;
}

.hero-img {
  background: #e63946;
  border-radius: 100%;
  padding: 7px;
  width: 280px;
  height: 280px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  border-radius: 100%;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
}

.hero-text h2, .hero-text h3 {
  margin: 5px 0;
  font-weight: 600;
}

/* Sosmed */
.social-icons {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.social-icons a {
  color: #e63946;
  font-size: 20px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #333;
}

body.dark-mode .social-icons a:hover {
  color: #f1f1f1;
}

/* Tombol */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #e63946;
  border-radius: 30px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #e63946;
  color: #fff;
}

section {
  padding: 60px 10%;
  scroll-margin-top: 120px;
}

/* tombol */
.btn-cv {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #e63946;
  border-radius: 30px;
  text-decoration: none;
  color: #e63946;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cv:hover {
  background: #e63946;
  color: #fff;
}

.btn-cv:active {
  transform: translateY(1px);
}

/* wrapper */
.cv-dropdown {
  position: relative;
  display: inline-block;
}

.cv-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  background: #fff; /* ubah ke putih biar kelihatan */
  border: 2px solid #e63946;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  min-width: 220px;
  overflow: hidden;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  pointer-events: none;
}

/* saat terbuka */
.cv-dropdown.open .cv-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* setiap item di dalam menu */
.cv-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%; /* biar hover-nya full */
  color: #e63946;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(230,57,70,0.3); /* garis pembatas antar item */
  background: transparent;
}

/* hapus border di item terakhir */
.cv-menu a:last-child {
  border-bottom: none;
}

/* efek hover */
.cv-menu a:hover {
  background: rgba(230,57,70,0.1);
  color: #e63946;
  transform: none; /* hilangin geser biar hover-nya stabil */
}

/* dark mode */
body.dark-mode .cv-menu {
  background-color: #222;
}

body.dark-mode .cv-menu a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .cv-menu a:hover {
  background: rgba(230,57,70,0.2);
}

.about {
  font-size: 18px;
  margin-bottom: 160px;
  margin-top: 80px;
  text-align: center;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#aboutme {
  text-align: center;
  color: #e63946;
  font-weight: 700;
}

.divider {
  width: auto;
  height: 4px;
  background: #e63946;
  margin: 0 auto 30px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.visimisi {
  font-size: 19px;
  margin-bottom: 120px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-align: center;
}

#visi-misi h1 {
  text-align: center;
  color: #e63946;
  font-weight: 700;
  margin-bottom: 5px;
}

.box-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap; 
}

.box1 {
  background: inherit;
  border: 3px solid #e63946;
  border-radius: 16px;
  padding: 20px 25px;
  width: 350px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1),
              0 2px 8px rgba(0,0,0,0.06);
  font-weight: bold;
  text-align: center;
}

.education {
  font-size: 20px;
  margin-bottom: 120px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-align: center;
}

.education h1 {
  text-align: center;
  color: #e63946;
  font-weight: 700;
  margin-bottom: 5px;
}

.box3 {
  background: inherit;
  border: 3px solid #e63946;
  border-radius: 16px;
  padding: 10px 15px;
  margin: 5px auto;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1),
              0 2px 8px rgba(0,0,0,0.06);
  font-weight: bold;
  text-align: center;
}

.school-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.school-logo:hover {
  transform: scale(1.05);
}

/* Modal Style*/
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
}

.modal-content {
  max-width: 80%;
  border-radius: 10px;
  margin-top: 20px;
}

.close {
  color: #fff;
  position: absolute;
  top: 25px;
  right: 45px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#caption {
  margin: 15px auto;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

#schoolLink {
  display: inline-block;
  background: #e63946;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
#schoolLink:hover {
  background: #ff4f59;
}

.skills-section {
  text-align: center;
  padding: 80px 20px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.skills-section h1 {
  font-size: 30px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 30px;
}

.skills-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.skills-carousel {
  display: flex;
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.skills-carousel::-webkit-scrollbar {
  display: none;
}

.skill-card {
  flex: 0 0 200px;
  background: #151515;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(230,57,70,0.3);
}

.skill-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #1a1a1a;
  border-bottom: 2px solid #e63946;
}

.skill-card p {
  padding: 10px;
  font-weight: 600;
  color: #eaeaea;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-inner {
  background: #111;
  border: 2px solid #e63946;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  text-align: left;
  color: #fff;
}

.modal-inner h3 {
  color: #e63946;
  margin-bottom: 10px;
}

.modal-inner ul {
  padding-left: 20px;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}
.close:hover {
  color: #e63946;
}










.main-project-section {
  text-align: center;
  padding: 80px 20px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color, #fff);
  background: var(--bg-color, inherit);
}

.main-project-section h1 {
  font-size: 30px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 40px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.project-card {
  width: 250px;
  background: #151515;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(230,57,70,0.3);
}
.project-card img {
  width: 65%;
  height: 200px;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
}
.project-card h3 {
  margin: 10px;
  color: #fff;
}

/* Modal Layout */
.project-detail .project-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.project-images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-images img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.project-info {
  flex: 1 1 55%;
}
.project-info h3 {
  color: #e63946;
  margin-bottom: 10px;
}
.project-info p {
  color: #eaeaea;
  margin-bottom: 15px;
}

.project-skills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-skills img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Responsiveness */
@media (max-width: 768px) {
  .project-detail .project-content {
    flex-direction: column;
  }
}








/*
.contact-section {
  width: 100%;
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  background: #151515;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  width: 100%;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #e63946;
}

.contact-form button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #e63946;
  border-radius: 30px;
  text-decoration: none;
  color: #e63946;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-form button:hover {
  background: #e63946;
  color: #fff;
  transform: translateY(-2px);
}*/


.contact-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-card {
    background: inherit;
    padding: 40px;
    width: 420px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card h1 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    border-color: #e63946;
    box-shadow: 0 0 4px rgba(78,115,223,0.3);
}

textarea {
    resize: none;
    height: 100px;
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: #e63946;
    border: none;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 5px;


    padding: 12px;
    border: 2px solid #e63946;
    border-radius: 30px;
    text-decoration: none;
    color: #e63946;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.send-btn:hover {
    background: #e63946;
  color: #fff;
}

.success {
    margin-top: 18px;
    background: #d4edda;
    padding: 12px;
    color: #155724;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    text-align: center;
}

.success-dark {
    margin-top: 18px;
    background: #0f2a18;       /* hijau gelap elegan */
    padding: 12px;
    color: #8fffc2;            /* hijau terang biar kontras */
    border-left: 4px solid #2ecc71;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none;
}
