/*
 * Stylesheet for the RFM Studios website
 *
 * The design draws inspiration from the Yash Raj Films web site by
 * employing a dark, cinematic colour palette with a rich red accent.  The
 * layout is mobile‑first and fully responsive, with a sticky navigation bar,
 * smooth scrolling and subtle hover animations.  Card components and
 * sections are built using CSS Grid and Flexbox for clean alignment.  All
 * colours are defined as CSS custom properties near the top of the file
 * making it simple to adjust the palette if desired.
 */

/* Colour palette */
:root {
  --primary-color: #e50914; /* vivid red accent similar to YRF branding */
  --secondary-color: #111111; /* deep black for panels */
  --background-color: #0d0d0d; /* nearly black page background */
  --text-color: #f5f5f5; /* off‑white for high contrast on dark backgrounds */
  --muted-text: #bbbbbb; /* muted grey for secondary copy */
  --card-background: #1a1a1a; /* slightly lighter dark for cards */
  --border-color: rgba(229, 9, 20, 0.6); /* semi‑transparent red for borders */
}

/*
 * Custom font integration
 * The site uses the "Mouldy Cheese" typeface provided by the user.  We define
 * a @font-face rule to load the TTF from the fonts directory and fall back
 * gracefully to Montserrat and system fonts when unavailable.  To change
 * fonts across the entire site, adjust the body font-family below.
 */
@font-face {
  font-family: 'Mouldy Cheese';
  src: url('../fonts/Mouldy Cheese.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Mouldy Cheese', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navigation bar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--primary-color);
}

.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  padding: 0.5rem 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-item > a:hover,
.menu-item > a:focus {
  color: var(--primary-color);
}

/* Dropdown menu styling */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary-color);
  padding: 0.5rem 0;
  min-width: 200px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--muted-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
  background-color: var(--card-background);
  color: var(--primary-color);
}

/* Show dropdown on hover for desktop */
.menu-item:hover > .dropdown {
  display: block;
}

/* Hamburger / mobile navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu ul {
  list-style: none;
  padding: 0.5rem 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-text);
  border-bottom: 1px solid var(--card-background);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--primary-color);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted-text);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

/* Services grid */
.services {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-background);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--card-background);
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

/* Artist showcase */
.artists {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.artists h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.artist-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--card-background);
  border: 1px solid var(--card-background);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.artist-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.artist-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Make artist photos round and centered on the Artists Portfolio page */
.artists .artist-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid var(--primary-color);
}

/* Round avatar styling for team members on the About page */
.our-team .artist-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid var(--primary-color);
}

.artist-card .artist-info {
  padding: 1rem;
}

.artist-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.artist-card span {
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--card-background);
  transition: border-color 0.3s ease;
}

.testimonial:hover {
  border-color: var(--primary-color);
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.testimonial .client {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.client span {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Call to action section */
.cta {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--secondary-color);
}

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

.cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--muted-text);
}

/* Footer */
footer {
  background-color: var(--background-color);
  padding: 2rem 0;
  color: var(--muted-text);
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer .social-links {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

footer .social-links a {
  color: var(--muted-text);
  transition: color 0.3s ease;
}

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

footer small {
  text-align: center;
  display: block;
  margin-top: 1rem;
}

/* Fade‑in animation used for page load transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Video grid styles for embedded videos in New Releases section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

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

/* Individual video card styling */
.video-card {
  background-color: var(--card-background);
  border: 1px solid var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.video-card .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-card .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Media queries */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}