/*
Theme Name: Lincoln Portfolio
Theme URI: https://bennetandbernard.com
Author: Lincoln Bennet Rodrigues
Author URI: https://bennetandbernard.com
Description: Custom portfolio theme for Lincoln Bennet Rodrigues
Version: 1.0.0
*/



/* Rest of your existing CSS... */ 
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

/* Base Styles */
:root {
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --text-base: 1.1rem;
  --text-lg: 1.25rem;
  --text-xl: 2rem;
  --text-2xl: 3rem;
}

html {
  scroll-behavior: smooth;
  background: #000;
  font-size: 16px; /* Base font size */
}

  body {
    background: #000;
  color: #fffbe6;
  font-family: 'Inter', 'Avenir', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
  color: #fffbe6;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
}

h1 {
  font-size: var(--text-2xl);
  margin-bottom: 0.5em;
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.5em;
  margin-top: 1.5em;
}

p, a, li, em {
  font-family: 'Inter', 'Avenir', sans-serif;
  color: #fffbe6;
  font-size: var(--text-base);
  max-width: 100%;
}

/* Base section styles */
section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;  /* Remove bottom margin */
  padding: 3rem 1.5rem;  /* Reduced padding */
    text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Only hero section should be full height */
.fullscreen.hero {
  min-height: 100vh;
  justify-content: center;
}



/* Content sections should be more compact */
section:not(.hero) {
  min-height: auto;  /* Remove forced full height */
  padding: 4rem 1.5rem;  /* Consistent padding */
}

@media (min-width: 1025px) {
  section:not(.hero) {
    padding: 2.5rem 1.5rem; /* Reduced padding for larger screens */
  }
  .fullscreen.hero h1{
  margin-top: -30px;
}
.fullscreen.hero h2{
  margin-top: -30px;
}
.fullscreen.hero p{
  margin-top: -30px;
}
}

/* Specific sections that need more space */
#score, #scene {
  padding: 3rem 1.5rem;
}

/* Section Styling with Visual Distinction */
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

/* Section-specific styling */
#ground {
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

#habitat {
  background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
}

#harvest {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.95));
}

#current {
  background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

#hearth {
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
}

#causework {
  background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.8));
}

/* Hero Section */
.fullscreen.hero {
  width: 100%;
  max-width: none;
  min-height: 100vh; /* Fallback for desktop */
  min-height: calc(var(--vh, 1vh) * 100); /* Dynamic height for mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 6rem 1rem; /* Add padding to prevent content overlap */
  margin: 0;
  overflow: hidden;
  gap: 1rem;
  box-sizing: border-box;
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Hero content styles */
.hero h1 {
  margin: 1rem 0 0.5rem 0;
  position: relative;
  padding-left: 40px; /* Space for vertical line */
}

.hero h2 {
  margin: 0.5rem 0;
}

.hero p {
  margin: 0.5rem 0;
  max-width: 800px;
}

/* Vertical line for desktop and tablet */
@media screen and (min-width: 768px) {
  .hero h1 {
    position: relative;
    padding-left: 60px;
    display: inline-block;
  }

  .hero h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 120px;
    background-color: #fffbe6;
  }

  .portrait {
    width: auto;
    height: 70vh;
    max-height: 800px;
    object-fit: contain;
  }

  /* Ensure content fits in viewport */
  .fullscreen.hero {
    padding: 2rem 0;
    gap: 1.5rem;
  }
  /* .fullscreen.hero h1{
  margin-top: -10px;
}
.fullscreen.hero h2{
  margin-top: -10px;
}
.fullscreen.hero p{
  margin-top: -10px;
} */
}

