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

/* Root Variables */
:root {
  --bg: #ffffff;
  --text: #171717;
  --primary-black: #000000;
  --gray-dark: #666666;
  --text-secondary: #737373;
  --border: #e5e5e5;
  --hover: #fafafa;
  --primary-white: #ffffff;
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Container - Everything centered */
.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Header */
.header {
  margin-bottom: 30px;
}

.profile-section {
  margin-bottom: 24px;
}
.avatar-container {
  position: relative;
  display: inline-block;
  /* margin-bottom: 2rem; */
}

.avatar {
  width: 100px;
  height: 100px;
  /* border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px; */
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  z-index: 2;
  animation: avatar-filter 1s infinite alternate;
}
.avatar-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-black), var(--gray-dark));
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.avatar-container:hover .avatar {
  transform: scale(1.05);
  animation-play-state: paused;
}

.avatar-container:hover .avatar-ring {
  opacity: 1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.name {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.title {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--text);
}

/* Bio */
.bio {
  margin-top: 20px;
  margin-bottom: 50px;
}

.bio p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.7;
}

.bio p:last-child {
  margin-bottom: 0;
}

/* Sections */
.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
  color: var(--text-secondary);
}

/* Projects */
.projects {
  margin-bottom: 30px;
}

.project {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.project:last-child {
  border-bottom: none;
}

.project:hover {
  background: var(--hover);
  margin: 0 -16px;
  padding: 24px 16px;
  border-radius: 8px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.project h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.project-tech span {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--hover);
  padding: 2px 8px;
  border-radius: 4px;
}

.project p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technologies */
.technologies {
  margin-bottom: 60px;
}

.tech-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-list span {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--hover);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.tech-list span:hover {
  background: var(--text);
  color: var(--bg);
}

/* Footer */
.footer {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 60px 20px;
  }

  .name {
    font-size: 22px;
  }

  .project-header {
    flex-direction: column;
    gap: 8px;
  }

  .project-tech {
    align-self: flex-start;
  }

  .project:hover {
    margin: 0 -12px;
    padding: 24px 12px;
  }
}

/* Smooth animations on load */
.header,
.bio,
.projects,
.technologies,
.footer {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.header {
  animation-delay: 0.1s;
}

.bio {
  animation-delay: 0.2s;
}

.projects {
  animation-delay: 0.3s;
}

.technologies {
  animation-delay: 0.4s;
}

.footer {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Album Button */
.album-btn {
    position: fixed;
    top: 54px;
    right: 32px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    transition: all 0.2s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
}

.album-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.album-btn:hover {
    color: var(--text);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .album-btn {
        top: 20px;
        right: 20px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-links a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.contact-links a:hover {
    color: var(--text);
}