/* ============================================================ */
/* DERUX INDUSTRIAL – Custom Styles                              */
/* ============================================================ */

/* ---- Smooth Scrolling ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Logo Transparency Fix ---- */
.logo-transparent {
    mix-blend-mode: multiply;
    background: transparent !important;
}



/* ---- Material Symbols ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---- Navigation Links ---- */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    padding: 8px 14px;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: #b00d00;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #b00d00;
}

.nav-link:hover::after,
.nav-link.active::after {
    left: 14px;
    right: 14px;
}

.nav-link.active {
    color: #b00d00;
}

/* ---- Mobile Navigation ---- */
.mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3f3f46;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f5;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #b00d00;
    background-color: #fef2f2;
    padding-left: 24px;
}

/* ---- Header scroll state ---- */
.nav-scrolled {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.06);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #d9230f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background-color: #b00d00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 35, 15, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #1a1c1c;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    text-decoration: none;
    border: 1px solid #926f69;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background-color: #e2e2e2;
    border-color: #5d3f3a;
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ---- Cards ---- */
.expertise-card {
    background: #f9f9f9;
    border: 1px solid #e7bdb6;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.expertise-card:hover {
    border-color: #7cdffe;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.machinery-card {
    background: #ffffff;
    border: 1px solid #e7bdb6;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.machinery-card.flex-row {
    flex-direction: column;
}

@media (min-width: 640px) {
    .machinery-card.flex-row {
        flex-direction: row;
    }
}

.machinery-card:hover {
    border-color: #7cdffe;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ---- Technical Badges ---- */
.tech-badge {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
}

/* ---- Form Fields ---- */
.form-input-field {
    border: 1px solid #e7bdb6;
    background-color: #f9f9f9;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.form-input-field:focus {
    border-color: #00677d;
    box-shadow: 0 0 0 2px rgba(0, 103, 125, 0.15);
}

.form-input-field:hover:not(:focus) {
    border-color: #926f69;
}

/* ---- Animations ---- */

/* Fade in up on load */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s ease forwards;
}

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

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation is handled via JS */

/* Pulsing dots */
.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ---- Image loading placeholder & protection ---- */
img {
    background-color: #e8e8e8;
}

.protect-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* ---- Selection ---- */
::selection {
    background-color: #d9230f;
    color: #fff;
}

/* ---- Scrollbar (Chrome/Edge/Safari) ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #926f69;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .text-headline-display {
        font-size: 32px !important;
    }
    .text-headline-lg {
        font-size: 26px !important;
    }
}

/* ---- Application Cards ---- */
.application-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #ffffff;
    border: 1px solid #e7bdb6;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.application-card:hover {
    border-color: #d9230f;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(217, 35, 15, 0.08);
}

.application-card:hover .material-symbols-outlined {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* ---- Print styles ---- */
@media print {
    .nav-link, .btn-primary, .btn-secondary, .scroll-indicator, #mobile-menu-btn {
        display: none !important;
    }
}
