/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Variabel CSS */
:root {
  --primary-color: #1e1b4b;
  --secondary-color: #06b6d4;
  --secondary-dark: #0891b2;
  --accent-color: #f59e0b;
  --text-color: #1e293b;
  --light-bg: #fef7ed;
  --white: #ffffff;
  --muted-color: #94a3b8;
  --shadow: 0 20px 45px rgba(30, 27, 75, 0.15);
  --transition: all 0.3s ease;
  --body-gradient: linear-gradient(135deg, #e0f2fe 0%, #fef7ed 25%, #f0f9ff 50%, #fef3c7 75%, #fef7ed 100%);
  --mesh-pattern: radial-gradient(circle at 1px 1px, rgba(6, 182, 212, 0.15) 1px, transparent 0);
  --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  --gradient-hero: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.98) 10%,
    rgba(245, 158, 11, 0.92) 60%,
    rgba(6, 182, 212, 0.9) 100%
  );
  --gradient-card: linear-gradient(
    145deg,
    rgba(6, 182, 212, 0.15),
    rgba(245, 158, 11, 0.25)
  );
  --gradient-btn: linear-gradient(135deg, #06b6d4, #0891b2);
  --gradient-outline: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.4),
    rgba(30, 27, 75, 0.4)
  );
  --glass-bg: rgba(255, 255, 255, 0.92);
}

/* Styling umum */
body {
  line-height: 1.6;
  color: var(--text-color);
  background: var(--body-gradient);
  background-image:
    var(--mesh-pattern),
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.13) 0%, transparent 30%),
    radial-gradient(circle at 60% 50%, rgba(30, 27, 75, 0.08) 0%, transparent 50%);
  background-size:
    40px 40px,
    auto,
    auto,
    auto,
    auto,
    auto;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(10px) translateY(-5px) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-5px) translateY(10px) scale(0.98);
    opacity: 0.7;
  }
}

/* Animated Background Elements */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.3;
  animation: floatShape 15s ease-in-out infinite;
}

.shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.6), rgba(245, 158, 11, 0.4));
  border-radius: 50%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.shape:nth-child(2) {
  top: 20%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(6, 182, 212, 0.3));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -3s;
  animation-duration: 22s;
}

.shape:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(6, 182, 212, 0.4), rgba(30, 27, 75, 0.2));
  border-radius: 20px;
  transform: rotate(45deg);
  animation-delay: -6s;
  animation-duration: 25s;
}

.shape:nth-child(4) {
  top: 60%;
  right: 25%;
  width: 70px;
  height: 70px;
  background: linear-gradient(315deg, rgba(245, 158, 11, 0.4), rgba(6, 182, 212, 0.3));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation-delay: -9s;
  animation-duration: 20s;
}

.shape:nth-child(5) {
  bottom: 15%;
  right: 10%;
  width: 90px;
  height: 90px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.4), rgba(245, 158, 11, 0.3));
  border-radius: 50% 20% 50% 20%;
  animation-delay: -12s;
  animation-duration: 28s;
}

.shape:nth-child(6) {
  top: 40%;
  left: 5%;
  width: 50px;
  height: 50px;
  background: linear-gradient(90deg, rgba(30, 27, 75, 0.3), rgba(6, 182, 212, 0.2));
  border-radius: 10px;
  animation-delay: -15s;
  animation-duration: 16s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateY(-40px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateY(-20px) rotate(270deg) scale(1.05);
  }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
}

h1,
h2,
h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

p {
  margin-bottom: 15px;
}

.highlight {
  color: var(--accent-color);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  margin: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Navbar */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  backdrop-filter: blur(16px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  border-bottom: 2px solid rgba(240, 147, 251, 0.3);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(240, 147, 251, 0.1), transparent 50%);
  pointer-events: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.logo {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 35px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border-radius: 999px;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 10px;
  transition: var(--transition);
}

/* Home Section */
#home {
  padding-top: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#home::before,
#home::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

#home::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  top: -10%;
  left: 10%;
  animation-delay: 0s;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.8);
}

#home::after {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25), transparent 70%);
  bottom: -20%;
  right: 5%;
  animation-delay: -5s;
  box-shadow: 0 0 80px rgba(245, 158, 11, 0.7);
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(30px, -30px, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-20px, 20px, 0) scale(1.1);
  }
  75% {
    transform: translate3d(20px, 10px, 0) scale(1.05);
  }
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.home-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-text h1 {
  color: var(--white);
  font-size: 3.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(102, 126, 234, 0.4);
  letter-spacing: -1px;
}

.home-text p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.home-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding: 20px;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35), 0 0 50px rgba(102, 126, 234, 0.4);
  transition: var(--transition);
  animation: floatImage 4s ease-in-out infinite;
  position: relative;
}

.profile-img::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.profile-img:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(102, 126, 234, 0.6);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  font-size: 2.8rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out;
  font-weight: 800;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 100%;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  animation: underlineFlow 3s ease-in-out infinite;
}

@keyframes underlineFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* About Section */
#about {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.06), transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(30, 27, 75, 0.03), transparent 45%);
  pointer-events: none;
  animation: sectionGlow 12s ease-in-out infinite alternate;
}

