/* === Reset & Variabel Warna === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0f0f15;
  --bg-card: #1a1a25;
  --text-light: #f0f0f5;
  --text-muted: #a0a0b0;
  --accent: #d4af37; /* Gold */
  --shadow: rgba(0, 0, 0, 0.5);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, #0c0c14 0%, #141420 100%);
}

.profile-container {
  position: relative;
  margin-bottom: 2rem;
}

.profile-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 1;
  animation: pulse 4s infinite;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
  background: var(--bg-card);
  z-index: 2;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.03);
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

.hero h1 {
  font-size: 2.8rem;
  margin: 1.2rem 0 0.5rem;
  background: linear-gradient(to right, var(--text-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Contact Links - Instagram & Gmail */
.contact-links {
  display: flex;
  gap: 1.8rem;
  margin-top: 1rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-light);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.contact-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-5px);
}

/* === General Section Styling === */
.section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto;
  border-radius: 3px;
}

.about p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* === Projects === */
.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 6px 15px var(--shadow);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.project-img {
  height: 180px;
}

.project-card h3 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.3rem;
}

.project-card p {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem;
  background: #0a0a0f;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .profile-ring, .profile-photo {
    width: 160px;
    height: 160px;
  }
  .profile-ring {
    top: -8px;
    left: -8px;
  }
  .contact-links a {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  .section {
    padding: 3.5rem 1.5rem;
  }
}