/* Variabel CSS */
:root {
  --primary: #2d5bff;
  --primary-dark: #1a46e0;
  --primary-light: #4d78ff;
  --secondary: #ff6b35;
  --secondary-light: #ff8c5a;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  scroll-margin-top: 80px;
}

/* Fix untuk semua section IDs */
#home,
#about,
#skills,
#experience,
#projects,
#skripsi,
#contact {
  scroll-margin-top: 80px;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}


h1,
h2,
h3,
h4 {
  margin-bottom: 15px;
  color: var(--dark);
}

h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

p {
  margin-bottom: 15px;
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s,
    background 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.01em;
}

.btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f36c9 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 91, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: transparent;
}

/* Image Styling */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.profile-image,
.about-img,
.skripsi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover,
.about-img:hover,
.skripsi-img:hover {
  transform: scale(1.05);
}

.nav-links,
.nav-links li,
.nav-links a,
.hamburger,
.logo {
  transition: all 0.3s ease;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo.visible {
  opacity: 1;
  transform: translateX(0);
}

.logo span {
  color: var(--secondary);
}

.logo:hover {
  opacity: 0.5;
}
.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links li {
  margin-left: 30px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-links li.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-links,
.nav-links a,
.hamburger,
.logo {
  will-change: transform, opacity;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  display: block;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
  display: none;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark);
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg);
}

/* Overlay untuk glass morphism */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  margin-left: 30px;
  opacity: 1;
  transform: translateX(0);
}

.language-switcher.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Language Switcher - HIDDEN di Desktop */
.mobile-language-switcher {
  display: none; /* Sembunyikan di desktop */
}

.lang-btn {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  margin: 0 2px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-btn:first-child {
  border-radius: 5px 0 0 5px;
  margin-right: 0;
}

.lang-btn:last-child {
  border-radius: 0 5px 5px 0;
  margin-left: 0;
}

.lang-btn.active {
  background-color: var(--primary);
  color: white;
}

.lang-btn:hover:not(.active) {
  background-color: #e9f2ff;
}

/* Hero Section */
.hero {
  padding-top: 70px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e4ecff 40%, #f5f0ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 91, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-text h1.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .image-container {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
              0 0 60px rgba(45, 91, 255, 0.08);
  margin: 0 auto;
  transition: box-shadow 0.5s ease;
}

.hero .image-container:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12),
              0 0 80px rgba(45, 91, 255, 0.12);
}

.hero-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: #e9f2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder i {
  font-size: 5rem;
  color: var(--primary);
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 2;
}

.about-text p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text p:nth-child(1) {
  transition-delay: 0.1s;
}

.about-text p:nth-child(2) {
  transition-delay: 0.2s;
}

.about-text p:nth-child(3) {
  transition-delay: 0.3s;
}

.about-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about .image-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-placeholder {
  width: 100%;
  height: 300px;
  background: #e9f2ff;
  border-radius: 10px;
  border: none;
}

.about-placeholder i {
  font-size: 5rem;
}

/* Skills Section */
.skills {
  background-color: #f8faff;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(45, 91, 255, 0.06);
}

.skill-category:hover {
  box-shadow: 0 12px 30px rgba(45, 91, 255, 0.1);
  border-color: rgba(45, 91, 255, 0.12);
}

.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-category:nth-child(1) {
  transition-delay: 0.1s;
}

.skill-category:nth-child(2) {
  transition-delay: 0.2s;
}

.skill-category h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.skill-list {
  list-style: none;
}

.skill-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.skill-list li i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Experience Section - ENHANCED */
.experience {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Timeline Item */
.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

/* Timeline Marker */
.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a46e0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(45, 91, 255, 0.3);
  border: 3px solid white;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .marker-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(45, 91, 255, 0.4);
}

