/**
 * Main Stylesheet for Tinkerbox Studios Website
 * Modern, clean design implementation
 */

:root {
    /* Streaming Platform Colors */
    --primary-blue: #00b3ff;
    --primary-yellow: #ffc107;
    --dark-blue: #0a1929;
    --light-blue: #64b5f6;
    --accent-orange: #ff5722;
    
    /* Neutral Colors for Streaming */
    --dark-gray: #121212;
    --medium-gray: #757575;
    --light-gray: #1f1f1f;
    --white: #ffffff;
    --black: #000000;
    --content-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --hover-bg: #2a2a2a;
    
    /* UI Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    
    /* Streaming Platform Gradients */
    --blue-gradient: linear-gradient(135deg, #0a1929 0%, #00b3ff 150%);
    --feature-gradient: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    --card-hover-gradient: linear-gradient(rgba(0,0,0,0), rgba(0,179,255,0.2));
    
    /* Spacing */
    --section-spacing: 4rem;
    --element-spacing: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.8rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.5);
    
    /* Video Player */
    --player-bg: #000000;
    --player-controls: rgba(0, 0, 0, 0.7);
    --player-progress: #00b3ff;
}

/* Streaming Platform General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--dark-gray);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

/* Streaming Platform Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.3px;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--white);
}

/* Streaming Platform Section Styling */
section {
    padding: var(--section-spacing) 0;
    background-color: var(--dark-gray);
}

.section-title {
    position: relative;
    margin-bottom: var(--element-spacing);
    font-weight: 700;
    color: var(--white);
    text-align: left;
    font-size: 1.5rem;
    padding-left: 10px;
}

.section-title:after {
    display: none;
}

/* Video Container Styling */
.video-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--player-bg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.play-overlay i {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 179, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.video-item:hover .play-overlay i {
    transform: scale(1);
}

/* Badge Styling */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
}

.new-badge {
    background-color: var(--primary-blue);
    color: white;
}

/* Video Overlay for Hero */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Video Row Styling */
.video-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 0 20px;
    margin-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
}

.video-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.streaming-section {
    margin-bottom: 32px;
    position: relative;
}

.streaming-section .section-title {
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-left: 5px;
    font-weight: 600;
}

.video-item {
    flex: 0 0 auto;
    width: 300px;
    transition: all 0.3s ease;
    position: relative;
}

.video-item:hover {
    transform: scale(1.05);
    z-index: 5;
}

.video-item:hover .video-container {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.video-item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.video-title {
    font-size: 0.9rem;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.video-item:hover .video-title {
    color: #fff;
}

.video-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Arrow Navigation for Rows */
.row-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
}

.streaming-section:hover .row-nav {
    opacity: 1;
}

.row-nav:hover {
    background: rgba(0, 179, 255, 0.8);
}

.row-nav.prev {
    left: 10px;
}

.row-nav.next {
    right: 10px;
}

/* Feature Hero Video */
.feature-video {
    position: relative;
    height: 70vh;
    min-height: 500px;
    margin-bottom: 3rem;
    border-radius: 0;
    overflow: hidden;
}

.feature-video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 2;
}

.feature-video-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-video-content p {
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.feature-video-actions {
    display: flex;
    gap: 1rem;
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-blue);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 1.2rem;
}

.play-button:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

/* Container modifications */
.container {
    max-width: 1280px;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--blue-gradient);
    border: none;
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    border: none;
}

