/* Modern Minimalist Portfolio Styles */
:root {
  /* Color scheme */
  --bg: #f4f5f7;
  --fg: #2d2d2d;
  --accent: #0070f3;
  --light-accent: rgba(0, 112, 243, 0.1);
  --card: #ffffff;
  --subtle: #f2f2f2;
  --border: #eaeaea;
  --muted: #6c757d;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  /* background: linear-gradient(135deg, #f0f4ff 0%, #fafaff 40%, #eaeaff 100%); */

  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Header */
.header {
  padding: var(--spacing-md) 0;

  /* background: url(../img/bg_21.png) no-repeat center center; */
}

.header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.header__avatar {
  width: 140px;
  height: 140px;
  border-radius: 20%;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  /* border: 3px solid var(--accent); */
  transition: transform 0.3s ease;
}

.header__avatar:hover {
  transform: scale(1.05);
}

.header__name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.02em;
  /* color: #5eead4; */
}

.header__title {
  font-size: 1.25rem;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 112, 243, 0.7), 0 0 16px rgba(0, 112, 243, 0.2);

  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.header__bio {
  max-width: 540px;
  /* color: var(--muted); */
  margin: 0 auto;
}

/* Section styling */
.section {
  margin-bottom: var(--spacing-lg);
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  box-shadow: 0 0 3px rgba(0, 112, 243, 0.7), 0 0 7px rgba(0, 112, 243, 0.2);
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  max-width: 30%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.project__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project__content {
  padding: var(--spacing-sm);
}

.project__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.project__description {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Skills */
.skills {
  margin-top: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  background: #fdc58b;
  color: black;
  opacity: 0.7;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact */
.contact {
  background: var(--card);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  /* background: url(../img/bg_21.png) no-repeat center center; */

  text-align: center;
}

.contact__title {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
}

.contact__text {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto var(--spacing-sm);
}

.contact__email {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.social-link {
  color: var(--muted);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-md) 0;
  /* background: url(../img/bg_21.png) no-repeat center center; */

  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .project__image {
    height: 160px;
  }
}

@media (min-width: 1024px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