/* Keep mobile styles intact */
@media screen and (max-width: 767px) {
  .portrait {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .fullscreen.hero {
    padding: var(--spacing-md) 0 0 0;
    width: 100%;
    overflow: hidden;
  }

  .hero h1 {
    padding-left: 0; /* Remove line padding on mobile */
    width: 100%;
    text-align: center;
  }

  /* Tighter spacing on mobile */
  .hero h1, .hero h2, .hero p {
    margin: 0.5rem 0;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* Improved Dot Navigation */
/* Dot Navigation with Tooltips */
  .dot-nav {
    position: fixed;
    top: 50%;
    right: 1.5rem; /* Use rem for responsive spacing */
    transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center; /* Center dots horizontally */
  justify-content: center; /* Center dots vertically */
  gap: 0.8rem;
    z-index: 1000;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dot-nav a {
  width: 8px;
  height: 8px;
  background: rgba(255, 251, 230, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

/* Tooltip styling */
.dot-nav a::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  background: rgba(0, 0, 0, 0.8);
  color: #fffbe6;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

/* Show tooltip on hover */
.dot-nav a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.dot-nav a:hover,
.dot-nav a:focus,
.dot-nav a.active {
  background: #fffbe6;
  transform: scale(1.2);
}

/* Highlight active dot (optional, needs JS for dynamic) */
.dot-nav a.active {
  opacity: 1;
  box-shadow: 0 0 0 2px #fffbe6;
}

/* Content Elements */
iframe {
  width: 100%;
  max-width: 700px;
  margin: var(--spacing-md) auto 0;
  border: none;
  display: block;
}

.film-placeholder {
  color: #fffbe6;
  background: #181818;
  border: 1px dashed #fffbe6;
  padding: var(--spacing-md);
  border-radius: 12px;
  margin-top: var(--spacing-md);
  font-style: italic;
}

/* Contact Links */
a[href^="mailto:"] {
  color: #fffbe6;
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.2s;
  word-break: break-word;
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus {
  color: #fff;
}

/* Blog Section */
#blog {
  opacity: 0.7;
  font-style: italic;
}

/* Blog Section Styles */
#blog {
  padding: var(--spacing-lg) var(--spacing-md);
}

/* Custom Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 251, 230, 0.2) transparent;
}

/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 251, 230, 0.2);
  border-radius: 4px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 251, 230, 0.3);
}

/* Blog Section Refinements */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem auto;
  padding: 0 2rem;
  max-width: 1400px;
}

.blog-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 251, 230, 0.02);
  border: 1px solid rgba(255, 251, 230, 0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 251, 230, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-image img,
.blog-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-card:hover .blog-image::after {
  opacity: 1;
}


.blog-content {
  padding: 1.8rem;
}

.blog-content h3 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #fffbe6;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: rgba(255, 251, 230, 0.8);
  line-height: 1.6;
}

/* Modal Refinements */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem;
}

.blog-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  background: #000;
  border-radius: 20px;
  position: relative;
  transform: translateY(-30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 251, 230, 0.1);
  padding: 3rem;
}

.blog-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 251, 230, 0.1);
  border: 1px solid rgba(255, 251, 230, 0.1);
  color: #fffbe6;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 251, 230, 0.15);
  border-color: rgba(255, 251, 230, 0.2);
  transform: rotate(90deg);
}

.modal-inner {
  color: #fffbe6;
}

.modal-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.modal-inner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

.modal-inner p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 251, 230, 0.9);
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: rgba(255, 251, 230, 0.7);
  font-size: 1.2rem;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  margin-left: 12px;
  border: 2px solid rgba(255, 251, 230, 0.2);
  border-top-color: rgba(255, 251, 230, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Blog Grid */
@media screen and (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }
}

@media screen and (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  
  .blog-modal {
    padding: 2rem;
  }
  
  .modal-content {
    padding: 2rem;
  }
  
  .modal-inner h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  
  .blog-modal {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
  
  .modal-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .modal-inner h2 {
    font-size: 1.8rem;
  }
  
  .modal-inner p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
  }
}

/* Fix scrollbar jump */
html.modal-open {
  overflow: hidden;
}

/* Post Content Styling */
.post-content {
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

.post-content ul, 
.post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Spacing Utilities */
section:not(:first-of-type) {
  margin-top: var(--spacing-md);
}

/* Contact Form Styling - Subtle & Minimal */
#write {
  padding: var(--spacing-lg) var(--spacing-md);
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2.5rem 2rem;
    background: transparent;
    border-top: 1px solid rgba(255, 251, 230, 0.1);
    border-bottom: 1px solid rgba(255, 251, 230, 0.1);
}