#about::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(102, 126, 234, 0.02) 0deg, transparent 60deg, rgba(240, 147, 251, 0.02) 120deg, transparent 180deg, rgba(102, 126, 234, 0.02) 240deg, transparent 300deg, rgba(240, 147, 251, 0.02) 360deg);
  animation: rotate 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes sectionGlow {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 2;
  min-width: 300px;
  position: relative;
  z-index: 2;
}

.about-text h3 {
  color: #667eea;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-details {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(102, 126, 234, 0.08);
  border-left: 4px solid #667eea;
  border-radius: 8px;
  transition: var(--transition);
  cursor: default;
}

.detail-item:hover {
  background: rgba(102, 126, 234, 0.12);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.detail-item strong {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-item span {
  color: #666;
  font-weight: 500;
}

.about-stats {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 10px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.stat-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Skills Section */
#skills {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.06), transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.05), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(30, 27, 75, 0.02), transparent 50%);
  pointer-events: none;
  animation: skillPulse 15s ease-in-out infinite;
}

@keyframes skillPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.01);
  }
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category {
  background: var(--glass-bg);
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(6, 182, 212, 0.12);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.skill-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}

.skill-item {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.skill-info span {
  font-weight: 600;
}

.skill-bar {
  height: 12px;
  background-color: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: progressGlow 2s ease infinite;
}

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
  }
}

/* Gallery Section */
#gallery {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

#gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.06), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.08), transparent 50%),
    radial-gradient(circle at 10% 60%, rgba(30, 27, 75, 0.03), transparent 45%);
  pointer-events: none;
  animation: galleryFlow 18s ease-in-out infinite;
}

#gallery::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.01) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(240, 147, 251, 0.01) 50%, transparent 70%);
  pointer-events: none;
  animation: galleryShift 25s linear infinite;
}

@keyframes galleryFlow {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(0) translateY(0);
  }
  33% {
    opacity: 0.8;
    transform: translateX(5px) translateY(-3px);
  }
  66% {
    opacity: 0.6;
    transform: translateX(-3px) translateY(5px);
  }
}

@keyframes galleryShift {
  0% {
    transform: translateX(-100px) translateY(-100px);
  }
  100% {
    transform: translateX(100px) translateY(100px);
  }
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.filter-btn {
  padding: 11px 24px;
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-color);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: var(--white);
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.15);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: var(--white);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 70%);
  color: var(--white);
  padding: 30px 20px 20px;
  transform: translateY(80px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.gallery-overlay p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 40% 30%, rgba(240, 147, 251, 0.06), transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(102, 126, 234, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30, 27, 75, 0.03), transparent 45%);
  pointer-events: none;
  animation: contactWave 20s ease-in-out infinite;
}

#contact::after {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(102, 126, 234, 0.005) 10px,
      rgba(102, 126, 234, 0.005) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      rgba(240, 147, 251, 0.005) 15px,
      rgba(240, 147, 251, 0.005) 30px
    );
  animation: contactDrift 30s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes contactWave {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02) rotate(1deg);
  }
}

@keyframes contactDrift {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-50px) translateY(-30px);
  }
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: #667eea;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 22px;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 27, 75, 0.08);
  transition: var(--transition);
  border-left: 4px solid #667eea;
  position: relative;
}

.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 12px;
}

.contact-item:hover {
  transform: translateX(10px) translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
  background: rgba(102, 126, 234, 0.12);
}

.contact-icon {
  font-size: 2rem;
  margin-right: 25px;
  min-width: 50px;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h4 {
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 22px;
}

.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
}

.form-control::placeholder {
  color: rgba(30, 27, 75, 0.5);
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  color: var(--white);
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.06), transparent 45%);
  animation: footerGlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footerGlow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.footer-info h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer-info p {
  opacity: 0.85;
  max-width: 400px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  padding: 0;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.25);
  border: 2px solid rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  backdrop-filter: blur(10px);
  font-size: 1.4rem;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(240, 147, 251, 0.5));
  border-color: rgba(102, 126, 234, 0.9);
  transform: translateY(-6px) scale(1.15);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .home-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-text h1 {
    font-size: 2.5rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .home-text h1 {
    font-size: 2rem;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }

  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 20px;
  }

  .container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
  }

  h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
  }

  .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .social-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
  }

  .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .social-link i {
    font-size: 24px;
    width: 40px;
    text-align: center;
    margin-right: 15px;
  }

  /* Warna khusus untuk setiap platform */
  .social-link.tiktok:hover {
    background-color: #000;
    color: white;
  }

  .social-link.twitter:hover {
    background-color: #1da1f2;
    color: white;
  }

  .social-link.instagram:hover {
    background: linear-gradient(
      45deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888
    );
    color: white;
  }

  .social-link.linkedin:hover {
    background-color: #0077b5;
    color: white;
  }

  .social-link.github:hover {
    background-color: #333;
    color: white;
  }

  .footer {
    margin-top: 30px;
    color: #666;
    font-size: 14px;
  }

  @media (max-width: 480px) {
    .container {
      padding: 25px;
    }

    h1 {
      font-size: 24px;
    }
  }
}
