:root {
  --primary: #00d4ff;
  --secondary: #0072ff;
  --dark: #0f172a;
  --glass: rgba(255, 255, 255, 0.05);
  --text-muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: white;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 1px solid var(--glass);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  border: 2px solid var(--glass);
}

nav h1 {
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--primary);
}

/* --- SECTIONS --- */
section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Ukuran font fleksibel */
  margin-bottom: 30px;
}

h2 span {
  color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle at center,
    rgba(0, 212, 255, 0.1),
    transparent 70%
  );
}

.hero h2 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
}

/* --- GRID SYSTEM --- */
.grid {
  display: grid;
  /* Grid otomatis menyesuaikan kolom berdasarkan lebar layar */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--glass);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-member-img,
.portfolio-img {
  width: 190px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* --- FORM STYLING --- */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--glass);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 1rem;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
}

.btn {
  padding: 14px 40px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet & HP */
@media (max-width: 992px) {
  nav {
    padding: 15px 5%;
  }
  section {
    padding: 60px 5%;
  }
}

/* HP Saja */
@media (max-width: 768px) {
  nav ul {
    display: none; /* Kamu bisa menggantinya dengan hamburger menu nanti */
  }

  .hero {
    padding-top: 50px;
  }

  .grid {
    grid-template-columns: 1fr; /* Paksa 1 kolom di HP kecil jika perlu */
    padding: 0 10px;
  }
}

/* --- ANIMASI SCROLL --- */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroEntry {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero.fade {
  animation: heroEntry 1s ease-out forwards;
}
