
/* ============================================================
   NOVINTEK SHARED HEADER / FOOTER
   Extracted from the site's main index design.
   Scoped to avoid overriding page-specific page styles.
   ============================================================ */

:root {
    --nov-purple: #7c3aed;
    --nov-teal: #06b6d4;
    --nov-purple-glow: rgba(124, 58, 237, 0.35);
    --nov-teal-glow: rgba(6, 182, 212, 0.30);
    --nov-gradient: linear-gradient(135deg, var(--nov-purple), var(--nov-teal));
    --nov-bg-deep: #08080e;
    --nov-text-dark: #0b1a33;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(8, 8, 14, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.35s;
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar .container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--nov-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.navbar .logo::after {
    content: '●';
    font-size: 0.6rem;
    color: var(--nov-teal);
    margin-left: 4px;
    -webkit-text-fill-color: initial;
    animation: nov-pulse-dot 2s ease-in-out infinite;
}

@keyframes nov-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.navbar .main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar .main-nav ul li {
    margin: 0;
    padding: 0;
}

.navbar .main-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.35s;
    display: inline-block;
}

.navbar.scrolled .main-nav ul li a {
    color: rgba(11, 26, 51, 0.7);
}

.navbar .main-nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navbar.scrolled .main-nav ul li a:hover {
    color: var(--nov-purple);
    background: rgba(124, 58, 237, 0.06);
}

.navbar .main-nav ul li a.lang-switch {
    background: var(--nov-gradient);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 4px 20px var(--nov-purple-glow);
}

.navbar.scrolled .main-nav ul li a.lang-switch {
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.navbar .main-nav ul li a.lang-switch:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px var(--nov-purple-glow);
    background: linear-gradient(135deg, var(--nov-teal), var(--nov-purple));
}

.navbar .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.35s;
}

.navbar.scrolled .mobile-menu-toggle {
    color: var(--nov-text-dark);
}

.navbar .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--nov-gradient);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 30px var(--nov-purple-glow);
    transition: all 0.35s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px var(--nov-teal-glow);
}

/* ---------- VISITOR COUNTER ---------- */
.novintek-counter-bar {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.novintek-counter-bar .counter-bottom-wrapper {
    text-align: center;
    padding: 15px 0 5px;
}

.novintek-counter-bar .visitor-counter-compact {
    background: rgba(255,255,255,0.03);
    padding: 8px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: 'Inter', Tahoma, Arial, sans-serif;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.novintek-counter-bar .counter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.novintek-counter-bar .counter-number {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    direction: ltr;
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 30px;
    text-align: center;
}

.novintek-counter-bar .counter-label {
    font-size: 11px;
    color: #b2bec3;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.novintek-counter-bar .counter-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
}

.novintek-counter-bar .counter-icon {
    font-size: 13px;
    opacity: 0.7;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--nov-bg-deep);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255,255,255,0.6);
}

.footer > .container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.footer-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--nov-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50% 20% 50% 20%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.35s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--nov-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) rotate(4deg);
    box-shadow: 0 8px 28px var(--nov-purple-glow);
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.35s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(6px) skewX(-2deg);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--nov-teal);
    font-size: 1rem;
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.35s;
}

.footer-contact a:hover {
    color: var(--nov-teal);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.35s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
    }

    .navbar .mobile-menu-toggle {
        display: block;
    }

    .navbar .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(8, 8, 14, 0.97);
        backdrop-filter: blur(18px);
        transition: max-height 0.4s ease;
    }

    .navbar .main-nav.active {
        max-height: 520px;
    }

    .navbar .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .navbar .main-nav ul li {
        width: 100%;
    }

    .navbar .main-nav ul li a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .navbar.scrolled .main-nav ul li a {
        color: var(--nov-text-dark) !important;
    }

    .navbar .main-nav ul li a.lang-switch,
    .navbar.scrolled .main-nav ul li a.lang-switch {
        color: #fff !important;
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .novintek-counter-bar .visitor-counter-compact {
        padding: 6px 15px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .novintek-counter-bar .counter-number {
        font-size: 14px;
        min-width: 25px;
    }

    .novintek-counter-bar .counter-label {
        font-size: 10px;
    }

    .novintek-counter-bar .counter-divider {
        height: 16px;
    }
}
