/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Comic-book themed color palette */
  --background: #f5f5f0;
  --foreground: #4b5563;
  --card: #fffbeb;
  --card-foreground: #4b5563;
  --popover: #0d0d0d;
  --popover-foreground: #ffffff;
  --primary: #0d0d0d;
  --primary-foreground: #ffffff;
  --secondary: #0d0d0d;
  --secondary-foreground: #ffffff;
  --muted: #f8fafc;
  --muted-foreground: #4b5563;
  --accent: #fffbeb;
  --accent-foreground: #4b5563;
  --destructive: #e3342f;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #ffffff;
  --ring: rgba(234, 88, 12, 0.5);

  /* Comic-specific custom properties */
  --comic-panel-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  --comic-bubble-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --comic-border-width: 3px;

  /* Fonts */
  --font-heading: "Bangers", cursive;
  --font-body: "Comic Neue", cursive;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Comic-specific styles */
.comic-panel {
  border: var(--comic-border-width) solid var(--border);
  box-shadow: var(--comic-panel-shadow);
  transition: all 0.3s ease;
  background: var(--card);
  border-radius: 12px;
}

.comic-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.speech-bubble {
  position: relative;
  background: var(--popover);
  color: var(--popover-foreground);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  box-shadow: var(--comic-bubble-shadow);
  margin: 1rem 0;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--popover);
}

.comic-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comic-button:hover {
  transform: scale(1.05);
}

.comic-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.comic-button:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-action {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--background);
  border-bottom: var(--comic-border-width) solid var(--border);
  z-index: 1000;
  box-shadow: var(--comic-panel-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--muted) 100%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--popover-foreground);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.character-img {
  width: 250px; /* Lebar gambar */
  height: 300px; /* Tinggi gambar */
  object-fit: cover; /* Supaya isi gambar rapi, tidak gepeng */
  border-radius: 50% / 40%; /* Bikin oval, bukan lingkaran */
  border: 5px solid var(--primary);
  box-shadow: var(--comic-panel-shadow);
}

.hero-bubble-2 {
  align-self: start;
  margin-top: 2rem;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.comic-divider {
  width: 100px;
  height: 4px;
  background: var(--secondary);
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.about-panel,
.skills-panel {
  padding: 2rem;
}

.panel-header {
  margin-bottom: 1.5rem;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.05);
}

.skill-badge i {
  font-size: 1.2rem;
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-description {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
}

.contact-bubble h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--muted);
  padding: 40px 0;
  border-top: var(--comic-border-width) solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.footer-panel {
  padding: 1rem;
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce-hover:hover {
  animation: bounce 1s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--comic-panel-shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .character-img {
    max-width: 200px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }
}
