:root {
  --primary: #0a66c2;
  --secondary: #378fe9;
  --dark: #1d2226;
  --light-gray: #eef3f8;
  --medium-gray: #dce6f2;
  --white: #ffffff;
  --text-dark: #1d2226;
  --text-medium: #666666;
  --text-light: #929292;
  --accent: #ff6b6b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hero {
  height: 400px;
  background: #121212; /* Dark base color */
  position: relative;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay with 60% opacity */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* Full opacity for images with dark overlay */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 20px;
  z-index: 2;
  color: white;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid var(--white);
  position: absolute;
  bottom: -90px;
  left: 50px;
  background-color: #ddd;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--medium-gray);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.profile-info {
  padding: 120px 0 40px;
  text-align: center;
}

.profile-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #ff5252;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  padding: 40px 0;
}

.sidebar {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-section {
  margin-bottom: 40px;
}

.sidebar-section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-section h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section ul li {
  margin-bottom: 15px;
  color: var(--text-medium);
  display: flex;
  align-items: flex-start;
}

.sidebar-section ul li i {
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.card-header h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 10px;
}

.card-header h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.card-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-header a i {
  transition: transform 0.3s ease;
}

.card-header a:hover i {
  transform: translateX(3px);
}

.experience-item,
.project-item,
.mentee-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--medium-gray);
}

.experience-item:last-child,
.project-item:last-child,
.mentee-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.experience-item h3,
.project-item h3,
.mentee-item h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.experience-item .company,
.project-item .tech,
.mentee-item .occupation {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  background-color: rgba(10, 102, 194, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.experience-item .duration,
.project-item .duration,
.mentee-item .contact {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.experience-item .duration i,
.project-item .duration i,
.mentee-item .contact {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width: 100%; /* Take full width of parent */
  text-align: center; /* Center text */
}

.mentee-item .contact a {
  display: flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mentee-item .contact a:hover {
  color: var(--secondary);
}

.experience-item ul,
.project-item ul {
  padding-left: 20px;
}

.experience-item ul li,
.project-item ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.experience-item ul li:before,
.project-item ul li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.mentee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

.mentee-item {
  text-align: center;
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mentee-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mentee-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #ddd;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.tech-badge {
  background-color: var(--light-gray);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background-color: var(--primary);
  color: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* challenge drawer Styles */

.challenges-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.challenge-item {
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  overflow: hidden;
}

.challenge-title {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--white);
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.challenge-title:hover {
  background-color: var(--light-gray);
}

.challenge-title i {
  transition: transform 0.3s ease;
}

.challenge-title.active i {
  transform: rotate(180deg);
}

.challenge-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--light-gray);
}

.challenge-content.open {
  padding: 20px;
  max-height: 300px;
}

.challenge-content p {
  margin-bottom: 15px;
}

/* Footer Styles */

footer {
  background: linear-gradient(135deg, var(--dark) 0%, #2a3a4a 100%);
  color: var(--white);
  padding: 60px 0 30px;
  text-align: center;
}

footer h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

footer p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.copyright {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .profile-pic {
    left: 50%;
    transform: translateX(-50%);
  }

  .mentee-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

@media (max-width: 576px) {
  .hero {
    height: 350px;
  }

  .profile-info {
    padding-top: 100px;
  }

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

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