/* ============================================
   OWOC — Our World, Our Concern
   AI Bias & Ethics Campaign Website
   Color Palette:
     Navy:  #0F172A
     Blue:  #7DD3FC
     Peach: #FDBA74
     Pink:  #F88FAC
     White: #F8FAFC
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(125, 211, 252, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(253, 186, 116, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(248, 143, 172, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.5px at center, rgba(125, 211, 252, 0.15) 0%, transparent 100%);
  background-size: 48px 48px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-logo-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 40px rgba(253, 186, 116, 0.25);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slogan {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.slogan-byte {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #FDBA74;
}

.slogan-against {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #7DD3FC;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  animation: scrollArrow 2s ease-in-out infinite;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-menu-btn:hover {
  transform: scale(1.05);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.nav-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-dropdown.open {
  max-height: 300px;
  padding: 0 24px 16px;
}

.nav-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link:hover {
  color: #ffffff;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7DD3FC;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-bottom: 48px;
}

.highlight-peach {
  color: #e8963a;
}

.highlight-blue {
  color: #38a3d4;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  background: #ffffff;
}

.about-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.about-intro {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

.about-intro strong {
  color: #0F172A;
  font-weight: 600;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.visual-card {
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.visual-icon {
  margin-bottom: 16px;
}

.visual-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.visual-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-blue {
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #0c4a6e;
}

.card-blue h3 { color: #0c4a6e; }
.card-blue p { color: #1e6a94; }

.card-peach {
  background: rgba(253, 186, 116, 0.15);
  border: 1px solid rgba(253, 186, 116, 0.3);
  color: #7c3a0a;
}

.card-peach h3 { color: #7c3a0a; }
.card-peach p { color: #a0551a; }

.card-navy {
  background: #0F172A;
  border: 1px solid #1e293b;
  color: #7DD3FC;
}

.card-navy h3 { color: #ffffff; }
.card-navy p { color: rgba(255, 255, 255, 0.6); }

/* ---------- MISSION SECTION ---------- */
.mission-section {
  background: #f8fafc;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mission-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}

.mission-card:nth-child(1) { border-top-color: #7DD3FC; }
.mission-card:nth-child(2) { border-top-color: #FDBA74; }
.mission-card:nth-child(3) { border-top-color: #F88FAC; }
.mission-card:nth-child(4) { border-top-color: #0F172A; }

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.mission-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1;
}

.mission-card:nth-child(1) .mission-number { color: #7DD3FC; }
.mission-card:nth-child(2) .mission-number { color: #FDBA74; }
.mission-card:nth-child(3) .mission-number { color: #F88FAC; }
.mission-card:nth-child(4) .mission-number { color: #0F172A; }

.mission-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 10px;
}

.mission-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---------- BLOG SECTION ---------- */
.blog-section {
  background: #f8fafc;
}

.blog-section .section-title {
  text-align: center;
}

.blog-section .section-label {
  text-align: center;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.blog-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  border-left: 3px solid #7DD3FC;
}

.blog-card:nth-child(2) { border-left-color: #FDBA74; }
.blog-card:nth-child(3) { border-left-color: #F88FAC; }
.blog-card:nth-child(4) { border-left-color: #0F172A; }

.blog-card:not(.expanded):hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.blog-section .blog-card.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1001;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  transition: none;
  animation: expandCard 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-inner {
  padding: 32px;
}

.blog-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(125, 211, 252, 0.12);
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-more:hover {
  gap: 10px;
  color: #0F172A;
}

.blog-expanded {
  display: none;
}

.blog-card.expanded .blog-card-inner {
  display: none;
}

.blog-card.expanded .blog-expanded {
  display: block;
}

.blog-full-content {
  padding: 40px;
}

.blog-full-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 24px;
  line-height: 1.3;
}

.blog-full-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0F172A;
  margin: 28px 0 12px;
}

.blog-full-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-full-content strong {
  color: #0F172A;
}

.blog-full-content ul {
  margin: 12px 0 20px 20px;
  color: #475569;
  font-size: 0.93rem;
}

.blog-full-content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-close {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 10px 24px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-close:hover {
  background: #e2e8f0;
  color: #0F172A;
}

.blog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0F172A;
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-campaign {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.social-link:hover {
  color: #ffffff;
  background: rgba(125, 211, 252, 0.15);
  transform: translateY(-2px);
}

.footer-handle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7DD3FC;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- ANIMATIONS ---------- */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollArrow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes expandCard {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Scroll-triggered animations */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

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

.anim-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .about-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .blog-grid {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-logo-wrapper {
    width: 140px;
    height: 140px;
  }

  .blog-card.expanded {
    width: 95%;
    max-height: 90vh;
  }

  .blog-full-content {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .mission-card {
    padding: 28px;
  }

  .blog-card-inner {
    padding: 24px;
  }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(125, 211, 252, 0.25);
  color: #0F172A;
}

/* ---------- FOCUS STYLES ---------- */
:focus-visible {
  outline: 2px solid #7DD3FC;
  outline-offset: 2px;
  border-radius: 4px;
}
