:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --text: #0b1f3a;
  --muted: #5d6f89;
  --primary: #0b3d91;
  --primary-dark: #072a5c;
  --accent: #dfeafc;
  --border: #c8d6ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(12, 61, 145, 0.12), transparent 24%),
    radial-gradient(circle at right center, rgba(11, 61, 145, 0.1), transparent 20%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(11, 61, 145, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 145, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 92%);
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 20px 50px rgba(11, 61, 145, 0.16);
  }
  50% {
    box-shadow: 0 24px 58px rgba(11, 61, 145, 0.26);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -24px, 0) scale(1.08);
  }
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a,
.contact-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.contact-links a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}

.hero {
  position: relative;
  padding: 90px 0 60px;
  background: linear-gradient(135deg, #f8fbff 0%, #dfeafc 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
  animation: floatOrb 11s ease-in-out infinite;
}

.orb-one {
  width: 260px;
  height: 260px;
  top: 10%;
  right: 10%;
  background: rgba(11, 61, 145, 0.2);
}

.orb-two {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 4%;
  background: rgba(83, 143, 231, 0.35);
  animation-delay: -2s;
}

.orb-three {
  width: 140px;
  height: 140px;
  top: 18%;
  left: 42%;
  background: rgba(22, 93, 197, 0.24);
  animation-delay: -4s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.76rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.subtitle {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.photo-frame {
  background: linear-gradient(135deg, #0b3d91, #123f92);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 61, 145, 0.16);
  width: min(100%, 360px);
  margin: 0 auto;
  animation: floaty 5.5s ease-in-out infinite, pulseGlow 5.5s ease-in-out infinite;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.hero-card,
.card,
.contact-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 33, 61, 0.08);
  backdrop-filter: blur(8px);
}

.hero-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.alt {
  background: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.card {
  padding: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover,
.contact-box:hover,
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(11, 61, 145, 0.14);
}

.timeline {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-year {
  font-weight: 800;
  color: var(--primary-dark);
}

.cta-section {
  background: linear-gradient(180deg, #e9f0ff, #f8fbff);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.whatsapp-row,
.linkedin-row {
  display: flex;
  align-items: center;
}

.whatsapp-link,
.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  transition: transform 0.25s ease;
}

.whatsapp-link:hover,
.linkedin-link:hover {
  transform: translateY(-2px) scale(1.04);
}

.whatsapp-icon,
.linkedin-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.gallery-hero {
  padding: 72px 0 26px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card,
.admin-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 33, 61, 0.08);
  padding: 18px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.gallery-card h3 {
  margin-top: 14px;
  margin-bottom: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-section {
  padding-top: 50px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.hidden {
  display: none;
}

.message {
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 700;
}

.upload-form {
  display: grid;
}

.admin-gallery-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-row-info {
  display: grid;
  gap: 3px;
}

.site-footer {
  padding: 22px 0 34px;
}

.footer-wrap {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
}

.private-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0.18;
  color: var(--muted);
}

.private-link:hover {
  opacity: 0.5;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .contact-box,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .orb-one,
  .orb-two,
  .orb-three {
    opacity: 0.38;
  }

  .hero-visual {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .photo-frame {
    width: min(100%, 280px);
  }

  .card-grid {
    gap: 16px;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
