﻿/*
Theme Name: KOVIEPARTNERS Cinematic V9
Theme URI: https://koviepartners.com/
Author: KOVIEPARTNERS & Google Antigravity
Author URI: https://koviepartners.blogspot.com/
Description: High-Performance AI Media Agency Landing Page Theme for KOVIEPARTNERS with Multilingual Support (Korean, Vietnamese, English), 5 Core AI Services Showcase with Embedded Demo Videos, Native WordPress Blog & Posts System, Lead Application Form, and Floating Speed Dial Buttons.
Version: 10.9.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kovie-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Word break rules to prevent ugly line breaks in Asian (Korean) and Latin (Vietnamese/English) */
.break-keep, h1, h2, h3, h4, h5, h6, p, span, a, button, label {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient { 
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-glow {
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Responsive 16:9 Video Container */
.video-container {
    position: relative;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
    overflow: hidden !important;
}

.video-container iframe,
.video-container video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0.75rem !important;
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(6, 182, 212, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .service-tab {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}





































/* ==================== iOS SAFARI & MOBILE VIDEO COMPATIBILITY ==================== */
/* Hide native iOS controls & play button on background video */
video.hero-bg-video::-webkit-media-controls,
video.hero-bg-video::-webkit-media-controls-start-playback-button,
video.hero-bg-video::-webkit-media-controls-play-button,
video.hero-bg-video::-webkit-media-controls-panel,
video.hero-bg-video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure video frames render smoothly with hardware acceleration on iOS */
video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Custom Play Overlay Button for interactive videos */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 8, 20, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    z-index: 20;
}
.video-play-overlay.playing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

