:root {
  --bg-1: #570000;
  --bg-2: #000000;
  --text: #FFE6E6;
  --muted: #D89C9C;
  --accent: #FF3838;
  --accent-2: #FF5C5C;
  --card: #3b0202;
  --card-2: #ffffff;
  --shadow: 0 10px 30px rgba(255, 56, 56, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background dengan bintang animasi */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg-1) 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, var(--accent), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--accent-2), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--accent-2), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--accent), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: stars 20s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes stars {
  from { transform: translateY(0px); }
  to { transform: translateY(-100px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #ffffff;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo-accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: #888888;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #888888;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.social-icon:hover {
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.greeting {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-quote {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--muted);
  padding: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(87, 0, 0, 0.5);
  border: 1px solid rgba(255, 56, 56, 0.2);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background: rgba(255, 56, 56, 0.3);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 56, 56, 0.3);
}

/* Warna spesifik untuk social links */
.social-link .fa-whatsapp { color: #25D366; }
.social-link .fa-instagram { color: #E4405F; }
.social-link .fa-github { color: var(--text); }

.social-link:hover .fa-whatsapp { color: #25D366; }
.social-link:hover .fa-instagram { color: #E4405F; }
.social-link:hover .fa-github { color: white; }

/* Solar System */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: slideInRight 1s ease-out;
}

.avatar-container {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-core {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #FFD700;
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 80px rgba(255, 215, 0, 0.5),
    0 0 120px rgba(255, 215, 0, 0.3),
    inset 0 0 30px rgba(255, 215, 0, 0.4);
  animation: sunGlow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 10;
}

.sun-core img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sun-core:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Orbit Icons dengan Warna Asli */
.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Warna spesifik untuk setiap icon orbit */
.orbit-icon.html i.fa-html5 { color: #E34F26; }
.orbit-icon.css i.fa-css3-alt { color: #1572B6; }
.orbit-icon.js i.fa-js { color: #F7DF1E; }
.orbit-icon.react i.fa-react { color: #61DAFB; }
.orbit-icon.nodejs i.fa-node-js { color: #339933; }
.orbit-icon.python i.fa-python { color: #3776AB; }
.orbit-icon.git i.fa-git-alt { color: #F05032; }

.orbit-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.9);
}

/* Efek glow untuk setiap icon saat hover */
.orbit-icon.html:hover { box-shadow: 0 0 20px rgba(227, 79, 38, 0.5); }
.orbit-icon.css:hover { box-shadow: 0 0 20px rgba(21, 114, 182, 0.5); }
.orbit-icon.js:hover { box-shadow: 0 0 20px rgba(247, 223, 30, 0.5); }
.orbit-icon.react:hover { box-shadow: 0 0 20px rgba(97, 218, 251, 0.5); }
.orbit-icon.nodejs:hover { box-shadow: 0 0 20px rgba(51, 153, 51, 0.5); }
.orbit-icon.python:hover { box-shadow: 0 0 20px rgba(55, 118, 171, 0.5); }
.orbit-icon.git:hover { box-shadow: 0 0 20px rgba(240, 80, 50, 0.5); }

@keyframes sunGlow {
  0% {
    box-shadow:
      0 0 40px rgba(255, 215, 0, 0.8),
      0 0 80px rgba(255, 215, 0, 0.5),
      0 0 120px rgba(255, 215, 0, 0.3),
      inset 0 0 30px rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow:
      0 0 50px rgba(255, 215, 0, 1),
      0 0 100px rgba(255, 215, 0, 0.7),
      0 0 150px rgba(255, 215, 0, 0.4),
      inset 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.glow-genz-button {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  padding: 15px 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glow-genz-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), #FF7F7F, #FF3838);
  background-size: 400% 400%;
  animation: glowGradient 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-genz-button:hover {
  color: white;
  border-color: var(--accent-2);
  box-shadow: 0 0 25px rgba(255, 56, 56, 1), 0 0 50px rgba(255, 92, 92, 0.8);
  transform: scale(1.05);
}

.glow-genz-button:hover::before {
  opacity: 1;
}

@keyframes glowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.1rem;
}

.code-animation {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 56, 56, 0.3);
  border-radius: 12px;
  padding: 30px;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-line {
  margin-bottom: 8px;
}

.code-line.indent {
  margin-left: 20px;
}

/* Skills Section */
.skills-content {
  margin-top: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 56, 56, 0.2);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 56, 56, 0.2);
}

.skill-category h3 {
  color: var(--text);
  margin-bottom: 25px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3 i {
  color: var(--accent);
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(255, 56, 56, 0.1);
  border: 1px solid rgba(255, 56, 56, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-icon:hover {
  background: rgba(255, 56, 56, 0.2);
  transform: scale(1.05);
  border-color: var(--accent);
}

/* Warna asli untuk skill icons */
.skill-icon i.fa-html5 { color: #E34F26; }
.skill-icon i.fa-css3-alt { color: #1572B6; }
.skill-icon i.fa-js { color: #F7DF1E; }
.skill-icon i.fa-react { color: #61DAFB; }
.skill-icon i.fa-node-js { color: #339933; }
.skill-icon i.fa-python { color: #3776AB; }
.skill-icon i.fa-git-alt { color: #F05032; }
.skill-icon i.fa-database { color: #00758F; }
.skill-icon i.fa-mobile-alt { color: #32CD32; }
.skill-icon i.fa-paint-brush { color: #FF69B4; }
.skill-icon i.fa-c { color: #A8B9CC; }
.skill-icon i.fa-bolt { color: #FFD700; }

.skill-icon span {
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 5px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.project-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 56, 56, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 56, 56, 0.2);
  border-color: var(--accent);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background: rgba(255, 56, 56, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 56, 56, 0.3);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.project-link:hover {
  background: var(--accent);
  color: white;
}

/* Contact Section */
.contact-section {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 56, 56, 0.2);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 56, 56, 0.3);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  min-width: 150px;
}

.contact-social-link:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 56, 56, 0.5);
  background: rgba(255, 56, 56, 0.1);
  box-shadow: 0 10px 30px rgba(255, 56, 56, 0.2);
}

.contact-social-link i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Warna asli untuk contact icons */
.contact-social-link.whatsapp i { color: #25D366; }
.contact-social-link.github i { color: #FFFFFF; }
.contact-social-link.instagram i { color: #E4405F; }

/* Efek hover dengan warna asli */
.contact-social-link.whatsapp:hover { 
  border-color: #25D366; 
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}
.contact-social-link.github:hover { 
  border-color: #FFFFFF; 
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}
.contact-social-link.instagram:hover { 
  border-color: #E4405F; 
  box-shadow: 0 10px 30px rgba(228, 64, 95, 0.3);
}

.contact-social-link span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 56, 56, 0.2);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-text {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  background: rgba(255, 56, 56, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Warna asli untuk footer icons */
.footer-social a .fa-whatsapp { color: #25D366; }
.footer-social a .fa-github { color: #FFFFFF; }
.footer-social a .fa-instagram { color: #E4405F; }

.footer-social a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 56, 56, 0.3);
}

.footer-social a:hover .fa-whatsapp { 
  color: #25D366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}
.footer-social a:hover .fa-github { 
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.footer-social a:hover .fa-instagram { 
  color: #E4405F;
  text-shadow: 0 0 10px rgba(228, 64, 95, 0.5);
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 56, 56, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  border: 2px solid var(--accent);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--accent);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover {
  color: white;
  transform: scale(1.1);
}

/* Animations */
.slide-in-left {
  transform: translateX(-30px);
  opacity: 0;
  transition: all 1.5s ease;
}

.slide-in-right {
  transform: translateX(30px);
  opacity: 0;
  transition: all 1.5s ease;
}

.slide-in-up {
  transform: translateY(30px);
  opacity: 0;
  transition: all 1.5s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .avatar-container {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .sun-core {
    width: 140px;
    height: 140px;
  }

  .orbit-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(6, 21, 38, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(56, 182, 255, 0.1);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .avatar-container {
    width: 350px;
    height: 350px;
  }

  .sun-core {
    width: 120px;
    height: 120px;
  }

  .orbit-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-social {
    flex-direction: column;
    align-items: center;
  }

  .contact-social-link {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .greeting {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-quote {
    font-size: 1rem;
  }

  .avatar-container {
    width: 300px;
    height: 300px;
  }

  .sun-core {
    width: 100px;
    height: 100px;
  }

  .orbit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .skill-icons {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 20px;
  }

  .nav-container {
    padding: 12px 15px;
  }

  .contact-social-link {
    padding: 20px;
    min-width: auto;
    width: 100%;
  }
  
  .contact-social-link i {
    font-size: 2.5rem;
  }
}