:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #10b981;
  --accent: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #10b981;
  --accent: #fbbf24;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50px;
}
.aa {
  width: 400px;
  height: 400px;
  background: var(--gradient);
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.bb {
  width: 400px;
  height: 400px;
  background: var(--gradient);
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
/* navbar css */
.navbar {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}
.navbar2.sticky-scroll {
  position: fixed;
  top: 0;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight {
  color: var(--primary);
  font-size: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 20px;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

.sun-icon,
.moon-icon {
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: none;
}
.fav-icon {
  border-radius: 50%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}
/* hero section css */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.greeting {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 32px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.view-more {
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 16px;
  /* display: inline-block; */
  align-items: center;
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}
.view-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 16px;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
  background: var(--gradient);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
:root:not([data-theme="dark"]) .image-placeholder:hover {
  background-image: none;
}
.image-placeholder:hover {
  background-image: url("../image/profil.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* height: 200px;
  width: 300px; */
  width: 400px;
  height: 400px;

  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 4s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;

  background-color: rgb(239, 76, 6);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
  background-image: url("../image/html5-brands-solid-full.svg");
}

.shape-2 {
  width: 50px;
  height: 50px;

  background-color: rgb(83, 0, 128);
  bottom: 10%;
  right: -8%;
  animation-delay: 1s;
  background-image: url("../image/css3-brands-solid-full.svg");
}

.shape-3 {
  width: 50px;
  height: 50px;
  background: var(--primary);

  top: -20%;
  left: 35%;
  animation-delay: 2s;
  background-image: url("../image/react-brands-solid-full.svg");
}
.shape-4 {
  width: 60px;
  height: 60px;
  background: var(--accent);
  top: 7%;
  right: -10%;
  animation-delay: 1s;
  background-image: url("../image/js-brands-solid-full.svg");
}
.shape-5 {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  bottom: 7%;
  left: -10%;
  animation-delay: 1s;
  background-image: url("../image/node-js-brands-solid-full.svg");
}
.shape-6 {
  width: 60px;
  height: 60px;
  background: var(--accent);
  bottom: -20%;
  right: 35%;
  animation-delay: 1s;
  background-image: url("../image/database-solid-full.svg");
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding: 8px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  width: 6px;
  height: 10px;
  background: var(--primary);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

.fade-in-up {
  animation: fadeInUp 1s ease-in;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.4s;
  animation-fill-mode: backwards;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.6s;
  animation-fill-mode: backwards;
}

.fade-in-up:nth-child(5) {
  animation-delay: 0.8s;
  animation-fill-mode: backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}
/* about section css */
.about-section {
  background-color: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 10px 40px var(--shadow); */
}

.image-placeholder-about {
  width: 100%;
  height: 400px;
  /* background: var(--gradient); */
  position: relative;
}

.about-heading {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-paragraph {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-number::after {
  content: "+";
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
/* skill section css */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.skill-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px var(--shadow-lg);
  border-color: var(--primary);
}

.skill-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.skill-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.skill-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.skill-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

.projects-section {
  background-color: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
/* project section css */
.project-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 240px;
  background: var(--gradient);
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  padding: 10px 20px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  background: var(--bg-secondary);
  color: var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
/* contact section css */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-heading {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-value:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  background: var(--bg-secondary);
  padding: 0 8px;
  color: var(--primary);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}
/* footer section css */
.footer {
  background: var(--bg-secondary);
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}
img {
  width: 590px;
  height: 240px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
[data-theme="dark"] .social-link {
  background-color: rgba(255, 255, 255, 0.397);
}

.social-link:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-4px);
}
/* media query css for responsive in different screen size */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0;
    transition: left 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .image-placeholder {
    width: 300px;
    height: 300px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .image-placeholder {
    width: 250px;
    height: 250px;
  }

  .section-title {
    font-size: 28px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
