/* Koza Film - Premium Dark Theme */
:root {
    --bg-color: #050505;
    --bg-secondary: #0f0f0f;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    /* White */
    --accent-glow: rgba(255, 255, 255, 0.3);
    --border: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.text-gold {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: #ffffff;
    /* White background */
    color: #000000;
    /* Black text */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    object-fit: contain;
    /* mix-blend-mode: multiply; Only works if image has white bg, but if transp, remove */
    filter: invert(1);
    /* Ensure it's black if original is white */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: #000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../img/hero_bg.png') no-repeat center center/cover;
    background-color: #000;
    background-blend-mode: saturation;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

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

.hero-subtitle {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-color);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Portfolio Preview */
.portfolio {
    padding: 6rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #222;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img,
.portfolio-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Footer */
footer {
    background: #ffffff;
    /* White bg */
    color: #000000;
    padding: 4rem 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links {
    margin: 2rem 0;
    font-size: 1.5rem;
}

.social-links a {
    margin: 0 1rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Admin Panel Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 2rem;
}

.sidebar h3 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}

.admin-content {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

th,
td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--accent);
}

/* Page Header for Inner Pages */
.page-header {
    height: 40vh;
    background: url('../img/hero_bg.png') no-repeat center center/cover;
    background-color: #000;
    background-blend-mode: saturation;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- New Featured Additions --- */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Custom Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border: 1px solid #333;
    overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Hero Slider --- */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Grayscale overlay for all slides */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darken slightly */
    z-index: 1;
}

/* Force grayscale on background images */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    /* Black & White cinematic look */
    z-index: 0;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
    /* Delay for content reveal */
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-subtitle {
    display: block;
    color: var(--accent);
    /* White in current theme */
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.slide h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.prev-slide {
    left: 40px;
}

.next-slide {
    right: 40px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: #fff;
    transform: scale(1.2);
}

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

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .prev-slide {
        left: 10px;
    }

    .next-slide {
        right: 10px;
    }
}