.timeline-line {
  position: absolute;
  top: 60px;
  bottom: -60px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
  border-radius: 2px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* Timeline Content */
.timeline-content {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(45, 91, 255, 0.1);
  margin-left: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 40px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

/* Experience Header */
.experience-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.experience-header h3 {
  color: var(--primary);
  margin-bottom: 0;
  flex: 1;
  font-size: 1.3rem;
}

.experience-badge {
  background: linear-gradient(135deg, var(--secondary) 0%, #ff8c42 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.experience-badge.part-time {
  background: linear-gradient(135deg, var(--primary) 0%, #1a46e0 100%);
}

/* Company Info */
.company-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--gray);
  font-weight: 500;
}

.company-info i {
  margin-right: 8px;
  color: var(--primary);
}

/* Date */
.date {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--secondary);
  font-weight: 600;
}

.date i {
  margin-right: 8px;
}

/* Experience Skills */
.experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  background: rgba(45, 91, 255, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(45, 91, 255, 0.2);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Experience List */
.timeline-content ul {
  list-style: none;
  margin: 20px 0;
}

.timeline-content ul li {
  padding: 10px 0 10px 35px;
  position: relative;
  color: var(--dark);
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content ul li:last-child {
  border-bottom: none;
}

.timeline-content ul li i {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--secondary);
  font-size: 1.1rem;
}

.timeline-content ul li:hover i {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Experience Achievement */
.experience-achievement {
  background: linear-gradient(135deg, #fff8f6 0%, #ffeae6 100%);
  border-left: 4px solid var(--secondary);
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.experience-achievement i {
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.experience-achievement span {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Current Timeline Indicator */
.timeline-present {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.4s;
}

.timeline-present.visible {
  opacity: 1;
  transform: translateY(0);
}

.present-marker {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ff8c42 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
  margin-right: 15px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.present-label {
  background: white;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--secondary);
}

.present-label span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1) {
  transition-delay: 0.1s;
}

.project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.project-card:nth-child(3) {
  transition-delay: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(45, 91, 255, 0.1);
}

.project-image {
  height: 200px;
  background-color: #e9f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image i {
  font-size: 4rem;
  color: var(--primary);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  color: var(--primary);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.project-actions .btn {
  margin-top: 0;
}

.project-demo-btn {
  text-decoration: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0;
}

.project-tag {
  background-color: #e9f2ff;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-tag.visible {
  opacity: 1;
  transform: scale(1);
}

/* Skripsi Section - FIXED */
.skripsi {
  background-color: #f8faff;
  overflow: hidden; /* Prevent horizontal scroll */
}

.skripsi-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  min-height: auto;
}

.skripsi-text {
  flex: 1;
  min-width: 0;
}

.skripsi-text h3 {
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  font-size: 1.4rem; /* Adjust font size */
  line-height: 1.4;
}

.skripsi-text h3.visible {
  opacity: 1;
  transform: translateY(0);
}

.skripsi-text p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.skripsi-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

.skripsi-text p:nth-child(1) {
  transition-delay: 0.1s;
}

.skripsi-text p:nth-child(2) {
  transition-delay: 0.2s;
}

.skripsi-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.skripsi-details .detail-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.skripsi-details .detail-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.skripsi-details .detail-item:nth-child(1) {
  transition-delay: 0.3s;
}

.skripsi-details .detail-item:nth-child(2) {
  transition-delay: 0.4s;
}

.skripsi-details .detail-item:nth-child(3) {
  transition-delay: 0.5s;
}

.skripsi-details .detail-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Skripsi Image Container - FIXED */
.skripsi-image {
  flex: 0 0 400px;
  min-width: 0;
  opacity: 1;
  transform: translateX(0);
}

.skripsi-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.skripsi-cover-container {
  width: 100%;
  max-width: 400px;
  height: 500px; /* Fixed height for book-like proportion */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(45, 91, 255, 0.1);
  background: linear-gradient(135deg, #e9f2ff 0%, #d4e4ff 100%);
}

.skripsi-cover {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers container without distortion */
  display: block;
  transition: transform 0.3s ease;
}

.skripsi-cover-container:hover .skripsi-cover {
  transform: scale(1.03);
}

.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
}

.cover-title {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cover-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#skripsiBtn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

#skripsiBtn.visible {
  opacity: 1;
  transform: translateY(0);
}

#skripsiBtn i {
  margin-right: 10px;
}

/* Enhanced Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal[style*="display: block"] {
  display: block;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  margin: 40px auto;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes modalSlideDown {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
}

.modal-header {
  padding: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a46e0 100%);
  color: white;
  position: relative;
  border-bottom: 3px solid var(--secondary);
}

.modal-header h3 {
  color: white;
  margin-right: 60px;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-body {
  padding: 40px;
}

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

/* Fallback untuk gambar yang tidak tersedia */
.project-image:not(:has(img)) {
  background: linear-gradient(135deg, #e9f2ff 0%, #d4e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image:not(:has(img))::before {
  content: "\1F5BC";
  font-size: 3rem;
  color: var(--primary);
}

.modal-image {
  height: 250px;
  background: linear-gradient(135deg, #e9f2ff 0%, #d4e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(45, 91, 255, 0.1);
}

.modal-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(45, 91, 255, 0.1) 0%,
    rgba(255, 107, 53, 0.1) 100%
  );
  z-index: 1;
}

.modal-image i {
  font-size: 6rem;
  color: var(--primary);
  z-index: 2;
  position: relative;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.modal-content:hover .modal-image i {
  transform: scale(1.1);
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--dark);
  text-align: justify;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -5px 0 25px 0;
}

.modal-actions .btn {
  text-decoration: none;
}

.tech-tag {
  background: linear-gradient(135deg, var(--primary) 0%, #1a46e0 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(45, 91, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.tech-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 91, 255, 0.4);
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.modal-details .detail-item {
  padding: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(45, 91, 255, 0.1);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.modal-details .detail-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.modal-details .detail-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-details .detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modal-details .detail-item h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-details .detail-item p {
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 0;
  font-size: 1rem;
}

.modal-body h4 {
  color: var(--primary);
  margin: 30px 0 20px 0;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.modal-body h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

.modal-body ul {
  list-style: none;
  margin: 20px 0 30px 0;
}

.modal-body ul li {
  padding: 12px 0 12px 35px;
  position: relative;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-body ul li:last-child {
  border-bottom: none;
}

.modal-body ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.achievement-highlight {
  background: linear-gradient(135deg, #fff8f6 0%, #ffeae6 100%);
  border-left: 4px solid var(--secondary);
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  position: relative;
}

.achievement-highlight::before {
  content: "\1F3C6";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
}

.achievement-highlight h4 {
  color: var(--secondary);
  margin-top: 0;
}

.achievement-highlight h4::after {
  background: var(--secondary);
}

.achievement-highlight p {
  margin-bottom: 0;
  color: var(--dark);
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.3s ease,
    border-color 0.3s ease;
}

.contact-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-item:nth-child(1) {
  transition-delay: 0.1s;
}

.contact-item:nth-child(2) {
  transition-delay: 0.2s;
}

.contact-item:nth-child(3) {
  transition-delay: 0.3s;
}

.contact-item:nth-child(4) {
  transition-delay: 0.4s;
}

.contact-item:nth-child(5) {
  transition-delay: 0.5s;
}

.contact-item:hover {
  background-color: #f8faff;
  border-color: #e9f2ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.contact-details {
  flex: 1;
}

.contact-details h3 {
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--gray);
}

/* Social Media Section */
.social-media {
  margin-top: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.social-media.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-media h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

.social-icon i {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.social-icon:hover i {
  background: var(--secondary);
}

.social-icon span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--dark) 50%, #16213e 100%);
  color: white;
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}

.social-links a.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-links a:nth-child(1) {
  transition-delay: 0.1s;
}

.social-links a:nth-child(2) {
  transition-delay: 0.2s;
}

.social-links a:nth-child(3) {
  transition-delay: 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
}

/* Progress Scroll Indicator */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1001;
}

.progress-bar {
  height: 4px;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #1a46e0;
  transform: translateY(-5px);
}

/* Certificate Section */
.certificate {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.certificate::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(45, 91, 255, 0.05) 0%,
    transparent 100%
  );
  border-radius: 50%;
  transform: translate(150px, -150px);
}

.certificate-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  min-height: auto;
}

.certificate-details {
  flex: 1;
  min-width: 0;
}

.certificate-details h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.4rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.certificate-details h3.visible {
  opacity: 1;
  transform: translateY(0);
}

.certificate-details p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.certificate-details p.visible {
  opacity: 1;
  transform: translateY(0);
}

.certificate-details p:nth-child(1) {
  transition-delay: 0.1s;
}

.certificate-details p:nth-child(2) {
  transition-delay: 0.2s;
}

.certificate-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.certificate-info .info-item {
  background-color: #f8faff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.certificate-info .info-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.certificate-info .info-item:nth-child(1) {
  transition-delay: 0.3s;
}

.certificate-info .info-item:nth-child(2) {
  transition-delay: 0.4s;
}

.certificate-info .info-item:nth-child(3) {
  transition-delay: 0.5s;
}

.certificate-info .info-item:nth-child(4) {
  transition-delay: 0.6s;
}

.certificate-info .info-item:nth-child(5) {
  transition-delay: 0.7s;
}

.certificate-info .info-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.certificate-info .info-item p {
  color: var(--dark);
  font-weight: 500;
  margin: 0;
  opacity: 1;
  transform: none;
}

/* Certificate Preview */
.certificate-preview {
  flex: 0 0 400px;
  min-width: 0;
  opacity: 1;
  transform: translateX(0);
}

.certificate-preview.visible {
  opacity: 1;
  transform: translateX(0);
}

.certificate-image-container {
  width: 100%;
  max-width: 400px;
  height: 500px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(45, 91, 255, 0.1);
  background: linear-gradient(135deg, #f8faff 0%, #e9f2ff 100%);
}

.certificate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.certificate-image-container:hover .certificate-image {
  transform: scale(1.03);
}

.certificate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
}

.certificate-label {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.certificate-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#certificateBtn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

#certificateBtn.visible {
  opacity: 1;
  transform: translateY(0);
}

#certificateBtn i {
  margin-right: 10px;
}

/* Fix untuk semua section IDs - TAMBAHKAN INI */
#certificate {
  scroll-margin-top: 80px;
}

/* Responsive Design for Certificate */
@media (max-width: 992px) {
  .certificate-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .certificate-details {
    padding-right: 0;
    margin-bottom: 0;
  }

  .certificate-preview {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transform: translateX(0);
  }

  .certificate-image-container {
    height: 500px;
    max-width: 400px;
    margin: 0 auto;
  }

  .certificate-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .certificate-content {
    gap: 30px;
  }

  .certificate-details h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .certificate-preview {
    max-width: 350px;
  }

  .certificate-image-container {
    height: 450px;
    max-width: 350px;
  }

  .certificate-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .certificate-preview {
    max-width: 300px;
  }

  .certificate-image-container {
    height: 400px;
    max-width: 300px;
  }

  .certificate-label {
    font-size: 1.1rem;
  }

  .certificate-subtitle {
    font-size: 0.9rem;
  }

  .certificate-details h3 {
    font-size: 1.1rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .skripsi-content {
    gap: 40px;
  }

  .skripsi-image {
    flex: 0 0 350px;
  }

  .skripsi-cover-container {
    height: 450px;
    max-width: 350px;
  }
}

@media (max-width: 992px) {
  .hero-content,
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .about-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .skripsi-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .skripsi-text {
    padding-right: 0;
    margin-bottom: 0;
  }

  .skripsi-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transform: translateX(0);
  }

  .skripsi-cover-container {
    height: 500px;
    max-width: 400px;
    margin: 0 auto;
  }

  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .skripsi-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* Perbaikan navigasi mobile */
  header {
    padding: 0;
    z-index: 1001;
  }

  nav {
    padding: 15px 0;
    position: relative;
  }

  .logo {
    order: 1;
    flex: 1;
    z-index: 1002;
    font-size: 1.5rem;
  }

  .hamburger {
    display: block;
    order: 2;
    opacity: 1 !important;
    transform: none !important;
    z-index: 1002;
    position: relative;
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .language-switcher {
    display: none !important;
  }

  .mobile-language-switcher {
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }

  .mobile-language-switcher .lang-btn {
    padding: 12px 20px;
    font-size: 14px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .mobile-language-switcher .lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .mobile-language-switcher .lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    will-change: left; /* Optimasi performance */
  }

  .nav-links.active {
    left: 0;
    display: flex !important;
  }

  .nav-links li {
    margin: 12px 0;
    width: 80%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation untuk menu items */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
  }
  .nav-links.active li:nth-child(7) {
    transition-delay: 0.4s;
  }

  .nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 1.1rem;
    color: #e2e8f0 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    will-change: transform;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(45, 91, 255, 0.2);
    color: white !important;
    transform: translateX(10px);
    border-color: rgba(45, 91, 255, 0.3);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover::after {
    display: none;
  }

  /* Language switcher dalam mobile menu */
  .mobile-language-switcher {
    display: flex !important;
    justify-content: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.5s;
  }

  .nav-links.active .mobile-language-switcher {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hamburger icon animation */
  .hamburger i {
    transition: all 0.3s ease;
  }

  .nav-links.active ~ .hamburger i {
    color: white;
  }

  /* Body scroll lock */
  body.menu-open {
    overflow: hidden;
  }

  /* Overlay background */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Perbaikan konten mobile */
  .hero-text h1 {
    font-size: 2.5rem;
  }

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

  .modal {
    padding: 10px;
  }

  .modal-content {
    margin: 20px auto;
    border-radius: 15px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-header h3 {
    font-size: 1.4rem;
    margin-right: 50px;
  }

  .close-modal {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 25px;
  }

  .modal-image {
    height: 180px;
    margin-bottom: 20px;
  }

  .modal-image i {
    font-size: 4rem;
  }

  .modal-details {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }

  .modal-details .detail-item {
    padding: 20px;
  }

  .modal-body ul li {
    padding: 10px 0 10px 30px;
    font-size: 1rem;
  }

  .achievement-highlight {
    padding: 20px;
    margin: 20px 0;
  }

  .modal-tech-stack {
    gap: 8px;
  }

  .tech-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .image-placeholder {
    width: 250px;
    height: 250px;
  }

  .image-placeholder i {
    font-size: 4rem;
  }

  .skripsi-content {
    gap: 30px;
  }

  .skripsi-text h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .skripsi-image {
    max-width: 350px;
  }

  .skripsi-cover-container {
    height: 450px;
    max-width: 350px;
  }

  .skripsi-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .experience-timeline {
    padding: 20px 0;
  }

  .timeline-item {
    flex-direction: column;
    margin-bottom: 40px;
    transform: translateY(30px) !important;
  }

  .timeline-item.visible {
    transform: translateY(0) !important;
  }

  .timeline-marker {
    width: 100%;
    flex-direction: row;
    margin-bottom: 20px;
  }

  .marker-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .timeline-line {
    position: relative;
    top: auto;
    bottom: auto;
    left: 50px;
    right: 0;
    width: calc(100% - 50px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  }

  .timeline-content {
    margin-left: 0;
    margin-top: 20px;
  }

  .timeline-content::before {
    display: none;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .experience-header h3 {
    font-size: 1.2rem;
  }

  .experience-skills {
    gap: 6px;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .timeline-present {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .present-marker {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .image-placeholder {
    width: 200px;
    height: 200px;
  }

  .image-placeholder i {
    font-size: 3rem;
  }

  .skripsi-image {
    max-width: 300px;
  }

  .skripsi-cover-container {
    height: 400px;
    max-width: 300px;
  }

  .cover-title {
    font-size: 1.1rem;
  }

  .cover-subtitle {
    font-size: 0.9rem;
  }

  .skripsi-text h3 {
    font-size: 1.1rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .experience-header h3 {
    font-size: 1.1rem;
  }

  .timeline-content ul li {
    padding: 8px 0 8px 30px;
    font-size: 0.9rem;
  }

  .experience-achievement {
    padding: 12px 15px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
/* Tambahan untuk React specific */
.contact-item.clickable {
  cursor: pointer;
}

.contact-item.clickable:hover {
  background-color: #f8faff;
  border-color: #e9f2ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a,
  .nav-links li,
  .hamburger,
  .logo {
    transition-duration: 0.1ms;
  }

  .nav-links a::after {
    transition-duration: 0.1ms;
  }
}
