/* ============================================
   K2 MEDIA CAPITAL - Premium Styles
   ============================================ */

/* CSS Variables */
:root {
    --gold: #C9A227;
    --gold-light: #E8D48A;
    --dark-bg: #0a0a0a;
    --dark-card: #141414;
    --white: #ffffff;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --transition: all 0.3s ease;
}

/* Light Mode Variables */
.light {
    --dark-bg: #f5f5f5;
    --dark-card: #ffffff;
    --white: #0a0a0a;
    --gray-300: #374151;
    --gray-400: #4b5563;
    --gray-500: #6b7280;
}

/* ============================================
   Base & Reset
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

body.light {
    background-color: #f5f5f5;
    color: #0a0a0a;
}

::selection {
    background-color: var(--gold);
    color: #000;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.film-reel-loader {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.film-reel-loader::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid transparent;
    border-top-color: var(--gold-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light #navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.light .nav-link {
    color: #C9A227 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--gold);
    padding-left: 1rem;
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    max-width: 600px;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--gold-light);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-top: 1rem;
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        opacity: 0.3;
        height: 60px;
    }

    50% {
        opacity: 1;
        height: 80px;
    }
}

/* ============================================
   Laurel Decorations
   ============================================ */
.laurel-left,
.laurel-right {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10c-5 15-20 25-40 30 20 5 35 15 40 30 5-15 20-25 40-30-20-5-35-15-40-30z' fill='%23C9A227' opacity='0.8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.laurel-right {
    transform: scaleX(-1);
}

.laurel-left-lg,
.laurel-right-lg {
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 C45 25, 25 35, 5 40 C25 45, 45 55, 50 75 C55 55, 75 45, 95 40 C75 35, 55 25, 50 5' fill='none' stroke='%23C9A227' stroke-width='2'/%3E%3Ccircle cx='50' cy='40' r='3' fill='%23C9A227'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.laurel-right-lg {
    transform: scaleX(-1);
}

/* ============================================
   Strategy Cards
   ============================================ */
.strategy-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.light .strategy-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.strategy-card:hover::before {
    transform: scaleX(1);
}

.strategy-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.15);
}

.strategy-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #000;
    font-size: 1.25rem;
}

/* ============================================
   Team Cards
   ============================================ */
.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

/* ============================================
   Mini Slider
   ============================================ */
.mini-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.mini-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.mini-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.mini-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.mini-prev,
.mini-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.mini-prev:hover,
.mini-next:hover {
    background: var(--gold);
    color: #000;
}

.mini-prev {
    left: 1rem;
}

.mini-next {
    right: 1rem;
}

/* ============================================
   Contact Cards
   ============================================ */
.contact-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.light .contact-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #000;
}

/* ============================================
   Cinema Frame Effect
   ============================================ */
.cinema-frame {
    position: relative;
}

.cinema-lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            transparent 50%,
            rgba(201, 162, 39, 0.1) 100%);
}

/* ============================================
   Film Grain Effect
   ============================================ */
.film-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

/* ============================================
   Back to Top Button
   ============================================ */
#back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .slide-content {
        bottom: 15%;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .strategy-card {
        padding: 1rem;
    }

    .mini-slide img {
        max-height: 250px;
    }
}

@media (max-width: 640px) {
    .nav-link {
        font-size: 0.75rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .laurel-left-lg,
    .laurel-right-lg {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   Smooth Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ============================================
   Hover Effects & Animations
   ============================================ */
.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(201, 162, 39, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--gold) 0%,
            var(--gold-light) 25%,
            var(--gold) 50%,
            var(--gold-light) 75%,
            var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Text reveal animation */
@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.reveal-text {
    animation: revealText 1s ease forwards;
}