/* ===== Base & Variables ===== */
:root {
  --primary: #0d7c3d;
  --primary-dark: #095c2d;
  --primary-light: #e8f5e9;
  --primary-lighter: #f1f8e9;
  --accent: #2e7d32;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-gray: #f5f7f6;
  --border: #e0e0e0;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Top Bar ===== */
.topbar {
  background: linear-gradient(135deg, #0a4d2e 0%, #0d7c3d 50%, #1b8a4a 100%);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 88px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.topbar-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-title {
  display: flex;
  flex-direction: column;
}

.topbar-org {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.topbar-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.topbar-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.topbar-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.95;
}

.topbar-contact-item i {
  width: 18px;
  text-align: center;
  font-size: 11px;
  opacity: 0.6;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
}

.nav {
  display: flex;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.nav-link {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a4d2e 0%, #0d7c3d 30%, #1b8a4a 60%, #2e7d32 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 150px 0 40px;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  opacity: 0.85;
  margin-bottom: 22px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: white;
  color: var(--primary);
  border-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  transform: translateY(-2px);
}

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

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(13,124,61,0.3);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== About ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.about-text h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.about-list li {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  font-size: 15px;
  color: var(--text-light);
  transition: var(--transition);
}

.about-list li:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.about-list li .list-icon {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Members ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.member-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), #1b8a4a);
  z-index: 0;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(13,124,61,0.15);
}

.member-photo-wrap {
  position: relative;
  z-index: 1;
  padding: 24px 24px 0;
}

.member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-gray);
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

.member-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8e6c9, #e8f5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
  opacity: 0.5;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.member-info {
  padding: 18px 20px 24px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.member-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  margin-bottom: 12px;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

.member-position {
  font-size: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #2e7d32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  min-height: 36px;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  max-width: 200px;
}

/* ===== Activities ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  counter-reset: activity;
}

.activity-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  counter-increment: activity;
  position: relative;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), #1b8a4a);
  opacity: 0;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 35px rgba(13,124,61,0.12);
}

.activity-card:hover::before {
  opacity: 1;
}

.activity-icon {
  width: 80px;
  min-height: 100%;
  background: linear-gradient(135deg, var(--primary-light), #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.activity-card:hover .activity-icon {
  background: linear-gradient(135deg, var(--primary), #1b8a4a);
  color: white;
}

.activity-body {
  padding: 24px;
  flex: 1;
}

.activity-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.activity-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.news-image-wrap {
  position: relative;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--bg-gray);
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-image-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #c8e6c9, #e8f5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
  opacity: 0.3;
}

.news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.news-body {
  padding: 22px 24px 24px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.news-card:hover .news-read-more {
  gap: 10px;
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(13,124,61,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 16px;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: white;
  line-height: 1.2;
}

.footer-logo-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-links h4,
.footer-contact-info h4 {
  font-size: 16px;
  color: white;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact-info p {
  font-size: 14px;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
}

.footer-contact-info p i {
  width: 20px;
  color: var(--primary);
  margin-right: 8px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(13,124,61,0.3);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: #eee;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.modal-body h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-body .modal-date {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.modal-body .modal-content {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  white-space: pre-line;
}

/* ===== Animations ===== */

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00c851, #0d7c3d, #00c851);
  background-size: 200% auto;
  animation: progressShimmer 2s linear infinite;
  z-index: 99999;
  box-shadow: 0 0 8px rgba(0, 200, 81, 0.7);
  transition: width 0.1s linear;
}

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

/* Hero entrance animations */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero-title    { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-subtitle { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.6s both; }
.hero-actions  { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.8s both; }
.hero-stats    { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 1.0s both; }

/* Floating hero shapes */
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  animation: floatUp linear infinite;
}

/* Stat icon pulse */
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  50%       { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.stat-icon { animation: iconGlow 2.5s ease-in-out infinite; }

/* Section line grow */
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 50px; opacity: 1; }
}
.section-line { animation: lineGrow 0.8s ease 0.3s both; }

/* Fade in base */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.25s; }
.fade-in:nth-child(4) { transition-delay: 0.35s; }
.fade-in:nth-child(5) { transition-delay: 0.45s; }
.fade-in:nth-child(6) { transition-delay: 0.55s; }

/* Member card 3D tilt */
.member-card {
  will-change: transform;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}
.member-card:not(:hover) {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s ease;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-contacts {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 110px;
  }

  .container {
    padding: 0 16px;
  }

  /* Top bar mobile */
  .topbar {
    height: 64px;
  }

  .topbar-logo {
    width: 42px;
    height: 42px;
  }

  .topbar-brand {
    gap: 10px;
  }

  .topbar-name {
    font-size: 15px;
  }

  .topbar-org {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  /* Nav mobile */
  .header {
    top: 64px;
  }

  .header-inner {
    height: 42px;
  }

  .nav {
    position: fixed;
    top: 106px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 8px 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    text-transform: none;
    border-bottom: none;
    border-radius: 8px;
  }

  .nav-link.active {
    background: var(--primary-light);
    border-bottom-color: transparent;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 120px 0 36px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .hero-actions {
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    padding: 9px 18px;
    font-size: 13px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .stat-number {
    font-size: 18px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Sections mobile */
  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-tag {
    font-size: 12px;
  }

  /* About mobile */
  .about-text h3 {
    font-size: 18px;
  }

  .about-list li {
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
  }

  /* Members mobile */
  .members-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .member-card::before {
    height: 70px;
  }

  .member-photo,
  .member-photo-placeholder {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }

  .member-photo-wrap {
    padding: 16px 16px 0;
  }

  .member-info {
    padding: 12px 10px 18px;
  }

  .member-name {
    font-size: 13px;
    height: 44px;
  }

  .member-position {
    font-size: 11px;
    padding: 5px 10px;
    min-height: 32px;
    max-width: 180px;
  }

  /* Activities mobile */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .activity-icon {
    width: 60px;
    font-size: 22px;
  }

  .activity-body {
    padding: 18px;
  }

  .activity-title {
    font-size: 15px;
  }

  .activity-desc {
    font-size: 13px;
  }

  /* News mobile */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-image,
  .news-image-placeholder {
    height: 180px;
  }

  .news-body {
    padding: 16px 18px 18px;
  }

  .news-title {
    font-size: 16px;
  }

  /* Contact mobile */
  .contact-card {
    padding: 20px;
  }

  .contact-item {
    padding: 12px 0;
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .contact-form h3 {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer {
    padding-top: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Modal mobile */
  .modal {
    padding: 20px;
    margin: 10px;
  }

  .modal-body h2 {
    font-size: 20px;
  }

  /* Scroll top mobile */
  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 16px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .topbar-name {
    font-size: 13px;
  }

  .topbar-logo {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-content {
    padding: 110px 0 30px;
  }

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

  .member-photo,
  .member-photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}
