/*
 * Good Looks Media Group Website Styles
 *
 * This stylesheet defines the look and feel of the Good Looks Media Group
 * website. A dark theme is used throughout, accented with bold red tones
 * inspired by modern cinematography. The layout is responsive and
 * designed to work well on both desktop and mobile devices.
 */

:root {
  /* Primary branding colours */
  --primary-color: #000000;      /* deep black for backgrounds */
  --secondary-color: #ffffff;    /* white for text */
  --accent-color: #e50914;       /* vivid red for highlights */
  --background-color: #111111;   /* slightly off‑black for content backgrounds */
}

/* Global resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--background-color);
  color: var(--secondary-color);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Header and navigation bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

header img.logo {
  height: 50px;
  width: auto;
}

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

nav li {
  margin: 0;
}

nav a {
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

/* Underline on hover for navigation items */
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section with autoplaying reel */
.hero {
  position: relative;
  /*
   * Make the hero section fill the entire viewport so that the video can
   * act as a full‑page background. Subtract the fixed header height
   * (70px) using calc() so content below the header is visible and the
   * video occupies the full screen.
   */
  height: calc(100vh - 70px);
  width: 100%;
  overflow: hidden;
  margin-top: 70px; /* space for fixed header */
}

.hero iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: brightness(0.6);
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero .overlay h1 {
  font-size: 3em;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero .overlay p {
  font-size: 1.2em;
  max-width: 700px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Generic section styling */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.4em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-align: center;
}

.section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.service-card p {
  color: var(--secondary-color);
  font-size: 0.95em;
}

/* Portfolio section styling */
.portfolio-section iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  margin: 0 auto;
  display: block;
}

/* Video grid on portfolio page */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Each video item maintains a 16:9 aspect ratio */
.video-item {
  position: relative;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* Contact form styling */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 10px;
  border: 1px solid #333333;
  border-radius: 4px;
  background-color: #1f1f1f;
  color: var(--secondary-color);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-form button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #b2070a;
}

/* Footer styling */
.footer {
  background-color: var(--primary-color);
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.footer p {
  margin: 10px 0;
  color: var(--secondary-color);
  font-size: 0.9em;
}

.footer .social {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer .social a {
  color: var(--secondary-color);
  font-size: 1.4em;
  transition: color 0.3s;
}

.footer .social a:hover {
  color: var(--accent-color);
}

/* Responsive design adjustments */
@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }
  nav ul {
    gap: 20px;
  }
  .hero .overlay h1 {
    font-size: 2.2em;
  }
  .hero .overlay p {
    font-size: 1em;
  }
  .section {
    padding: 60px 20px;
  }
}