.btn-secondary {
    background: var(--orange-gradient);
    border: none;
    color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(135deg, #e65100 0%, var(--accent-orange) 100%);
    border: none;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline-light {
    color: var(--white);
    border: 2px solid var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline-secondary {
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-outline-light {
    color: var(--white);
    border: 2px solid var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Basic Layout Setup - Anti-Jump Measures */
html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Equal to navbar height */
    min-height: 100vh;
    position: relative;
}

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

/* Apply aspect-ratio to common image containers */
.card-img-wrapper,
.news-img,
.about-image-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Prevent content layout shifts */
* {
    box-sizing: border-box;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.no-fouc {
    visibility: hidden;
}

/* Prevent excessive height recalculations */
main {
    flex: 1 0 auto;
    min-height: calc(100vh - 80px - 350px); /* viewport height minus header and approximate footer height */
    width: 100%;
    position: relative;
    z-index: 1;
    contain: layout paint style;
}

/* Streaming Platform Navigation */
.navbar {
    padding: 0;
    height: 70px;
    transition: all 0.3s ease;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

.navbar-collapse {
    height: 100%;
}

/* This section intentionally left empty to remove duplicate */

.navbar-brand img {
    max-height: 45px;
    transition: all 0.3s ease;
}

.navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.2s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar .nav-link:hover:after,
.navbar .nav-link.active:after {
    width: 100%;
    opacity: 1;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white);
}

/* Profile Icon */
.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
    background-color: var(--white);
    color: var(--dark-gray);
}

/* Search Icon */
.search-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.search-icon:hover {
    color: var(--white);
    transform: scale(1.1);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--dark-gray);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
}

/* Featured Productions Section */
.featured-productions {
    position: relative;
    background-color: var(--white);
}

/* Production Spotlight */
.production-spotlight {
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.spotlight-image {
    height: 500px;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
}

.spotlight-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.spotlight-content {
    padding: 3rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.spotlight-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.spotlight-type.kids {
    background-color: var(--primary-blue);
}

.spotlight-type.adult {
    background-color: var(--accent-orange);
}

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

.spotlight-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Production Cards */
.production-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background-color: var(--white);
    height: 100%;
}

.production-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.production-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.production-type {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.production-type.kids {
    background-color: var(--primary-blue);
    color: var(--white);
}

.production-type.adult {
    background-color: var(--accent-orange);
    color: var(--white);
}

.production-card .card-body {
    padding: 1.5rem;
}

.production-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.production-card .card-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.production-card .card-title a:hover {
    color: var(--primary-blue);
}

.production-meta {
    display: flex;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.production-meta i {
    margin-right: 0.25rem;
}

.production-card .card-text {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* News Section */
.news-section {
    background-color: var(--light-gray);
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    position: relative;
    height: 220px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.news-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-link i {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.news-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-content {
    position: relative;
}

.about-image-container {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    z-index: 2;
}

.about-experience {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 1rem;
}

.experience-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Subscribe Section */
.subscribe-section {
    position: relative;
    overflow: hidden;
}

.subscribe-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.subscribe-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(30, 136, 229, 0.7) 100%);
}

.subscribe-content {
    position: relative;
    z-index: 2;
    background-color: rgba(13, 71, 161, 0.8);
    padding: 3rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.subscribe-form .form-control {
    border: none;
    height: calc(3.5rem + 2px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
}

.subscribe-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    background-color: var(--white);
}

.form-check-input:checked {
    background-color: var(--white);
    border-color: var(--white);
}

.dropdown-divider {
    margin: 0.5rem 1rem;
    opacity: 0.1;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    box-shadow: none;
    font-size: 0.85rem;
}

/* Make navbar light on light backgrounds */
.home-hero-section + .navbar:not(.navbar-scrolled) .nav-link,
.light-navbar:not(.navbar-scrolled) .nav-link {
    color: var(--white);
}

.home-hero-section + .navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon,
.home-hero-section + .navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon::before,
.home-hero-section + .navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon::after,
.light-navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon,
.light-navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon::before,
.light-navbar:not(.navbar-scrolled) .navbar-toggler .navbar-toggler-icon::after {
    background-color: var(--white);
}

/* Hero Section - Stabilized */
.home-hero-section {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    width: 100%;
    margin-top: 0;
    padding: 0;
}

#heroCarousel, 
.carousel, 
.carousel-inner,
.carousel-item {
    height: 100%;
    width: 100%;
}

.hero-slide {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-slide .row {
    height: 100%;
}

.hero-content {
    color: var(--white);
    max-width: 600px;
    padding: 2rem 0;
    position: static;
    transform: none;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-slide .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s forwards;
    animation-delay: 0.7s;
}

.kids-slide {
    background-image: url('/assets/images/kids-hero-bg.jpg');
}

.scifi-slide {
    background-image: url('/assets/images/scifi-hero-bg.jpg');
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    margin: 0 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-blue);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    margin-bottom: 2rem;
    position: absolute;
    bottom: 0;
    z-index: 5;
    justify-content: center;
    padding: 0;
    left: 0;
    right: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 0;
    cursor: pointer;
}

.carousel-indicators button.active {
    background-color: var(--white);
    transform: none;
}

/* Hero Scroll Down - Fixed Position */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 3;
    width: 30px;
    height: 60px;
}

.scroll-down:hover {
    opacity: 1;
    color: var(--white);
}

.scroll-down .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.scroll-down .mouse .wheel {
    width: 4px;
    height: 10px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
    margin-top: 8px;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Productions Section */
.featured-productions {
    background-color: var(--white);
    position: relative;
}

/* Production Cards */
.production-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    background-color: var(--white);
    position: relative;
}

.production-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.production-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.production-type {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.production-type.kids {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
}

.production-type.adult {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e65100 100%);
    color: var(--white);
}

.production-card .card-body {
    padding: 1.5rem;
}

.production-card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.production-card .card-title a {
    color: var(--dark-gray);
    text-decoration: none;
}

.production-card .card-title a:hover {
    color: var(--primary-blue);
}

.production-meta {
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.production-meta i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.production-card .card-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
    background-color: transparent;
}

/* Featured Production - Spotlight */
.production-spotlight {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.spotlight-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.spotlight-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    color: var(--white);
}

.spotlight-type {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.spotlight-type.kids {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
}

.spotlight-type.adult {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e65100 100%);
}

.spotlight-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.spotlight-desc {
    max-width: 700px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Production Grid */
.productions-grid .row {
    margin-bottom: 3rem;
}

.production-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.filter-btn:not(.active) {
    background-color: transparent;
    border-color: var(--light-gray);
    color: var(--medium-gray);
}

.filter-btn:not(.active):hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Animation for production cards */
.production-card[data-aos] {
    transition: all 0.8s ease;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* News Section */
.news-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-blue);
}

.read-more:hover {
    color: var(--dark-blue);
    text-decoration: none;
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 4rem 0;
}

.subscribe-form .form-control {
    height: 50px;
    border-radius: 0.25rem 0 0 0.25rem;
}

.subscribe-form .btn {
    border-radius: 0 0.25rem 0.25rem 0;
    height: 50px;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 100;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h5,
.footer-contact h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-bottom .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/footer-pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
}

.footer-top {
    position: relative;
    z-index: 1;
    padding: 5rem 0 3rem;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer h5 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-yellow);
    border-radius: 1.5px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-info, .footer-links, .footer-contact {
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact p i {
    color: var(--primary-yellow);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
    transform: translateY(-5px);
}

.list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-slider, .hero-slide {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-slider, .hero-slide {
        height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-slider, .hero-slide {
        height: 350px;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Production Detail Pages */
.production-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.production-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.production-details {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.production-details h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.production-meta {
    display: flex;
    align-items: center;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.production-meta span {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.production-meta i {
    margin-right: 0.5rem;
}

/* Character Cards */
.character-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-image {
    height: 250px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.character-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.character-role {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--dark-blue);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: var(--white);
    opacity: 0.8;
    padding: 0.75rem 1.5rem;
    border-left: 4px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-yellow);
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 2rem;
}

.admin-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
}

.admin-card .card-title {
    margin-bottom: 0;
    font-weight: 600;
}

.admin-card .card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(30, 136, 229, 0.25);
}

/* Contact Page */
.contact-info-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* About Page */
.team-member-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.team-member-image {
    height: 300px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
    text-align: center;
}

.team-member-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-member-role {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
