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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #f4f6fb;
  --text: #333;
  --card-bg: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}


header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

header .logo h1 {
  font-size: 2rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

nav a:hover {
  color: #e0e7ff;
}

nav a:hover::after {
  width: 100%;
}


main {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  margin-bottom: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

section h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0.75rem auto 2rem;
  border-radius: 2px;
}

/* Highlight section when targeted from nav click */
section:target {
  animation: highlight 1s ease;
}

@keyframes highlight {
  0% {
    box-shadow: 0 0 0px rgba(99, 102, 241, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  }
  100% {
    box-shadow: 0 0 0px rgba(99, 102, 241, 0);
  }
}


#bio {
  text-align: center;
}

#bio .profile-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1.5rem auto;
  border: 5px solid var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}


#information ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  font-size: 1.05rem;
}

#information li {
  padding: 0.75rem 1rem;
  background: #f9fafc;
  border-radius: 0.6rem;
  border-left: 4px solid var(--primary);
  transition: background 0.3s;
}

#information li:hover {
  background: #eef2ff;
}


.education {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fdfdff;
  transition: background 0.3s;
}

.education:hover {
  background: #f3f4ff;
}

.education h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}


footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #1f2937;
  color: #9ca3af;
  font-size: 0.95rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  #information ul {
    grid-template-columns: 1fr;
  }
}
