* {
    font-family: 'Exo 2', Sans-serif;
  }
  
  
  
  body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    color: rgb(168, 168, 168);
}

header {
  background-color: #000000;
  padding: 16px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Purple Glow Across Top */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(147, 112, 219, 0.1) 20%, 
        rgba(147, 112, 219, 0.3) 40%,
        rgba(147, 112, 219, 0.5) 50%,
        rgba(147, 112, 219, 0.3) 60%,
        rgba(147, 112, 219, 0.1) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo-section {
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(98, 77, 227, 0); /* Start with transparent shadow */
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(207, 183, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
}

.logo-section:hover {
    box-shadow: 0 4px 8px rgba(98, 77, 227, 0.15);
}

.logo-section:hover::before {
    animation: shimmer 1.2s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

.logo {
    height: 28px;
    transition: all 0.2s;
    margin-top: 3px;
    margin-right: 4px;
}

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

.nav-link {
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a8a8a8;
    padding: 5px 0;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #9370db;
    visibility: hidden;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::before {
    visibility: visible;
    width: 100%;
}

main {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 20px;
    height: 140vh;
}

/* Top background pattern */
.profile-top-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, 
    rgba(20, 20, 20, 0.8), 
    transparent
  );
  z-index: 0;
  overflow: hidden;
}

.profile-top-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--school-color) 15%, transparent) 5%, transparent 15%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--school-color) 20%, transparent) 5%, transparent 15%),
    radial-gradient(circle at 40% 70%, color-mix(in srgb, var(--school-color) 10%, transparent) 8%, transparent 20%);
  opacity: 0.3;
}

.profile-bar {
    display: flex;
    width: calc(22% - 25px);
    margin-left: 25px;
    flex-shrink: 0;
    height: 100%;
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, #272727, #232323);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
  }

/* Glowing accent line */
.profile-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2.5px;
    height: 100%;
    background: var(--school-color);
    box-shadow: 0 0 15px var(--school-color);
    opacity: 0.7;
}

.school-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 0, 0, 1);
}

.logo-frame {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border: 4px solid #333;
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: 25px;
}

.school-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.school-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 3px solid #2a2a2a;
  transition: all 0.3s ease;
}

.frame-accent {
  position: absolute;
  height: 15px;
  width: 50px;
  background-color: #181818;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.rank-badge {
  position: absolute;
  bottom: -90px; /* Adjusted to sit closer to the frame */
  left: 50%;
  transform: translateX(-50%);
  width: 170px; /* Smaller size for better proportion */
  height: 170px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.school-logo::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  border: 1px solid color-mix(in srgb, var(--school-color) 40%, transparent);
  border-radius: 22px;
  opacity: 0;
  transition: all 0.3s ease;
}

.school-logo-container:hover .school-logo {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 
              0 0 15px color-mix(in srgb, var(--school-color) 30%, transparent);
}

.school-logo-container:hover .school-logo::after {
  opacity: 1;
}

.school-name {
  margin-top: 70px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255, 0.9);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 15px;
}

