/*
Theme Name: Flambo Magic
Theme URI: https://flambomagic.com
Description: A standalone theme for Flambo the Magician - bringing magic to life with stunning visuals and elegant design. Features custom fire effects, professional background images, and complete event management system.
Author: Flambo Magic
Author URI: https://flambomagic.com
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flambo-magic
Tags: magic, entertainment, portfolio, custom-logo, events, magician, performance, standalone
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   FLAMBO MAGIC - CUSTOM STYLES
   ============================================ */

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

/* Root CSS Variables for Flambo Brand Colors */
:root {
    --flambo-primary: #ff4500;
    /* Bright flame orange */
    --flambo-secondary: #ffa500;
    /* Golden orange */
    --flambo-dark: #1a1a1a;
    /* Deep black */
    --flambo-accent: #ffd700;
    /* Golden accent */
    --flambo-text: #f5f5f5;
    /* Light text */
    --flambo-bg-dark: #0d0d0d;
    /* Background dark */
    --flambo-gradient: linear-gradient(135deg, #ff4500 0%, #ffa500 50%, #ffd700 100%);
}

/* Cross-browser compatibility resets */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Mobile tap highlight removal for better UX */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GLOBAL BODY STYLING
   ============================================ */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth;
}

body,
body.kubio-theme {
    background: #000000 !important;
    color: var(--flambo-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-top: 360px !important;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROFESSIONAL HEADER & LOGO STYLING
   ============================================ */

/* Hide Kubio's front-header navigation elements */
[data-kubio*="kubio/front-header"] .kubio-navigation-section,
[data-kubio*="kubio/front-header"] .h-navigation-padding,
.kubio-front-header__k__toCQddZ5xwe-outer,
.kubio-front-header__k__c6BbujDIAOY-outer {
    display: none !important;
}

/* Custom Flambo Header - Fixed at top with centered layout */
.site-header.flambo-custom-header {
    background: #000000 !important;
    padding: 2rem 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    border-bottom: none !important;
    min-height: auto !important;
    display: flex !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
    margin: 0 !important;
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    /* iOS Safari fixed position fix */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Header Inner Container */
.header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    position: relative !important;
    gap: 1rem !important;
}

/* Header when scrolled - compact */
.site-header.scrolled {
    min-height: 70px !important;
    padding: 0.6rem 2rem !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 69, 0, 0.3) !important;
}

/* Navigation Menu Container */
.main-navigation {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    order: 4;
}

/* Navigation Menu List */
.main-navigation ul,
.primary-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

/* Navigation Menu Items */
.main-navigation li,
.primary-menu li {
    margin: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Navigation Menu Links */
.main-navigation a,
.primary-menu a {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Flame effect on bottom of menu items */
.main-navigation a::after,
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    background: -webkit-linear-gradient(bottom,
            var(--flambo-primary) 0%,
            var(--flambo-secondary) 50%,
            var(--flambo-accent) 100%);
    background: -moz-linear-gradient(bottom,
            var(--flambo-primary) 0%,
            var(--flambo-secondary) 50%,
            var(--flambo-accent) 100%);
    background: linear-gradient(to top,
            var(--flambo-primary) 0%,
            var(--flambo-secondary) 50%,
            var(--flambo-accent) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    -webkit-filter: blur(3px);
    filter: blur(3px);
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow:
        0 0 10px var(--flambo-primary),
        0 0 20px var(--flambo-secondary),
        0 0 30px var(--flambo-accent);
    box-shadow:
        0 0 10px var(--flambo-primary),
        0 0 20px var(--flambo-secondary),
        0 0 30px var(--flambo-accent);
}

/* Navigation Menu Hover */
.main-navigation a:hover,
.primary-menu a:hover,
.main-navigation .current-menu-item a,
.primary-menu .current-menu-item a {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom: 3px solid transparent !important;
    box-shadow: none;
    transform: none;
    text-shadow: none;
}

/* Flame appears on hover */
.main-navigation a:hover::after,
.primary-menu a:hover::after,
.main-navigation .current-menu-item a::after,
.primary-menu .current-menu-item a::after {
    width: 40px;
    height: 25px;
    opacity: 1;
    -webkit-animation: flameFlicker 0.3s ease-in-out infinite alternate;
    animation: flameFlicker 0.3s ease-in-out infinite alternate;
    will-change: transform, opacity, filter;
}

/* Flame flicker animation - Standard */
@keyframes flameFlicker {
    0% {
        transform: translateX(-50%) scaleY(1) scaleX(1);
        filter: blur(3px);
        opacity: 0.9;
    }

    25% {
        transform: translateX(-50%) scaleY(1.1) scaleX(0.95);
        filter: blur(4px);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scaleY(0.95) scaleX(1.05);
        filter: blur(3px);
        opacity: 0.85;
    }

    75% {
        transform: translateX(-50%) scaleY(1.05) scaleX(0.98);
        filter: blur(3.5px);
        opacity: 0.95;
    }

    100% {
        transform: translateX(-50%) scaleY(1) scaleX(1.02);
        filter: blur(4px);
        opacity: 1;
    }
}

/* Flame flicker animation - Webkit (Safari, Chrome) */
@-webkit-keyframes flameFlicker {
    0% {
        -webkit-transform: translateX(-50%) scaleY(1) scaleX(1);
        transform: translateX(-50%) scaleY(1) scaleX(1);
        -webkit-filter: blur(3px);
        filter: blur(3px);
        opacity: 0.9;
    }

    25% {
        -webkit-transform: translateX(-50%) scaleY(1.1) scaleX(0.95);
        transform: translateX(-50%) scaleY(1.1) scaleX(0.95);
        -webkit-filter: blur(4px);
        filter: blur(4px);
        opacity: 1;
    }

    50% {
        -webkit-transform: translateX(-50%) scaleY(0.95) scaleX(1.05);
        transform: translateX(-50%) scaleY(0.95) scaleX(1.05);
        -webkit-filter: blur(3px);
        filter: blur(3px);
        opacity: 0.85;
    }

    75% {
        -webkit-transform: translateX(-50%) scaleY(1.05) scaleX(0.98);
        transform: translateX(-50%) scaleY(1.05) scaleX(0.98);
        -webkit-filter: blur(3.5px);
        filter: blur(3.5px);
        opacity: 0.95;
    }

    100% {
        -webkit-transform: translateX(-50%) scaleY(1) scaleX(1.02);
        transform: translateX(-50%) scaleY(1) scaleX(1.02);
        -webkit-filter: blur(4px);
        filter: blur(4px);
        opacity: 1;
    }
}

/* Site Branding - Logo centered in header */
.flambo-custom-header .site-branding {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 1.5rem 0 !important;
    order: 1 !important;
}

/* Logo Placeholder (when no logo uploaded) */
.logo-placeholder {
    font-family: 'Poppins', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ff4500 0%, #ffa500 50%, #ffd700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100px !important;
    height: 100px !important;
}

/* Logo Image - Circular design */
.flambo-custom-header .site-logo,
.flambo-custom-header .custom-logo,
.flambo-custom-header .custom-logo-link img {
    max-width: 200px !important;
    max-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    -webkit-filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* Logo Hover Effect - removed since we use fire logo overlay now */
/* The hover effect is now handled by the ::before pseudo-element showing firelogo.jpeg */

/* Logo Link Wrapper */
.flambo-custom-header .custom-logo-link {
    display: block !important;
    position: relative;
    padding: 0 !important;
    text-align: center !important;
    margin: 0 !important;
    width: fit-content !important;
}

/* Fire logo overlay - hidden by default, appears on hover */
.flambo-custom-header .custom-logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-image: url('/Images/Camera/Website Flambo/Logo/firelogo.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    -webkit-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
    -webkit-filter: drop-shadow(0 0 30px rgba(255, 69, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 165, 0, 0.6)) drop-shadow(0 0 70px rgba(255, 215, 0, 0.4));
    filter: drop-shadow(0 0 30px rgba(255, 69, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 165, 0, 0.6)) drop-shadow(0 0 70px rgba(255, 215, 0, 0.4));
}

/* Show fire logo on hover */
.flambo-custom-header .custom-logo-link:hover::before {
    opacity: 1;
}

/* Dim the default logo on hover */
.flambo-custom-header .custom-logo-link:hover img {
    opacity: 0;
}

/* Site Title - Top of header - PROMINENT LIKE HERO */
.flambo-custom-header .site-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    margin: 1rem 0 0.5rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap;
    order: 2;
}

/* Site Title Link */
.flambo-custom-header .site-title a {
    background: linear-gradient(135deg, #ff4500 0%, #ffa500 50%, #ffd700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.flambo-custom-header .site-title a:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff4500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Site Description/Tagline */
.flambo-custom-header .site-description {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: #444444 !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
    order: 3;
}

/* ============================================
   NAVIGATION MENU - SPLIT LAYOUT
   ============================================ */

/* Navigation Container - Already defined above for .main-navigation */

/* Navigation List - Already defined above for .primary-menu */

/* Navigation Items */
.primary-menu li,
.main-navigation li {
    margin: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Navigation Links - Modern style */
.primary-menu a,
.main-navigation a {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Navigation Hover Effect */
.primary-menu a:hover,
.main-navigation a:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--flambo-accent) !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    transform: none;
    text-shadow: none;
}

/* Active/Current Page */
.primary-menu .current-menu-item a,
.main-navigation .current-menu-item a {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--flambo-accent) !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
}

/* ============================================
   HEADER SEARCH BOX
   ============================================ */

.header-search,
.search-form,
[data-kubio*="search"],
.search-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 !important;
    max-width: calc(50% - 80px) !important;
    margin: 0 !important;
}

/* Search Input Field */
.header-search input[type="search"],
.search-form input[type="search"],
[data-kubio*="search"] input,
.search-field {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 69, 0, 0.3) !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    width: 250px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.header-search input[type="search"]:focus,
.search-form input[type="search"]:focus,
[data-kubio*="search"] input:focus,
.search-field:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 140, 0, 0.6) !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3) !important;
    width: 280px !important;
}