.wpcf7-form p {
    margin: 0;
    width: 100%;
    text-align: left;
}

.wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 251, 230, 0.2);
    border-radius: 0;
    color: #fffbe6;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: rgba(255, 251, 230, 0.4);
    background: rgba(255, 251, 230, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 251, 230, 0.1);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 251, 230, 0.7);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    margin-top: 1rem;
}

.wpcf7-submit {
    padding: 0.8rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 251, 230, 0.3);
    color: #fffbe6;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 1rem;
    text-transform: uppercase;
}

.wpcf7-submit:hover {
    background: rgba(255, 251, 230, 0.15);
    border-color: rgba(255, 251, 230, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 251, 230, 0.1);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

/* Hide default paragraph tags from CF7 */
.wpcf7-form p {
    margin: 0;
    width: 100%;
}

/* Response messages styling */
.wpcf7-response-output {
    margin: 1rem 0 0 0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: rgba(34, 197, 94, 0.9);
}

.wpcf7-validation-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.9);
}

/* Responsive form adjustments */
@media screen and (max-width: 768px) {
  .wpcf7-form {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .wpcf7-form input,
  .wpcf7-form textarea {
    padding: 1rem 0.8rem;
  }
  
  .wpcf7-submit {
    padding: 0.9rem 2rem;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .wpcf7-form {
    padding: 1rem;
    margin: 0;
  }
  
  .wpcf7-form input,
  .wpcf7-form textarea {
    font-size: 0.95rem;
  }
}

/* Placeholder text color */
.wpcf7-form ::-webkit-input-placeholder { /* Chrome, Opera, Safari */
  color: rgba(255, 251, 230, 0.4);
}
.wpcf7-form ::-moz-placeholder { /* Firefox 19+ */
  color: rgba(255, 251, 230, 0.4);
}
.wpcf7-form :-ms-input-placeholder { /* IE 10+ */
  color: rgba(255, 251, 230, 0.4);
}
.wpcf7-form :-moz-placeholder { /* Firefox 18- */
  color: rgba(255, 251, 230, 0.4);
}


/* Footer Styling */
footer {
  padding: var(--spacing-lg) var(--spacing-md);
  background: #000;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  max-height: 50px;
  opacity: 0.8;
  /* Ensure the main logo is ordered correctly on all screen sizes */
  order: 2;
}

.company-logos {
  display: flex;
  flex-direction: column; /* Stack logos on mobile by default */
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Spacing for mobile */
  order: 1; /* Company logos appear first */
}

.company-logo {
  max-height: 50px; /* Mobile size */
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.company-logo:hover {
  opacity: 1;
}

.footer-text {
    order: 3; /* Copyright text appears last */
}

@media (min-width: 769px) {
  .company-logos {
    flex-direction: row; /* Side-by-side on laptops */
    gap: 2.5rem;
  }

  .company-logo {
    max-height: 100px; /* Laptop size */
  }
}

/* Media Queries */

/* Large Desktops (1440px and up) */
@media screen and (min-width: 1440px) {
  :root {
    --text-2xl: 4rem;
    --text-xl: 2.5rem;
    --text-lg: 1.5rem;
    --text-base: 1.2rem;
  }

  section {
    padding: var(--spacing-lg);
  }

  .portrait {
    width: 100%;
    max-width: none;
  }
}

/* Regular Desktops (1024px to 1439px) */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --text-2xl: 3.5rem;
    --text-xl: 2.25rem;
  }

  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .portrait {
    width: 100%;
    max-width: none;
  }
  
  .fullscreen.hero {
    padding: 0;
  }
  
}

/* Tablets (768px to 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-2xl: 3rem;
    --text-xl: 2rem;
    --text-base: 1.1rem;
  }

  section {
    width: 95%;
    padding: var(--spacing-md);
  }

  .portrait {
    width: 100%;
    max-width: none;
  }

  .fullscreen.hero {
    padding: 0;
  }

  .dot-nav {
    right: 1.5vw;
  }

  .dot-nav a {
    width: 10px;
    height: 10px;
  }
  
}

/* Large Phones (480px to 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  :root {
    --text-2xl: 2.5rem;
    --text-xl: 1.75rem;
    --text-base: 1rem;
  }

  section {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .portrait {
    width: 140px;
    height: 140px;
  }

  .dot-nav {
    right: 1vw;
  }

  h1 {
    padding: 0 var(--spacing-sm);
  }
}

/* Small Phones */
@media screen and (max-width: 479px) {
  :root {
    --text-2xl: 2rem;
    --text-xl: 1.5rem;
    --text-base: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
  }

  section {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  .portrait {
    width: 120px;
    height: 120px;
  }

  .dot-nav {
    right: 15px;
    padding: 6px 5px;
    gap: 1rem;
    width: 18px;
  }

  .dot-nav a {
    width: 6px;
    height: 6px;
  }

  h1 {
    padding: 0 var(--spacing-sm);
  }

  p br {
    display: none; /* Remove line breaks on mobile for better text flow */
  }
}

/* Handle very small heights */
@media screen and (max-height: 600px) {
  .fullscreen.hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .portrait {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-sm);
  }
}

/* Print styles */
@media print {
  .dot-nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
    margin-bottom: 2cm;
  }
}

