/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --blue-dark: #0b1f33;
  --blue: #1f6fe5;
  --blue-soft: #e7f1ff;
  --blue-soft-2: #f4f8ff;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --bg: #ffffff;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-mark {
  background: linear-gradient(135deg, #1f6fe5, #38bdf8);
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .logo-text {
    font-size: 0.75rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: white;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.4);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at right, #3172db 0, #ffffff 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0.7rem 0;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-weight: 500;
  font-size: 0.8rem;
}

/* Hero card */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-card-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.hero-main-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.15;
  }
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-card-header h2 {
  margin: 0;
  font-size: 1rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  font-size: 0.75rem;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.metric-value.success {
  color: #16a34a;
}

.load-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.load-item {
  display: grid;
  grid-template-columns: 0.7fr 2fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.load-label {
  color: var(--text-muted);
}

.load-bar {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  height: 0.45rem;
  background: var(--blue-soft-2);
}

.load-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.load-low { width: 45%; background: rgba(34, 197, 94, 0.9); }
.load-medium { width: 70%; background: rgba(37, 99, 235, 0.9); }
.load-high { width: 90%; background: rgba(239, 68, 68, 0.9); }

.load-value {
  font-variant-numeric: tabular-nums;
}

.hero-card-footer {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.bg-light {
  background: var(--blue-soft-2);
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 30rem;
  margin: 0 auto 2rem;
}

/* Cards, lists, grids */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
}

.card.soft {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.list {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  color: var(--text-main);
}

.list li {
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-soft);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-heading {
  margin-top: 1.2rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: radial-gradient(circle at top, #1f6fe5 0, #0b1f33 55%, #020617 100%);
  color: #e5e7eb;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: center;
}

.cta-text h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.7rem;
  color: #f9fafb;
}

.cta-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.cta-form {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.cta-form input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.cta-form input::placeholder {
  color: #9ca3af;
}

/* Footer */
.footer {
  background: #020617;
  color: #9ca3af;
  padding: 2.2rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-text {
  margin-top: 0.4rem;
  max-width: 18rem;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.footer-col p {
  margin: 0.15rem 0;
}

.footer-link {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(75, 85, 99, 0.7);
  text-align: center;
}

/* Survey Results Section */
.survey-toggle {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.survey-container {
  margin-top: 2rem;
  animation: slideDown 0.3s ease-out;
}

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

.survey-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.diagram-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.diagram-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.diagram-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
}

.survey-content iframe {
  border-radius: var(--radius-md);
  display: block;
}

.survey-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .diagram-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .diagram-item {
    padding: 0.75rem;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 0.5rem;
  }

  .two-column,
  .feature-grid,
  .stat-grid,
  .cta-card,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .cta-card {
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, #e0f2ff 0%, #f4f8ff 35%, #ffffff 100%);
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-note {
    font-size: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1rem;
    width: 100%;
    margin-left: 0;
  }

  .hero-card-wrapper {
    flex-direction: column;
  }

  .hero-card-wrapper img {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .card {
    padding: 1.2rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-card h3 {
    font-size: 0.95rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-text h2 {
    font-size: 1.4rem;
  }

  .cta-text p {
    font-size: 0.85rem;
  }

  .cta-form {
    padding: 1rem;
  }

  .nav {
    display: none;
  }

  .topbar-inner .btn-outline {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .load-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .load-bar {
    order: 2;
  }

  .load-value {
    order: 3;
    font-size: 0.75rem;
  }
}
/* TEAM GALLERY SECTION */
#gallery {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

#gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(31, 111, 229, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-wrapper {
  position: relative;
  margin-top: 2rem;
  z-index: 1;
}

.gallery-scroller {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  justify-content: center;
}

.gallery-scroller::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroller::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
  border-radius: 999px;
}

.gallery-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #2563eb, #1e40af);
}

/* TEAM CARDS */
.team-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* TEAM IMAGE SECTION */
.team-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--blue-soft-2);
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
}

.team-card:hover .team-image-wrapper img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #ffffff;
  color: var(--blue);
  transform: translateY(-2px);
}

/* TEAM CONTENT */
.team-content {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.team-role {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-description {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* PLACEHOLDER CARD FOR RECRUITMENT */
.team-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.team-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.placeholder-icon {
  font-size: 3rem;
  font-weight: 300;
  color: var(--blue);
  z-index: 1;
  position: relative;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .team-card {
    min-width: 280px;
    max-width: 90%;
  }
  
  .gallery-scroller {
    gap: 1rem;
    padding: 0.5rem 0.5rem 1rem;
    justify-content: flex-start;
  }
  
  .team-image-wrapper {
    height: 220px;
  }
  
  .team-content {
    padding: 1.25rem;
  }
  
  .team-name {
    font-size: 1.1rem;
  }
  
  .team-role {
    font-size: 0.85rem;
  }
  
  .team-description {
    font-size: 0.8rem;
  }
}

