/*
 * Global stylesheet for the Moha Globally website.
 *
 * This file defines a dark, modern theme with a bright blue accent
 * colour. It includes responsive styles for the hero section,
 * navigation bar, cards, articles and footer. All pages in the
 * project link to this stylesheet to keep the look and feel
 * consistent across the site.
 */

/* Reset some default browser styles and improve rendering */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #f8fafc;

  background: 
    linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.95)),
    url('hero-bg.png') no-repeat center center;

  background-size: cover;
  background-attachment: fixed;
}

a {
  color: #3b82f6;            /* Accent colour for links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Sticky header with a blurred backdrop */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}

nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #f8fafc;
}

nav a:hover {
  color: #93c5fd;
}

/* Hero section with a background image and gradient overlay */
.hero {
  padding: 5.5rem 2rem 2.5rem;
  text-align: center;
  color: #f8fafc;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #3b82f6;
  color: #f8fafc;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: #2563eb;
}

/* Generic section styling for interior blocks */
.section {
  padding: 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  color: #94a3b8;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.section p + p {
  margin-top: 0.5rem;
}

/* Card grid for listing apps on the home page */
.app-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.app-card {
  background: #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  flex: 1 1 280px;
  max-width: 320px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.app-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #f8fafc;
}

.app-card p {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.app-card .btn {
  margin-top: 1rem;
}

/* Footer styling */
footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  background-color: #0f172a;
}

/* Article styling for privacy policy pages */
.article {
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.article h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

.article h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

.article p,
.article li {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.article ul {
  margin-left: 1.5rem;
  list-style: disc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 0.5rem;
  }
  .app-cards {
    flex-direction: column;
    align-items: center;
  }
}

.app-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.app-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}