* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Premium Color Palette */
  --primary-dark: #0a0a0f;
  --secondary-dark: #1a1a2e;
  --accent-dark: #16213e;
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --silver: #c0c0c0;
  --platinum: #e5e4e2;
  --cream: #f5f5dc;
  --charcoal: #36454f;
  --midnight: #191970;
  --royal-blue: #4169e1;
  --emerald: #50c878;
  --pearl: #f8f6f0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  --gradient-card: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

body {
  font-family: "Inter", sans-serif;
  background: var(--gradient-dark);
  color: var(--pearl);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 4px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo h1 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-link {
  color: var(--pearl);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger .line {
  width: 25px;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 50px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

/* Home Section */
.home {
  background: radial-gradient(
      ellipse at center,
      rgba(65, 105, 225, 0.1) 0%,
      transparent 70%
    ),
    var(--gradient-dark);
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--pearl) 50%,
    var(--royal-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content .subtitle {
  font-size: 28px;
  color: var(--silver);
  margin-bottom: 15px;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .description {
  font-size: 18px;
  color: var(--platinum);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

/* Floating particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* About Section */
.about {
  background: linear-gradient(
    135deg,
    var(--secondary-dark) 0%,
    var(--accent-dark) 100%
  );
}

.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
}

.profile-container {
  position: relative;
}

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--gradient-gold);
  padding: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 25px 100px rgba(239, 187, 16, 0.4);
}

.profile-img:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 25px 1000px rgba(238, 185, 12, 0.4);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--platinum);
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Projects Section */
.projects {
  background: var(--gradient-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.project-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

.project-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 15px;
}

.project-card p {
  color: var(--platinum);
  margin-bottom: 25px;
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Education Section */
.education {
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--secondary-dark) 100%
  );
}

.timeline {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--gradient-gold);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  background: inherit;
  width: 50%;
  margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border: 4px solid var(--primary-dark);
  top: 35px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.timeline-item:nth-child(odd)::after {
  right: -14px;
}

.timeline-item:nth-child(even)::after {
  left: -14px;
}

.timeline-content h3 {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 10px;
}

.timeline-content .institution {
  color: var(--silver);
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-content .year {
  color: var(--platinum);
  font-size: 14px;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  background: var(--gradient-dark);
}

.contact-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.contact-content p {
  font-size: 20px;
  color: var(--platinum);
  margin-bottom: 40px;
}

/* Tambahan untuk form keren */
/* Neon Effect Contact Form - Icon Inside Input & Animated */
.contact-form {
  background: rgba(10, 10, 30, 0.95);
  border-radius: 18px;
  box-shadow: 0 0 24px 4px #4f8cff44, 0 4px 32px #0008;
  padding: 32px 24px;
  max-width: 400px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 2px solid #4f8cff;
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #4f8cffcc;
  transition: top 0.3s, font-size 0.3s, color 0.3s;
  z-index: 2;
}

.form-group .icon {
  font-size: 1.2em;
  color: #4f8cff;
  filter: drop-shadow(0 0 6px #4f8cff);
  transition: filter 0.3s;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid #222a;
  border-radius: 8px;
  font-size: 1rem;
  background: #181c2b;
  color: #b6d6ff;
  box-shadow: 0 0 8px #1e64e433 inset;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  position: relative;
  z-index: 1;
}

.contact-form input:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 16px 2px #4f8cffcc, 0 0 8px #eeeff233 inset;
  background: #10142a;
  color: #fff;
  animation: neon-glow 1s alternate infinite;
}

@keyframes neon-glow {
  0% {
    box-shadow: 0 0 16px 2px #4f8cffcc, 0 0 8px #4f8cff33 inset;
  }
  100% {
    box-shadow: 0 0 32px 8px #4f8cffcc, 0 0 16px #4f8cff66 inset;
  }
}

/* Floating label animation */
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label {
  top: -12px;
  font-size: 0.85rem;
  color: #fff;
  background: #181c2b;
  padding: 0 6px;
  border-radius: 6px;
  left: 10px;
  z-index: 3;
  transition: top 0.3s, font-size 0.3s, color 0.3s, background 0.3s;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4f8cff88;
  color: #4f8cff;
  border: 2px solid #4f8cff;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 16px 2px #dcdfe488, 0 2px 12px rgba(241, 239, 239, 0.533);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  text-shadow: 0 0 8px #4f8cffcc;
}

.submit-btn:hover {
  background: #4f8cff;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 32px 4px #4f8cffcc, 0 2px 16px #000a;
  transform: translateY(-2px) scale(1.04);
}
 .submit-btn a {
    text-decoration: none;
    color: white;
 }
.send-icon {
  font-size: 1.2em;
  margin-left: 4px;
  filter: drop-shadow(0 0 6px #4f8cff);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    padding: 20px 0;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 100px 20px 60px;
  }

  .section-title {
    font-size: 40px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content .subtitle {
    font-size: 20px;
  }

  .about-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 6px;
  }

  .timeline-item:nth-child(even)::after {
    left: 6px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .about-text h3 {
    font-size: 26px;
  }

  .about-text p {
    font-size: 16px;
  }
}
