/* 1. SETUP & COLORS */

:root {
  --primary-black: #000000;
  --modern-blue: #007aff;
  --text-grey: #888888;
  --light-bg: #fcfcfc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #555;

  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 40%, #ffffff 100%);
}

/* 2. NAVIGATION */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.logo {
  font-size: 24px;
  font-weight: 800;
}

.logo span {
  color: var(--modern-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-black);
  font-weight: 500;
  position: relative;
}

/* underline hover */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hire-button {
  background: var(--primary-black);
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
}

/* 3. HERO SECTION */

.hero-section {
  padding: 5rem 8% 4rem;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: radial-gradient(
    circle at top left,
    rgba(0, 122, 255, 0.08),
    transparent 55%
  );
}

#user-name {
  color: var(--modern-blue);
}

.status-badge {
  color: var(--modern-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-grey);
  max-width: 600px;
}

/* 4. WORK / PORTFOLIO */

.work-section {
  padding: 100px 8%;
  background: linear-gradient(180deg, #f9fafb 0%, #f1f4f8 100%);
}

.section-title {
  font-size: 32px;
  margin-bottom: 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.project-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #eee;
  border-radius: 14px;
  margin-bottom: 14px;

  background-size: cover;
  background-position: center;
}

.project-card:nth-child(1) .project-image-box {
  background-image: url("../assets/dashboard-mill-2.png");
}

.project-card:nth-child(2) .project-image-box {
  background-image: url("../assets/LogiTrack.png");
}

.project-card:nth-child(3) .project-image-box {
  background-image: url("../assets/sortase-apps.png");
}

.project-name {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111;
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-grey);
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-grey);
}

/* 5. ABOUT / PROFILE */

.about-section {
  padding: 100px 8%;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.about-flex {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.about-content {
  flex: 2;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-skills {
  flex: 1;
  min-width: 250px;
}

.skills-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: var(--modern-blue);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  padding: 8px 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* 6. MESSAGE US */

.message-section {
  padding: 100px 8%;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.message-wrapper {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

/* FORM */
.form-container {
  flex: 1;
  min-width: 350px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--modern-blue);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 6px;
}

.radio-group label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #e0e0e0;
  border: 1px solid #999;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: var(--primary-black);
  color: white;
}

/* RESULT */
.result-container {
  flex: 1;
  min-width: 350px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 30px;

  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.result-container.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.result-content p {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}

.result-content strong {
  min-width: 140px;
  color: #666;
  font-weight: 500;
}

#res-time {
  color: var(--modern-blue);
  font-weight: 600;
}

#res-pesan {
  display: block;
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* 7. CONTACT */

.contact-section {
  padding: 100px 8%;
  background: radial-gradient(
    circle at bottom right,
    rgba(0, 122, 255, 0.06),
    transparent 60%
  );
}

.contact-label {
  font-size: 12px;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-title {
  font-size: 48px;
  margin: 20px 0;
}

.contact-title span {
  color: var(--modern-blue);
}

.email-link {
  font-size: 28px;
  color: var(--primary-black);
  text-decoration: none;
}

/* 8. FOOTER */

.footer {
  padding: 80px 8% 30px;
  border-top: 1px solid #eee;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-column a {
  text-decoration: none;
  color: var(--text-grey);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f9f9f9;
  font-size: 12px;
  color: #bbb;
}

/* RESPONSIVE */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--primary-black);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 6%;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;

    border-bottom: 1px solid #eee;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