.school-abbrev {
  background: linear-gradient(135deg, #0d0d0d, #171717);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--school-color);
  border: 1px solid #333;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.university-details {
  width: 87.5%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, #232323, #1d1d1d);
  border: 1px solid #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.detail-item:hover {
  transform: translateX(8px);
  background: linear-gradient(145deg, 
    color-mix(in srgb, var(--school-color) 5%, #232323), 
    color-mix(in srgb, var(--school-color) 8%, #1d1d1d)
  );
  border-color: color-mix(in srgb, var(--school-color) 30%, #333);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 
              0 0 10px color-mix(in srgb, var(--school-color) 10%, transparent);
}

.detail-icon {
  width: 25px;
  height: 25px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--school-color) 15%, #1a1a1a);
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--school-color) 25%, #333);
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.detail-item:hover .detail-icon {
  background: color-mix(in srgb, var(--school-color) 25%, #1a1a1a);
  transform: scale(1.05);
}

.detail-info {
  flex: 1;
}

.detail-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
}

.detail-value.positive {
  color: #2dc932;
}

.detail-value.negative {
  color: #e53935;
}

.detail-value.neutral {
  color: #a8a8a8;
}

.view-members-btn {
    margin-top: auto;
    width: 87.5%;
    padding: 12px 0;
    background-color: color-mix(in srgb, var(--school-color) 10%, transparent);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--school-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    font-size: 14px;
    margin-bottom: 22px;
}

.view-members-btn:hover {
    transform: translateY(-2px);
    background-color: color-mix(in srgb, var(--school-color) 40%, transparent);
    color: white;
}

.right-side {
    display: flex;
    flex-direction: column;
    gap: 20px;  
    width: calc(78% - 50px); /* Subtract the margin */
    flex-shrink: 0; /* Prevent it from shrinking */;
}

.graph {
    position: relative;
    display: flex;
    width: 100%;
    height: 60%;
    border-radius: 15px;
    background-color: #252525;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #333;
}

#rating-display, .rating-display {
    position: absolute;
    top: 20px;
    right: 45px;
    background: color-mix(in srgb, var(--school-color) 35%, transparent);
    padding: 10px 16px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 400;
    width: 160px;
    font-family: inherit;
    white-space: nowrap;
    border: 1.75px solid color-mix(in srgb, var(--school-color) 80%, transparent);
}

.bottom-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 40%;
    gap: 20px;
}

.uni-highlights {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, #272727, #232323);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  overflow: hidden;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Highlight cards */
.highlight-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #2a2a2a, #222);
  border-radius: 12px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Card hover effect */
.highlight-card:hover {
  transform: translateX(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, 
      color-mix(in srgb, var(--school-color) 5%, #2a2a2a), 
      color-mix(in srgb, var(--school-color) 8%, #222)
  );
  border-color: color-mix(in srgb, var(--school-color) 20%, #333);
}

/* Subtle glow effect on hover */
.highlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--school-color) 10%, transparent) 50%,
      transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover::after {
  opacity: 1;
}

/* Icon styling */
.highlight-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Highlight content */
.highlight-content {
  flex: 1;
}

.highlight-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.highlight-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}

.highlight-detail {
  font-size: 14px;
  color: color-mix(in srgb, var(--school-color) 80%, white);
  font-weight: 500;
}

/* Empty state */
.empty-highlights {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.badges {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, #272727, #232323);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  overflow: hidden;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Badge counter */
.badge-counter {
  opacity: 0.8;
  margin-bottom: 40px;
}

.badge-counter span {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

/* Badge display area - just a blank container */
/* Badge Carousel Container */
.badge-carousel-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 40px;
}


.badge-carousel {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 calc(50% - 130px); /* Center initial badge */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-behavior: smooth; /* Smooth scrolling on modern browsers */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
}

.badge-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}

.badge-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
  transform: scale(0.8);
  filter: saturate(0.8);
}

.badge-item.active {
  opacity: 1;
  transform: scale(1.05);
  filter: saturate(1) drop-shadow(0 0 5px var(--school-color, rgba(147, 112, 219, 0.4)));
}

.badge-icon {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

/* Recent badge info section */
.recent-badge-info {
  margin-top: auto;
}

.recent-label {
  font-size: 12px;
  font-weight: 500;
  color: #AAAAAA;
  margin-bottom: 5px;
}

.badge-title {
  font-size: 27px;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 5px;
}

.badge-description {
  font-size: 12px;
  font-weight: 500;
  color: #AAAAAA;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--school-color);
  border-radius: 2px;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--school-color) 30%, #333),
    rgba(51, 51, 51, 0.5)
  );
}

@media (max-width: 1024px) {
  /* Layout adjustments */
  main {
    flex-direction: column;
    gap: 30px;
    height: auto;
  }
  
  .profile-bar {
    width: calc(100% - 50px);
    margin: 0 25px;
  }
  
  .right-side {
    width: calc(100% - 50px);
    margin: 0 25px;
  }
  
  /* Graph height adjustment */
  .graph {
    height: 700px;
  }
  
  .university-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 90%;
    margin: 30px auto;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  
  .detail-item {
    width: 90%;
    margin: 0;
  }
  
  /* Bottom row adjustments */
  .bottom-row {
    flex-direction: column;
    height: auto;
    gap: 30px;
  }
  
  .uni-highlights, .badges {
    width: calc(100% - 50px);
  }
  
  /* Badge carousel container */
  .badge-carousel-container {
    height: 250px;
  }
  
  /* Header adjustments */
  .header {
    padding: 12px 20px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  /* Logo and school name adjustments */
  .logo-frame {
    width: 140px;
    height: 140px;
  }
  
  .school-logo {
    width: 140px;
    height: 140px;
  }
  
  .rank-badge {
    width: 150px;
    height: 150px;
    bottom: -80px;
  }
  
  .school-name {
    margin-top: 60px;
    font-size: 18px;
  }
}

@media (max-width: 425px) {
  .header-wrap {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }
  
  .logo-section {
      margin-bottom: 15px;
  }
  
  .nav-links {
      justify-content: center;
  }

  .graph {
    display: none;
  }
}