/* ==========================================================================
   UI Enhancements - Elektroservice König
   Modern UI/UX improvements for better user experience
   ========================================================================== */

/* ==========================================================================
   1. NAVIGATION / HEADER ENHANCEMENTS
   ========================================================================== */

/* Modern Navbar Styling */
.rd-navbar-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State - Compact Header */
.rd-navbar.is-scrolled,
.rd-navbar-wrap.scrolled .rd-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.rd-navbar-wrap.scrolled .brand-logo {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Nav Link Enhancements */
.rd-nav-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.rd-nav-link-text {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rd-nav-link-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light, #d4a878));
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.rd-nav-item:hover .rd-nav-link-line,
.rd-nav-item.active .rd-nav-link-line {
    width: 80%;
}

/* Active Nav Item */
.rd-nav-item.active .rd-nav-link {
    color: var(--color-primary, #C4956A) !important;
    font-weight: 600;
}

.rd-nav-item.active .rd-nav-link-text {
    transform: translateY(-2px);
}

/* Secondary Nav Items (Datenschutz, Impressum) */
.rd-nav-item--secondary .rd-nav-link {
    font-size: 0.9em;
    opacity: 0.8;
}

.rd-nav-item--secondary:hover .rd-nav-link {
    opacity: 1;
}

/* Contact Items in Sidebar */
.contact-item {
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: var(--color-primary, #C4956A) !important;
    transform: scale(1.1);
}

/* Mobile Menu Toggle Enhancement */
.rd-navbar-toggle {
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.rd-navbar-toggle:hover {
    opacity: 0.8;
}

.rd-navbar-toggle:focus {
    outline: none;
}

/* ==========================================================================
   2. MODERN FOOTER
   ========================================================================== */

.footer-modern {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

/* Gradient Top Line */
.footer-gradient-line {
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-primary, #C4956A) 0%, 
        var(--color-primary-light, #d4a878) 25%,
        var(--color-primary, #C4956A) 50%,
        var(--color-primary-light, #d4a878) 75%,
        var(--color-primary, #C4956A) 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Footer Main */
.footer-main {
    padding: 60px 0 40px;
}

/* Footer Brand */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-link:hover {
    background: var(--color-primary, #C4956A);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(196, 149, 106, 0.3);
}

.footer-social-link img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-social-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Footer Widget */
.footer-widget {
    padding-left: 20px;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary, #C4956A);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary, #C4956A);
    bottom: -2px;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary, #C4956A);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(196, 149, 106, 0.15);
    border-radius: var(--radius-sm, 8px);
    color: var(--color-primary, #C4956A);
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--color-primary, #C4956A);
    color: white;
    transform: scale(1.1);
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--color-primary, #C4956A);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright span {
    margin-right: 4px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-primary, #C4956A);
}

.footer-legal-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-created-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-created-by a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-created-by a:hover {
    color: var(--color-primary, #C4956A);
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-widget {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Legacy Footer Support */
.footer-classic {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.footer-classic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-primary, #C4956A) 0%, 
        var(--color-primary-light, #d4a878) 50%, 
        var(--color-primary, #C4956A) 100%);
}

/* ==========================================================================
   3. MODERN FORM STYLES
   ========================================================================== */

/* Form Modern Container */
.form-modern {
    width: 100%;
}

/* Form Group Modern */
.form-group-modern {
    margin-bottom: 24px;
    position: relative;
}

/* Form Input Wrapper */
.form-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-input-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-primary, #C4956A);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.2);
}

/* Top Label (above input) */
.form-label-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.form-label-top .form-label-icon {
    display: flex;
    align-items: center;
    color: var(--color-primary, #C4956A);
    opacity: 0.8;
}

/* Modern Form Input */
.form-input-modern,
.form-modern .form-input,
.form-input-wrapper .form-input,
.form-input-wrapper input,
.form-input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #ffffff;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.form-input-wrapper input::placeholder,
.form-input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Textarea Specific */
.form-textarea,
.form-input-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Focus Line */
.form-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary, #C4956A), var(--color-primary-light, #d4a878));
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.form-input-wrapper:focus-within::after {
    width: 100%;
}

/* Error Message */
.form-error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(214, 48, 49, 0.1);
    border-radius: var(--radius-sm, 8px);
    border-left: 3px solid var(--color-danger, #d63031);
    color: #ff6b6b;
    font-size: 13px;
    animation: slideInError 0.3s ease;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-error-icon {
    font-size: 14px;
}

/* Form Button Wrapper */
.form-button-wrapper {
    margin-top: 28px;
}

/* Modern Button */
.button-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary, #C4956A) 0%, var(--color-primary-dark, #a67c52) 100%);
    border: none;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(196, 149, 106, 0.35);
}

.button-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 149, 106, 0.45);
}

.button-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.35);
}

/* Button Icon */
.button-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.button-modern:hover .button-icon {
    transform: translateX(5px);
}

/* Button Loading State */
.button-loading {
    position: absolute;
    display: none;
}

.button-modern.is-loading .button-text,
.button-modern.is-loading .button-icon {
    opacity: 0;
}

.button-modern.is-loading .button-loading {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ripple Effect */
.button-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button-modern:hover::before {
    width: 400px;
    height: 400px;
}

/* Legacy Form Support */
.form-input,
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.form-input:focus,
.form-control:focus {
    border-color: var(--color-primary, #C4956A);
    box-shadow: 0 0 0 4px rgba(196, 149, 106, 0.15);
}

/* Form Wrap Legacy */
.form-wrap {
    position: relative;
    margin-bottom: 24px;
}

.form-label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input Validation States */
.form-input.is-valid,
.form-control.is-valid,
.form-input-modern.is-valid {
    border-color: var(--color-success, #00b894);
}

.form-input-wrapper.has-success {
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.3);
}

.form-input.is-invalid,
.form-control.is-invalid,
.form-input-modern.is-invalid {
    border-color: var(--color-danger, #d63031) !important;
    animation: shake 0.5s ease;
}

.form-input-wrapper.has-error {
    box-shadow: 0 0 0 2px rgba(214, 48, 49, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Light Context Forms */
.context-light .form-input-wrapper {
    background: rgba(0, 0, 0, 0.03);
}

.context-light .form-input-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);
}

.context-light .form-input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.02);
}

.context-light .form-input-modern {
    color: var(--color-dark, #1a1a2e);
}

.context-light .form-label-modern {
    color: rgba(0, 0, 0, 0.5);
}

.context-light .form-label-icon {
    color: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   4. BUTTON ENHANCEMENTS
   ========================================================================== */

/* Primary Button Enhancement */
.button-primary,
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary, #C4956A) 0%, var(--color-primary-dark, #a67c52) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 149, 106, 0.45);
}

.button-primary:active,
.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.35);
}

/* Jerry Button Animation Enhancement */
.button-jerry {
    position: relative;
}

.button-jerry-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-jerry:hover .button-jerry-line {
    background: var(--color-primary-light, #d4a878);
}

/* Outline Button */
.button-primary-outline,
.btn-outline-primary {
    border: 2px solid var(--color-primary, #C4956A);
    color: var(--color-primary, #C4956A);
    background: transparent;
    transition: all 0.3s ease;
}

.button-primary-outline:hover,
.btn-outline-primary:hover {
    background: var(--color-primary, #C4956A);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.3);
}

/* Pulse Animation for CTA Buttons */
.btn-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(196, 149, 106, 0.35);
    }
    50% {
        box-shadow: 0 4px 30px rgba(196, 149, 106, 0.6), 
                    0 0 40px rgba(196, 149, 106, 0.3);
    }
}

/* ==========================================================================
   5. CARD ENHANCEMENTS
   ========================================================================== */

.card {
    border: none;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 28px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--color-primary, #C4956A);
}

/* Card Icon Animation */
.card .fa,
.card [class^="fa-"] {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .fa,
.card:hover [class^="fa-"] {
    transform: scale(1.15) translateY(-5px);
}

/* ==========================================================================
   6. SECTION ENHANCEMENTS
   ========================================================================== */

/* Section Transitions */
section {
    position: relative;
}

/* Gradient Overlays */
.section-gradient-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Section Separator Enhancement */
.section-separator {
    position: relative;
    overflow: hidden;
}

.section-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
    pointer-events: none;
}

/* ==========================================================================
   7. SCROLL ANIMATIONS
   ========================================================================== */

/* Fade In Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* ==========================================================================
   8. MICRO-INTERACTIONS
   ========================================================================== */

/* Link Hover Effect */
a:not(.button):not(.btn):not(.rd-nav-link) {
    position: relative;
    transition: color 0.3s ease;
}

/* Image Hover Effects */
.team-classic-figure img,
.project-mary-figure img,
.video-classic-figure img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-classic:hover .team-classic-figure img,
.project-mary:hover .project-mary-figure img,
.video-classic:hover .video-classic-figure img {
    transform: scale(1.08);
}

/* Icon Box Enhancement */
.box-icon-classic {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    border-radius: var(--radius-md, 12px);
}

.box-icon-classic:hover {
    background: rgba(196, 149, 106, 0.05);
    transform: translateX(10px);
}

.box-icon-classic-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.box-icon-classic:hover .box-icon-classic-icon {
    transform: scale(1.2);
    color: var(--color-primary, #C4956A) !important;
}

/* Counter Animation Enhancement */
.counter-classic {
    transition: transform 0.3s ease;
}

.counter-classic:hover {
    transform: scale(1.05);
}

.counter-classic-number {
    background: linear-gradient(135deg, var(--color-primary, #C4956A), var(--color-primary-light, #d4a878));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   9. OWL CAROUSEL NAVIGATION ARROWS
   ========================================================================== */

/* Hide default dots on all carousels with arrows */
.owl-nav-arrows .owl-dots {
    display: none !important;
}

/* Reset any existing owl-nav positioning */
.owl-nav-arrows .owl-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 30px !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
}

/* Arrow buttons */
.owl-nav-arrows .owl-nav button.owl-prev,
.owl-nav-arrows .owl-nav button.owl-next {
    position: static !important;
    display: inline-flex !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    background: linear-gradient(135deg, var(--color-primary, #C4956A), var(--color-primary-dark, #a67c52)) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.35) !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    float: none !important;
    /* Remove animations */
    transition: none !important;
    animation: none !important;
}

.owl-nav-arrows .owl-nav button.owl-prev:hover,
.owl-nav-arrows .owl-nav button.owl-next:hover {
    opacity: 0.9 !important;
}

.owl-nav-arrows .owl-nav button.owl-prev:active,
.owl-nav-arrows .owl-nav button.owl-next:active {
    opacity: 0.8 !important;
}

/* Hide default text/icons */
.owl-nav-arrows .owl-nav button span {
    font-size: 0 !important;
    color: transparent !important;
    display: none !important;
}

/* Custom arrow icons */
.owl-nav-arrows .owl-nav button.owl-prev::before,
.owl-nav-arrows .owl-nav button.owl-next::before {
    content: '' !important;
    width: 12px !important;
    height: 12px !important;
    border: solid white !important;
    border-width: 0 3px 3px 0 !important;
    display: block !important;
}

.owl-nav-arrows .owl-nav button.owl-prev::before {
    transform: rotate(135deg) !important;
    margin-left: 4px !important;
}

.owl-nav-arrows .owl-nav button.owl-next::before {
    transform: rotate(-45deg) !important;
    margin-right: 4px !important;
}

/* Disabled state */
.owl-nav-arrows .owl-nav button.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Dark background sections */
.bg-gray-800 .owl-nav-arrows .owl-nav button,
.context-dark .owl-nav-arrows .owl-nav button {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   9b. PROJECT CAROUSEL - Equal Image Heights
   ========================================================================== */

.owl-style-1 .project-mary-figure {
    height: 350px;
    overflow: hidden;
}

.owl-style-1 .project-mary-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   10. UI TO TOP BUTTON ENHANCEMENT (existing plugin)
   ========================================================================== */

/* Back to Top Button - Fixed position bottom right */
.ui-to-top {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 1001 !important;
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--color-primary, #C4956A), var(--color-primary-dark, #a67c52)) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(196, 149, 106, 0.4) !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.ui-to-top:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(196, 149, 106, 0.5) !important;
}

/* ==========================================================================
   10. LOADING STATES
   ========================================================================== */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm, 8px);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Button Loading State */
.btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   11. RESPONSIVE ENHANCEMENTS
   ========================================================================== */

@media (max-width: 991px) {
    .ui-to-top {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Touch-friendly form inputs */
    .form-input-wrapper input,
    .form-input-wrapper textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
    }
    
    .form-label-top {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .button-modern {
        min-height: 48px;
        padding: 14px 24px;
    }
}

@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-4px);
    }
    
    .box-icon-classic:hover {
        transform: translateX(5px);
    }
    
    /* Reduce animation intensity on mobile */
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    /* Mobile form enhancements */
    .form-group-modern {
        margin-bottom: 20px;
    }
    
    .form-input-wrapper {
        border-radius: 10px;
    }
    
    .form-input-wrapper input,
    .form-input-wrapper textarea {
        padding: 16px;
        font-size: 16px;
    }
    
    .form-input-wrapper textarea {
        min-height: 100px;
    }
    
    .form-button-wrapper {
        margin-top: 24px;
    }
    
    .form-button-wrapper .button,
    .form-button-wrapper .btn,
    .button-modern {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .form-error-message {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Mobile button touch states */
    .button-modern:active,
    .btn:active {
        transform: scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   12. DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --color-light: #1a1a2e;
        --color-dark: #f8f9fa;
    }
}
