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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

header {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-img-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.header-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.header-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

nav {
  background-color: #283593;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

#content {
  flex: 2;
  min-width: 300px;
}

aside {
  flex: 1;
  min-width: 280px;
}

article {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
}

article h2 {
  color: #283593;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8eaf6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

article h3 {
  color: #3949ab;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

article p {
  margin-bottom: 1.2rem;
  text-align: justify;
  color: #444;
}

.highlight-box {
  background: #e8eaf6;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid #3949ab;
}

.focus-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.focus-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.focus-item i {
  font-size: 2rem;
  color: #3949ab;
  margin-bottom: 0.8rem;
}

.focus-item h4 {
  color: #283593;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.focus-item p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.tech-category {
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.tech-item {
  background: #e8eaf6;
  color: #283593;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: #3949ab;
  color: white;
  transform: translateY(-2px);
}

.project-card {
  background: #f5f7ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3949ab;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-header h3 {
  margin: 0;
  color: #283593;
}

.project-link {
  color: #3949ab;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #1a237e;
  transform: translateX(3px);
}

.project-desc {
  margin-bottom: 1.2rem;
  color: #555;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: #3949ab;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.profile-card {
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid #e8eaf6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h3 {
  text-align: center;
  color: #283593;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bio-info {
  margin-bottom: 1.5rem;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.bio-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-item i {
  color: #3949ab;
  font-size: 1.2rem;
  width: 24px;
}

.bio-item strong {
  display: block;
  color: #283593;
  font-size: 0.9rem;
}

.bio-item p {
  margin: 0;
  color: #555;
}

.contact-section,
.stats-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.contact-section h4,
.stats-section h4 {
  color: #283593;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.contact-info i {
  color: #3949ab;
  width: 20px;
}

.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #283593;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

footer {
  background-color: #1a237e;
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 1rem;
}

footer a {
  color: #bbdefb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

.footer-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
  margin: 0 0.5rem;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 992px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .header-tags {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav ul li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  main {
    flex-direction: column;
    padding: 0 1rem;
  }

  #content {
    order: 2;
  }

  aside {
    order: 1;
  }

  .profile-card {
    position: static;
  }

  article {
    padding: 1.5rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  article h3 {
    font-size: 1.2rem;
  }

  .focus-items {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  .header-text p {
    font-size: 0.95rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  article {
    padding: 1.2rem;
  }

  .profile-card {
    padding: 1.2rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
