/* 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 */

/* RYZCLE SECTION */
#ryzcle {
  padding: 90px 16px;
  background: transparent; 
}

/* HEADER */
.ryzcle-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 70px;
}

.ryzcle-title {
  margin-top: 16px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #111827;
}

/* CARDS LAYOUT */
.ryzcle-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 40px;
}

/* CARD */
.ryzcle-card {
  background: #ffffff;
  border-radius: 40px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
}

.ryzcle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.09);
}

/* LOGO ROW (SELALU SEJAJAR) */
.ryzcle-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: 36px;
  flex-wrap: nowrap;
}

.ryzcle-icon {
  height: clamp(42px, 6vw, 64px);
  object-fit: contain;
  flex-shrink: 0;
}

.ryzcle-wordmark {
  height: clamp(42px, 6vw, 64px);
  max-width: 70%;
  object-fit: contain;
}

.ryzcle-divider {
  width: 1px;
  height: clamp(42px, 6vw, 56px);
  background: #d1d5db;
  flex-shrink: 0;
}

/* DESCRIPTION */
.ryzcle-desc {
  text-align: center;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  color: #6b7280;
}

/* TABLET (<= 900px) */
@media (max-width: 900px) {
  .ryzcle-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* MOBILE (SEMUA HANDPHONE) */
@media (max-width: 600px) {
  #ryzcle {
    padding: 70px 14px;
  }

  .ryzcle-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ryzcle-card {
    border-radius: 24px;
    padding: 26px 20px;
  }

  /* LOGO TETAP SEJAJAR DI MOBILE */
  .ryzcle-logo-row {
    gap: 16px;
  }

  .ryzcle-icon {
    height: 38px;
  }

  .ryzcle-wordmark {
    height: 38px;
    max-width: 65%;
  }

  .ryzcle-divider {
    height: 34px;
  }

  .ryzcle-desc {
    font-size: 14px;
  }
}

/* Ryzcle Corp Button */
.ryzcle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ryzcle-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  margin-top: 40px;
  height: 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  z-index: 1;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

/* background animation */
.ryzcle-link-btn::before,
.ryzcle-link-btn::after {
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 100%;
  transform: skew(15deg);
  transition: all 0.5s ease;
  z-index: -1;
}

.ryzcle-link-btn::before {
  left: -10px;
  background: #B3D1FF;
}

.ryzcle-link-btn::after {
  right: -10px;
  background: #AFFFB0;
}

.ryzcle-link-btn:hover::before,
.ryzcle-link-btn:hover::after {
  width: 58%;
}

.ryzcle-link-btn span {
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ryzcle-link-btn:hover span {
  color: #ffffff;
}
/* End */

.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*/

/* ── FOUNDER BIO (editorial style) ── */

.founder-wrap {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 32px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e5e7eb;
}

/* sidebar kiri */
.founder-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.founder-sidebar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}

.founder-sidebar-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, #d1d5db, transparent);
  min-height: 80px;
}

/* konten kanan */
.founder-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* identitas */
.founder-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #598bff;
  margin: 0 0 10px;
}

.founder-headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #0d1d3a;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.founder-headline em {
  font-style: normal;
  color: #598bff;
}

/* paragraf */
.founder-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  border-left: 2px solid #e0eaff;
}

.founder-paragraphs p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #3a4d7c;
  margin: 0;
}

.founder-paragraphs strong {
  color: #1248c4;
  font-weight: 600;
}

/* stack */
.founder-stack {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.founder-stack-ttl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}

.founder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.founder-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a4d7c;
  background: #f5f8ff;
  border: 1px solid #d8e4ff;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.founder-chips span:hover {
  background: #1e60ff;
  color: #fff;
  border-color: #1e60ff;
}

/* responsive */
@media (max-width: 600px) {
  .founder-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .founder-sidebar {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }
  .founder-sidebar-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .founder-sidebar-line {
    flex: 1;
    width: auto;
    height: 1px;
    min-height: unset;
    background: linear-gradient(to right, #d1d5db, transparent);
  }
  .founder-headline {
    font-size: 1.3rem;
  }
}
/* ── END FOUNDER BIO ── */

/*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;
  }
}

/* ── MODERN EXPERIENCE SECTION ── */
:root {
  --accent-blue: #1e60ff;
  --soft-blue: #f4f8ff;
  --text-main: #1e2a47;
  --text-muted: #5e6d8a;
  --border-color: #e2e8f0;
}

.experience-section {
  padding: 80px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  margin-top: 50px;
  padding-left: 30px; /* Space for line on mobile */
}

/* Timeline Vertical Line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--border-color) 90%);
}

.timeline-card {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

/* Timeline Dot */
.timeline-marker {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent-blue);
  z-index: 2;
  box-shadow: 0 0 0 4px white;
}

.timeline-info {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-badge {
  background: var(--accent-blue);
  color: white;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
  transform: translateX(8px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 25px -5px rgba(30, 96, 255, 0.1);
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.company-name {
  font-size: 1rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── DESKTOP REFINEMENT (Side-by-side feel) ── */
@media (min-width: 850px) {
  .timeline-container {
    padding-left: 0;
  }
  
  .timeline-container::before {
    left: 160px; /* Offset for dates on the left */
  }

  .timeline-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .timeline-info {
    width: 140px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-bottom: 0;
    padding-top: 6px;
  }

  .timeline-marker {
    left: 153px;
    top: 14px;
  }

  .timeline-content {
    margin-left: 60px;
    width: 100%;
  }
}

/* ── MOBILE OPTIMIZATION ── */
@media (max-width: 600px) {
  .experience-section {
    padding: 40px 20px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
  }
}