:root {
  --main: #0a192f;
  --accent: #64ffda;
  --bg: #112240;
  --card: #233554;
  --text: #ccd6f6;
  --muted: #8892b0;
  --font: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

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

body {
  background: var(--main);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

header {
  background: var(--bg);
  padding: 40px 20px 30px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 0 0 8px rgba(100, 255, 218, 0.15);
  background: #fff;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2.5rem;
  margin: 10px 0;
  letter-spacing: 2px;
  color: var(--text);
}

.bio {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 10px auto;
  max-width: 600px;
  line-height: 1.5;
}

.gh-links {
  margin-top: 12px;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gh-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.gh-links a:hover {
  color: #fff;
  text-decoration: underline;
}

main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

section {
  margin-bottom: 60px;
}

section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--card);
  padding-bottom: 8px;
  letter-spacing: 1px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 15px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill {
  background: var(--card);
  color: var(--accent);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  cursor: default;
}

.skill:hover {
  background: var(--accent);
  color: var(--main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.2);
  border-color: var(--accent);
}

.project-title {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.project-title:hover {
  color: #fff;
  text-decoration: underline;
}

.project-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-info {
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  background: var(--card);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  background: var(--accent);
  color: var(--main);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(100, 255, 218, 0.3);
}

.social-link::before {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.social-link:hover::before {
  transform: translateX(4px);
}

.contact-section {
  background: var(--bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.primary-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.primary-contact a {
  background: var(--accent);
  color: var(--main);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

.primary-contact a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(100, 255, 218, 0.5);
}

footer {
  background: var(--bg);
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--card);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  header img {
    width: 100px;
    height: 100px;
  }

  .projects-list {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .gh-links {
    font-size: 1rem;
    gap: 10px;
  }

  .primary-contact {
    flex-direction: column;
  }

  .primary-contact a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  header {
    padding: 30px 15px 20px;
  }

  header img {
    width: 85px;
    height: 85px;
  }

  h1 {
    font-size: 1.7rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  main {
    padding: 0 15px 40px;
  }

  .skills {
    gap: 10px;
  }

  .skill {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .project-card {
    padding: 18px 16px;
  }

  .contact-section {
    padding: 20px;
  }
}
