/* ============================================
   ANTCAM PREMIUM DESIGN OVERLAY
   Enhances existing design without breaking it
   ============================================ */

/* --- Mobile Overflow Fix --- */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

.fullwidth,
.hero.fullwidth,
.footer.fullwidth,
.credits.fullwidth {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile menu styles are in _Layout.cshtml inline style block */

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* --- Smooth Global Transitions --- */
*, *::before, *::after {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Enhanced Header --- */
.header.fullwidth {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

.header.fullwidth:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content .logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-content .logo:hover img {
    transform: scale(1.02);
}

/* --- Premium Navigation --- */
.menu-primary .main-menu > li > a {
    position: relative;
    transition: color 0.3s ease;
}

.menu-primary .main-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #eb6d26, #f4944d);
    transition: width 0.4s ease, left 0.4s ease;
    border-radius: 2px;
}

.menu-primary .main-menu > li > a:hover::before,
.menu-primary .main-menu > li.active > a::before {
    width: 100%;
    left: 0;
}

.menu-secondary ul li a {
    transition: color 0.3s ease;
}

.menu-secondary ul li a:hover {
    color: #eb6d26 !important;
}

/* --- Social Icons Enhancement --- */
.menu-social ul li a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-social ul li a:hover {
    transform: translateY(-2px);
    color: #eb6d26 !important;
}

/* --- Hero Section Premium --- */
.hero.fullwidth {
    position: relative;
}

.hero-slider-item-bg {
    transition: transform 8s ease;
    transform: scale(1.02);
}

.hero-slider-item:hover .hero-slider-item-bg {
    transform: scale(1.06);
}

.hero-slider-item-content {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-slider-item-title {
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.hero-slider-item-action.golink {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85em;
}

.hero-slider-item-action.golink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 109, 38, 0.3);
}

/* --- Content Blocks Enhancement --- */
.contentblock {
    transition: transform 0.4s ease;
}

.contentblock-media {
    overflow: hidden;
    border-radius: 8px;
}

.contentblock-media img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contentblock:hover .contentblock-media img {
    transform: scale(1.03);
}

.contentblock-text h1,
.contentblock-text h2,
.contentblock-text h3,
.contentblock-text h4 {
    position: relative;
    letter-spacing: -0.01em;
}

.contentblock.centered .contentblock-text h2 {
    display: inline-block;
}

.contentblock.centered .contentblock-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #eb6d26, #f4944d);
    margin: 12px auto 0;
    border-radius: 3px;
}

/* --- Premium Links --- */
.pijllink {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.pijllink:hover {
    color: #eb6d26;
    letter-spacing: 0.04em;
}

/* --- Reference Cards Premium --- */
.reference-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

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

.reference-item-photo img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-item:hover .reference-item-photo img {
    transform: scale(1.08);
}

.hover-icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 20px !important;
    background: rgba(235, 109, 38, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease !important;
}

.reference-item:hover .hover-icon {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.reference-item-title {
    transition: color 0.3s ease;
}

.reference-item:hover .reference-item-title {
    color: #eb6d26;
}

/* --- News/Product Slider Enhancement --- */
.news-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
}

.news-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.news-item-image img {
    transition: transform 0.6s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content header h1 a {
    transition: color 0.3s ease;
}

.news-item-content header h1 a:hover {
    color: #eb6d26 !important;
}

/* --- Sales Panel Premium --- */
.sales-panel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
}

.sales-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.sales-panel img {
    transition: transform 0.6s ease;
}

.sales-panel:hover img {
    transform: scale(1.02);
}

.sales-panel-content h4 {
    letter-spacing: -0.01em;
}

/* --- CTA Text Enhancement --- */
.cta-text {
    transition: transform 0.3s ease;
}

.cta-text:hover {
    transform: translateX(3px);
}

.cta-text i {
    color: #eb6d26;
    transition: transform 0.3s ease;
}

.cta-text:hover i {
    transform: scale(1.15);
}

/* --- Premium Buttons --- */
.btn.btn-dark,
.btn-primary {
    background: linear-gradient(135deg, #eb6d26, #d4611f) !important;
    border: none !important;
    border-radius: 6px;
    letter-spacing: 0.03em;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(235, 109, 38, 0.25);
    position: relative;
    overflow: hidden;
}

.btn.btn-dark:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 109, 38, 0.35);
    background: linear-gradient(135deg, #f4944d, #eb6d26) !important;
}

.btn.btn-dark:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(235, 109, 38, 0.3);
}

/* --- Product/Grid Items --- */
.grid-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.grid-item img {
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* --- Footer Premium --- */
.footer.fullwidth {
    position: relative;
}

.footer-usps .checklist li {
    transition: transform 0.3s ease;
}

.footer-usps .checklist li:hover {
    transform: translateX(5px);
}

.footer-content-item h6 {
    position: relative;
    padding-bottom: 10px;
}

.footer-content-item h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #eb6d26, transparent);
    border-radius: 2px;
}

.footer-content-item ul li a {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-content-item ul li a:hover {
    color: #eb6d26 !important;
    transform: translateX(3px);
}

/* --- Credits Bar --- */
.credits.fullwidth {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits a:hover {
    color: #eb6d26 !important;
}

/* --- Configurator Cards (Certificates/Suppliers) --- */
.configurator-cards .configurator-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.configurator-cards .configurator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.configurator-cards .configurator-card img {
    transition: transform 0.5s ease;
}

.configurator-cards .configurator-card:hover img {
    transform: scale(1.05);
}

/* --- Form Premium --- */
.form input,
.form textarea {
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    border-color: #eb6d26;
    box-shadow: 0 0 0 3px rgba(235, 109, 38, 0.12);
    outline: none;
}

/* --- Photo Album / Gallery --- */
.photo-album img {
    border-radius: 6px;
    transition: transform 0.5s ease;
}

.photo-album:hover img {
    transform: scale(1.02);
}

/* --- Scroll Indicator --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Selection Color --- */
::selection {
    background: rgba(235, 109, 38, 0.2);
    color: #111110;
}

::-moz-selection {
    background: rgba(235, 109, 38, 0.2);
    color: #111110;
}

/* --- Scrollbar Premium (Webkit) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #eb6d26, #d4611f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4611f, #b85219);
}

/* --- Responsive Enhancements --- */
@media (max-width: 991px) {
    .sitewidth {
        width: 94% !important;
        max-width: 100% !important;
    }

    .header-content .logo img {
        max-width: 220px !important;
        height: auto !important;
    }

    .hero-slider-item-content {
        padding: 0 15px;
    }

    .hero-slider-item-title {
        font-size: 1.2rem !important;
    }

    .combipanel {
        overflow: hidden;
    }

    .sales-panel {
        flex-direction: column !important;
    }

    .sales-panel img {
        max-width: 100% !important;
    }

    .contentblock-media {
        max-width: 100%;
    }

    .contentblock-media img {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .reference-item:hover {
        transform: none !important;
    }

    .contentblock:hover .contentblock-media img {
        transform: none;
    }

    .hero-slider-item:hover .hero-slider-item-bg {
        transform: scale(1.02);
    }

    .btn.btn-dark:hover,
    .btn-primary:hover {
        transform: none;
    }

    .header-content .logo img {
        max-width: 180px !important;
    }

    .footer-content {
        flex-direction: column !important;
    }

    .footer-content-item {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .footer-usps .checklist {
        flex-direction: column !important;
        gap: 8px;
    }

    .news-slider {
        overflow: hidden;
    }

    .contentblock.default.photo-right,
    .contentblock.default.photo-left,
    .contentblock.default.photo-center {
        flex-direction: column !important;
    }

    .credits-content {
        flex-direction: column !important;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-content .logo img {
        max-width: 150px !important;
    }

    .sitewidth {
        width: 96% !important;
    }

    .hero-slider-item-title {
        font-size: 1rem !important;
    }

    .hero-slider-item-action.golink {
        font-size: 0.75em !important;
        padding: 8px 16px !important;
    }

    .contentblock-text h1,
    .contentblock-text h2 {
        font-size: 1.3rem !important;
    }

    .footer-content-item h6 {
        font-size: 1rem;
    }
}

/* --- Subtle page load animation --- */
@keyframes pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.loaded .content {
    animation: pageReveal 0.6s ease-out;
}

body.loaded .footer {
    animation: pageReveal 0.8s ease-out;
}
