 

/* ================ HERO SECTION ================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 223, 196, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
/* loading */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px); /* Efek blur */
  background-color: rgba(10, 25, 47, 0.7); /* Semi-transparan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

#load {
  position: relative;
  width: 600px;
  height: 36px;
  user-select: none;
  cursor: default;
}

#load div {
  position: absolute;
  width: 20px;
  height: 36px;
  opacity: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 32px;
  animation: move 2s linear infinite;
  color: #35C4F0;
}

#load div:nth-child(2) { animation-delay: 0.2s; }
#load div:nth-child(3) { animation-delay: 0.4s; }
#load div:nth-child(4) { animation-delay: 0.6s; }
#load div:nth-child(5) { animation-delay: 0.8s; }
#load div:nth-child(6) { animation-delay: 1s; }
#load div:nth-child(7) { animation-delay: 1.2s; }

@keyframes move {
  0% { left: 0; opacity: 0; transform: rotate(180deg); }
  35% { left: 41%; opacity: 1; transform: rotate(0deg); }
  65% { left: 59%; opacity: 1; transform: rotate(0deg); }
  100% { left: 100%; opacity: 0; transform: rotate(-180deg); }
}
/* ================ ABOUT SECTION ================ */
.about {
  background: var(--secondary-light);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/pattern.svg') repeat;
  opacity: 0.03;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image:hover {
  transform: scale(1.02);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-details {
  margin-top: 2rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ================ SKILLS SECTION ================ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  background: var(--secondary-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
}

.skill-card p {
  color: var(--text-secondary);
}

/* ================ PROJECTS PREVIEW ================ */
.projects-preview .card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.project-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.project-item:hover .project-overlay {
  transform: translateY(0);
}

/* ================ EDUCATION SECTION ================ */
#education {
  background: var(--secondary-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content {
  width: calc(50% - 2rem);
  padding: 1.5rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 2rem);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -1.5rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -1.5rem;
}

/* ================ CONTACT SECTION ================ */
.contact {
  background: var(--secondary-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

.sosmed-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.sosmed-links a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 223, 196, 0.1);
  color: var(--primary);
  transition: var(--transition);
}

.sosmed-links a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 223, 196, 0.3);
  background: var(--secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 223, 196, 0.2);
}

/* Container untuk semua komentar */
#comments {
  margin-top: 2rem;
}

/* Card komentar */
.comment {
  background-color: #0a1a2f; /* deep navy */
  border: 1px solid #38bdf8; /* neon cyan border */
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); /* cyan glow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Animasi hover */
.comment:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

/* Nama user */
.comment strong {
  display: block;
  color: #38bdf8; /* neon cyan */
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* Pesan */
.comment p {
  color: #dbeafe; /* soft light blue (nyaman di dark) */
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Animasi masuk */
.comment {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Batasi tinggi area komentar + enable scroll */
#comments {
  max-height: 300px; /* atur sesuai kebutuhan, bisa 400px misal */
  overflow-y: auto;
  padding-right: 5px;
  border-radius: 10px;
}

/* Custom scrollbar untuk Webkit (Chrome, Edge, Safari) */
#comments::-webkit-scrollbar {
  width: 8px;
}

#comments::-webkit-scrollbar-track {
  background: #0a1a2f; /* warna background track scrollbar */
  border-radius: 10px;
}

#comments::-webkit-scrollbar-thumb {
  background: #38bdf8; /* warna thumb scrollbar (neon cyan) */
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

/* Firefox scrollbar */
#comments {
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 #0a1a2f;
}
.comment {
  display: flex;
  align-items: flex-start;
  background-color: #0a1a2f;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.comment-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  margin-right: 12px;
}

.comment-content {
  color: #cbd5e1;
}

.comment-content strong {
  display: block;
  font-size: 16px;
  color: #38bdf8;
  margin-bottom: 4px;
}
/* ================ FOOTER ================ */
.footer {
  background: var(--secondary);
  border-top: 1px solid rgba(0, 223, 196, 0.1);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-light);
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================ RESPONSIVE ADJUSTMENTS ================ */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-date {
    left: 2rem;
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 5rem);
    left: 5rem !important;
    text-align: left !important;
  }
  
  .timeline-content::before {
    left: -3.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .projects-preview .card {
    grid-template-columns: 1fr;
  }
}
