/* Reset & base */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: auto;
  position: relative;
  overflow-x: hidden;
}
/* Header & nav */
header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
header h1 {
  font-weight: 900;
  font-size: 2.8rem;
  color: #444;
  letter-spacing: 3px;
  user-select: none;
}
nav {
  margin-top: 15px;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}
nav a {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: #888;
  transition: width 0.3s ease;
}
nav a:hover, nav a:focus {
  color: #222;
}
nav a:hover::after, nav a:focus::after {
  width: 100%;
}
/* Section styling */
section {
  margin-bottom: 50px;
  padding: 25px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.08),
    0 1px 3px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
h2 {
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #444;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
}
p {
  font-size: 1.1rem;
  color: #555;
}
/* Skills badges & progress */
.badges {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.badges img {
  filter: grayscale(40%);
  transition: filter 0.3s ease;
  border-radius: 8px;
}
.badges img:hover {
  filter: none;
}
.skill {
  margin-bottom: 20px;
}
.skill span {
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  display: block;
}
.progress-bar {
  background: #e0e0e0;
  border-radius: 25px;
  height: 18px;
  max-width: 450px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.progress {
  background: linear-gradient(90deg, #65799b, #5e7a9d);
  height: 100%;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(94, 122, 157, 0.7);
  transition: width 1s ease-in-out;
}
/* Projects */
.project {
  margin-bottom: 25px;
}
.project h3 {
  font-weight: 800;
  font-size: 1.5rem;
  color: #5e7a9d;
  margin-bottom: 6px;
}
.project p {
  font-size: 1rem;
  color: #666;
}
/* Feedback */
.feedback {
  background: #f0f4fb;
  border-left: 5px solid #5e7a9d;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(94, 122, 157, 0.1);
  color: #555;
  font-style: italic;
}
.feedback blockquote {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feedback cite {
  font-weight: 700;
  color: #475a7b;
  font-style: normal;
}
/* Contact form */
.contact-form {
  max-width: 500px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form label {
  font-weight: 700;
  color: #444;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5e7a9d;
  outline: none;
  box-shadow: 0 0 8px rgba(94, 122, 157, 0.5);
}
.contact-form button {
  padding: 14px 25px;
  font-weight: 900;
  font-size: 1.1rem;
  border: none;
  background: #5e7a9d;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 5px 10px rgba(94, 122, 157, 0.4);
}
.contact-form button:hover,
.contact-form button:focus {
  background-color: #435670;
  outline: none;
}
/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  font-size: 0.9rem;
  color: #999;
  letter-spacing: 1.2px;
}
/* Responsive */
@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .progress-bar {
    max-width: 100%;
  }
  .badges {
    justify-content: center;
  }
}
/* Custom cursor */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #5e7a9d;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  z-index: 9999;
  mix-blend-mode: difference;
  background: transparent;
}
#cursor.click {
  width: 50px;
  height: 50px;
  border-color: #435670;
}
/* Click effect */
#click-effect {
  position: fixed;
  pointer-events: none;
  width: 30px;
  height: 30px;
  border: 2px solid #5e7a9d;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.5;
  mix-blend-mode: screen;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 9998;
}
#click-effect.active {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
