/* ===================================
   Global Styles & Reset
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #424658;
  color: #E0CDB2;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #E0CDB2;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
  background-color: #363947;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.nav-menu li a {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.4rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #E0CDB2;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Main Content
   =================================== */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.main-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.main-title a {
  margin-left: 0.3rem;
  font-family: sans-serif;
  font-size: 0.5em;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.main-title a:hover {
  color: rgb(64, 167, 246);
}

.main-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.main-description a {
  margin-left: 0.3rem;
  font-family: sans-serif;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.main-description a:hover {
  color: rgb(64, 167, 246);
}

/* Page Title */
.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Category Sections */
.category-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.category-description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #363947;
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-card:hover {
  background-color: #363947;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.app-icon {
  width: 170px;
  height: 170px;
  fill: #E0CDB2;
}

.app-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #E0CDB2;
}

/* ===================================
   About Page
   =================================== */
.about-section {
  margin-bottom: 4rem;
}

.about-image {
  text-align: center;
  margin-bottom: 1rem;
}

.about-image img {
  width: 120px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background-color: rgba(54, 57, 71, 0.5);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder svg {
  width: 100%;
  height: 100%;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.about-text a {
  margin-left: 0.3rem;
  font-family: sans-serif;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.about-text a:hover {
  color: rgb(64, 167, 246);
}

.contact-section {
  margin-top: 3rem;
  text-align: center;
}

.contact-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-content a {
  margin-left: 0.5rem;
  font-family: sans-serif;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-content a:hover {
  color: rgb(64, 167, 246);
}

/* ===================================
   FAQs Page
   =================================== */
.faqs-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: rgba(54, 57, 71, 0.5);
  border-radius: 12px;
}

.faq-item a {
  margin-left: 0.3rem;
  font-family: sans-serif;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-item a:hover {
  color: rgb(64, 167, 246);
}

.faq-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-answer {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background-color: #363947;
  padding: 2rem;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.site-footer > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 150px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 500;
}

.footer-copyright a {
  font-size: 0.95rem;
}

/* ===================================
   Mobile Responsive Styles
   =================================== */

/* Tablet and below */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.2rem;
  }

  .main-description {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.7rem;
  }

  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    margin: 0 auto;
  }

  .site-footer > div {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: -2rem;
    right: -2rem;
    background-color: #363947;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    max-height: 300px;
    padding: 1rem 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(224, 205, 178, 0.1);
  }

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

  .nav-menu li a {
    padding: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .main-description {
    font-size: 1rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .category-description {
    font-size: 1rem;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .app-card {
    padding: 1rem;
  }

  .app-icon {
    width: 50px;
    height: 50px;
  }

  .app-name {
    font-size: 0.9rem;
  }

  .hero {
    margin-bottom: 2.5rem;
  }

  .category-section {
    margin-bottom: 2.5rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-copyright a {
    font-size: 0.85rem;
  }
}