/* Desktop and Tablet Styles */
@media screen and (min-width: 768px) {
  .fullscreen.hero {
    padding: var(--spacing-lg) 0;
    justify-content: center;
  }

  .portrait {
    width: auto;
    height: 70vh; /* Limit height to 70% of viewport height */
    max-height: 800px; /* Maximum height limit */
    object-fit: contain;
  }

  /* .hero h1 {
    margin-top: var(--spacing-md);
  } */
   .hero h1{
    margin-top:-10px;
   }
   .hero h2{
    margin-top:-10px;
   }
   .hero p{
    margin-top:-15px;
   }
}

/* Mobile Styles - Keeping the previous working version but adding top padding */
@media screen and (max-width: 767px) {
  .portrait {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .fullscreen.hero {
    padding: var(--spacing-md) 0 0 0; /* Add top padding on mobile */
    width: 100%;
    overflow: hidden;
  }

  section {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  h1, h2, p {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* Small Phones */
@media screen and (max-width: 479px) {
  .fullscreen.hero {
    padding: var(--spacing-md) 0 0 0; /* Consistent top padding for smaller phones */
  }

  .portrait {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }
}

/* Ensure content after image is properly spaced */
/* .fullscreen.hero h1 {
  margin-top: var(--spacing-md);
} */

/* Remove any potential max-width constraints from parent elements */
section.fullscreen.hero {
  max-width: none;
  width: 100%;
}

/* Ensure image container spans full width */
.fullscreen.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
  section {
    width: 100%;
    padding: 2rem 1rem;
  }
  
  .fullscreen.hero {
    padding-top: var(--spacing-md);
  }
}

/* Hero Section for larger screens */
@media screen and (min-width: 768px) {
  .fullscreen.hero {
    padding: 2rem 0;
    gap: 1rem;
  }

  .portrait {
    width: auto;
    height: 50vh; /* Reduced from 70vh to ensure content fits */
    max-height: 600px; /* Reduced max height */
    object-fit: contain;
  }

  .hero h1 {
    margin-top: 1rem;
    position: relative;
    padding-left: 60px;
    display: inline-block;
  }

  .hero h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 120px;
    background-color: #fffbe6;
  }

  .hero h2, .hero p {
    margin: 0.5rem 0;
  }
}

.play-word-btn {
  background: rgba(255, 251, 230, 0.1);
  border: 1px solid rgba(255, 251, 230, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.play-word-btn:hover {
  background: rgba(255, 251, 230, 0.2);
  border-color: rgba(255, 251, 230, 0.4);
  transform: scale(1.1);
}

.play-icon {
  width: 20px;
  height: 20px;
  color: #fffbe6;
  transition: transform 0.3s ease;
}

.play-word-btn:hover .play-icon {
  transform: scale(1.1);
}

/* Unified Word of the Month styles for all devices */
.word-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.4s ease-in-out;
    text-align: left;
    border-top: 1px solid transparent; /* Prevents jumping on transition */
}

/* Click/Tap expansion for all devices */
.word-container.expanded .word-details {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    padding: 1.5rem;
    margin-top: 1rem;
    border-top-color: rgba(255, 251, 230, 0.1);
}

/* Mobile-specific adjustments (if any are needed in the future) */
@media (max-width: 768px) {
  .word-container {
    padding: 1.5rem;
  }

  .word-display {
    font-size: 2rem;
  }

  .word-display::after {
    content: 'Tap to learn more';
    display: block;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 251, 230, 0.6);
    margin-top: 0.5rem;
  }
}

/* Content styling */
.word-details h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fffbe6;
}

.word-details p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.word-type {
  font-style: normal;
  color: rgba(255, 251, 230, 0.7);
  margin-bottom: 1rem;
}

/* Small phones */
@media (max-width: 480px) {
  .word-container {
    padding: 1rem;
  }

  .word-display {
    font-size: 1.8rem;
    gap: 0.5rem;
  }

  .play-word-btn {
    width: 40px;
    height: 40px;
  }

  .play-icon {
    width: 16px;
    height: 16px;
  }

  .word-details h3 {
    font-size: 1.1rem;
  }

  .word-details p {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-arrow {
    height: 25px;
  }

  .scroll-text {
    font-size: 0.7rem;
  }
}

/* Navigation dot auto-hide */
.dot-nav {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dot-nav.inactive {
  opacity: 0;
  transform: translateY(-50%) translateX(50px);
  pointer-events: none;
}

.dot-nav:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
  
/* Scene One Film Clapper styling */
#scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.film-placeholder {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.clapper-board {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  perspective: 1000px; /* Add perspective for 3D effect */
}

.clapper-top {
  background: #2a2a2a;
  padding: 15px;
  margin: -20px -20px 20px -20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #333;
  transform-origin: left;
  animation: none !important;
  transform: none !important;
  position: relative;
  z-index: 2;
}

/* Updated animation for left-side pivot */
@keyframes clapperOpen {
  0%, 45%, 100% {
    transform: rotate(0deg);
  }
  50%, 95% {
    transform: rotate(-30deg); /* Changed from rotateX to rotate for side pivot */
  }
}

/* Add shadow effect for the clapper top */
.clapper-top::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Adjust sticks container for better alignment */
.clapper-stick {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  width: 100%; /* Ensure full width */
}

.stick {
  width: 30px;
  height: 100%;
  background: #fffbe6;
  transform: skew(-20deg);
}

.clapper-content {
  padding: 20px 0;
}

.clapper-info {
  border-bottom: 1px solid rgba(255, 251, 230, 0.1);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
}

.clapper-label {
  color: rgba(255, 251, 230, 0.6);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.clapper-value {
  color: #fffbe6;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

/* Clapper animations */
@keyframes grainAnimation {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 1px); }
  100% { transform: translate(-1px, -1px); }
}

/* Film grain effect */
.film-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANxM8mAAAACHRSTlMzMzMzMzMzM85JBgUAAAA1SURBVDjLY2AYBaNg4IDgBAYGRkYGBjYGBgYBJINQJgMDAwMjAwMbAwODACOSgQgugNGjYDgDALvqCgK9kM5kAAAAAElFTkSuQmCC');
  animation: grainAnimation 0.5s steps(4) infinite;
  pointer-events: none;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clapper-board {
    padding: 15px;
  }

  .clapper-top {
    padding: 10px;
    margin: -15px -15px 15px -15px;
  }

  .stick {
    width: 20px;
  }

  .clapper-info {
    padding: 8px 0;
  }

  .clapper-label {
    font-size: 0.8rem;
  }
  }
  

/* Dot Navigation Mobile Enhancement */
@media (max-width: 767px) {
  .dot-nav {
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px; /* Maintain rounded shape */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .dot-nav a,
  .dot-nav a.active {
    width: 12px; /* Ensure consistent width */
    height: 12px; /* Ensure consistent height */
    min-width: 12px;
    min-height: 12px;
    border-radius: 50% !important; /* Force perfect circles */
    transition: all 0.3s ease;
  }

  .dot-nav.expanded {
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 30px; /* Keep it rounded when expanded */
  }

  .dot-nav.expanded a {
    transform: scale(1.5);
    margin-bottom: 1.2rem; /* Add vertical space BETWEEN dots */
  }

  .dot-nav.expanded a:last-child {
    margin-bottom: 0; /* Remove margin from the last dot */
  }

  .dot-nav.expanded a::after {
    /* Show tooltips on mobile when expanded */
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    right: calc(100% + 25px); /* More space for tooltips */
  }
}

/* Film Clapper Styles */
@keyframes rotateUp {
  0% {
    transform: rotate(0deg);
  }
  96% {
    transform: rotate(-35deg);
  }
  100% {
  }
}

.outercontainer {
  width: 100%;
  height: 100vh;
  padding-top: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clappercontainer {
  width: 500px;
  height: 100%;
}

.hinge {
  clip-path: polygon(0% 0%, 47% 0%, 100% 100%, 0% 100%);
  height: 100px;
  width: 100px;
  border: 0.1rem solid grey;
  z-index: 2;
  position: relative;
  background-color: #010101;
  left: 0;
  top: 100px;
  border-radius: 10px;
}

.hinge__rivet {
  display: block;
  font-size: 0.6rem;
  margin: 0;
}

.hinge__rivet--top {
  position: relative;
  left: 10px;
  top: 10px;
}

.hinge__rivet--bottomleft {
  position: relative;
  left: 10px;
  top: 50px;
}

.hinge__rivet--bottomright {
  position: relative;
  left: 60px;
  top: 33px;
}

.container {
  width: 500px;
  height: 500px;
  background-color: #000000;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 0 0 10px 10px;
}

.clapper__top {
  width: 100%;
  height: 50px;
  background-color: #151515;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #000;
  overflow: hidden;
  border-radius: 10px 0 0 0;
  transform-origin: left center;
  animation: none !important;
}

.clapper__top--white {
  width: 15%;
  height: 100%;
  background-color: #f1f1f1;
  transform: skew(20deg);
}

.clapper__top--white:first-child {
  visibility: hidden;
}

.clapper__bottom {
  width: 100%;
  height: 50px;
  background-color: #151515;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.clapper__bottom--white {
  width: 15%;
  height: 100%;
  background-color: #f1f1f1;
  transform: skew(-20deg);
}

.info-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scene-take-roll {
  width: 95%;
  height: 25%;
  display: flex;
  justify-content: space-around;
  border-top: 4px solid #f1f1f1;
  border-bottom: 4px solid #f1f1f1;
}

.scene,
.take,
.roll {
  width: 33%;
  height: 100%;
  background: #151515;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  padding: 0;
}

.scene__text,
.take__text,
.roll__text {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.5rem;
}

.scene {
  border-right: 4px solid #f1f1f1;
}

.take {
  border-right: 4px solid #f1f1f1;
}

.date-prod-sound {
  width: 95%;
  height: 25%;
  display: flex;
  justify-content: space-around;
  border-bottom: 4px solid #f1f1f1;
}

.date-prod {
  width: 60%;
  height: 100%;
}

.date {
  border-bottom: 4px solid #f1f1f1;
  display: flex;
  align-items: center;
}

.date__text {
  color: #f1f1f1;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-left: 8px;
}

.date, .prod {
  background: #151515;
  width: 100%;
  height: 50%;
  display: flex;
  border-right: 4px solid #f1f1f1;
  align-items: center;
}

.text--padded {
  padding-left: 8px;
  padding-top: 0;
  display: flex;
  align-items: center;
}

.sound {
  background: #151515;
  width: 40%;
}

.director {
  width: 95%;
  height: 15%;
  border-bottom: 4px solid #f1f1f1;
  background: #151515;
}

.cinematographer {
  width: 95%;
  height: 15%;
  border-bottom: 4px solid #f1f1f1;
  background: #151515;
}

.text {
  color: #f1f1f1;
  text-transform: uppercase;
  font-style: normal;
  display: inline;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.text--padded {
  padding-left: 4px;
  padding-top: 2px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .clappercontainer {
    width: 90%;
    max-width: 500px;
  }

  .container {
    width: 100%;
    height: auto;
    min-height: 400px;
  }

  .text {
    font-size: 0.9rem;
  }

  .scene__text,
  .take__text,
  .roll__text {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .clappercontainer {
    width: 95%;
  }

  .text {
    font-size: 0.8rem;
  }

  .scene__text,
  .take__text,
  .roll__text {
    font-size: 1rem;
  }
}

.blog-title {
   font-style: normal !important; 
   font-family: 'Playfair Display', serif;
   color: #fffbe6;
   font-weight: 700;
   letter-spacing: 0.02em;
   max-width: 100%;
}
#blog{
  h3{
    font-style: normal !important; 
    font-family: 'Playfair Display', serif;
    color: #fffbe6;
    font-weight: 600;
    
  }
}

/* Live Announcement Section */
#live-announcement {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.75));
  text-align: center;
}

#live-announcement h2 {
  margin-bottom: 1.5rem;
}

.film-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 3rem;
  line-height: 1.8;
  color: rgba(255, 251, 230, 0.9);
}

#countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timer-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  min-width: 100px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-box span {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  display: block;
}

