/**
 * Pera.works Custom Color Palette
 * Primary: Orange Gradient (#FF4308 → #FB8500)
 * Accent: Yellow (#FEFE1F)
 */

:root {
    /* Primary Colors - Orange Gradient */
    --primary-start: #FF4308;
    --primary-end: #FB8500;
    --primary-gradient: linear-gradient(90deg, #FF4308 0%, #FB8500 100%);

    /* Accent Color - Yellow */
    --accent-yellow: #FEFE1F;
    --accent-yellow-hover: #fefe1fdd;

    /* Background Colors */
    --bg-dark: #000000;
    --bg-dark-alt: #0a0a0a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* Fix horizontal scroll issue */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

/* Fix marquee overflow */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
}

.slider4-section-area,
.slider5-section-area,
.slider6-section-area {
    overflow: hidden;
    width: 100%;
}

/* Header fixes */
.vl-header-area {
    width: 100%;
    overflow: visible;
}

.vl-header-area .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.vl-header-area .row {
    margin-left: 0;
    margin-right: 0;
}

.search-icon,
.language-switcher,
.vl-btn-wrap {
    display: inline-flex;
    align-items: center;
}

/* Header button override - match original design */
.vl-header-area .vl-btn3 {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Desktop hamburger menu - use Font Awesome icon */
.hamburger_menu {
    background: transparent;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    margin-left: 15px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.hamburger_menu i {
    color: #ffffff !important;
    font-size: 20px !important;
    display: block !important;
}

.hamburger_menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Mobile menu toggle icon */
.vl-offcanvas-toggle i {
    color: #ffffff;
}

/* Hero section height - slightly larger */
.hero4-section-area {
    padding: 225px 0 165px !important;
}

/* Hero section subtitle with gradient color */
.hero-header-area h5 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* Mobile Hero Text Background - Artistic Brush Strokes */
@media (max-width: 991px) {
    .hero-header-area {
        position: relative;
        padding: 40px 20px;
    }

    /* Main container for brush effect */
    .hero-header-area h5,
    .hero-header-area h1 {
        position: relative;
        z-index: 2;
    }

    /* Subtitle brush stroke background */
    .hero-header-area h5 {
        -webkit-text-fill-color: unset !important;
        background: var(--primary-gradient) !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
    }

    .hero-header-area h5::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-2deg);
        width: 110%;
        height: 140%;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
        border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
        z-index: -1;
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.4),
            inset 0 2px 8px rgba(255, 67, 8, 0.2);
    }

    /* First title brush stroke - dynamic organic shape */
    .hero-header-area h1:first-of-type::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(1deg);
        width: 105%;
        height: 130%;
        background: linear-gradient(125deg, rgba(255, 67, 8, 0.15) 0%, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.85) 100%);
        border-radius: 225px 15px 255px 20px/20px 255px 15px 225px;
        z-index: -1;
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.5),
            inset -5px -5px 20px rgba(255, 67, 8, 0.1);
        filter: blur(0.5px);
    }

    /* Second title brush stroke - complementary shape */
    .hero-header-area h1:last-of-type::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-1.5deg);
        width: 108%;
        height: 135%;
        background: linear-gradient(145deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.92) 60%, rgba(251, 133, 0, 0.1) 100%);
        border-radius: 15px 255px 15px 235px/235px 15px 255px 15px;
        z-index: -1;
        box-shadow:
            0 12px 45px rgba(0, 0, 0, 0.6),
            inset 5px 5px 15px rgba(251, 133, 0, 0.08);
    }

    /* Add texture overlay for brush effect */
    .hero-header-area h1::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            radial-gradient(circle at 20% 30%, rgba(255, 67, 8, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(251, 133, 0, 0.05) 0%, transparent 40%);
        z-index: -1;
        pointer-events: none;
    }

    /* Enhanced text shadow for better readability */
    .hero-header-area h1,
    .hero-header-area h5 {
        text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.8),
            0 4px 16px rgba(0, 0, 0, 0.6),
            2px 2px 4px rgba(255, 67, 8, 0.3);
    }

    /* Button background for mobile */
    .hero-header-area .btn-area1 {
        position: relative;
        z-index: 2;
        margin-top: 30px;
    }

    .hero-header-area .btn-area1::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-1deg);
        width: 110%;
        height: 180%;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
        z-index: -1;
        border-radius: 240px 20px 220px 20px/20px 220px 20px 240px;
    }
}

/* Buttons - Primary Gradient */
.vl-btn2,
.vl-btn3,
.cta-btn1 {
    background: var(--primary-gradient) !important;
    border: none !important;
}

.vl-btn2:hover,
.vl-btn3:hover,
.cta-btn1:hover {
    background: #ffffff !important;
    color: #FF4308 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 67, 8, 0.3);
    border: 2px solid #FF4308 !important;
}

