/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  display: grid;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #1e2a47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #598bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #6b49ff;
  outline: none;
}

/* Header / Hero */
header {
  background: linear-gradient(135deg, #cce7ff 0%, #f0faff 100%);
  padding: 60px 20px 80px;
  text-align: center;
  box-shadow: inset 0 -10px 30px -15px rgba(110, 166, 245, 0.986);
  position: relative;
}

header .profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #3078ff;
  box-shadow: 0 0 20px rgba(56, 69, 252, 0.596);
  margin: 0 auto 24px;
}

header h1 {
  font-size: 2.75rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: #0d1d3a;
}

header p {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #3a4d7c;
}

nav {
  margin-top: 36px;
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

nav a:hover,
nav a:focus {
  border-color: #1e60ff;
}

/* Main Content */
/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.tab-link {
  background: #1f2937;
  border: none;
  color: #9ca3af;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

.tab-link.active {
  background: linear-gradient(90deg,#cce7ff,#5654ff);
  color: white;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform: translateY(0);}
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.card, .tech {
  background: #1e293b;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.card h3 {
  color: #a78bfa;
  margin-bottom: 10px;
}

.grid img {
  width: 100%;
  border-radius: 8px;
}

main {
  max-width: 900px;
  background: white;
  margin: -80px auto 80px;
  padding: 40px 30px 60px;
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(30, 96, 255, 0.12);
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 3px solid #cce7ff;
  padding-bottom: 8px;
  color: #1e2a47;
}

.about p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3a4d7c;
  margin: 0;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
  gap: 24px;
}

.project-card {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(30, 96, 255, 0.15);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.project-card:hover {
  box-shadow: 0 14px 36px rgba(30, 96, 255, 0.3);
  border-color: #1e60ff;
}

.project-card h3 {
  margin: 0 0 12px;
  font-weight: 600;
  color: #1248c4;
  font-size: 1.25rem;
}

.project-card p {
  flex-grow: 1;
  color: #4a5a80;
  font-size: 1rem;
  margin-bottom: 16px;
}

.project-card a {
  align-self: flex-start;
  font-weight: 600;
  color: #1e60ff;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.project-card a:hover,
.project-card a:focus {
  border-color: #1e60ff;
  outline: none;
}

/*Portfolio Card */
.portfolio-card {
  margin: 20px auto; 
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  transition: transform 0.3s ease;
}


.portfolio-card:hover {
  transform: translateY(-8px);
}

/* Image */
.portfolio-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Content */
.portfolio-content {
  padding: 20px;
}

.portfolio-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #333;
}

.portfolio-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-title {
    font-size: 1.4rem;
  }

  .portfolio-description {
    font-size: 0.95rem;
  }

  .portfolio-button {
    width: 100%;
    text-align: center;
  }

  .portfolio-content {
    padding: 16px;
  }
}
/* End Portfolio Card */

/* Language */
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.language-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.language-card:hover {
  transform: translateY(-5px);
}

/* Bendera + Nama Bahasa */
.language-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c0c0c0; /* garis bawah */
}

.flag-icon {
  height: 32px;         /* Tetapkan tinggi tetap */
  width: auto;          /* Lebar otomatis agar proporsional */
  border-radius: 6px;
  object-fit: cover;    /* Jika kamu ingin crop konsisten */
}

.language-header h3 {
  font-size: 20px;
  color: #333;
  margin: 0;
}

.language-level {
  font-size: 14px;
  color: #555;
  font-weight: bold;
  margin-bottom: 6px;
}

.language-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.profile-pic {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1e60ff;
  box-shadow: 0 0 20px rgba(0, 76, 255, 0.35);
  margin: 0 auto 24px;
  display: block;
}

/*Code Logo*/
.keahlian {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.keahlian a img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover: tampilkan warna logo asli & zoom */
.keahlian a:hover img {
  filter: none;
  transform: scale(1.5);
}

/*Buttons*/
.ctaR {
  position: relative;
  display: inline-block; 
  margin: 15px auto 0 auto; /* top 40px, kanan & kiri auto, bawah 0 */
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.ctaR:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  background: #cce7ff;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

.ctaR span {
  position: relative;
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #234567;
}

.ctaR svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #234567;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.ctaR:hover:before {
  width: 100%;
  background: #cce7ff;
}

.ctaR:hover svg {
  transform: translateX(0);
}

.ctaR:active {
  transform: scale(0.95);
}

button,
a {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none; /* hilangkan underline di <a> */
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more,
a.learn-more {
  width: 12rem;
  height: auto;
}

.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #cce7ff;
  border-radius: 1.625rem;
}

.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #000;
  border-right: 0.125rem solid #000;
  transform: rotate(45deg);
}

.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.learn-more:hover .circle {
  width: 100%;
}

.learn-more:hover .circle .icon.arrow {
  background: #000;
  transform: translate(1rem, 0);
}

.learn-more:hover .button-text {
  color: #000;
}
/* End Buttons */

/* Footer */
footer {
  background-color: #1f2937;
  color: #fff;
  padding: 30px 20px 15px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* RYZCLE */
.footer-content-rz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.nav-ryzcle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logoR {
  width: 150px;
  height: 100px;
  object-fit: contain;
}
/* END */

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;

  /* Transition untuk hover smooth */
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icons a {
  font-size: 26px;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: scale(1.2);
}

.footer-divider {
  width: 80%;
  height: 1px;
  background-color: #c2c2c2;
}

footer p {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .social-icons {
    justify-content: center;
  }
}
/* End .Footer*/

/*Responsive Code*/
@media (max-width: 600px) {
  .profile-pic {
    width: 100px;
  }
}
@media (max-width: 360px) {
  .profile-pic {
    width: 80px;
  }
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 40px 20px 60px;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  nav a {
    margin: 0 12px;
    font-size: 0.875rem;
  }
  main {
    margin: -60px 15px 60px;
    padding: 30px 20px 40px;
  }
  .project-card {
    padding: 20px;
  }
}