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

body {
  font-family: "Poppins", sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

body.light-mode {
  color: #222;
}

body.dark-mode {
  color: #fff;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0077ff;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 2000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0077ff;
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-menu.open i {
  transform: rotate(90deg);
  transition: 0.3s ease;
}

.hero {
  padding: 4rem 5%;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-img {
  width: clamp(150px, 20vw, 220px);
  height: clamp(150px, 20vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0077ff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.2);
}

.about-me {
  max-width: 500px;
}

.name {
  font-size: 2rem;
  font-weight: 600;
}

.subtitle {
  font-size: 1.2rem;
  color: #0077ff;
  margin: 0.5rem 0;
}

.description {
  margin-top: 1rem;
}

.section-title {
  text-align: center;
  margin: 3rem 0 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #0077ff;
  display: block;
  margin: 5px auto 0;
  border-radius: 5px;
}

.skills-grid,
.languages-grid,
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 5%;
}

.skill-card,
.language-card,
.interest-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 5%;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card p {
  flex-grow: 1;
  line-height: 1.7;
}

.project-buttons {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.6rem 1.2rem;
  background: #0077ff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #005fcc;
}

.btn.outline {
  background: transparent;
  border: 2px solid #0077ff;
  color: #0077ff;
}

.btn.outline:hover {
  background: #0077ff;
  color: #fff;
}
.education-section,
.experience-section {
  background: #fff;
  padding: 2rem 5%;
  border-radius: 8px;
  margin: 2rem 4rem;
}
.education-grid,
.experience-grid {
  margin-bottom: 1.5rem;
}
.education-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.experience-card {
  margin-bottom: 1.5rem;
}
.task-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: #0077ff;
  transition: 0.3s ease;
}

.social-links a:hover {
  color: #005fcc;
}

.contact-info {
  text-align: center;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 5%;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu {
    display: block;
  }
}
.btn:focus,
.nav-links a:focus,
.social-links a:focus {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}
