/*
    _  __    _    __     __
   | |/ /   / \   \ \   / /
   | ' /   / _ \   \ \ / / 
   | . \  / ___ \   \ V /  
   |_|\_\/_/   \_\   \_/   
   
   A KEMI ADETIBA VISUALS WEBSITE
   ==============================

   King of Boys - Main Stylesheet
   
   Dark theme with signature red accents (#d1222b).
   Mobile-first responsive design using modern CSS features
   including custom properties, clamp(), and flexbox.
   
   Key Features:
   - Consistent spacing system via CSS variables
   - Smooth animations and transitions
   - High contrast accessibility
   - Progressive image loading effects
   
   Breakpoint: 768px 📱
*/

:root {
  --main-bg-color: #111111;
  --main-red: #d1222b;
  --text-color: #ffffff;
  --text-color-muted: rgba(255, 255, 255, 0.8);
  --text-color-light: rgba(255, 255, 255, 0.6);
  --mobile-breakpoint: 768px;
  --section-spacing: 4rem;
  --content-spacing: 1.3rem;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

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

/* ========================================
   TYPOGRAPHY HIERARCHY
   ======================================== */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 500;
}

/* ========================================
   IMAGE LOADING ANIMATIONS
   ======================================== */
.image-loading {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-loaded {
  opacity: 1;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
.navbar {
  background-color: #000000;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: #000000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 50px;
  width: auto;
  border-radius: 2px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  color: #ffffff;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 4px;
  display: block;
  border: 2px solid transparent;
}

/* Navigation Link States */
.nav-links a.active {
  color: var(--main-red);
  border-color: var(--main-red);
}

.nav-links a:hover:not(.active) {
  color: var(--main-red);
  background-color: rgba(209, 34, 43, 0.1);
}

.nav-links a:focus {
  outline: none;
  border-color: var(--main-red);
  color: var(--main-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:focus {
  outline: 2px solid var(--main-red);
  outline-offset: 2px;
}

/* ========================================
   MOVIE SECTIONS LAYOUT
   ======================================== */
.movie-section {
  padding: var(--section-spacing) 0;
  border-bottom: 1px solid rgba(209, 34, 43, 0.3);
}

.movie-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Movie Poster Styles */
.movie-poster {
  width: 30%;
  margin-top: 48px;
  margin-bottom: 24px;
}

.movie-poster img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.movie-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   SECTION TITLES & HEADINGS
   ======================================== */
.section-title {
  color: var(--main-red);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.movie-year {
  font-size: medium;
  color: var(--text-color-muted);
  text-align: center;
  font-weight: 300;
  margin-bottom: var(--content-spacing);
}

.movie-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.movie-synopsis,
.movie-details,
.watch-section {
  margin-bottom: var(--content-spacing);
  padding: 1.5rem 0;
}

.movie-synopsis {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Movie Descriptions */
.movie-description {
  margin-bottom: 1.5rem;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color-muted);
}

.movie-description:last-child {
  margin-bottom: 0;
}

/* ========================================
   CAST LIST STYLING
   ======================================== */
.cast-list {
  text-align: center;
}

.cast-item {
  display: inline-block;
  margin: 0 10px 8px 10px;
  font-size: 14px;
  color: var(--main-red);
  font-weight: 500;
}

/* ========================================
   WATCH BUTTONS & LINKS
   ======================================== */
.watch-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.watch-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  border: 2px solid var(--main-red);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.watch-btn:focus {
  outline: 2px solid var(--main-red);
  outline-offset: 2px;
}

.netflix-btn {
  background-color: var(--main-red);
  color: var(--text-color);
}

.netflix-btn:hover,
.netflix-btn:focus {
  background-color: #b81d25;
}

.imdb-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.imdb-btn:hover,
.imdb-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.footer {
  padding: 40px;
  text-align: center;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 2px;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
    --content-spacing: 1.5rem;
  }

  /* Mobile Navigation */
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-btn {
    display: block;
    order: 3;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
      transform 0.3s ease-out;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 20px 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    color: #ffffff;
    padding: 10px 20px;
    display: block;
    border-radius: 4px;
    margin: 0 20px;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: #d1222b;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .nav-links a.active {
    color: var(--main-red);
    border-color: var(--main-red);
  }

  /* Mobile Typography */
  .section-title {
    font-size: 28px;
  }

  /* Mobile Buttons */
  .watch-buttons {
    flex-direction: column;
  }

  /* Mobile Content Spacing */
  .movie-synopsis,
  .movie-details,
  .watch-section {
    padding: 1rem 0;
  }

  /* Mobile Cast List */
  .cast-item {
    display: block;
    margin: 0 0 8px 0;
    text-align: center;
  }

  /* Mobile Movie Poster */
  .movie-poster {
    width: 100%;
  }
}
