:root {
  --primary: #6e44ff;
  --secondary: #b892ff;
  --accent: #00c2ff;
  --dark: #0f1028;
  --light: #f8f9ff;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  background: linear-gradient(rgba(15, 16, 40, 0.95), rgba(15, 16, 40, 0.95)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%230f1028" width="100" height="100"/><path fill="%23171a3d" d="M0 0L100 100" stroke-width="0.5"/></svg>');
  background-size: cover;
}

body, .navbar, .section-title, .card, .btn, input, textarea {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 10px;
}

/* Header Section */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 15s infinite alternate;
}

.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid transparent;
  border-radius: 50%;
  background: var(--gradient) padding-box, 
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  box-shadow: 0 0 30px rgba(110, 68, 255, 0.5);
  transition: transform 0.5s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.btn-glow {
  background: var(--gradient);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(110, 68, 255, 0.7);
  transform: translateY(-3px);
}

/* Navigation */
.navbar {
  background: rgba(15, 16, 40, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 146, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand, .nav-link {
  color: var(--light) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  margin: 0 10px;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Section Common Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Backgrounds for different sections */
#about {
  background: linear-gradient(to bottom, #0f1028, #15193a);
}

#pendidikan {
  background: linear-gradient(to bottom, #15193a, #1a1f4b);
}

#organisasi {
  background: linear-gradient(to bottom, #1a1f4b, #1f245c);
}

#kepanitiaan {
  background: linear-gradient(to bottom, #1f245c, #24296d);
}

#skill {
  background: linear-gradient(to bottom, #24296d, #292e7e);
}

#laporan {
  background: linear-gradient(to bottom, #292e7e, #2e338f);
}

#contact {
  background: linear-gradient(to bottom, #2e338f, #3338a0);
}

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(110, 68, 255, 0.3);
}

.card-img-top {
  padding: 20px;
  height: 200px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Report Card Styles */
.report-card {
  text-align: center;
}

.report-card .card-img-top {
  height: 150px;
  padding: 25px;
}

/* Education Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: var(--gradient);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--primary);
  border: 4px solid var(--accent);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -13px;
}

.timeline-item:nth-child(even)::after {
  left: -13px;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
}

.skill-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  background: rgba(110, 68, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(110, 68, 255, 0.3);
}

.skill-icon img {
  max-width: 60%;
  max-height: 60%;
  filter: brightness(0) invert(1);
}

.skill-name {
  font-weight: 600;
  color: var(--secondary);
}

/* Link List Styles (for report pages) */
.link-list {
  list-style: none;
  padding: 0;
}

.link-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(110, 68, 255, 0.3);
}

.link-item a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-item a:hover {
  color: var(--secondary);
}

.link-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--accent);
}

/* Contact Form */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.3);
  color: var(--light);
}

/* Footer */
footer {
  background: linear-gradient(to right, #0a0c20, #161a3d);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.1;
  }
  50% {
    opacity: 0.15;
  }
  100% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 5s ease-in-out infinite;
}

/* Particle Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Back Button */
.back-btn {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .timeline-item:nth-child(odd)::after {
    right: auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }
  
  .skill-icon {
    width: 80px;
    height: 80px;
  }
  
  .report-card .card-img-top {
    height: 120px;
    padding: 20px;
  }
}