* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

/* Variabel untuk Tema Gelap (Default) */
:root {
  --primary-purple: #a855f7;
  --primary-blue: #38bdf8;
  --primary-pink: #ec4899;
  --bg-primary: #0f172a;
  --bg-secondary: #1e1b4b;
  --header-bg: #111827;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --accent-purple: #7c3aed;
  --border-color: rgba(255, 255, 255, 0.1);
  --decoration-color: rgba(168, 85, 247, 0.05);
}

/* Variabel untuk Tema Terang */
body.light-mode {
  --bg-primary: #fdf2f8;
  --bg-secondary: #e0f2fe;
  --header-bg: #ffffff;
  --text-primary: #0c4a6e;
  --text-secondary: #374151;
  --accent-purple: #9333ea;
  --border-color: rgba(0, 0, 0, 0.1);
  --decoration-color: rgba(168, 85, 247, 0.1); /* pink */
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}
.logo-link:focus {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.logo { font-size: 1.8rem; font-weight: 700; display: flex; gap: 2px; }
.logo .ren, .hero-text h1 .ren { color: var(--text-primary); }
.logo .dev, .hero-text h1 .dev {
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li {
  margin-left: -0.5rem;
}

.nav-links a.button {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.4s ease;
}

.nav-links a.button:hover {
  color: var(--text-primary);
  background-color: rgba(124, 58, 237, 0.15);
}

.nav-links a.button.active {
  color: var(--text-primary);
  background-color: rgba(124, 58, 237, 0.25);
}

/* --- HERO SECTION --- */
.hero {
  display: flex;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - 70px);
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  gap: 2rem;
  background: radial-gradient(circle at top, var(--bg-secondary), var(--bg-primary));
  width: 100%;
}

.hero-text { width: 100%; animation: fadeIn 1s ease-in-out; }

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

.hero-text h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }

.sub-greeting {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sub-greeting.visible {
  opacity: 1;
  transform: translateY(0);
}
.sub-greeting .jp {
  font-size: 1.1rem;
  margin-left: 4px;
}

.hero-text p { margin-bottom: 2rem; line-height: 1.7; font-size: 1.1rem; color: var(--text-secondary); }

.info-cards {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.card {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); }
.card h2 { font-size: 2rem; font-weight: 700; }
.card p { font-size: 1rem; margin: 0; }

.follow-title { margin-bottom: 1rem; font-weight: 600; font-size: 1.2rem; }
.social-icons { display: flex; justify-content: center; gap: 1.5rem; }
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-purple);
}

/* Efek fade + blur gambar */
.hero-image img {
  transition: opacity 0.4s ease, filter 0.3s ease;
}
.hero-image img.fade {
  opacity: 0;
  filter: blur(4px);
}

.hero-image { position: relative; }
.hero-image .image-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(
    135deg,
    #9306ba,
    #061294,
    #9c083e,
    #ec4899,
    #9306ba
  );
  background-size: 400% 400%;
  animation: borderGradient 8s ease infinite, glowPulse 4s ease-in-out infinite;
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
}
body.light-mode .hero-image .image-wrapper {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--primary-pink),
    var(--primary-blue),
    var(--primary-pink)
  );
  background-size: 400% 400%;
  animation: borderGradient 8s ease infinite, glowPulse 4s ease-in-out infinite;
}

@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 35px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 0 60px rgba(236, 72, 153, 0.6); }
  100% { box-shadow: 0 0 35px rgba(236, 72, 153, 0.4); }
}

.hero-image .image-wrapper img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-primary);
}
.hero-image .image-wrapper:hover { transform: scale(1.05); }

.theme-toggle {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: var(--header-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--primary-blue); transform: scale(1.1); }

/* --- ABOUT SECTION --- */
.about-section h2,
.about-section p,
.about-section ul li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-section h2.visible,
.about-section p.visible,
.about-section ul li.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section ul li i {
  margin-right: 8px;
  color: var(--accent-purple);
}
.about-section {
  padding: 3rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  transition: background 0.3s, color 0.3s;
}
.about-section .container {
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.7;
}
.about-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}
.about-section p,
.about-section ul li a {
  text-decoration: none;
  color: var(--text-secondary);
}
.about-section ul li a:hover { color: var(--text-primary); }
.about-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.about-section ul li {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
  transition: background 0.3s;
}
.about-section ul li:hover {
  background: rgba(124, 58, 237, 0.1);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2.5rem;
  background: var(--header-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: background 0.3s;
}
footer p:first-child { font-style: italic; margin-bottom: 0.5rem; }

/* --- DESKTOP VIEW --- */
@media (min-width: 768px) {
  .navbar {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .nav-links { gap: 1.5rem; }
  .nav-links li { margin-left: 0; }
  .nav-links a.button { font-size: 1.1rem; }
  .hero {
    padding: 5rem 3rem;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .hero-text { flex-basis: 55%; max-width: 600px; }
  .hero-image { flex-basis: 40%; }
  .hero-text h1 { font-size: 3.8rem; }
  .info-cards { justify-content: flex-start; }
  .social-icons { justify-content: flex-start; }
  .hero-image .image-wrapper { width: 380px; height: 380px; }
  .about-section { padding: 5rem 3rem; }
  .about-section h2 { font-size: 2.8rem; text-align: left; }
  .about-section h3 { margin-top: 3rem; }
  .theme-toggle {
    width: 65px;
    height: 65px;
    font-size: 1.4rem;
  }
}