* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fbfbfd;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1e;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* smooth gradient background accent */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(230, 240, 255, 0.4), rgba(255, 245, 240, 0.2));
  z-index: -2;
  pointer-events: none;
}

/* ========== NAVIGATION (TOP) ========== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2c3e66, #4a628a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo a:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: #2c3e3f;
  padding: 0.4rem 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.nav-links li a:hover {
  color: #1f5f6b;
  border-bottom-color: #87b9bb;
}

/* active tab indicator */
.nav-links li a.active {
  color: #1f4e5c;
  border-bottom-color: #2f7d6b;
  font-weight: 600;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  max-width: 1120px;
  margin: 2rem auto 4rem;
  padding: 1.5rem 2rem;
  animation: fadeScale 0.35s ease-out forwards;
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* about me */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

.profile-pic {
  flex: 1.2;
  min-width: 200px;
  text-align: center;
}

.avatar-placeholder {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  /* Choose your preferred shape below - I recommend starting with #1 */
  
  /* OPTION 1: Clean circle (best for preserving quality) 
  border-radius: 50%; */
  
  /* OPTION 2: Subtle rounded square 
  border-radius: 28px; */
  
  /* OPTION 3: Original blob shape */
  border-radius: 48% 52% 40% 60% / 70% 40% 60% 30%; 
  
  overflow: hidden;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f0f3f5; /* Neutral background while loading */
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Preserves aspect ratio while filling container */
  object-position: center 20%; /* Adjusts vertical focus - change 20% to where eyes/face are */
  display: block;
  image-rendering: auto;  /* Ensures browser uses highest quality */
  image-rendering: crisp-edges;  /* For sharp edges on PNGs */
  image-rendering: pixelated;  /* For pixel art - remove if not needed */
}

/* Optional: Slight zoom on hover (doesn't reduce quality) */
.avatar-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder:hover img {
  transform: scale(1.03);  /* Subtle zoom preserves quality */
}
.avatar-placeholder span {
  font-size: 4.2rem;
  font-weight: 400;
  color: #2a4b5c;
}

.about-text {
  flex: 2;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(115deg, #1e2f3f, #2d5f6e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.about-text .tagline {
  font-size: 1.2rem;
  color: #3f6b6b;
  border-left: 3px solid #6aa9aa;
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: #2d3a40;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 500;
  background: #eef3f3;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  color: #235b5e;
  transition: all 0.2s;
}

.social-links a:hover {
  background: #d0e2e2;
  color: #0e3e42;
}

/* work / photos / certificates cards style */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
  border-left: 5px solid #578a8b;
  padding-left: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.12);
  border-color: rgba(100, 140, 130, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  color: #4b5b60;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  background: #eef2f5;
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  margin-top: 1rem;
  color: #2c6b6b;
}

/* photo gallery specific */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  background: #fffaf5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.photo-placeholder {
  background: #ebe9e9;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #6f8f8f;
}

.photo-item p {
  padding: 0.8rem 1rem;
  font-weight: 500;
  background: white;
  text-align: center;
}

/* certificates style */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-entry {
  background: white;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid #eef2f0;
}

.cert-info h4 {
  font-weight: 600;
  font-size: 1.1rem;
}

.cert-info p {
  font-size: 0.85rem;
  color: #5f7373;
}

.cert-link {
  background: none;
  border: 1.5px solid #bbe0dc;
  padding: 0.4rem 1rem;
  border-radius: 60px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2e6b67;
  cursor: pointer;
  transition: 0.1s;
  display: inline-block;
  text-decoration: none;
}

.cert-link:hover {
  background: #e0f0ee;
}

/* footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  color: #6c7a77;
  font-size: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* responsive */
@media (max-width: 680px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  .nav-links {
    justify-content: center;
    gap: 1.2rem;
  }
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-text .tagline {
    border-left: none;
    text-align: center;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .main-content {
    padding: 1rem;
  }
}
