/* 
   CV VIBRANT STYLING SHEETS 
   Tema Aktif: sunset-neon
*/

:root {
  --primary-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --accent-gradient: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
  --primary-color: #ff0844;
  --secondary-color: #f5af19;
  --glow-color: rgba(255, 8, 68, 0.3);
  --accent-light: #ffebe2;
  
  /* Light Mode Variables */
  --bg-color: #fdfbfa;
  --card-bg: #ffffff;
  --text-color: #2d3748;
  --text-light: #718096;
  --border-color: rgba(0, 0, 0, 0.05);
  --header-glow: rgba(0, 0, 0, 0.04);

  /* Dark Mode Variables */
  --dark-bg-color: #120713;
  --dark-card-bg: #1d0e21;
  --dark-text-color: #f7fafc;
  --dark-text-light: #a0aec0;
  --dark-border-color: rgba(255, 255, 255, 0.08);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition-fast: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

/* Backgroud Banner */
.vibrant-hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: var(--primary-gradient);
  clip-path: ellipse(85% 60% at 50% 30%);
  z-index: -1;
  opacity: 0.95;
  filter: saturate(1.2);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* HEADER RESUME */
.resume-header {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 15px 40px var(--header-glow), inset 0 2px 4px rgba(255,255,255,0.8);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease;
  
}

body.dark-mode .resume-header {
  background: var(--dark-card-bg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--dark-border-color);
}

.resume-header:hover {
  transform: translateY(-4px);
}

/* Theme Switching & Fun interaction controls */
.theme-switch-wrapper {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  gap: 12px;
  z-index: 20;
}

.interactive-btn {
  background: var(--accent-light);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
}

body.dark-mode .interactive-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.interactive-btn:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 15px var(--glow-color);
}

.interactive-btn:active {
  transform: scale(0.95);
}

/* Header Info */
.header-grid {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .header-grid {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .theme-switch-wrapper {
    position: static;
    justify-content: center;
    margin-bottom: 20px;
  }
}

.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: crop;
  border: 5px solid #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 5;
}

body.dark-mode .profile-img {
  border-color: var(--dark-card-bg);
}

.avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: var(--primary-gradient);
  border-radius: 50%;
  z-index: 1;
  animation: rotateGlow 8s linear infinite;
  opacity: 0.8;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header-info {
  flex-grow: 1;
}

