/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.navbar.scrolled {
  /* Fallback for browsers that don't support backdrop-filter */
  background: rgba(255, 255, 255, 0.95) !important;
  /* Modern glass effect */
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  -moz-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: none !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.5) !important;
}

/* Support check for backdrop-filter */
@supports (backdrop-filter: blur(25px)) or (-webkit-backdrop-filter: blur(25px)) {
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.08) !important;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-logo a:hover {
  color: #3498db;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  transform-origin: center;
}

.nav-link:active {
  transform: scale(0.95);
}

/* Scroll animation indicator */
.scroll-indicator {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 4px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-indicator.active {
  opacity: 1;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  animation: scroll-progress 1s ease-in-out infinite;
}

@keyframes scroll-progress {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(80px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(0.95);
}

.scroll-to-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.scroll-to-top:active::before {
  width: 100px;
  height: 100px;
}

/* Pulse animation when first appears */
.scroll-to-top.pulse {
  animation: pulse-scale 0.6s ease-out;
}

@keyframes pulse-scale {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.nav-link:hover {
  color: #3498db;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding-top: 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.highlight {
  color: #ffd700;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #d0d0d0;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-origin: center;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.95);
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Loading state for submit button */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-left: 4px solid #2e7d32;
}

.notification-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-left: 4px solid #c62828;
}

.notification-info {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  border-left: 4px solid #1565c0;
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-img i {
  font-size: 8rem;
  color: #ffd700;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Section */
.about {
  background: #f8f9fa;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat h3 {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #666;
  font-weight: 500;
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.skills .section-title {
  color: white;
}

.skills .section-title::after {
  background: #ffd700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 300% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.skill-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.skill-icon i {
  font-size: 3rem;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.skill-category:hover .skill-icon i {
  transform: scale(1.1) rotate(5deg);
  color: #fff;
}

.skill-category h3 {
  color: white;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.skill-item {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.skill-item::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: left 0.5s ease;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Staggered animation for skill items */
.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-item:nth-child(7) {
  animation-delay: 0.7s;
}

/* Pulse animation for skill categories */
@keyframes skillPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.skill-category:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  animation: skillPulse 2s ease-in-out infinite;
}

/* Projects Section */
.projects {
  background: #f8f9fa;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.project-image i {
  font-size: 4rem;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background: #e8f4fd;
  color: #3498db;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #2980b9;
}

.project-link i {
  margin-right: 0.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #666;
}

.contact-method i {
  color: #3498db;
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablet styles */
  .navbar {
    padding: 0.8rem 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .navbar.scrolled {
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(255, 255, 255, 0.95) !important;
    /* Modern glass effect */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    -moz-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: none !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.5) !important;
  }

  .nav-container {
    padding: 0 30px;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .navbar.scrolled {
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(255, 255, 255, 0.95) !important;
    /* Modern glass effect */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    -moz-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: none !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.5) !important;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    /* Consistent background untuk semua environment */
    background: #667eea !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: none !important;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
    padding: 2rem 0;
    z-index: 999;
  }

  .navbar.scrolled .nav-menu {
    /* Same background untuk consistency */
    background: #667eea !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-left: none !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4) !important;
  }

  .nav-menu.active {
    left: 0;
    animation: slideInRight 0.4s ease-out;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Mobile menu overlay - tema gradient */
  .nav-menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.4),
      rgba(118, 75, 162, 0.4)
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
  }

  .nav-menu.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* CSS Feature Detection for Glass Effect */
  @supports not (backdrop-filter: blur(20px)) {
    .nav-menu {
      background: rgba(255, 255, 255, 0.98) !important;
      border: 1px solid rgba(0, 0, 0, 0.1) !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    }

    .navbar.scrolled .nav-menu {
      background: rgba(255, 255, 255, 0.98) !important;
      border: 1px solid rgba(0, 0, 0, 0.1) !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    }
  }

  /* Enhanced support for WebKit browsers */
  @supports (-webkit-backdrop-filter: blur(20px)) {
    .nav-menu {
      background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15),
        rgba(118, 75, 162, 0.15)
      ) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      backdrop-filter: blur(20px) !important;
    }

    .navbar.scrolled .nav-menu {
      background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.2),
        rgba(118, 75, 162, 0.2)
      ) !important;
      -webkit-backdrop-filter: blur(25px) !important;
      backdrop-filter: blur(25px) !important;
    }
  }

  /* Fallback for browsers without backdrop-filter support */
  .no-backdrop-filter .nav-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  }

  .no-backdrop-filter .navbar.scrolled .nav-menu {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5) !important;
  }

  /* Hosting-specific fixes untuk Niaga Hoster */
  @media screen and (min-width: 1px) {
    .nav-menu {
      /* Fallback solid background */
      background: #667eea !important;
      background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.98),
        rgba(118, 75, 162, 0.98)
      ) !important;
      /* Force backdrop-filter dengan multiple declarations */
      backdrop-filter: blur(20px) saturate(150%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
      -moz-backdrop-filter: blur(20px) !important;
      /* Hardware acceleration */
      transform: translateZ(0) !important;
      will-change: transform, backdrop-filter !important;
    }

    .navbar.scrolled .nav-menu {
      background: #667eea !important;
      background: linear-gradient(135deg, #667eea, #764ba2) !important;
      backdrop-filter: blur(25px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
      -moz-backdrop-filter: blur(25px) !important;
    }
  }

  /* Emergency fix untuk hosting yang bermasalah */
  .nav-menu.active {
    background: #667eea !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Universal override untuk semua kondisi */
  .nav-menu,
  .navbar .nav-menu,
  .navbar.scrolled .nav-menu,
  .nav-menu.active {
    background: #667eea !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Force solid background untuk mobile */
  @media (max-width: 768px) {
    .nav-menu,
    .navbar .nav-menu,
    .navbar.scrolled .nav-menu,
    .nav-menu.active {
      background: #667eea !important;
      background: linear-gradient(135deg, #667eea, #764ba2) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      transform: translateZ(0) !important;
    }
  }

  /* Final override untuk hosting environment */
  html body .navbar .nav-menu,
  html body .navbar.scrolled .nav-menu,
  html body .nav-menu.active,
  html body .nav-menu,
  .nav-menu[style*="background"] {
    background: #667eea !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateZ(0) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  /* Hostinger specific override */
  @media screen {
    .nav-menu {
      background-color: #667eea !important;
      background-image: linear-gradient(135deg, #667eea, #764ba2) !important;
    }
  }

  .nav-menu .nav-link {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
  }

  .nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateX(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle .bar {
    background-color: #333;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .profile-img i {
    font-size: 5rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .stat h3 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-image {
  animation: fadeInUp 1s ease-out;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
