/* ========== GENERAL RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #2d3748;
  min-height: 100vh;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: white;
  padding: 2rem 0 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.society-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.society-tagline {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}

.society-address {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.location-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== NAVIGATION ========== */
.nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s ease;
}

.nav a:hover::before {
  left: 0;
}

.nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav a.active {
  background-color: white;
  color: #0f766e;
  border-color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon {
  width: 18px;
  height: 18px;
}

/* ========== MAIN SECTIONS ========== */
main {
  padding-bottom: 3rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== WELCOME SECTION ========== */
.welcome-section {
  margin-bottom: 2.5rem;
}

.welcome-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.welcome-card h2 {
  color: #0f766e;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.about-content {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content > p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.registration-info {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #f7fafc 100%);
  border-radius: 12px;
  border-left: 4px solid #0f766e;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.info-icon {
  width: 24px;
  height: 24px;
  color: #0f766e;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item > div {
  flex: 1;
}

.info-item strong {
  display: block;
  color: #1a202c;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.info-item span {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
  margin-top: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  border-radius: 2px;
}

.image-grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.4), rgba(20, 184, 166, 0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* ========== DOCUMENTS PAGE ========== */
.documents {
  margin-top: 1rem;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.folder-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.folder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.folder-card:hover::before {
  transform: scaleY(1);
}

.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.folder-icon {
  width: 24px;
  height: 24px;
  color: #0f766e;
  flex-shrink: 0;
}

.folder-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.folder-card p {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.doc-links {
  margin: 1rem 0;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.doc-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4);
}

.link-icon {
  width: 16px;
  height: 16px;
}

.doc-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.doc-image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f7fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.doc-image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #0f766e;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #f7fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-column:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.footer-column h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #14b8a6;
}

.footer-column p {
  font-size: 1.05rem;
  color: #f7fafc;
  font-weight: 500;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  margin: 2rem 0 1.5rem;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.025em;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .society-name {
    font-size: 1.5rem;
  }

  .society-tagline {
    font-size: 0.9rem;
  }

  .nav {
    flex-direction: column;
  }

  .nav a {
    justify-content: center;
  }

  .welcome-card {
    padding: 1.5rem;
  }

  .welcome-card h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .image-grid-gallery {
    grid-template-columns: 1fr;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .society-name {
    font-size: 1.25rem;
  }

  .society-address {
    font-size: 0.85rem;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .doc-image-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== IMAGE MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  max-width: 90%;
}

@media (max-width: 768px) {
  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 40px;
    width: 45px;
    height: 45px;
  }

  .modal-content {
    max-width: 98%;
    max-height: 85vh;
  }

  .modal-caption {
    font-size: 0.9rem;
    bottom: 20px;
    padding: 0.5rem 1rem;
  }
}
