/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #e6f2ff 0%, #c8e6f5 100%);
  min-height: 100vh;
}

header {
  padding: 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 2rem !important;
  font-weight: bold !important;
  background: linear-gradient(
    135deg,
    #1e4a7a 0%,
    #2b7a9e 50%,
    #7cb342 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}

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

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2b7a9e, #7cb342);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover {
  background: rgba(43, 122, 158, 0.1);
  color: #2b7a9e;
}

nav a:hover::after {
  width: 80%;
}

.officers-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.officers-container h1 {
  text-align: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d7fa5 50%, #7cb342 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -1px;
  animation: fadeInDown 1s ease;
}

.officers-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 4rem;
  animation: fadeIn 1s ease 0.3s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Committee Section Styles */
.committee-section {
  margin-bottom: 5rem;
}

.committee-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #2b7a9e;
  position: relative;
  animation: fadeIn 0.8s ease;
}

.committee-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #7cb342, transparent);
  animation: slideIn 0.8s ease;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100px;
  }
}

/* Officers Grid Layout */
.officers-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.polaroid-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.polaroid-container:nth-child(1) {
  animation-delay: 0.1s;
}
.polaroid-container:nth-child(2) {
  animation-delay: 0.2s;
}
.polaroid-container:nth-child(3) {
  animation-delay: 0.3s;
}
.polaroid-container:nth-child(4) {
  animation-delay: 0.4s;
}
.polaroid-container:nth-child(5) {
  animation-delay: 0.5s;
}
.polaroid-container:nth-child(6) {
  animation-delay: 0.6s;
}
.polaroid-container:nth-child(7) {
  animation-delay: 0.7s;
}
.polaroid-container:nth-child(8) {
  animation-delay: 0.8s;
}
.polaroid-container:nth-child(9) {
  animation-delay: 0.9s;
}
.polaroid-container:nth-child(10) {
  animation-delay: 1s;
}
.polaroid-container:nth-child(11) {
  animation-delay: 1.1s;
}

.polaroid-container.show {
  opacity: 1;
  transform: translateY(0);
}

/* POLAROID CARD STYLES */
.polaroid {
  width: 100%;
  height: 420px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(230, 242, 255, 0.95)
  );
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(45, 127, 165, 0.2);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
}

.polaroid:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(43, 122, 158, 0.5);
}

.polaroid.flipped {
  transform: rotateY(180deg);
}

.polaroid.flipped:hover {
  transform: rotateY(180deg) translateY(-10px);
}

.polaroid-front,
.polaroid-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.polaroid-front {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(230, 242, 255, 0.95)
  );
}

.polaroid-back {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(230, 242, 255, 0.95)
  );
  transform: rotateY(180deg);
}

/* Circular Photo Frame - matching faculty style */
.photo-frame {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #e8e8e8, #f0f0f0);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #999;
  border: 4px solid rgba(45, 127, 165, 0.3);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.polaroid:hover .photo-frame {
  border-color: #2b7a9e;
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(43, 122, 158, 0.3);
}

.polaroid-caption {
  text-align: center;
}

.polaroid-caption h3 {
  font-size: 1.6rem;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.polaroid-caption p {
  font-size: 1.1rem;
  color: #2d7fa5;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Officer Email Link Styling */
.officer-email {
  display: inline-block;
  font-size: 0.9rem;
  color: #7cb342;
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  background: rgba(124, 179, 66, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(124, 179, 66, 0.2);
}

.officer-email:hover {
  background: rgba(124, 179, 66, 0.2);
  color: #6da32e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 179, 66, 0.2);
}

.officer-email.vacant {
  color: #9e9e9e;
  background: rgba(158, 158, 158, 0.1);
  border-color: rgba(158, 158, 158, 0.2);
  cursor: default;
}

.officer-email.vacant:hover {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  transform: none;
  box-shadow: none;
}

.bio {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  padding: 0 1rem;
}

.bio h3 {
  color: #1e3a5f;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.bio p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive design */
@media (max-width: 1024px) {
  .officers-wall {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }

  .committee-section {
    margin-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .officers-container {
    padding: 3rem 1.5rem;
  }

  .officers-container h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .officers-wall {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .polaroid {
    height: 390px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .logo {
    gap: 0.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  .committee-section {
    margin-bottom: 3rem;
  }

  .committee-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 1.5rem;
  }

  .officers-container {
    padding: 2rem 1rem;
  }

  .officers-container h1 {
    font-size: 2rem;
  }

  .polaroid {
    height: 360px;
  }

  .photo-frame {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .polaroid-caption h3 {
    font-size: 1.3rem;
  }

  .polaroid-caption p {
    font-size: 1rem;
  }

  .officer-email {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .committee-section {
    margin-bottom: 2.5rem;
  }

  .committee-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }

  .committee-title::after {
    width: 60px;
  }
}
