@import url(/resources/css/variable.css);
@import url(/resources/css/common.css);
@import url(/resources/css/font.css);

:root {
  --primary: #2ec4b6;
  --dark: #2f3c7e;
  --light: #f5f7fa;
  --text: #333;
  --gray: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--light);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
}

.logo-section {
  width: 100px;
  height: 60px;
}

.logo-section img {
  height: 100%;
  width: 100%;
}

header {
  background: #29a196;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  font-size: 1.25rem;
}

main {
  flex: 1;
  padding-top: 80px;
}

.section {
  padding: 80px 20px 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero .btn {
  margin-top: 24px;
}

.hero .btn:hover {
  background: #e0f7f4;
  color: var(--primary);
}

.btn {
  background: #e0f7f4;
  color: #29a196;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary);
  color: var(--light);
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  text-align: center;
}

#aboutus .card-container {
  display: block;
  text-align: center;
}

#aboutus .card {
  padding: 0.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  line-height: 2;
  letter-spacing: 1px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
  text-align: center;
}

#contact {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 75%;
}

.updates {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.updates:hover ul {
  animation-play-state: paused;
}

.updates ul {
  list-style: none;
  text-align: center;
  display: inline-block;
  animation: scroll-left 15s linear infinite;
}

.updates ul li {
  margin-bottom: 12px;
  text-decoration: underline;
  font-weight: bold;
  letter-spacing: 1px;
  /* display: inline; */
  margin-right: 3rem; /* space between texts */
  font-size: 1rem;
}

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.genie-section {
  margin: 40px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.genie-section .open-btn {
  width: 300px;
  height: 300px;
}

.genie-section .open-btn img {
  width: 100%;
  height: 100%;
}

.count {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

#visitor-count {
  font-weight: bold;
}

footer {
  color: var(--light);
  background: rgb(41, 161, 150);
  text-align: center;
  padding: 1.5rem 1.25rem;
  width: 100%;
}

.footer-header {
  margin-bottom: 0.25rem;
}

.footer-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.mail-contact {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.mail-contact a {
  color: var(--light);
  font-size: 1.125rem;
  transition: transform 0.2s, color 0.2s;
  text-decoration: none;
}

.mail-contact a span {
  font-family: "Segoe UI", sans-serif;
  margin-left: 0.25rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.social-icons a {
  color: var(--light);
  font-size: 1.5rem;
  transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.open-btn {
  cursor: pointer;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

.close-btn {
  margin: 20px auto;
  padding: 12px 32px;
  cursor: pointer;
  font-size: 1.5rem;
}


/* Responsive Breakpoints */
@media (max-width: 992px) {
  .mail-contact {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  header {
    font-size: 2rem;
  }

  .main-container .logo-section {
    width: 150px;
    height: 150px;
  }

  main p {
    font-size: 1.5rem;
  }

  .contact {
    font-size: 1.25rem;
  }

  .mail-contact {
    flex-wrap: wrap;
  }

  .mail-contact a {
    font-size: 0.875rem;
  }

  .modal-box {
    max-width: 580px;
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 20px;
  }

  nav {
    display: none;
  }

  input,
  textarea {
    width: 100%;
  }

  .section {
    padding: 40px 20px 0 20px;
  }

  .card {
    font-size: 1.25rem;
  }

  .card-container {
    gap: 1rem;
  }

  #aboutus .card {
    padding: 1.5rem;
    line-height: 1.4;
  }

  .genie-section div {
    width: 200px;
    height: 200px;
  }

  .modal-box {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  header {
    font-size: 1.6rem;
    padding: 1.5rem 1rem;
  }

  main p {
    font-size: 1.25rem;
  }

  .social-icons a {
    font-size: 1.3rem;
  }

  .mail-contact {
    gap: 0.5rem;
  }

  .modal-box {
    max-width: 380px;
  }
}