.fullname {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.job-badge {
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px var(--glow-color);
  letter-spacing: 0.5px;
}

.bio-text {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  font-style: italic;
}

body.dark-mode .bio-text {
  color: var(--dark-text-light);
}

/* Contact Strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 25px;
  border-top: 2px dashed var(--border-color);
}

body.dark-mode .contact-strip {
  border-top-color: var(--dark-border-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.dark-mode .contact-icon {
  background: rgba(255,255,255,0.08);
}

.contact-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .contact-label {
  color: var(--dark-text-color);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: underline 0.2s;
}

.contact-link:hover {
  text-decoration: underline;
}

/* LAYOUT GRID DUA KOLOM */
.main-layout {
  display: grid;
  grid-template-columns: 2.1fr 1.2fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* CARDS COMMON */
.section-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
  
}

body.dark-mode .section-card {
  background: var(--dark-card-bg);
  border-color: var(--dark-border-color);
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

body.dark-mode .section-card:hover {
  box-shadow: 0 8px 35px rgba(0,0,0,0.35);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

body.dark-mode .section-title {
  border-bottom-color: var(--dark-border-color);
}

.section-icon {
  font-size: 1.6rem;
}

/* RIWAYAT / TIMELINE */
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--border-color);
}

body.dark-mode .timeline {
  border-left-color: var(--dark-border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 10px var(--glow-color);
  transition: all 0.3s ease;
}

body.dark-mode .timeline-dot {
  border-color: var(--dark-card-bg);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.role-title {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.period-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent-light);
  color: var(--primary-color);
}

body.dark-mode .period-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.company-name {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.experience-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: justify;
}

body.dark-mode .experience-desc {
  color: var(--dark-text-light);
}

/* SKILLS / KEAHLIAN */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 700;
}

.progress-bar-bg {
  height: 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

body.dark-mode .progress-bar-bg {
  background: rgba(255,255,255,0.06);
}

.progress-bar {
  height: 100%;
  border-radius: 50px;
  background: var(--primary-gradient);
  box-shadow: 0 0 10px var(--glow-color);
  width: 0%; /* Dynamic Width */
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* PROJEK CARDS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

body.dark-mode .project-card {
  background: rgba(255,255,255,0.015);
  border-color: var(--dark-border-color);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: var(--accent-light);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

body.dark-mode .project-card:hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-folder-icon {
  font-size: 1.5rem;
}

.project-link {
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.project-link:hover {
  transform: scale(1.2);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  flex-grow: 1;
}

body.dark-mode .project-desc {
  color: var(--dark-text-light);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-color);
}

body.dark-mode .project-tag {
  background: rgba(255,255,255,0.08);
  color: var(--dark-text-color);
}

/* EDUCATION / PENDIDIKAN */
.education-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.edu-icon {
  font-size: 1.5rem;
  background: var(--accent-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

body.dark-mode .edu-icon {
  background: rgba(255,255,255,0.06);
}

.edu-details h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.edu-details h5 {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-period {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 6px;
}

body.dark-mode .edu-period {
  color: var(--dark-text-light);
}

.gpa-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-color);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

body.dark-mode .gpa-badge {
  background: rgba(255,255,255,0.08);
  color: var(--dark-text-color);
}

/* SOSIALS */
.socials-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icon-btn {
  text-decoration: none;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  color: var(--text-color);
  font-weight: 600;
}

body.dark-mode .social-icon-btn {
  background: rgba(255,255,255,0.02);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}

.social-icon-btn:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateX(4px);
  border-color: transparent;
  box-shadow: 0 4px 15px var(--glow-color);
}

.social-icon-btn .icon {
  font-size: 1.25rem;
}

/* ACTION/EXPORT CARD */
.action-card {
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  padding: 25px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 25px var(--glow-color);
}

.action-card p {
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.print-btn {
  background: white;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 800;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  padding: 10px 24px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.print-btn:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.print-btn:active {
  transform: scale(0.98);
}

/* FLOATING BUBBLES BACKGROUND */
.floating-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.08;
  animation: floatUp 15s linear infinite;
  bottom: -100px;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }
  80% {
    opacity: 0.05;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* APP FOOTER */
.app-footer {
  text-align: center;
  padding: 40px 0 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

body.dark-mode .app-footer {
  color: var(--dark-text-light);
}

/* PRINT MEDIA STYLES (Agar rapi saat diekspor PDF) */
@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }
  
  .vibrant-hero-banner, 
  .theme-switch-wrapper,
  .floating-bubbles,
  .action-card,
  .app-footer,
  .interactive-btn {
    display: none !important;
  }

  .resume-header {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 20px 0 !important;
    border-bottom: 2px solid #ccc !important;
    border-radius: 0 !important;
    margin-bottom: 20px !important;
  }

  .profile-img {
    border-color: #eee !important;
  }

  .fullname {
    background: none !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
  }

  .job-badge {
    background: #333 !important;
    color: white !important;
    box-shadow: none !important;
  }

  .section-card {
    background: white !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 0 !important;
    margin-bottom: 15px !important;
    page-break-inside: avoid;
  }

  .section-title {
    color: black !important;
    border-bottom-color: #333 !important;
  }

  .progress-bar-bg {
    background: #ddd !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .progress-bar {
    background: #555 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .period-badge {
    background: #eee !important;
    color: #333 !important;
  }

  .main-layout {
    grid-template-columns: 1.8fr 1.2fr !important;
    gap: 20px !important;
  }
}
