/* 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;
  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%;
  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 */
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 {
  padding: 40px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.profile-pic {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
}

.text-pic {
  width: 400px;   
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* Documentation */
.scroll {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.scroll {
    transition: transform 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
}

.scroll:hover {
    transform: scale(1.10);
}

.scroll::-webkit-scrollbar {
    display: none;
}

.example {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden; /* important to keep image inside rounded corners */
    scroll-snap-align: center;
    background-color: antiquewhite;
}

.example img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes image fill box nicely */
    display: block;
}
/* End Documentation */

/* CARD opp */
.cardopp {
  text-align: center;
}

.cardopp img {
  width: 400px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
}


@media (max-width: 768px) {
  .cardopp img {
    width: 250px;
  }
}
/* END CARD opp */

/* ROLE */
.my-role-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.role-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px 30px;
  max-width: 600px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
}

.role-icon {
  display: flex;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  align-items: center;
  margin-bottom: 1rem;
}

.emoji-icon {
  width: 82px;
  height: auto;
  border-radius: 12px;
}

.role-title {
  font-size: 28px;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 15px;
}

.role-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
}

/* STRONG COLOR */
.role-desc strong {
  color: #837EFF;
}

.about strong {
  color: #837EFF;
}
/* END STRONG COLOR */

.tech-logos {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.tech-logos img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.tech-logos img:hover {
  transform: scale(1.1);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .my-role-section {
    padding: 40px 16px;
  }
  
  .role-card {
    padding: 30px 20px;
    max-width: 100%;
  }

  .emoji-icon {
    width: 64px;
    border-radius: 10px;
  }

  .role-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .role-desc {
    font-size: 15px;
    line-height: 1.5;
  }

  .tech-logos {
    flex-wrap: wrap;
    gap: 16px;
  }

  .tech-logos img {
    width: 40px;
    height: 40px;
  }
}
/* End ROLE */

/* 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*/

/*Story Responsif*/
@media (min-width: 768px) {
  .image-wrapper img {
    width: 45%;
  }

  .teks {
    font-size: 1.2rem;
  }
}

/*Responsive*/
@media (max-width: 600px) {
  .profile-pic {
    width: 100px;
  }

  .text-pic {
    width: 250px;
  }
}
@media (max-width: 360px) {
  .profile-pic {
    width: 80px;
  }

  .text-pic {
    width: 150px;
  }
}

@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;
  }
}
