/*
 * OmniSCREEN Website Stylesheet
 *
 * This file contains the primary styling for the OmniSCREEN website. It uses
 * CSS custom properties for colours to make global theme changes easy. The
 * layout is responsive: the navigation collapses into a hamburger menu on
 * smaller screens, tables are horizontally scrollable on mobile, and
 * sections stack vertically.
 */

:root {
  /* Dark radial theme: rich navy tones and bright accents for a cinematic feel */
  --primary-color: #011d3a; /* dark navy for headers and navigation */
  --accent-color: #ff8800; /* vivid orange accent to pop against dark background */
  --background-color: #010910; /* near‑black page background */
  --text-color: #d4ddee; /* light grey body text for readability */
  --light-color: #ffffff; /* white */
  --muted-color: #0a2438; /* dark muted blue for cards */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: var(--light-color);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Brand logo styling: separate colours for 'Omni' and 'SCREEN' */
.logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo-omni {
  color: var(--light-color);
}
.logo-screen {
  color: var(--accent-color);
  margin-left: 2px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--light-color);
  margin: 4px;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 64px;
    right: 0;
    width: 200px;
    padding: 1rem 0;
    border-radius: 0 0 0 8px;
  }
  nav ul li {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  nav ul li:last-child {
    border-bottom: none;
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero banner */
.hero {
  /* Use the dark radial gradient background image to evoke a cinematic atmosphere */
  background: url('../images/backgrounds/dark-radial.jpg') no-repeat center center/cover;
  height: 80vh;
  position: relative;
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: var(--light-color);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #c86200;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.5;
}

/* Feature cards */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  flex: 1 1 250px;
  background: var(--muted-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Table styling */
.table-section {
  width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

table thead {
  background: var(--primary-color);
  color: var(--light-color);
}

table th,
table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

table tbody tr:nth-child(even) {
  background: #022851;
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

input[type='text'],
input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.75rem;
  /* darker input backgrounds and subtle borders for dark theme */
  background: #0f304a;
  border: 1px solid #234467;
  color: var(--text-color);
  border-radius: 4px;
  font-size: 0.9rem;
}

button[type='submit'] {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  background: var(--accent-color);
  color: var(--light-color);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

button[type='submit']:hover {
  background: #c86200;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 2rem 0;
}

footer p {
  margin: 0.5rem 0;
}

/* Material images */
.material-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}

/* Product images */
.product-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}