/* ===========================
   GOOGLE FONT
=========================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ===========================
   RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f172a;
  color: #fff;
}

section {
  min-height: 100vh;
  padding: 90px 10%;
}

/* ===========================
   HEADER
=========================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: #111827;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.logo {
  color: #38bdf8;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  transition: 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: #38bdf8;
}

/* ===========================
   HOME
=========================== */

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.home-content {
  flex: 1;
}

.home-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.home-content h1 {
  font-size: 55px;
  color: #38bdf8;
}

.home-content p {
  margin: 20px 0;
  color: #d1d5db;
  line-height: 1.8;
}

.home-image {
  flex: 1;
  text-align: center;
}

.home-image img {
  width: 350px;
  border-radius: 50%;
  border: 5px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* ===========================
   SOCIAL ICON
=========================== */

.social-media {
  margin: 30px 0;
}

.social-media a {
  width: 45px;
  height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  color: #38bdf8;
  margin-right: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.social-media a:hover {
  background: #38bdf8;
  color: #fff;
  transform: translateY(-5px);
}

/* ===========================
   BUTTON
=========================== */

.btn {
  display: inline-block;
  background: #38bdf8;
  color: #fff;
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 40px;
  transition: 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #0284c7;
}

/* ===========================
   ABOUT
=========================== */

.about {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image img {
  width: 350px;
  border-radius: 20px;
}

.about-content h2 {
  font-size: 40px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.about-content p {
  line-height: 1.9;
  color: #d1d5db;
}

/* ===========================
   TITLE
=========================== */

.heading {
  text-align: center;
  font-size: 40px;
  color: #38bdf8;
  margin-bottom: 60px;
}
/* ===========================
   SKILLS
=========================== */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.skill-box {
  background: #1e293b;
  padding: 35px 20px;
  text-align: center;
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid transparent;
}

.skill-box:hover {
  transform: translateY(-10px);
  border: 1px solid #38bdf8;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.skill-box i {
  font-size: 55px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.skill-box h3 {
  font-size: 20px;
}

/* ===========================
   PROJECTS
=========================== */

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  color: #38bdf8;
  margin-bottom: 15px;
}

.project-info p {
  color: #d1d5db;
  line-height: 1.7;
}

.project-info a {
  display: inline-flex;
  margin-top: 20px;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  background: #38bdf8;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.project-info a:hover {
  background: #0284c7;
}

/* ===========================
   CERTIFICATE
=========================== */

.certificate-container {
  display: flex;
  justify-content: center;
}

.certificate-container img {
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===========================
   CONTACT
=========================== */

.contact form {
  max-width: 700px;
  margin: auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  background: #1e293b;
  color: white;
  font-size: 16px;
}

.contact textarea {
  resize: none;
}

.contact button {
  border: none;
  cursor: pointer;
}

/* ===========================
   FOOTER
=========================== */

footer {
  padding: 30px;
  text-align: center;
  background: #111827;
}

footer p {
  color: #cbd5e1;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 991px) {
  header {
    padding: 20px 5%;
  }

  section {
    padding: 100px 5%;
  }

  .home,
  .about {
    flex-direction: column;
    text-align: center;
  }

  .home-image img,
  .about-image img {
    width: 280px;
  }
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  nav a {
    margin: 0;
  }

  .home-content h1 {
    font-size: 40px;
  }

  .home-content h3 {
    font-size: 22px;
  }

  .heading {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .home-image img,
  .about-image img {
    width: 220px;
  }

  .project-card img {
    height: 180px;
  }

  .btn {
    padding: 12px 28px;
  }
}
/* Scroll Animation */

.hidden {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Active Menu */

nav a.active {
  color: #38bdf8;
}
/* ===========================
   PROJECT TECH
=========================== */

.project-tech {
  margin-top: 20px;
}

.project-tech span {
  display: inline-block;
  padding: 8px 15px;
  background: #38bdf8;
  border-radius: 30px;
  margin: 5px;
  font-size: 14px;
  color: white;
}

.project-links {
  margin-top: 25px;
}

.project-links a {
  display: inline-flex;

  width: 45px;
  height: 45px;

  justify-content: center;
  align-items: center;

  background: #38bdf8;
  color: white;

  border-radius: 50%;

  text-decoration: none;

  margin-right: 10px;

  transition: 0.3s;
}

.project-links a:hover {
  transform: scale(1.1);

  background: #0284c7;
}
.experience-box {
  max-width: 900px;

  margin: auto;

  background: #1e293b;

  padding: 40px;

  border-radius: 20px;

  text-align: center;
}

.experience-box h3 {
  color: #38bdf8;

  margin-bottom: 10px;
}

.experience-box h4 {
  margin-bottom: 20px;

  color: #d1d5db;
}

.experience-box p {
  color: #cbd5e1;

  line-height: 1.8;
}
/* ===========================
TIMELINE
=========================== */

.timeline {
  position: relative;

  max-width: 900px;

  margin: auto;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 20px;

  width: 4px;

  height: 100%;

  background: #38bdf8;
}

.timeline-item {
  position: relative;

  margin-bottom: 50px;

  padding-left: 60px;
}

.timeline-dot {
  position: absolute;

  left: 8px;

  top: 8px;

  width: 25px;

  height: 25px;

  background: #38bdf8;

  border-radius: 50%;
}

.timeline-content {
  background: #1e293b;

  padding: 25px;

  border-radius: 15px;
}

.timeline-content h3 {
  color: #38bdf8;
}

.timeline-content span {
  display: block;

  margin: 10px 0;

  color: #cbd5e1;
}

.timeline-content p {
  line-height: 1.8;
}
.progress {
  margin-bottom: 30px;
}

.progress h3 {
  display: flex;

  justify-content: space-between;
}

.bar {
  width: 100%;

  height: 10px;

  background: #334155;

  border-radius: 20px;

  overflow: hidden;
}

.bar span {
  display: block;

  height: 100%;

  background: #38bdf8;
}
/* ===========================
   SERVICES
=========================== */

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-box {
  background: #1e293b;
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.service-box i {
  font-size: 55px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.service-box h3 {
  margin-bottom: 15px;
}

.service-box p {
  color: #d1d5db;
  line-height: 1.7;
}
/* ===========================
   CERTIFICATES
=========================== */

.certificate-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.certificate-card {
  background: #1e293b;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.certificate-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.certificate-card h3 {
  padding: 20px;
  color: #38bdf8;
}
/* ===========================
CONTACT
=========================== */

.contact-container {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 40px;

  align-items: center;
}

.contact-info {
  background: #1e293b;

  padding: 35px;

  border-radius: 15px;
}

.contact-info h3 {
  color: #38bdf8;

  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;

  line-height: 1.8;
}

.contact-info i {
  color: #38bdf8;

  margin-right: 10px;
}

.contact form {
  display: flex;

  flex-direction: column;
}

.contact input,
.contact textarea {
  margin-bottom: 20px;

  padding: 15px;

  border: none;

  border-radius: 10px;

  background: #1e293b;

  color: white;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
.top {
  position: fixed;

  bottom: 30px;

  right: 30px;

  width: 50px;

  height: 50px;

  background: #38bdf8;

  color: white;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  text-decoration: none;

  font-size: 20px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  transition: 0.3s;
}

.top:hover {
  transform: translateY(-5px);

  background: #0284c7;
}
#typing {
  color: #38bdf8;
  font-weight: 600;
}
.hero-buttons {
  display: flex;

  gap: 15px;

  margin-top: 25px;
}

.btn-outline {
  background: transparent;

  border: 2px solid #38bdf8;

  color: #38bdf8;
}

.btn-outline:hover {
  background: #38bdf8;

  color: white;
}
.stats {
  display: flex;

  justify-content: space-around;

  padding: 70px 10%;
}

.stat-box {
  text-align: center;
}

.stat-box h2 {
  font-size: 55px;

  color: #38bdf8;
}

.stat-box p {
  color: #cbd5e1;
}
/* Mencegah font kustom menimpa Font Awesome */
.social-media a i,
.contact-info i,
.service-box i,
.skill-box i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  display: inline-block;
  line-height: 1;
}

/* Penyesuaian tampilan tombol lingkaran sosmed */
.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #00eeff; /* ganti sesuai warna tema kamu */
  border-radius: 50%;
  color: #00eeff;
  font-size: 20px;
  margin-right: 12px;
  transition: 0.3s ease;
  text-decoration: none;
}

.social-media a:hover {
  background: #00eeff;
  color: #1f242d;
  box-shadow: 0 0 10px #00eeff;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-info p i {
  font-size: 1.2rem;
  color: #00eeff; /* ganti sesuai warna aksen portofoliomu */
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #00eeff; /* ganti sesuai warna hover portofoliomu */
}
/* ================= WARNA BRAND ASLI SOCIAL MEDIA ================= */

/* Styling Dasar Tombol Sosial Media */
.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 20px;
}

/* GitHub - Putih / Dark Grey */
.social-media a:has(.fa-github) {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.social-media a:has(.fa-github):hover {
  background: #ffffff;
  color: #181717;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* LinkedIn - Biru Official (#0A66C2) */
.social-media a:has(.fa-linkedin),
.social-media a:has(.fa-linkedin-in) {
  border: 2px solid #0a66c2;
  color: #0a66c2;
}
.social-media a:has(.fa-linkedin):hover,
.social-media a:has(.fa-linkedin-in):hover {
  background: #0a66c2;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.6);
}

/* Instagram - Pink / Magenta Gradient (#E4405F) */
.social-media a:has(.fa-instagram) {
  border: 2px solid #e4405f;
  color: #e4405f;
}
.social-media a:has(.fa-instagram):hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(228, 64, 95, 0.6);
}

/* Email / Gmail - Merah Official (#EA4335) */
.social-media a:has(.fa-envelope) {
  border: 2px solid #ea4335;
  color: #ea4335;
}
.social-media a:has(.fa-envelope):hover {
  background: #ea4335;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(234, 67, 53, 0.6);
}
/* GitHub */
.social-media a.github {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.social-media a.github:hover {
  background: #ffffff;
  color: #181717;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* LinkedIn */
.social-media a.linkedin {
  border: 2px solid #0a66c2;
  color: #0a66c2;
}
.social-media a.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.6);
}

/* Instagram */
.social-media a.instagram {
  border: 2px solid #e4405f;
  color: #e4405f;
}
.social-media a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(228, 64, 95, 0.6);
}

/* Gmail */
.social-media a.gmail {
  border: 2px solid #ea4335;
  color: #ea4335;
}
.social-media a.gmail:hover {
  background: #ea4335;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(234, 67, 53, 0.6);
}
/* Email */
.contact-email i {
  color: #ea4335;
}
.contact-email a:hover {
  color: #ea4335;
}

/* GitHub */
.contact-github i {
  color: #ffffff;
}
.contact-github a:hover {
  color: #ffffff;
}

/* LinkedIn */
.contact-linkedin i {
  color: #0a66c2;
}
.contact-linkedin a:hover {
  color: #0a66c2;
}

/* Location */
.contact-location i {
  color: #ff4d4d;
}
/* ================= WARNA BRAND CONTACT INFO ================= */

/* Styling Dasar Baris Contact */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-info p i {
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
  transition: color 0.3s ease;
}

.contact-info p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* 1. Gmail / Email (Merah #EA4335) */
.contact-info p:has(.fa-envelope) i {
  color: #ea4335;
}
.contact-info p:has(.fa-envelope) a:hover {
  color: #ea4335;
}

/* 2. GitHub (Putih #FFFFFF) */
.contact-info p:has(.fa-github) i {
  color: #ffffff;
}
.contact-info p:has(.fa-github) a:hover {
  color: #ffffff;
}

/* 3. LinkedIn (Biru #0A66C2) */
.contact-info p:has(.fa-linkedin) i {
  color: #0a66c2;
}
.contact-info p:has(.fa-linkedin) a:hover {
  color: #0a66c2;
}

/* 4. Location / Map Marker (Merah Lokasi #FF4D4D) */
.contact-info p:has(.fa-map-marker-alt) i {
  color: #ff4d4d;
}