/* Icons and SVG */
svg path[stroke="#FEFE1F"] {
    stroke: var(--accent-yellow) !important;
}

.fa-solid.fa-arrow-right,
.arrow i {
    color: var(--accent-yellow);
}

/* Service Icons */
.service1 svg,
.service2 svg,
.service3 svg,
.service4 svg {
    fill: var(--primary-start);
}

/* Headings with Gradient */
.heading1 h2,
.heading2 h2,
.heading3 h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Links */
a:hover {
    color: var(--primary-end) !important;
}

/* Progress Bars */
.progress-inner {
    background: var(--primary-gradient) !important;
}

/* Team Member Cards */
.team-author-boxarea:hover .share {
    background: var(--primary-gradient);
}

/* Portfolio Items */
.portfolio-boxarea:hover .arrow span {
    background: var(--accent-yellow);
}

.portfolio-boxarea .arrow span i {
    color: var(--bg-dark);
}

/* Testimonial Stars */
.testimonial-boxarea ul li i {
    color: var(--accent-yellow);
}

/* Blog Items */
.vl-blog-1-icon a:hover {
    color: var(--primary-end) !important;
}

/* Footer */
.vl-footer2-section-area {
    background-color: var(--bg-dark-alt);
}

.footer-logo1 ul li a:hover {
    background: var(--primary-gradient);
    color: var(--text-primary);
}

/* Marquee Text */
.marquee-text h3,
.brand-single-box h3 {
    color: var(--text-primary);
}

.brand-single-box h3 img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(94%) saturate(2481%) hue-rotate(354deg) brightness(103%) contrast(101%);
}

/* CTA Section */
.cta2-section-area {
    background: var(--primary-gradient);
}

/* Form Elements */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--primary-end) !important;
}

button[type="submit"] {
    background: var(--primary-gradient) !important;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #FB8500 0%, #FF4308 100%) !important;
}

/* Loader */
#loader {
    border-top-color: var(--primary-end);
}

/* Progress Circle */
.progress-circle path {
    stroke: var(--accent-yellow);
}

/* Sidebar/Mobile Menu */
.slide-bar {
    background-color: var(--bg-dark);
}

.sidebar-content ul li a:hover {
    color: var(--primary-end) !important;
}

/* Service Tabs */
.service-tabs-area .nav-link.active {
    background: var(--primary-gradient) !important;
}

.service-tabs-area .nav-link:hover {
    background: var(--primary-gradient) !important;
}

/* Animations */
@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 67, 8, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 67, 8, 0);
    }
}

.pulse-animation {
    animation: pulse-orange 2s infinite;
}

/* Custom Cursor */
.procus-cursor {
    border: 2px solid var(--accent-yellow);
}

.procus-cursor2 {
    background: var(--primary-gradient);
}

/* Button Text Colors */
.vl-btn2,
.vl-btn3,
.cta-btn1 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Removed - now handled in main hover rule above */

/* Language Switcher - Dropdown Styling */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-dropdown-toggle i.fa-globe {
    font-size: 16px;
}

.language-dropdown-toggle i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown:hover .language-dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown:hover .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-dropdown-item:last-child {
    border-bottom: none;
}

.language-dropdown-item:hover {
    background: rgba(255, 67, 8, 0.1);
    color: #ffffff;
}

.language-dropdown-item.active {
    background: var(--primary-gradient);
    color: #ffffff;
}

.language-dropdown-item .lang-code {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.language-dropdown-item .lang-name {
    font-size: 13px;
    opacity: 0.9;
}

/* Mobile Language Switcher */
.vl-offcanvas-lang {
    padding: 20px 0;
}

.vl-offcanvas-lang .lang-mobile {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vl-offcanvas-lang .lang-mobile.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    font-weight: 600;
}

.vl-offcanvas-lang .lang-mobile:hover:not(.active) {
    border-color: var(--primary-end);
    background: rgba(255, 67, 8, 0.1);
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vl-btn2,
    .vl-btn3 {
        padding: 12px 24px;
    }

    .language-dropdown-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }

    .language-dropdown-toggle i.fa-globe {
        font-size: 14px;
    }

    .language-dropdown-menu {
        min-width: 150px;
    }

    .language-dropdown-item {
        padding: 10px 14px;
    }

    .language-dropdown-item .lang-code,
    .language-dropdown-item .lang-name {
        font-size: 12px;
    }
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF4308;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile Header Language Switcher */
.language-switcher-mobile {
    position: relative;
    display: inline-block;
}

.language-dropdown-toggle-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-dropdown-toggle-mobile i.fa-globe {
    font-size: 14px;
}

.language-dropdown-menu-mobile {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher-mobile:hover .language-dropdown-menu-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .language-dropdown-toggle-mobile {
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .language-dropdown-toggle-mobile i.fa-globe {
        font-size: 12px;
    }

    .language-dropdown-menu-mobile {
        min-width: 140px;
    }
}