.header-search input[type="search"]::placeholder,
.search-form input[type="search"]::placeholder,
[data-kubio*="search"] input::placeholder,
.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Search Submit Button */
.header-search button,
.search-form button,
[data-kubio*="search"] button,
.search-submit {
    background: var(--flambo-gradient) !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    color: #0d0d0d !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.header-search button:hover,
.search-form button:hover,
[data-kubio*="search"] button:hover,
.search-submit:hover {
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

.hero-section,
[data-kubio~="hero"],
.wp-block-cover,
.flambo-hero {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/IMGP7021.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    padding: 120px 20px !important;
    text-align: center !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.15) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Hero Headings - Scaled down to emphasize site title */
.hero-section h1,
.flambo-hero h1 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    background: var(--flambo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    z-index: 1;
}

.hero-section p,
.flambo-hero p {
    font-size: 1.3rem !important;
    color: #d4d4d4 !important;
    max-width: 800px;
    margin: 0 auto 2.5rem auto !important;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADINGS & TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.8rem;
    background: var(--flambo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.2rem;
    background: var(--flambo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.8rem;
    color: var(--flambo-accent);
}

/* ============================================
   BUTTONS WITH FIRE EFFECTS
   ============================================ */

.wp-block-button__link,
.wp-element-button,
[data-kubio*="button"] a,
.kubio-button,
button.flambo-btn,
a.flambo-btn {
    background: var(--flambo-gradient) !important;
    border: none !important;
    color: var(--flambo-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 15px 45px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
[data-kubio*="button"] a:hover,
.kubio-button:hover,
button.flambo-btn:hover,
a.flambo-btn:hover {
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.6) !important;
    transform: translateY(-3px) !important;
    color: var(--flambo-dark) !important;
}

.wp-block-button__link::before,
.wp-element-button::before,
[data-kubio*="button"] a::before,
button.flambo-btn::before,
a.flambo-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wp-block-button__link:hover::before,
.wp-element-button:hover::before,
[data-kubio*="button"] a:hover::before,
button.flambo-btn:hover::before,
a.flambo-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   CARDS & BLOCKS
   ============================================ */

.wp-block-group,
.wp-block-columns,
[data-kubio~="section"],
.kubio-section {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.wp-block-group:hover,
.wp-block-columns:hover,
[data-kubio~="section"]:hover {
    border-color: rgba(255, 69, 0, 0.5);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.2);
    transform: translateY(-5px);
}

/* ============================================
   IMAGES WITH GLOW
   ============================================ */

.wp-block-image img,
[data-kubio*="image"] img,
.kubio-image img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.wp-block-image:hover img,
[data-kubio*="image"]:hover img,
.kubio-image:hover img {
    box-shadow: 0 4px 30px rgba(255, 69, 0, 0.4);
    transform: scale(1.02);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
footer,
[data-kubio*="footer"] {
    background: #000000 !important;
    border-top: 3px solid var(--flambo-accent) !important;
    border-bottom: none !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Footer bottom flame decoration */
.site-footer::after,
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top,
            rgba(255, 69, 0, 0.3) 0%,
            rgba(255, 140, 0, 0.2) 30%,
            rgba(255, 215, 0, 0.1) 60%,
            transparent 100%);
    pointer-events: none;
    animation: footerFlameFlicker 3s ease-in-out infinite;
    z-index: 1;
}

/* Flame flicker for footer */
@keyframes footerFlameFlicker {

    0%,
    100% {
        opacity: 0.6;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

@-webkit-keyframes footerFlameFlicker {

    0%,
    100% {
        opacity: 0.6;
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        -webkit-transform: scaleY(1.1);
        transform: scaleY(1.1);
    }
}

.site-footer a,
footer a {
    color: var(--flambo-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.site-footer a:hover,
footer a:hover {
    color: var(--flambo-primary);
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Footer content styling to match header */
.footer-content {
    position: relative;
    z-index: 2;
}

.footer-widgets {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-widget-area {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.footer-widget-area h3 {
    color: var(--flambo-accent);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-widget-area p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
}

.social-link {
    display: inline-block;
    margin: 0 0.3rem;
    padding: 0.2rem 0.5rem;
}

.footer-glasslyte-logo {
    transition: all 0.3s ease;
}

.footer-glasslyte-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ============================================
   KUBIO-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Kubio Container Widths */
[data-kubio-component="section"] {
    max-width: 100% !important;
}

[data-kubio-component="row"] {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Kubio Column Gaps */
[data-kubio*="columns"] {
    gap: 2rem !important;
}

/* Ensure Kubio blocks are visible */
[data-kubio] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Kubio Button Styling Override */
[data-kubio~="button-link"] {
    background: var(--flambo-gradient) !important;
    color: var(--flambo-dark) !important;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle-effect::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

/* Smooth Fade In */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop Large (1200px and below) */
@media (max-width: 1200px) {
    body {
        padding-top: 300px !important;
    }

    .flambo-custom-header {
        padding: 1.5rem 1.5rem !important;
    }

    /* Scale down logo slightly */
    .flambo-custom-header .site-logo,
    .flambo-custom-header .custom-logo,
    .flambo-custom-header .custom-logo-link img {
        max-width: 150px !important;
        max-height: 150px !important;
        width: 150px !important;
        height: 150px !important;
    }

    /* Scale fire logo overlay */
    .flambo-custom-header .custom-logo-link::before {
        width: 150px;
        height: 150px;
    }

    /* Site title */
    .flambo-custom-header .site-title {
        font-size: 2.2rem !important;
    }

    /* Menu items */
    .main-navigation a,
    .primary-menu a {
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
    }

    .hero-section h1 {
        font-size: 3rem !important;
    }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
    body {
        padding-top: 250px !important;
    }

    .flambo-custom-header {
        padding: 1.2rem 1rem !important;
    }

    /* Scale logo for tablets */
    .flambo-custom-header .site-logo,
    .flambo-custom-header .custom-logo,
    .flambo-custom-header .custom-logo-link img {
        max-width: 120px !important;
        max-height: 120px !important;
        width: 120px !important;
        height: 120px !important;
    }

    /* Scale fire logo overlay */
    .flambo-custom-header .custom-logo-link::before {
        width: 120px;
        height: 120px;
        filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.7)) drop-shadow(0 0 35px rgba(255, 165, 0, 0.5));
    }

    /* Branding margin adjustment */
    .flambo-custom-header .site-branding {
        margin: 1rem 0 !important;
    }

    /* Site title */
    .flambo-custom-header .site-title {
        font-size: 2rem !important;
        letter-spacing: 3px !important;
    }

    /* Menu wrapping */
    .main-navigation ul,
    .primary-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .main-navigation a,
    .primary-menu a {
        font-size: 0.9rem !important;
        padding: 10px 15px !important;
    }

    /* Menu flame effect scaled down */
    .main-navigation a::after,
    .primary-menu a::after {
        bottom: -6px;
    }

    .main-navigation a:hover::after,
    .primary-menu a:hover::after,
    .main-navigation .current-menu-item a::after,
    .primary-menu .current-menu-item a::after {
        width: 35px;
        height: 20px;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

/* Hamburger menu button - hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--flambo-accent);
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10002;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--flambo-secondary);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--flambo-accent);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--flambo-accent);
    border-radius: 2px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(8px, 8px);
    -moz-transform: rotate(45deg) translate(8px, 8px);
    -ms-transform: rotate(45deg) translate(8px, 8px);
    -o-transform: rotate(45deg) translate(8px, 8px);
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(7px, -7px);
    -moz-transform: rotate(-45deg) translate(7px, -7px);
    -ms-transform: rotate(-45deg) translate(7px, -7px);
    -o-transform: rotate(-45deg) translate(7px, -7px);
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    body {
        padding-top: 350px !important;
        /* Adjusted for DOUBLE size logo */
    }

    .flambo-custom-header {
        padding: 1.5rem 1rem !important;
        min-height: auto !important;
    }

    .flambo-custom-header .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.2rem !important;
    }

    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
    }

    /* Centered mobile logo - DOUBLE SIZE */
    .flambo-custom-header .site-branding {
        flex: 0 0 auto;
        margin: 0 auto !important;
        text-align: center;
        order: 1;
    }

    .flambo-custom-header .site-logo,
    .flambo-custom-header .custom-logo,
    .flambo-custom-header .custom-logo-link img {
        max-width: 240px !important;
        max-height: 240px !important;
        width: 240px !important;
        height: 240px !important;
        margin: 0 auto;
        display: block;
    }

    /* Fire logo overlay for mobile */
    .flambo-custom-header .custom-logo-link::before {
        width: 240px;
        height: 240px;
        filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.7)) drop-shadow(0 0 35px rgba(255, 165, 0, 0.5));
    }

    /* Hamburger menu below logo */
    .mobile-menu-toggle {
        order: 2;
    }

    /* Compact site title on mobile */
    .flambo-custom-header .site-title {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        margin: 0 !important;
        text-align: center;
        width: 100%;
    }

    /* Hide site description on mobile */
    .flambo-custom-header .site-description {
        display: none !important;
    }

    /* Mobile navigation - HIDDEN by default */
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
        z-index: 10001 !important;
        -webkit-transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        -moz-transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        -o-transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-top: 80px !important;
        -webkit-transform: translateX(100%) !important;
        -moz-transform: translateX(100%) !important;
        -ms-transform: translateX(100%) !important;
        -o-transform: translateX(100%) !important;
        transform: translateX(100%) !important;
        visibility: hidden !important;
    }

    /* Show mobile navigation when active */
    .main-navigation.active {
        -webkit-transform: translateX(0) !important;
        -moz-transform: translateX(0) !important;
        -ms-transform: translateX(0) !important;
        -o-transform: translateX(0) !important;
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Stack menu vertically in slide-out panel */
    .main-navigation ul,
    .primary-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-navigation li {
        width: 100% !important;
        margin: 0 !important;
    }

    .main-navigation a,
    .primary-menu a {
        padding: 18px 25px !important;
        width: 100% !important;
        text-align: left !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
        display: block !important;
    }

    .main-navigation a:hover,
    .primary-menu a:hover {
        background: rgba(255, 215, 0, 0.08) !important;
        padding-left: 30px !important;
        -webkit-transition: all 0.3s ease !important;
        -moz-transition: all 0.3s ease !important;
        -o-transition: all 0.3s ease !important;
        transition: all 0.3s ease !important;
    }

    /* Disable flame animation on mobile (performance) */
    .main-navigation a::after,
    .primary-menu a::after {
        display: none;
    }

    /* Mobile menu active item */
    .main-navigation .current-menu-item a,
    .primary-menu .current-menu-item a {
        background: rgba(255, 215, 0, 0.12) !important;
        border-left: 4px solid var(--flambo-accent) !important;
    }

    .hero-section {
        padding: 80px 15px !important;
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        letter-spacing: 2px !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .wp-block-button__link,
    button.flambo-btn,
    a.flambo-btn {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }

    /* Footer mobile adjustments */
    .footer-widgets {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-widget-area {
        max-width: 100%;
    }

    .site-footer::after,
    footer::after {
        height: 60px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    body {
        padding-top: 320px !important;
        /* Adjusted for DOUBLE size logo */
    }

    /* DOUBLE size logo on small mobile */
    .flambo-custom-header .site-logo,
    .flambo-custom-header .custom-logo,
    .flambo-custom-header .custom-logo-link img {
        max-width: 200px !important;
        max-height: 200px !important;
        width: 200px !important;
        height: 200px !important;
    }

    .flambo-custom-header .custom-logo-link::before {
        width: 200px;
        height: 200px;
        filter: drop-shadow(0 0 18px rgba(255, 69, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 165, 0, 0.5));
    }

    .flambo-custom-header .site-title {
        font-size: 1.1rem !important;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .flambo-custom-header {
        padding: 0.9rem 0.5rem !important;
    }

    /* Menu items */
    .main-navigation a,
    .primary-menu a {
        font-size: 0.95rem !important;
        padding: 12px 15px !important;
    }

    .hero-section h1 {
        font-size: 1.7rem !important;
    }

    /* Footer adjustments for small mobile */
    .site-footer::after,
    footer::after {
        height: 50px;
    }

    .footer-widget-area h3 {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile (360px and below) - Very small phones */
@media (max-width: 360px) {
    body {
        padding-top: 300px !important;
        /* Adjusted for DOUBLE size logo */
    }

    .flambo-custom-header .site-logo,
    .flambo-custom-header .custom-logo,
    .flambo-custom-header .custom-logo-link img {
        max-width: 180px !important;
        max-height: 180px !important;
        width: 180px !important;
        height: 180px !important;
    }

    .flambo-custom-header .custom-logo-link::before {
        width: 180px;
        height: 180px;
        filter: drop-shadow(0 0 16px rgba(255, 69, 0, 0.7)) drop-shadow(0 0 28px rgba(255, 165, 0, 0.5));
    }

    .flambo-custom-header .site-title {
        font-size: 1rem !important;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .main-navigation a,
    .primary-menu a {
        font-size: 1rem !important;
        padding: 16px 20px !important;
    }

    /* Footer adjustments for extra small mobile */
    .site-footer::after,
    footer::after {
        height: 40px;
    }

    .footer-widget-area h3 {
        font-size: 1rem;
    }

    .footer-glasslyte-logo {
        height: 100px !important;
    }
}

/* ============================================
   CUSTOM BACKGROUND IMAGES - FLAMBO MAGIC
   ============================================ */

/* Alternative Hero Backgrounds - Rotate these for variety */
.hero-section.bg-magic-1,
.flambo-hero.bg-magic-1 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/IMGP7024.jpg');
}

.hero-section.bg-magic-2,
.flambo-hero.bg-magic-2 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/IMGP7019.jpg');
}

.hero-section.bg-magic-3,
.flambo-hero.bg-magic-3 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/IMGP7037.jpg');
}

.hero-section.bg-magic-4,
.flambo-hero.bg-magic-4 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/IMGP7045.jpg');
}

.hero-section.bg-fast,
.flambo-hero.bg-fast {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/Fast.JPG');
}

/* About Section Backgrounds */
.about-section {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(13, 13, 13, 0.95) 100%),
        url('images/backgrounds/IMGP7053.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 80px 20px;
    position: relative;
    margin: 40px 0;
}

/* Services Section Backgrounds */
.services-section {
    background-image:
        linear-gradient(135deg, rgba(13, 13, 13, 0.92) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('images/backgrounds/IMGP7030.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 80px 20px;
    position: relative;
    margin: 40px 0;
}

/* Gallery Section Backgrounds */
.gallery-section {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.90) 0%, rgba(13, 13, 13, 0.93) 100%),
        url('images/backgrounds/IMGP7027.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 80px 20px;
    position: relative;
    margin: 40px 0;
}

/* Testimonials Section Background */
.testimonials-section {
    background-image:
        linear-gradient(135deg, rgba(13, 13, 13, 0.92) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('images/backgrounds/IMGP7029.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 80px 20px;
    position: relative;
    margin: 40px 0;
}

/* Contact Section Background */
.contact-section,
#contact {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.90) 0%, rgba(13, 13, 13, 0.93) 100%),
        url('images/backgrounds/IMGP7038.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 80px 20px;
    position: relative;
    margin: 40px 0;
}

/* Performance Venue Backgrounds */
.venue-bg-1 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.88) 0%, rgba(13, 13, 13, 0.92) 100%),
        url('images/backgrounds/IMGP7054.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.venue-bg-2 {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.88) 0%, rgba(13, 13, 13, 0.92) 100%),
        url('images/backgrounds/IMGP7051.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Card and Deal Backgrounds */
.card-magic-bg {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/Deal1.jpg');
    background-size: cover;
    background-position: center;
}

.chef-background {
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(13, 13, 13, 0.90) 100%),
        url('images/backgrounds/Chez1.jpg');
    background-size: cover;
    background-position: center;
}

/* Parallax Effect Enhancement */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Lighter Overlay for Bright Images */
.light-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.75) 0%, rgba(13, 13, 13, 0.80) 100%);
    z-index: 0;
}

/* Darker Overlay for More Contrast */
.dark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(13, 13, 13, 0.95) 100%);
    z-index: 0;
}

/* Fire Glow Overlay Effect */
.fire-glow-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above overlays */
.hero-section .hero-content,
.about-section .section-inner,
.services-section>*,
.gallery-section>*,
.testimonials-section>*,
.contact-section>* {
    position: relative;
    z-index: 2;
}

/* Responsive Background Adjustments */
@media (max-width: 768px) {

    .hero-section,
    .about-section,
    .services-section,
    .gallery-section,
    .testimonials-section,
    .contact-section,
    [data-kubio~="hero"] {
        background-attachment: scroll;
        /* Fixed backgrounds can cause issues on mobile */
    }
}

/* Background Image Loading Animation */
@keyframes bgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-section,
.about-section,
.services-section,
.gallery-section,
.testimonials-section,
.contact-section {
    animation: bgFadeIn 1s ease-in;
}

/* ============================================
   MAIN CONTENT BACKGROUND
   ============================================ */

.site-main,
#primary {
    position: relative;
    width: 100%;
    min-height: 100vh;

    /* Fallback solid color for older browsers */
    background: #000000;

    /* Modern browsers with vendor prefixes */
    background-color: #000000;
    background-image:
        -webkit-radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 1) 100%),
        -webkit-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%),
        url('images/backgrounds/IMGP7024.jpg');
    background-image:
        -moz-radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 1) 100%),
        -moz-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%),
        url('images/backgrounds/IMGP7024.jpg');
    background-image:
        -o-radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 1) 100%),
        -o-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%),
        url('images/backgrounds/IMGP7024.jpg');
    background-image:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 1) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%),
        url('images/backgrounds/IMGP7024.jpg');

    /* Cross-browser background sizing */
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;

    background-position: center top;
    background-repeat: no-repeat;

    /* Desktop parallax effect */
    background-attachment: fixed;

    padding: 40px 20px;

    /* Hardware acceleration for smoother rendering */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);

    /* Smooth transitions */
    -webkit-transition: background-position 0.3s ease;
    -moz-transition: background-position 0.3s ease;
    -o-transition: background-position 0.3s ease;
    transition: background-position 0.3s ease;
}

/* Ensure content is readable above background */
.site-main article,
.site-main .entry-content,
#primary article,
#primary .entry-content {
    position: relative;
    z-index: 2;
}

/* Tablet adjustments (1024px and below) */
@media (max-width: 1024px) {

    .site-main,
    #primary {
        background-size: cover;
        background-position: center 30%;
    }
}

/* Mobile adjustments (768px and below) */
@media (max-width: 768px) {

    .site-main,
    #primary {
        /* Disable fixed attachment on mobile for better performance */
        background-attachment: scroll;
        background-size: cover;
        background-position: center 25%;
        padding: 30px 15px;

        /* Optimize for touch devices */
        -webkit-overflow-scrolling: touch;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {

    .site-main,
    #primary {
        background-position: center 20%;
        padding: 20px 10px;
        min-height: auto;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    .site-main,
    #primary {
        background-attachment: scroll;
    }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {

    .site-main,
    #primary {
        background-attachment: scroll;
    }
}