.timer-box p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  color: rgba(255, 251, 230, 0.7);
  white-space: nowrap; 
}

.video-placeholder {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.video-placeholder p {
  color: rgba(255, 251, 230, 0.5);
}

.live-now {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fffbe6;
}

@media (max-width: 768px) {
  #countdown-timer {
    gap: 1rem;
  }
  .timer-box {
    padding: 1rem;
    min-width: 80px;
  }
  .timer-box span {
    font-size: 2rem;
  }
}

/* Scroll Down Indicator - Chevron */
.scroll-down-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  cursor: pointer;
  animation: bounce 2.5s infinite;
  bottom: 10px;
}

.scroll-down-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 251, 230, 0.8);
  border-bottom: 2px solid rgba(255, 251, 230, 0.8);
  border-bottom-right-radius: 3px; /* Rounded corner */
  transform: translate(-50%, -75%) rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}
/* Scroll Down Indicator - Chevron Mobile */
@media (max-width: 768px) {
  .scroll-down-indicator {
    bottom: -9px;
  }
}

@media (max-width: 480px) {
  #countdown-timer {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .timer-box {
    padding: 0.6rem;
    min-width: 86px;
    flex-basis: 86px;
  }
  .timer-box span {
    font-size: 1.4rem;
  }
  .timer-box p {
    font-size: 0.6rem;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
  }
}



/* Footer Styles */
footer {
  background: #080808;
  padding: 2.5rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 251, 230, 0.1);
  margin-top: 4rem; /* Add space above the footer */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  max-height: 50px;
  opacity: 0.8;
  /* Ensure the main logo is ordered correctly on all screen sizes */
  order: 2;
}

.company-logos {
  display: flex;
  flex-direction: column; /* Stack logos on mobile by default */
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Spacing for mobile */
  order: 1; /* Company logos appear first */
}

.company-logo {
  max-height: 90px; /* Mobile size */
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.company-logo:hover {
  opacity: 1;
}

.footer-text {
    order: 3; /* Copyright text appears last */
}

@media (min-width: 769px) {
  .company-logos {
    flex-direction: row; /* Side-by-side on laptops */
    gap: 2.5rem;
  }

  .company-logo {
    max-height: 100px; /* Laptop size */
  }
}

/* Hidden trigger for blog section nav dot */
#blog-trigger {
  height: 1px;
  visibility: hidden;
}