/* Font imports */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap");

/*
  Stylesheet for AMRvisuals portfolio website inspired by Livit Films.
  The design adopts a cinematic dark aesthetic with golden accents and
  clean typography. It is shared across all pages (home, services,
  portfolio, about, contact, campaigns).
*/

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

:root {
  --header-height: 70px; /* adjust if you want it taller/shorter */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f5f5;
  background-color: #0c0c0c;
  line-height: 1.6;

  /* GLOBAL FIX: keep all page content from sitting under fixed header */
  padding-top: var(--header-height);
}

/* Container utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: #000; /* solid */
}

/* Header layout: logo left, nav centered, contact right */
.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.logo,
.logo:hover,
.logo:visited,
.logo:active {
  display: flex;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  align-items: center;
  gap: 0.6rem;
  color: #f5f5f5;
  justify-self: start;

  font-family: "Prompt", sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 4rem; /* spacing between menu items */
  list-style: none;
}

.nav-links li a {
  font-family: "Inter", sans-serif;
  color: #f5f5f5;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #e4d354;
}

.contact-link {
  color: #e4d354;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  border-color: #e4d354;
}

.header-cta {
  justify-self: end;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: #e4d354;
  text-decoration: none;
}

.header-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #f5f5f5;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background-color: #f5f5f5;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle .burger::before {
  transform: translateY(-7px);
}

.nav-toggle .burger::after {
  transform: translateY(5px);
}

/* Hero (landing page) */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* Pull hero up so it can be true full-screen despite body padding-top */
  margin-top: calc(-1 * var(--header-height));
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

/* Make landing page title match logo styling */
.hero-title {
  font-family: "Prompt", sans-serif;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;

  /* 16:9 cover math (like object-fit: cover, but for iframes) */
  width: 100vw;
  height: 56.25vw; /* 9/16 of viewport width */

  min-width: 177.78vh; /* 16/9 of viewport height */
  min-height: 100vh;

  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* make sure hero text sits above overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-style: italic;
  color: #e4d354;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-fill {
  background-color: #e4d354;
  color: #0c0c0c;
  border: 2px solid #e4d354;
}

.btn-fill:hover {
  background-color: transparent;
  color: #e4d354;
}

.btn-outline {
  background-color: transparent;
  color: #e4d354;
  border: 2px solid #e4d354;
}

.btn-outline:hover {
  background-color: #e4d354;
  color: #0c0c0c;
}

.btn.small {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

/* Sections */
.dark-section {
  background-color: #0c0c0c;
  color: #f5f5f5;

  /* FIX: space for header + breathing room on inner pages */
  padding: calc(var(--header-height) + 0rem) 0 4rem;
}

.light-section {
  background-color: #f5f5f5;
  color: #1a1a1a;

  /* FIX: space for header + breathing room on inner pages */
  padding: calc(var(--header-height) + 0rem) 0 4rem;
}

.dark-section h1,
.light-section h1 {
  margin-top: 0;
}


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

.service-item {
  background-color: #141414;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
  text-transform: uppercase;
}

.service-item p {
  color: #ccc;
  font-size: 0.9rem;
}

.service-icon svg {
  color: #e4d354;
  margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img,
.portfolio-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure embedded videos display with a minimum height to avoid collapse in flex/grid layout */
.portfolio-item iframe {
  min-height: 200px;
}

.portfolio-item.large {
  grid-column: span 2;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #e4d354;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* About */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.about-text {
  flex: 1 1 400px;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #ccc;
}

.about-image {
  flex: 1 1 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Contact */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1 1 250px;
  font-size: 0.95rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-info a {
  color: inherit;
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: #fff;
  color: #1a1a1a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e4d354;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #222;
}

/* Social icons */
.social .icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
  color: #e4d354;
  transition: color 0.3s ease;
}

.social .icon:last-child {
  margin-right: 0;
}

.social .icon:hover {
  color: #c0ad3e;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    width: 200px;
    padding: 1rem 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: right;
    padding-right: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item.large {
    grid-column: span 1;
  }

  .about-container {
    flex-direction: column;
  }
}

/* FORCE: remove any underline/line under the AMRVISUALS logo */
header .logo,
header .logo:hover,
header .logo:visited,
header .logo:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

header .logo::after,
header .logo::before {
  content: none !important;
}

.about-media {
  max-width: 400px;     /* your chosen size */
  aspect-ratio: 4 / 5; /* controls visible crop window */
  overflow: hidden;    /* hides cropped areas */
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* enables cropping */
  object-position: center 50%; /* center crop */
  display: block;
}





