@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: row;
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
  color: #000;
  min-height: 100vh;
}

/* ======================= */
/* Sidebar */
/* ======================= */
.sidebar {
  width: 250px; /* reduced slightly from 280px */
  background-color: #0d0d0d;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 1rem;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #a9d4ff, #d5eaff);
  border-radius: 8px;
  margin-bottom: -70px;
  box-shadow: 0 0 10px rgba(173, 216, 230, 0.4);
}

/* Avatar */
.avatar {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 4px solid #0d0d0d;
  object-fit: cover;
  margin-bottom: 1rem;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(68, 113, 247, 0.5);
  cursor: pointer;
}

/* Profile Info */
.profile {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile h2 {
  font-size: 1.3rem;
  color: #fff;
}

.role {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1.2rem;
}

/* Menu */
.menu a {
  color: #ddd;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 0.9rem;
}

.menu a i {
  margin-right: 8px;
  font-size: 1rem;
}

.menu a:hover,
.menu a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Social Icons */
.socials {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #4471f7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.socials a:hover {
  transform: scale(1.1);
  background-color: #3352d8;
}

/* ======================= */
/* Main Content */
/* ======================= */
.content {
  flex: 1;
  padding: 2.8rem 2.8rem;
  margin-left: 250px; /* sidebar width */
  background-image: url('background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 250px;
  width: calc(100% - 250px);
  height: 100vh;
  background: rgba(255, 255, 255, 0.35);
  z-index: 0;
  pointer-events: none;
}

/* ======================= */
/* Typography */
/* ======================= */
.content p {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 1rem;
  line-height: 1.7;
}

section {
  margin-bottom: 2.8rem;
  padding-top: 2rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #000;
  border-bottom: 2px solid #4471f7;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ======================= */
/* 🏅 Achievements Section */
/* ======================= */
.achievement-category {
  margin-bottom: 1.8rem;
}

.achievement-category h3 {
  font-size: 1.05rem;
  color: #000;
  border-left: 3px solid #4471f7;
  padding-left: 8px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.achievement-category ul {
  list-style: none;
  padding-left: 0;
}

.achievement-category li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.achievement-category li i {
  color: #f5b50a;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ======================= */
/* 🎯 SKILLS SECTION */
/* ======================= */
.skills-category {
  margin-top: 2rem;
}

.skills-category h3 {
  font-size: 1rem;
  color: #000;
  margin-bottom: 0.6rem;
  border-left: 3px solid #4471f7;
  padding-left: 8px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 1rem;
  text-align: center;
  justify-items: center;
  align-items: start;
}

/* Skill container */
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  transition: transform 0.3s ease;
}

/* Uniform icon sizing */
.skill img,
.skill i {
  width: 40px;
  height: 40px;
  margin-bottom: 0.3rem;
  object-fit: contain;
  display: inline-block;
  line-height: 1;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Font Awesome icons */
.skill i {
  font-size: 1.6rem;
  color: #4471f7;
}

/* Devicon (SVG logos) */
.skill img {
  filter: brightness(1.15) contrast(1.1) saturate(1.3);
  mix-blend-mode: normal;
}

/* Label */
.skill p {
  font-size: 0.8rem;
  font-weight: 500;
  color: #000;
}

/* Hover effect */
.skill:hover {
  transform: translateY(-3px) scale(1.05);
}

.skill:hover img,
.skill:hover i {
  transform: scale(1.1);
  filter: brightness(1.3) contrast(1.2);
}

/* ======================= */
/* Responsive Adjustments */
/* ======================= */
@media (max-width: 1000px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 1.5rem 1rem;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .content {
    margin-left: 0;
    padding: 1.8rem 1.2rem;
    background-attachment: scroll;
  }

  section h2 {
    font-size: 1.3rem;
  }

  .content p {
    font-size: 0.85rem;
  }

  .skill img,
  .skill i {
    width: 36px;
    height: 36px;
  }

  .skill i {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 1rem;
  }

  .content p {
    font-size: 0.8rem;
  }

  section h2 {
    font-size: 1.1rem;
  }

  .skill img,
  .skill i {
    width: 32px;
    height: 32px;
  }

  .skill p {
    font-size: 0.75rem;
  }
}
