
:root {
    --bg-color-1: #4b79a1;
    --bg-color-2: #283e51;
    --text-color: #f0fdfc;
    --button-color-1: #3498db;
    --button-color-2: #2c3e50;
    --main-bg: #eaf6f6;
    --sidebar-bg: rgba(255, 255, 255, 0.2);
    --chat-bg: rgba(255, 255, 255, 0.5);
}

body {
    margin: 0;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%);
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: backgroundShift 20s infinite alternate;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.back-button-top {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 1000;
}
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 30px 20px 33px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-img:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}
.back-btn {
    font-size: 1.12rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.title {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-size: 2.3rem;
    color: #ffffff;
    letter-spacing: 2.2px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}
.members-title {
    text-align: center;
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 2.2rem;
    letter-spacing: 2.5px;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: fadeInUp 0.8s ease-out;
}
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
.members-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 20px 0;
    min-height: 60vh;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
  
  /* Staggered animation for cards */
  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
  .card:nth-child(4) { animation-delay: 0.4s; }
  .card:nth-child(5) { animation-delay: 0.5s; }
  .card:nth-child(6) { animation-delay: 0.6s; }
  
  .card {
    animation: fadeInUp 0.6s ease-out both;
    cursor: pointer;
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
  }
  
.modal-content {
    position: relative;
    background: var(--chat-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
  
  .close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
  }
  
.close:hover {
    color: var(--button-color-1);
}
  
  .modal-card {
    padding: 30px;
    text-align: center;
  }
  
.modal-card img {
    width: 250px;
    height: 250px;
    border-radius: 25px;
    object-fit: cover;
    margin: 0 auto 25px auto;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(52, 152, 219, 0.3);
}
  
.modal-name {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
  
.modal-desc {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Poppins', Arial, sans-serif;
}
  
.modal-college {
    color: var(--button-color-2);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--button-color-1), var(--button-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: scale(0.7) translateY(50px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
    width: 90vw;
    max-width: 1000px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.2s both;
}
.card {
    background: var(--chat-bg);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 12px 0 16px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--button-color-1), var(--button-color-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card:hover::before {
    opacity: 1;
}
.card img {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto 12px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #f1f1f1;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
  .card:hover img {
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }
  .card-details {
    padding: 0 7px;
  }
.name {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.0rem;
    margin: 12px 0 6px 0;
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}
.card:hover .name {
    color: var(--button-color-1);
}
.desc {
    color: #000000;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.3s ease;
    opacity: 0.9;
    margin-bottom: 6px;
}
.college {
    color: var(--button-color-2);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.card:hover .desc {
    opacity: 1;
    transform: translateY(-1px);
}
.card:hover .college {
    opacity: 1;
    color: var(--button-color-1);
}
.side-label {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 2.8rem;
    letter-spacing: 8px;
    color: #ffffff;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    opacity: 0.8;
    z-index: 22;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: fadeInRight 1.2s ease-out 0.5s both;
    white-space: nowrap;
}
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateY(-50%) rotate(-90deg) translateX(50px);
    }
    to {
      opacity: 0.9;
      transform: translateY(-50%) rotate(-90deg) translateX(0);
    }
  }
  .footer-container {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    z-index: 3;
  }
  .footer-line {
    width: 84vw;
    max-width: 1040px;
    margin: 0 auto 0 auto;
    border: none;
    border-top: 2px solid #b6e8e8;
    opacity: 0.6;
    margin-bottom: 10px;
    position: relative;
    top: 0;
  }
footer {
    width: 100vw;
    text-align: center;
    color: #ffffff;
    background: transparent;
    font-size: 1.09rem;
    letter-spacing: 1px;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    position: relative;
    bottom: 0;
    margin-bottom: 10px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
  @media (max-width: 1100px) {
    .members-grid {
      width: 94vw;
      gap: 24px 16px;
    }
    .side-label {
      right: 20px;
      font-size: 2.2rem;
      letter-spacing: 5px;
    }
    .footer-line {
      width: 94vw;
    }
    .logo-placeholder {
      width: 45px;
      height: 45px;
    }
    .members-section {
      padding: 15px 0 30px 0;
    }
  }
  @media (max-width: 900px) {
    .members-grid {
      grid-template-columns: repeat(2, 1fr);
      width: 92vw;
      gap: 24px 16px;
    }
    .side-label {
      font-size: 1.8rem;
      right: 10px;
      letter-spacing: 4px;
    }
    .header {
      gap: 20px;
      padding: 40px 20px 0 25px;
    }
    .logo-placeholder {
      width: 40px;
      height: 40px;
    }
    .title {
      font-size: 1.8rem;
    }
    .members-title {
      font-size: 1.8rem;
      letter-spacing: 2px;
      margin-bottom: 20px;
    }
    .card img {
      width: 140px;
      height: 140px;
    }
    .back-button-top {
      top: 15px;
      left: 20px;
    }
    .members-section {
      padding: 10px 0 25px 0;
    }
  }
  @media (max-width: 600px) {
    .header {
      padding: 25px 15px 0 20px;
      gap: 16px;
      flex-wrap: wrap;
    }
    .title {
      font-size: 1.3rem;
      letter-spacing: 1.2px;
    }
    .members-title {
      font-size: 1.4rem;
      letter-spacing: 1.2px;
      margin-bottom: 15px;
    }
    .members-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      width: 88vw;
    }
    .side-label {
      display: none;
    }
    .footer-line {
      width: 88vw;
    }
    footer {
      font-size: 0.85rem;
      bottom: 6px;
    }
    .logo-placeholder {
      width: 32px;
      height: 32px;
    }
    .card {
      padding: 16px 0 20px 0;
    }
    .card img {
      width: 120px;
      height: 120px;
    }
    .name {
      font-size: 0.95rem;
    }
    .desc {
      font-size: 0.8rem;
    }
    .college {
      font-size: 0.7rem;
    }
    .back-button-top {
      top: 10px;
      left: 15px;
    }
    .members-section {
      padding: 5px 0 20px 0;
    }
    .modal-content {
      width: 95%;
      max-width: 350px;
    }
    .modal-card {
      padding: 20px;
    }
    .modal-card img {
      width: 180px;
      height: 180px;
    }
    .modal-name {
      font-size: 1.2rem;
    }
    .modal-desc {
      font-size: 0.9rem;
    }
    .modal-college {
      font-size: 0.8rem;
    }
  }