@import url("https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap");

:root {
  --color-primary: rgb(0, 0, 103);
  --color-accent: #ffd700;
  --color-bg: #f6f6f6;
  --color-text: var(--color-primary);
  --color-shadow: rgba(0, 0, 103, 0.5);
  --color-shadow-hover: rgba(0, 0, 103, 0.3);
}

* {
  box-sizing: border-box;
  font-family: "Goldman", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  width: 100%;
  background-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 103, 0.1);
  animation: fadeIn 0.8s ease-out both;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 1.2em 0;
  gap: 0.5em;
}

nav li {
  margin: 0;
}

nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0px;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

nav a.active {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

#member {
  width: 100%;
  text-align: center;
  padding: 2.5em 1.5em;
  background: var(--color-accent);
  color: var(--color-primary);
  margin-top: 0;
  animation: fadeIn 0.8s ease-out both;
}

#member h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--color-primary);
}

#member p {
  max-width: 1000px;
  margin: 0 auto 1.2em auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

#member .button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0.8em 1.6em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: background-color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
}

#member .button:hover {
  background: var(--color-text);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow-hover);
}

header {
  text-align: center;
  margin-top: 2em;
}

#logo {
  background: url(../img/logo/cfc.png) no-repeat center / contain;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out both;
}

#text {
  font-size: 4em;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0.5em;
  animation: fadeIn 0.8s ease-out both;
  animation-delay: 0.2s;
}

#subtext {
  font-size: 2em;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0.5em;
  animation: fadeIn 0.8s ease-out both;
  animation-delay: 0.2s;
}

#main {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  animation: fadeIn 0.8s ease-out both;
  animation-delay: 0.4s;
  padding: 1em;
}

#main h2 {
  font-size: 2rem;
  font-weight: 700;
  padding-top: 1em;
  padding-bottom: 1em;
}

#main p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

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

#main a:hover {
  color: var(--color-accent);
}

#main ul {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1em;
  padding-left: 2em;
}

#main .person {
  width: 200px;
  margin: 1.5em auto;
  text-align: center;
  margin-top: 4em;
}

#main .person img {
  width: 200px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 103, 0.1);
  display: block;
  margin: 0 auto;
}

#main .person figcaption {
  margin-top: 0.5em;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}

footer {
  text-align: center;
  animation: fadeIn 0.8s ease-out both;
  animation-delay: 0.6s;
  margin: 2em;
}

footer div {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 1em;
}

footer a {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  box-shadow: inset 0 0 1px var(--color-shadow);
  transition: box-shadow 0.2s ease;
}

footer a:hover {
  box-shadow: 0 0 7px var(--color-shadow-hover);
}

/* Social Icons */
#facebook {
  background-image: url(../img/social/facebook.svg);
}

#instagram {
  background-image: url(../img/social/instagram.svg);
}

#email {
  background-image: url(../img/social/email.svg);
}

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

@media (max-width: 768px) {
  nav ul {
    padding: 0.8em 0;
    gap: 0.3em;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.3em 0.5em;
  }

  #logo {
    width: 200px;
    height: 200px;
  }

  #text {
    font-size: 2.1em;
  }

  #subtext {
    font-size: 1.2em;
  }

  #main h2 {
    font-size: 1.6rem;
  }

  #main p {
    font-size: 1.1rem;
  }

  #main ul {
    font-size: 1.1rem;
  }

  footer div {
    flex-wrap: wrap;
    gap: 10px;
  }

  footer a {
    width: 32px;
    height: 32px;
    background-size: 16px;
  }

  #member {
    padding: 1.5em 1em;
  }

  #member h2 {
    font-size: 1.6rem;
  }

  #member p {
    font-size: 1.05rem;
  }

  #member .button {
    font-size: 0.95rem;
    padding: 0.6em 1.2em;
  }
}
