/* --- Global Styles --- */
body { 
    background-color: #0f0f0f; 
    color: #ffffff; 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

section {
    scroll-margin-top: 70px; /* Prevents navbar from covering section titles */
}

h2 {
	text-transform: titlecase;
}


:root {
    --accent-color: #D3A035; /* Your custom gold/earth tone */
	--imdb-yellow: #F5DE50; /* Official IMDb Brand Yellow */
	--plyr-color-main: var(--accent-color); /* Sets play button & seek bar to gold */
    --plyr-video-control-color-hover: #ffffff;
    --plyr-video-control-background-hover: var(--accent-color);	
}

/* Global Accent Class */
.accent-color {
    color: var(--accent-color) !important;
}

.copyright {
	font-size: 0.75rem;
	
}

/* --- Navigation --- */
.navbar { 
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid #333; 
}

.nav-link { 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* --- Hero Section --- */
.hero-section { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    /* We use ../ to go UP one folder out of /css/ then into /img/ */
	/*
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../assets/img/hero-bg.jpg') center/cover no-repeat;
				*/
	background: url('../assets/img/hero-bg.jpg') center/cover no-repeat;
}
.hero-title {
    color: #ffffff;
    /* This creates a soft 'halo' of darkness around the letters */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 
                 0 5px 30px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: var(--accent-color); /* Keep your gold accent */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.hero-text-container {
    background: rgba(0, 0, 0, 0.25); /* Very light dark tint */
    backdrop-filter: blur(8px);      /* Blurs the image behind the text */
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Portfolio Sections --- */
.portfolio-section { 
    padding: 80px 0; 
    border-bottom: 1px solid #222; 
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color); /* Uses the variable */
    margin-bottom: 20px;
}

/* --- Filmmaking & Music Cards --- */
.card, .film-card, .playlist-wrapper { 
    background: #111 !important; 
    border: 1px solid #333 !important; 
    color: #fff; 
    transition: transform 0.3s ease, border-color 0.3s ease; 
}

.film-info h3 {
    font-size: 1.1rem; /* Slightly smaller for 3-column layout */
    line-height: 1.2;
}

.btn-outline-accent {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* The indicator in the music player */
.player-accent-border {
    border-left: 4px solid var(--accent-color) !important;
}

/* Optional: Add a subtle glow to the card border when you hover */
.film-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(87, 77, 27, 0.2);
}

/* --- Typography Helpers --- */
.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.tracking-wider {
    letter-spacing: 2px;
}

.media-subtitle-small {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
}

/* --- Music List Hover --- */
.list-group-item {
    transition: all 0.2s ease;
    border-color: rgba(255,255,255,0.1) !important;
}

.list-group-item:hover {
    background-color: rgba(255, 62, 62, 0.05) !important;
}

/* Ensure the meta-grid at the bottom of the film cards stays tidy in 3-column mode */
.media-subtitle-small {
    font-size: 0.55rem !important;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.track-duration {
    font-family: 'Courier New', Courier, monospace; /* Keeps numbers stable */
    margin-left: 20px;
    letter-spacing: 0.5px;
}

/* Make it glow slightly when the track is hovered/active */
.playlist-item:hover .track-duration {
    color: var(--accent-color) !important;
}

/* Acting Gallery Styles */
.acting-poster {
    aspect-ratio: 2 / 3; /* Classic DVD/Poster ratio */
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.acting-card {
    transition: border-color 0.3s ease;
}

.acting-card:hover {
    border-color: var(--accent-color) !important;
}

.acting-card:hover .acting-poster {
    transform: scale(1.05);
}

.acting-card .p-3 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, #111, #000);
}

.acting-card .description {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits description to 3 lines so cards stay uniform */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acting-cover-wrapper {
    overflow: hidden;
    cursor: pointer;
}

/* Hover effect to show there are more photos */
.cover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(87, 77, 27, 0.6); /* Your accent color with transparency */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.acting-cover-wrapper:hover .cover-overlay {
    opacity: 1;
}

/* Customizing the Lightbox theme to match your site */
.goverlay {
    background: rgba(0, 0, 0, 0.95) !important;
}

.dvd-placeholder {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px dashed rgba(87, 77, 27, 0.3); /* Your accent color at low opacity */
    color: var(--accent-color);
    width: 100%;
}

.dvd-placeholder i {
    color: var(--accent-color);
}

/* Ensure cards with placeholders still have the hover effect */
.acting-card:hover .dvd-placeholder {
    border-color: var(--accent-color) !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #151307 100%);
}

/* Overwriting Bootstrap's border-secondary with a cinematic gold tint */
.border-secondary {
    border-color: rgba(87, 77, 27, 0.2) !important;
}

/* Targeting the link and the icon inside it specifically */
.imdb-link, 
.imdb-link i, 
.imdb-link:focus, 
.imdb-link:active {
    color: var(--imdb-yellow) !important;
    text-decoration: none !important;
    border: none !important;      /* Removes any border */
    outline: none !important;     /* Removes the blue/white focus ring */
    box-shadow: none !important;  /* Removes Bootstrap button shadows */
}

.imdb-link {
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.imdb-link:hover {
    color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-3px);
    border: none !important;
    text-decoration: none !important;
}

.photo-filmstrip-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 30px; 
    cursor: grab;
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
}

/* Hide scrollbar for a cleaner look while allowing scrolling */
.photo-filmstrip-container::-webkit-scrollbar {
    height: 4px;
}
.photo-filmstrip-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.photo-filmstrip-inner {
    display: inline-flex;
    gap: 20px;
    padding: 0 10%; 
}



.filmstrip-item {
    /* Changed from 70vh to fixed square size */
    width: 300px; 
    height: 300px;
    flex: 0 0 auto;
}

.filmstrip-img {
    height: 100%;
    width: 100%; /* Changed from auto to 100% to fill the square */
    border-radius: 2px;
    /* object-fit: cover is essential to make it a perfect square without distortion */
    object-fit: cover; 
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filmstrip-item:hover .filmstrip-img {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* Navigation buttons updated to center on the 400px squares */
.filmstrip-nav {
    position: absolute;
    top: 50%; /* Adjusted from 65% to 50% for the smaller height */
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filmstrip-nav:hover {
    background: var(--accent-color);
    color: #000;
}

.filmstrip-nav.left { left: 15px; }
.filmstrip-nav.right { right: 15px; }

@media (max-width: 768px) {
    .photo-filmstrip-inner {
        padding: 0 5%; /* Less padding on mobile for more image real estate */
    }
    .filmstrip-item {
        width: 260px; /* Slightly smaller for mobile to ensure the 'swipe' hint is visible */
        height: 260px;
    }
}

.italicized-description {
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.6;
    /* A very subtle glow to make the text feel high-end */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Standard Text Links (Inside descriptions or general text) */
.italicized-description a,
.portfolio-section a:not(.btn, .glightbox, .imdb-link, .filmstrip-nav) {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Subtle Animated Underline Effect */
.italicized-description a::after,
.portfolio-section a:not(.btn, .glightbox, .imdb-link, .filmstrip-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.italicized-description a:hover,
.portfolio-section a:not(.btn, .glightbox, .imdb-link, .filmstrip-nav):hover {
    color: #ffffff !important;
}

.italicized-description a:hover::after,
.portfolio-section a:not(.btn, .glightbox, .imdb-link, .filmstrip-nav):hover::after {
    width: 100%;
    background-color: #ffffff;
}

/* Optional: If you want links in the description to be white and turn gold on hover */
.text-link-alt {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(87, 77, 27, 0.4);
    transition: all 0.3s ease;
}

.text-link-alt:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}
/* Square Grid Styling */
.square-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .square-thumb {
    transform: scale(1.05);
}

.credit-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--accent-color);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.credit-overlay small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds ... if the credit is too long for the square */
    padding: 0 5px;
}

.gallery-item:hover .credit-overlay {
    opacity: 1;
}

/* Showreel Player Styling */
.showreel-container {
    background: #000;
    max-height: 500px;
    cursor: pointer;
}

.showreel-container img {
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.showreel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
}

.showreel-container:hover img {
    opacity: 0.7;
    transform: scale(1.02);
}

.showreel-container:hover .showreel-overlay i {
    transform: scale(1.1);
    color: #fff;
}

.showreel-overlay i { transition: all 0.3s ease; }

/* Ensure the big center play button matches too */
.plyr--video .plyr__control--overlaid {
    background: rgba(87, 77, 27, 0.8) !important; /* Gold with slight transparency */
}

.plyr--video .plyr__control--overlaid:hover {
    background: var(--accent-color) !important; /* Full gold on hover */
}

/* Optional: Make the player feel more 'Cinematic' by darkening the controls background */
.plyr--full-ui.plyr--video .plyr__controls {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)) !important;
}