/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #00c6ff;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Header/Navbar */
header {
  background: #121212;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  color: #00c6ff;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  padding: 6px 10px;
  transition: background 0.3s, color 0.3s;
  border-radius: 6px;
}

.nav-links a:hover {
  background: #00c6ff;
  color: #0d0d0d;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #00c6ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #121212;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInSlide 1s ease-out forwards;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ccc;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

#viewPortfolioBtn {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #00c6ff;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

#viewPortfolioBtn:hover {
  background-color: #00a6dd;
}

#viewPortfolioBtn:active {
  transform: scale(0.95);
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Section */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  align-items: center;
}

.photo {
  padding: 10px;
  display: flex;
  justify-content: center;
}

.photo img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 198, 255, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.portrait-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.portrait {
  flex: 1 1 calc(50% - 20px);
  max-width: 420px;
}

.portrait img {
  aspect-ratio: 2 / 3;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .portrait {
    flex: 1 1 100%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p,
  .about p,
  .portfolio p {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  #viewPortfolioBtn {
    font-size: 0.95rem;
  }
}

/* About & Contact Section */
.about,
.contact {
  padding: 60px 20px;
  text-align: center;
}

.about h2,
.contact h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #00c6ff;
  text-align: center;
}

.about p,
.contact p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: #ccc;
  padding: 0 10px;
}

.contact a {
  color: #00c6ff;
  text-decoration: underline;
}

/* Ikon Sosial Media */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00c6ff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.contact-icon:hover {
  color: #ffffff;
}

.contact-icon i {
  font-size: 1.5rem;
}

/* Animasi Scroll */
.animate-text,
.portfolio h2,
.about h2,
.contact h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}
